CFx SDK Documentation 2024 SP0
|
#include <FxDesignResourceModel.h>
Public Types | |
enum | ItemType { eNoneItem = -1 , eRootItem = 0 , eShortCutItem , eFolderItem , eDrawingItem , eImageItem , eLinkItem , eNetworkComputer , eBlockTable , eDimStyleTable , eLayerTable , eLineStyleTable , eXrefDrawings , eSheets , eTableStyles , eTextStyleTable , eMLeaderStyles , eBlock , eDimStyle , eLayer , eLineStyle , eXrefDrawing , eSheet , eTableStyle , eTextStyle , eMLeaderStyle , eLastStyle } |
enum | DrawignSubItemVisibilty { eNone = 0 , eBlocksVisible = 1 , eDimStylesVisible = 2 , eLayersVisible = 4 , eLineStylesVisible = 8 , eXrefDrawingsVisible = 16 , eSheetsVisible = 32 , eTableStylesVisible = 64 , eTextStylesVisible = 128 , eMLeaderStylesVisible = 256 , eAll } |
enum | Operation { eOpenInApplication = 0 , eInsertAsBlock , eAttachAsXref , eInsertBlock , eAddDimStyle , eAddLayer , eAddLineStyle , eAttachXref , eAddSheet , eAddTableStyle , eAddTextStyle , eAddMLeaderStyle , eAttachImage , eRefreshSource , eExplore } |
enum | DataType { eInt = 0 , eDouble , eString , eDate } |
Public Member Functions | |
virtual | ~CFxDesignResourceModel (void) |
virtual CFxDesignDataItem * | CreateItem (const CFxString &sText, CFxDesignResourceModel::ItemType type, bool bExpandable=true) const =0 |
virtual CFxDesignDataItem * | ItemAt (CFxDesignDataItem *pParent, int iIndex) const =0 |
virtual bool | AppendChild (CFxDesignDataItem *pParent, CFxDesignDataItem *pChild)=0 |
virtual int | GetChildCount (const CFxDesignDataItem *pItem) const =0 |
virtual bool | RemoveAllChildren (CFxDesignDataItem *pParent)=0 |
virtual bool | RemoveItem (CFxDesignDataItem *pItem)=0 |
virtual CFxDesignDataItem * | GetParentItem (const CFxDesignDataItem *pItem) const =0 |
virtual bool | IsDrawingSubItem (CFxString &sURL)=0 |
virtual bool | RemoveDatabaseFromCache (const CFxString &sURL)=0 |
virtual CFxDesignDataItem * | GetExploredItem ()=0 |
virtual void | ExploreItem (CFxDesignDataItem *pItem)=0 |
Protected Member Functions | |
CFxDesignResourceModel () | |
Definition at line 26 of file FxDesignResourceModel.h.
Description: For Detail View Column Contents Data type.
Enumerator | |
---|---|
eInt | |
eDouble | |
eString | |
eDate |
Definition at line 109 of file FxDesignResourceModel.h.
Description: Flags to control Drawing Sub Items visibility
Enumerator | |
---|---|
eNone | |
eBlocksVisible | |
eDimStylesVisible | |
eLayersVisible | |
eLineStylesVisible | |
eXrefDrawingsVisible | |
eSheetsVisible | |
eTableStylesVisible | |
eTextStylesVisible | |
eMLeaderStylesVisible | |
eAll |
Definition at line 68 of file FxDesignResourceModel.h.
Description: Design Resource supported Item Types
Definition at line 32 of file FxDesignResourceModel.h.
Description: Flags to control item's context menu operations.
Definition at line 87 of file FxDesignResourceModel.h.
|
virtual |
|
protected |
|
pure virtual |
Description: Append given child at specified parent item. Arguments:
CFxDesignDataItem* | Parent Item pointer if NULL then append item as root item. |
CFxDesignDataItem* | Child Item to Append |
Return Value: true if it succeeds, false if it fails.
|
pure virtual |
Description: Create new item of following type: eRootItem , eShortCutItem, eFolderItem , eDrawingItem ,
eImageItem , eLinkItem , eNetworkComputer,
Arguments:
CFxString | Display name of the item |
CFxDesignResourceModel::ItemType | Item type |
bool | Make it expandable if true |
Return Value: NULL if it fails, else the created item.
|
pure virtual |
Description: Explore or select specified item in Source view and make it current item. Arguments:
CFxDesignDataItem* | Item to explore. |
|
pure virtual |
Description: Get child count of specified item. Arguments:
CFxDesignDataItem* | Item if NULL then get root items count |
Return Value: child count.
|
pure virtual |
Description: Returns Current explored or selected item in Source view.
|
pure virtual |
Description: Get parent item of specified item. Arguments:
CFxDesignDataItem* | Item whose parent item required. |
Return Value: NULL if specified item is root item, else the parent item.
|
pure virtual |
Description: Returns true If specified URL points to Drawing Sub Item. Arguments:
CFxString | Returns URL of Parent item of Drawing Sub Item. |
|
pure virtual |
Description: Get item at specified position of parent item. Arguments:
CFxDesignDataItem* | Parent Item if NULL then get root item at specified index. |
int | Item position index |
Return Value: NULL if it fails, else the found item.
|
pure virtual |
Description: Remove all childes of given item. Arguments:
CFxDesignDataItem* | Item whose child has to remove. |
Return Value: true if it succeeds, false if it fails.
|
pure virtual |
Description: Remove database from cache for specified URL if already cached. Arguments:
CFxString | Specified Database URL. |
Return Value: true if it succeeds, false if it fails.
|
pure virtual |
Description: Remove specified item from its parent item. Arguments:
CFxDesignDataItem* | Item to remove. |