CFx SDK Documentation
2023 SP0
|
#include <FxSystemServices.h>
Classes | |
class | CFxExpressionParserData |
Public Types | |
enum | FxMessageBoxFlags { MBButtonOk = 0x00000000L , MBButtonOkCancel = 0x00000001L , MBButtonAbortRetryIgnore = 0x00000002L , MBButtonYesNoCancel = 0x00000003L , MBButtonYesNo = 0x00000004L , MBButtonRetryCancel = 0x00000005L , MBButtonSaveDiscardCancel = 0x00000009L , MBIconStop = 0x00000010L , MBIconQuestion = 0x00000020L , MBIconExclamation = 0x00000030L , MBIconAsterisk = 0x00000040L , MBModalSystem = 0x00001000L , MBModalTask = 0x00002000L } |
enum | _FontType { eFontsAll = 0 , eFontsSHX = 1 , eFontsTTF = 2 } |
enum | InitialDir { kDirOpen , kDirAttach , kDirInsert , kDirLoadShape , kDirLoadScript , kDirLisp , kDirSave } |
enum | _ModelerType { kNoModeler = 0 , kOdaModeler = 1 , kSpatialACIS = 2 , kUnknownModeler = 3 } |
typedef enum CFxSystemServices::_FontType | FontType |
typedef enum CFxSystemServices::_ModelerType | ModelerType |
Public Member Functions | |
CFxSystemServices () | |
virtual | ~CFxSystemServices () |
virtual bool | GetPassword (const CFxString &dwgName, bool isXref, OdPassword &password) const =0 |
virtual void | AuditPrintReport (OdDbAuditInfo *pAuditInfo, const CFxString &str) const =0 |
virtual CFxString | FindFile (const CFxString &sFile, bool bDisplayMessage=false, const OdDbBaseDatabase *pDb=0, OdDbHostAppServices::FindFileHint hint=OdDbHostAppServices::kDefault) const =0 |
virtual bool | IsValidFileName (const CFxString &fileName) const =0 |
virtual void | Write (const CFxString &str, const CFxDocument *pContext=0) const =0 |
virtual void | WriteLine (const CFxString &str, const CFxDocument *pContext=0, bool bShowCommandWindowOutput=false) const =0 |
virtual CFxMainFrame * | GetMainFrame () const =0 |
virtual int | MessageBox (const CFxString &csText, const CFxString &csCaption, unsigned int uType) const =0 |
virtual CFxDocumentManager * | GetFxDocumentManager ()=0 |
virtual CFxHostAppServices * | GetHostAppServices ()=0 |
virtual OdDbSystemServices * | GetSystemServices ()=0 |
virtual CFxEvalModeHandler * | GetFxEvalModeHandler ()=0 |
virtual OdResBufPtr | SendStringToExecute (const CFxString &strCommand, const CFxExpressionParserData *pData=0)=0 |
virtual OdResBufPtr | SendStringToExecute (const CFxExpressionParserData *pData, int rtype,...)=0 |
virtual OdResBufPtr | SendStringToExecute (const CFxExpressionParserData *pData, int rtype, va_list vaList)=0 |
virtual OdResBufPtr | SendStringToExecute (const CFxExpressionParserData *pData, OdResBufPtr pResbuf)=0 |
virtual OdResBufPtr | SendStringToExecute (CFxDocument *pDoc, const CFxExpressionParserData *pData, OdResBufPtr pResbuf)=0 |
virtual void | QueueExpr (const CFxExpressionParserData *pData, const OdResBufPtr &pExpr)=0 |
virtual void | QueueExpr (const CFxExpressionParserData *pData, int rtype,...)=0 |
virtual CFxVectorizeDevicePtr | GetFxGDIDevice ()=0 |
virtual OdGiRasterImagePtr | CreateRasterImage () const =0 |
virtual OdArray< CFxString > | GetAvailableFonts (FontType eType) const =0 |
virtual CFxProfileManager * | GetFxProfileManager ()=0 |
virtual CFxIO * | GetFxIO ()=0 |
virtual CFxApplications * | GetFxApplications ()=0 |
virtual CFxVSTA * | GetVSTA ()=0 |
virtual void | ActivateRibbon (bool enable)=0 |
virtual IDispatch * | GetIApplication ()=0 |
virtual int | FileDialog (CFxUserIO::FileNameRetVal *pResultMode, CFxString *pResultStr, FxWId parent, CFxUserIO::FileNameType eType, const CFxString &dialogCaption, const CFxString &defaultExtension, const CFxString &filter, const CFxString &initialDir, int *filterIndex=0, CFxString *templateName=0, CFxUserIO::FileNameFlags flags=CFxUserIO::eFileNameNoFlags, OdCodePageId **codepage=0)=0 |
virtual int | FileDialog (CFxUserIO::FileNameRetVal *pResultMode, CFxStringArray *pResultStrs, FxWId parent, CFxUserIO::FileNameType eType, const CFxString &dialogCaption, const CFxString &defaultExtension, const CFxString &filter, const CFxString &initialDir, int *filterIndex=0, CFxString *templateName=0, CFxUserIO::FileNameFlags flags=CFxUserIO::eFileNameNoFlags, OdCodePageId **codepage=0)=0 |
virtual CFxUI * | GetFxUI ()=0 |
virtual void | Help (const CFxString &lpCommandName) const =0 |
virtual void | ExitApplication (int nReturnCode=0)=0 |
virtual bool | IsApplicationExiting () const =0 |
virtual CFxNetworkAccessManager * | GetFxNetworkAccessManager ()=0 |
virtual CFxGeometryClipperPtr | CreateGeometryClipper ()=0 |
virtual void | GetInitialDirPath (InitialDir type, CFxString &initialDir, const CFxFileData *info=0) const =0 |
virtual void | SetInitialDirPath (InitialDir type, const CFxString &fileNamePath)=0 |
virtual CFxObjectManager * | GetObjectManager ()=0 |
virtual OdSmartPtr< CFxBagFiler > | CreateBagFiler (OdDbDatabase *db, OdDb::DwgVersion version=OdDb::kDHL_CURRENT, fdt_resbufW *resBuf=0, bool bIncludesDefaultValues=false)=0 |
virtual bool | userBreak ()=0 |
virtual void | SetUserBreak (bool bUserBreak=true)=0 |
virtual CFxInferencePointManager * | GetInferencePointManager ()=0 |
virtual OdCodePageId | GetSystemCodepage () const =0 |
virtual void | SetSystemCodepage (OdCodePageId codepage)=0 |
virtual bool | DoVerb (const OdDbObjectId &idOleObject) const =0 |
virtual bool | AddOleDataToClipboard (QMimeData *pClipboardData, CFxDatabasePtr pData, int iFrameWidth, int iFrameHeight) const =0 |
virtual CFxGeomUtils * | GetGeomUtils () const =0 |
virtual ModelerType | GetModelerManufacture () const =0 |
virtual bool | GetVersion (int *major, int *minor, int *product, int *build) const =0 |
virtual CFxString | GetVersion () const =0 |
virtual void | SetOEMVersion (const CFxString &sOEMVersion)=0 |
virtual CFxString | GetOEMVersion () const =0 |
virtual CFxString | GetAppDataVersion () const =0 |
virtual CFxString | GetOpenDefaultExtension () const =0 |
virtual void | DisableUI (bool disable, bool includeCommandWindow=true, bool includeDocumentWindows=true, bool includeStatusBar=true)=0 |
virtual void | AuthoriseOEMModule (bool authorise)=0 |
virtual bool | IsOEMModuleAuthorised ()=0 |
virtual CFxActionMacroManager * | GetFxActionMacroManager ()=0 |
virtual const CFxActionMacroManager * | GetFxActionMacroManager () const =0 |
virtual CFxRasterImagePtr | CreateDrawablePreview (OdUInt32 iWidth, OdUInt32 iHeight, OdDbDatabase *pDatabase, const OdGiDrawableArray &drawables, const CFxViewDrawInfo *pInfo)=0 |
virtual CFxAPI * | GetFxAPI (CFxDocument *pDocument)=0 |
virtual void | StopATFBomb ()=0 |
virtual CFxUIStyle::UIStyle | GetRibbonTheme () const =0 |
virtual void | SetRibbonTheme (const CFxUIStyle::UIStyle value)=0 |
virtual void | AddOutputDevice (CFxOutputDevice *device)=0 |
Add device, if it is not in the list of output devices yet. More... | |
virtual void | RemoveOutputDevice (CFxOutputDevice *device)=0 |
Remove device, if it is there. More... | |
virtual OdResBufPtr | ExecuteStringOnPause (CFxDocument *pDoc, const CFxString &strCommand, const CFxExpressionParserData *pData=0)=0 |
Description: Manages the system services. Library: DDKERNEL
Definition at line 80 of file FxSystemServices.h.
typedef enum CFxSystemServices::_FontType CFxSystemServices::FontType |
Description: fonts
Description: Values that represent _ModelerType.
Description: fonts
Enumerator | |
---|---|
eFontsAll | |
eFontsSHX | |
eFontsTTF |
Definition at line 274 of file FxSystemServices.h.
Description: Values that represent _ModelerType.
Enumerator | |
---|---|
kNoModeler | |
kOdaModeler | |
kSpatialACIS | |
kUnknownModeler |
Definition at line 524 of file FxSystemServices.h.
Values that represent FxMessageBoxFlags.
Definition at line 88 of file FxSystemServices.h.
Enumerator | |
---|---|
kDirOpen | |
kDirAttach | |
kDirInsert | |
kDirLoadShape | |
kDirLoadScript | |
kDirLisp | |
kDirSave |
Definition at line 419 of file FxSystemServices.h.
CFxSystemServices::CFxSystemServices | ( | ) |
|
virtual |
|
pure virtual |
|
pure virtual |
Description: Adds an ole data to clipboard. Arguments:
[in,out] | pClipboardData | If non-null, information describing the clipboard. |
pData | The data. | |
iFrameWidth | Width of the frame. | |
iFrameHeight | Height of the frame. |
Return Value: true if it succeeds, false if it fails.
|
pure virtual |
Add device, if it is not in the list of output devices yet.
|
pure virtual |
Description:
Arguments:
pAuditInfo | TODO |
str | TODO |
|
pure virtual |
Description: Authorise oem module. Arguments:
authorise | true to authorise. |
|
pure virtual |
Description: Returns 'bag' filer which takes data from given 'resBuf' object.
|
pure virtual |
Description: Creates preview for drawables.
Return Value: raster image
|
pure virtual |
Description: Description:
|
pure virtual |
Description:
|
pure virtual |
Description: Disables the user interface. Arguments:
disable | true to disable, false to enable. |
includeCommandWindow | (optional) the include command window. |
includeDocumentWindows | (optional) the include document windows. |
includeStatusBar | (optional) the include status bar. |
|
pure virtual |
Description: Executes the verb operation. Arguments:
idOleObject | The identifier ole object. |
Return Value: true if it succeeds, false if it fails.
|
pure virtual |
Description: Command will be executed when parameters are not provided by script or SendStringToExecute() calls
|
pure virtual |
Description: Trigger exit event in application. Arguments
nReturnCode | The return code (0 on default) |
|
pure virtual |
Description: File dialog. Arguments:
[in,out] | pResultMode | If non-null, the result mode. |
[in,out] | pResultStr | If non-null, the result string. |
parent | The parent. | |
eType | The type. | |
dialogCaption | The dialog caption. | |
defaultExtension | The default extension. | |
filter | A filter specifying the c fx string&. | |
initialDir | The initial dir. | |
filterIndex | (optional) [in,out] If non-null, zero-based index of the filter. | |
templateName | (optional) [in,out] If non-null, name of the template. | |
flags | (optional) the flags. | |
codepage | (optional) [in,out] If non-null, the codepage. |
Return Value: .
|
pure virtual |
Description: File dialog. Arguments:
[in,out] | pResultMode | If non-null, the result mode. |
[in,out] | pResultStrs | If non-null, the result strs. |
parent | The parent. | |
eType | The type. | |
dialogCaption | The dialog caption. | |
defaultExtension | The default extension. | |
filter | A filter specifying the c fx string&. | |
initialDir | The initial dir. | |
filterIndex | (optional) [in,out] If non-null, zero-based index of the filter. | |
templateName | (optional) [in,out] If non-null, name of the template. | |
flags | (optional) the flags. | |
codepage | (optional) [in,out] If non-null, the codepage. |
Return Value: .
|
pure virtual |
Description:
Arguments:
sFile | TODO |
pDb | TODO |
hint | TODO |
|
pure virtual |
Description: Gets the appdata-version.
Return Value: The appdataversion.
|
pure virtual |
Description: Gets an available fonts. Arguments:
eType | The type. |
Return Value: The available fonts.
|
pure virtual |
Description: Gets the action macro manager.
Return Value: null if it fails, else the action macro manager.
|
pure virtual |
Description: Gets the action macro manager.
Return Value: null if it fails, else the action macro manager.
|
pure virtual |
Description: Returns the API for a passed document or global context.
|
pure virtual |
Description: Application manager
|
pure virtual |
Description:
|
pure virtual |
Description:
|
pure virtual |
Description:
|
pure virtual |
Description: Import/Export
|
pure virtual |
Description: Internal CFxNetworkAccessManager object for applications.
|
pure virtual |
Description: Profile manager
|
pure virtual |
Description: Custom UI
|
pure virtual |
Description: Gets the geometry utilities.
Return Value: null if it fails, else the geometry utilities.
|
pure virtual |
Description:
|
pure virtual |
Description:
|
pure virtual |
Description: Gets the inference point manager.
Return Value: null if it fails, else the inference point manager.
|
pure virtual |
Description: Gets initial directory path.
|
pure virtual |
Description: Returns main frame
|
pure virtual |
Description: Gets the modeler manufacture.
Return Value: The modeler manufacture.
|
pure virtual |
Description: Returns object manager.
|
pure virtual |
Description: Gets the OEM version.
Return Value: The OEM version.
|
pure virtual |
Description: Returns default extension for open file
|
pure virtual |
Description:
Arguments:
dwgName | TODO |
isXref | TODO |
password | TODO |
|
pure virtual |
|
pure virtual |
Description: Gets the system codepage.
Return Value: The system codepage.
|
pure virtual |
Description:
|
pure virtual |
Description: Gets the version.
Return Value: The version.
|
pure virtual |
Description: Gets a version. Arguments:
[in,out] | major | If non-null, the major. |
[in,out] | minor | If non-null, the minor. |
[in,out] | product | If non-null, the product. |
[in,out] | build | If non-null, the build. |
Return Value: true if it succeeds, false if it fails.
|
pure virtual |
Description:
Description: Helps. Arguments
lpCommandName | Name of the pointer to a command. |
|
pure virtual |
Description: Query if this object is application exiting.
Return Value: true if application exiting, false if not.
|
pure virtual |
Description: Query if this object is oem module authorised.
Return Value: true if oem module authorised, false if not.
|
pure virtual |
Description: Checks file name.
|
pure virtual |
Description: Displays message box
|
pure virtual |
|
pure virtual |
|
pure virtual |
Remove device, if it is there.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Description: Executes command named as strCommandName
Return Value:
|
pure virtual |
Description: Applies initial directory path. fileNamePath should be a file path only!!!
Description: Sets the OEM version.
Return Value: The OEM version.
|
pure virtual |
|
pure virtual |
Description: Sets a system codepage. Arguments:
codepage | The codepage. |
Description: Intentionally sets userBreak flag.
|
pure virtual |
Description: Stops the auto-test framework initialization timeout.
|
pure virtual |
Description: Tests if the user hit Escape to break the current operation
|
pure virtual |
Description: Writes a text to the output window
|
pure virtual |
Description: Writes a single line (starting from new line) of text to the output window