|
| ODRX_DECLARE_MEMBERS (OdDbHostAppServices) |
|
| OdDbHostAppServices () |
|
virtual | ~OdDbHostAppServices () |
|
virtual OdString | findFile (const OdString &filename, OdDbBaseDatabase *pDb=0, FindFileHint hint=kDefault) |
|
virtual OdDbHostAppProgressMeter * | newProgressMeter () |
|
virtual void | releaseProgressMeter (OdDbHostAppProgressMeter *pProgressMeter) |
|
virtual OdRxClass * | databaseClass () const |
|
virtual OdDbDatabasePtr | createDatabase (bool createDefault=true, OdDb::MeasurementValue measurement=OdDb::kEnglish) const |
|
virtual OdDbDatabasePtr | readFile (OdStreamBuf *pStreamBuf, bool allowCPConversion=false, bool partialLoad=false, const OdPassword &password=OdPassword()) |
|
virtual OdDbDatabasePtr | recoverFile (OdStreamBuf *pStreamBuf, OdDbAuditInfo *pAuditInfo=0, const OdPassword &password=OdPassword()) |
|
virtual OdDbDatabasePtr | readFile (const OdString &filename, bool allowCPConversion=false, bool partialLoad=false, Oda::FileShareMode shareMode=Oda::kShareDenyNo, const OdPassword &password=OdPassword()) |
|
virtual const OdString | program () |
|
virtual const OdString | product () |
|
virtual const OdString | companyName () |
|
virtual ProdIdCode | prodcode () |
|
virtual const OdString | releaseMajorMinorString () |
|
virtual int | releaseMajorVersion () |
|
virtual int | releaseMinorVersion () |
|
virtual const OdString | versionString () |
|
| TD_USING (OdDbBaseHostAppServices::warning) |
|
virtual void | warning (OdWarning warningOb, OdDbObjectId objectId) |
|
virtual void | warning (const char *warnVisGroup, OdWarning warningOb, OdDbObjectId objectId) |
|
virtual void | warning (const OdError &err) |
|
virtual void | warning (const char *warnVisGroup, const OdError &err) |
|
virtual OdString | getErrorDescription (unsigned int errorCode) |
|
virtual OdString | formatMessage (unsigned int errorCode,...) |
|
virtual bool | doFullCRCCheck () |
|
virtual OdDbUndoControllerPtr | newUndoController () |
|
virtual void | auditPrintReport (OdAuditInfo *pAuditInfo, const OdString &strLine, int printDest) const |
|
virtual OdDbPlotSettingsValidator * | plotSettingsValidator () |
|
virtual OdString | getAlternateFontName () const |
|
virtual OdString | getFontMapFileName () const |
|
virtual OdString | getPreferableFont (const OdString &fontName, OdFontType fontType) |
|
virtual OdString | getSubstituteFont (const OdString &fontName, OdFontType fontType) |
|
virtual OdString | getSubstituteFontByChar (const OdFont &pFont, OdChar unicodeChar, OdDbBaseDatabase *pDb) |
|
virtual bool | getSystemFontFolders (OdStringArray &aDirs) |
|
virtual void | collectFilePathsInDirectory (OdStringArray &res, const OdString &sPath, const OdString &sFilter=L"*.*") |
|
virtual OdHatchPatternManager * | patternManager ()=0 |
|
virtual bool | getPassword (const OdString &dwgName, bool isXref, OdPassword &password) |
|
virtual OdPwdCachePtr | getPasswordCache () |
|
virtual OdDbPageControllerPtr | newPageController () |
|
virtual OdResult | pageObjects (OdDbDatabase *pDb) |
|
virtual OdString | fileDialog (int flags, const OdString &dialogCaption=OdString::kEmpty, const OdString &defExt=OdString::kEmpty, const OdString &defFilename=OdString::kEmpty, const OdString &filter=OdString::kEmpty) |
|
virtual OdDbLayoutManagerPtr | layoutManager () const |
|
virtual OdUInt32 | educationalPlotStamp () const |
|
virtual OdDbBaseHostAppServices * | getDgnHostAppServices () const |
|
virtual void | getThumbSize (unsigned int &nWidth, unsigned int &nHeight) |
|
virtual OdGsDevicePtr | gsBitmapDevice (OdRxObject *pViewObj=NULL, OdDbBaseDatabase *pDb=NULL, OdUInt32 flags=0) |
|
virtual OdString | getTempPath () const |
|
virtual OdStreamBufPtr | getHistoryFile (OdDbDatabase *) |
|
virtual OdResult | brepBuilder (OdBrepBuilder &brepBuilder, BrepType bbType) |
|
virtual OdDbKey * | key () const =0 |
|
| ODRX_DECLARE_MEMBERS (OdDbBaseHostAppServices) |
|
| OdDbBaseHostAppServices () |
|
virtual void | warning (const OdString &message) |
|
virtual void | warning (const char *warnVisGroup, const OdString &message) |
|
virtual void | warning (OdWarning warningOb) |
|
virtual void | warning (const char *warnVisGroup, OdWarning warningOb) |
|
virtual OdStreamBufPtr | newUndoStream () |
|
virtual bool | ttfFileNameByDescriptor (const OdTtfDescriptor &description, OdString &filename) |
|
virtual OdInt16 | getMtMode () const |
|
virtual int | numThreads (OdDb::MultiThreadedMode mtMode) |
|
| 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 |
|
This class is the base class for platform specific operations within Teigha.
Corresponding C++ library: TD_Db
<group OdDb_Classes> {noAutoLink}
Definition at line 64 of file DbHostAppServices.h.
Prompts the user for a filename, and returns their response.
- Parameters
-
flags | [in] Dialog behavior. |
dialogCaption | [in] Dialog caption. |
defExt | [in] Default file extension without "." |
defFilename | [in] Default filename. |
filter | [in] Filter pattern. |
Value Description kGfpForOpen 0 For Open. kGfpForSave 1 For Save. kGfpOverwritePrompt 2 Enable overwrite prompt displaying when exist file selected for saving.
This function is intended for the selection of filenames via dialog boxes, although other methods may be used.
Returns "canceled" if the user cancels the request. Returns "unsupported" if the application does not support this user input.
Reimplemented from OdDbBaseHostAppServices.
Returns the fully qualified path to the specified file.
- Parameters
-
filename | [in] Name of the file to find. |
pDb | [in] Pointer to the database context. |
hint | [in] Hint that indicates the type of file that is required. |
This function is called by Teigha when access is needed to a file, such as a font file, a template file, etc.
pDb == 0 specifies that this file search is not related to a database.
If pDb != 0, call pDb->getFilename() to determine the path to the DWG file associated with the database.
The typical search order is as follows:
- The filename itself.
- The current directory.
- The drawing directory (for shx font, image, and xref files).
- The directories listed in the "ACAD" environment variable.
- The Windows fonts directory (only for TTF fonts on Windows).
hint must be one of the following:
Value Description Extension kDefault 0 Any file. any kFontFile 1 Can be either SHX or TTF file. SHX or TTF kCompiledShapeFile 2 SHX file. SHX kTrueTypeFontFile 3 TTF file. TTF kEmbeddedImageFile 4 Image file. ISM kXRefDrawing 5 Drawing template file. DWT kPatternFile 6 Pattern file (PAT) PAT kTXApplication 7 Teigha(R) Xtension file. TX kFontMapFile 8 FontMap file FMP kUnderlayFile 9 Underlay file kTextureMapFile 10
Implements OdDbBaseHostAppServices.
Returns the font to be used when the specified font is not found.
- Parameters
-
fontName | [in] Font name. |
fontType | [in] Font type. |
Value Description kFontTypeUnknown 0 Unknown. kFontTypeShx 1 SHX font. kFontTypeTrueType 2 TrueType font. kFontTypeShape 3 Shape file. kFontTypeBig 4 BigFont file.
The default implementation of this function calls getAlternateFontName for fonts that are not of type kFontTypeShape or kFontTypeBig. When they are, and empty string is returned.
Client code could override this function to perform custom substitution for these types of fonts.
- See also
- Font Handling
Implements OdDbBaseHostAppServices.