CFx SDK Documentation 2024 SP0
|
#include <OleItemHandlerBase.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdOleItemHandlerBase) | |
void | load (OdStreamBuf &streamBuf) |
void | save (OdStreamBuf &streamBuf) const |
bool | draw (const OdGiCommonDraw &drawObj, void *hdc, const OdGsDCRect &screenRect) const |
Type | type () const |
OdString | linkName () const |
OdString | linkPath () const |
OdString | userType () const |
DvAspect | drawAspect () const |
void | setDrawAspect (DvAspect drawAspect) |
OdUInt32 | itemId () const |
void | setItemId (OdUInt32 nId) |
DvAspect | adviseType () const |
void | setAdviseType (DvAspect at) |
bool | monikerAssigned () const |
void | setMonikerAssigned (bool assigned) |
OdUInt32 | oleVersion () const |
void | setOleVersion (OdUInt32 oleVer) |
PlotQuality | outputQuality () const |
void | setOutputQuality (PlotQuality quality) |
virtual COleClientItem * | getOleClientItem (void) const |
virtual bool | embedRaster (OdSmartPtr< OdGiRasterImage > pImage, OdRxObject *pRxDb=NULL) |
virtual OdGiRasterImagePtr | getRaster (bool=true) const |
virtual bool | getWmfData (OdBinaryData &data) const |
Public Member Functions inherited from OdOleItemHandler | |
ODRX_DECLARE_MEMBERS (OdOleItemHandler) | |
virtual void | load (OdStreamBuf &streamBuf)=0 |
virtual void | save (OdStreamBuf &streamBuf) const =0 |
virtual OdUInt32 | getCompoundDocumentDataSize () const =0 |
virtual void | getCompoundDocument (OdStreamBuf &streamBuf) const =0 |
virtual void | setCompoundDocument (OdUInt32 numBytes, OdStreamBuf &streamBuf)=0 |
virtual Type | type () const =0 |
virtual DvAspect | drawAspect () const =0 |
virtual OdString | linkName () const =0 |
virtual OdString | linkPath () const =0 |
virtual OdString | userType () const =0 |
virtual void | setDrawAspect (DvAspect drawAspect)=0 |
virtual PlotQuality | outputQuality () const =0 |
virtual void | setOutputQuality (PlotQuality quality)=0 |
virtual COleClientItem * | getOleClientItem (void) const =0 |
virtual bool | embedRaster (OdSmartPtr< class OdGiRasterImage > pImage, OdRxObject *pRxDb=NULL)=0 |
virtual OdGiRasterImagePtr | getRaster (bool bDisplayedOnly=true) const =0 |
Public Member Functions inherited from OdGiSelfGdiDrawable | |
ODRX_DECLARE_MEMBERS (OdGiSelfGdiDrawable) | |
virtual bool | draw (const OdGiCommonDraw &drawObj, void *hdc, const OdGsDCRect &screenRect) const =0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
OdOleItemHandlerBase () | |
Protected Attributes | |
OdUInt32 | m_nOleVer |
OdUInt32 | m_nItemId |
DvAspect | m_adviseType |
OdUInt16 | m_bMoniker |
DvAspect | m_drawAspect |
PlotQuality | m_quality |
Additional Inherited Members | |
Public Types inherited from OdOleItemHandler | |
enum | Type { kUnknown = 0 , kLink = 1 , kEmbedded = 2 , kStatic = 3 } |
enum | DvAspect { kContent = 1 , kThumbnail = 2 , kIcon = 4 , kDocPrint = 8 } |
enum | PlotQuality { kMonochrome = 0 , kLowGraphics = 1 , kHighGraphics = 2 , kAutomatic = 3 } |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is intended to be used in implementing custom OLE handlers.
The header is an MFC COleClientItem object's fields serialized through MFC CArchive object. See MFC source code for details.
<group Other_Classes>
Definition at line 45 of file OleItemHandlerBase.h.
|
protected |
DvAspect OdOleItemHandlerBase::adviseType | ( | ) | const |
|
virtual |
Implements OdGiSelfGdiDrawable.
|
virtual |
Returns the draw aspect of this OleItemHandler object.
Value kContent 1 kThumbnail 2 kIcon 4 kDocPrint 8
Implements OdOleItemHandler.
|
virtual |
Embeds a raster image to this OLE object.
pImage | [in] Pointer to a raster image. |
pRxDb | [in] Pointer to a database object. |
Implements OdOleItemHandler.
|
virtual |
Implements OdOleItemHandler.
|
virtual |
Implements OdOleItemHandler.
|
virtual |
OdUInt32 OdOleItemHandlerBase::itemId | ( | ) | const |
|
virtual |
Implements OdOleItemHandler.
|
virtual |
Implements OdOleItemHandler.
|
virtual |
Reads the header of the OdDbOle2Frame object.
streamBuf | [in] StreamBuf object from which the data are to be read. |
Implements OdOleItemHandler.
bool OdOleItemHandlerBase::monikerAssigned | ( | ) | const |
OdOleItemHandlerBase::ODRX_DECLARE_MEMBERS | ( | OdOleItemHandlerBase | ) |
OdUInt32 OdOleItemHandlerBase::oleVersion | ( | ) | const |
|
virtual |
Returns the output quality for this OLE object (DXF 73).
outputQuality() returns one of the following:
Value Example kMonochrome 0 Spreadsheet kLowGraphics 1 Color text & pie charts kHighGraphics 2 Photograph kAutomatic 3 Automatic dependent on document type
Implements OdOleItemHandler.
|
virtual |
Writes the header of the OdDbOle2Frame object.
streamBuf | [in] StreamBuf object to which which the data are to be written. |
Implements OdOleItemHandler.
Sets the draw aspect of this OleItemHandler object.
drawAspect | [in] Draw aspect. |
Value kContent 1 kThumbnail 2 kIcon 4 kDocPrint 8
Implements OdOleItemHandler.
void OdOleItemHandlerBase::setMonikerAssigned | ( | bool | assigned | ) |
|
virtual |
Sets the output quality for this OLE object (DXF 73).
quality | [in] Output quality. |
quality must be one of the following:
Value Example kMonochrome 0 Spreadsheet kLowGraphics 1 Color text & pie charts kHighGraphics 2 Photograph kAutomatic 3 Automatic dependent on document type
Implements OdOleItemHandler.
|
virtual |
Implements OdOleItemHandler.
|
virtual |
Implements OdOleItemHandler.
|
protected |
Definition at line 73 of file OleItemHandlerBase.h.
|
protected |
Definition at line 74 of file OleItemHandlerBase.h.
|
protected |
Definition at line 75 of file OleItemHandlerBase.h.
|
protected |
Definition at line 72 of file OleItemHandlerBase.h.
|
protected |
Definition at line 71 of file OleItemHandlerBase.h.
|
protected |
Definition at line 76 of file OleItemHandlerBase.h.