![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Provide information about different document types. More...
#include <IDocumentTypesInfo.h>
Public Types | |
| enum | SupportedFeatures { SF_NEW_DOCUMENT = 0x0001 , SF_EDIT_DOCUMENT = 0x0010 , SF_DEFAULT = 0xffff } |
| Enumeration for supported types of operation with the document. More... | |
| typedef QVector< QByteArray > | Ids |
Public Member Functions | |
| virtual bool | IsFeatureSupported (int featureFlags, const QByteArray &documentTypeId) const =0 |
Return true, if the feature(s) is supported by this document template. | |
| virtual Ids | GetDocumentTypeIds () const =0 |
| Get list of supported document ID's can be created for specified file. | |
| virtual QString | GetDocumentTypeName (const QByteArray &documentTypeId) const =0 |
| Get human readable name of some document type ID. | |
| virtual ifile::IFileTypeInfo * | GetDocumentFileTypeInfo (const QByteArray &documentTypeId) const =0 |
| Get file type information object for some selected document type. | |
| virtual Ids | GetDocumentTypeIdsForFile (const QString &filePath) const =0 |
| Get list of supported document ID's can be created for specified file. | |
| virtual QString | GetDefaultDirectory (const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=nullptr) const =0 |
| Return default directory for specified document type. | |
Provide information about different document types.
Definition at line 24 of file IDocumentTypesInfo.h.
| QVector<QByteArray> idoc::IDocumentTypesInfo::Ids |
Definition at line 27 of file IDocumentTypesInfo.h.
Enumeration for supported types of operation with the document.
| Enumerator | |
|---|---|
| SF_NEW_DOCUMENT | A new document can be created. |
| SF_EDIT_DOCUMENT | A document is editable. |
| SF_DEFAULT | All features are supported. |
Definition at line 32 of file IDocumentTypesInfo.h.
|
pure virtual |
Return default directory for specified document type.
| sugestedDir | template directory sugested by user. |
| documentTypeIdPtr | optional ID of document type. |
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Get file type information object for some selected document type.
| documentTypeId | ID of document type as returned by GetDocumentTypeIds(). |
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Get list of supported document ID's can be created for specified file.
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Get list of supported document ID's can be created for specified file.
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, idoc::CTmplBasedDocumentManagerBase, and idocgui::CExtendedDocumentTemplateComp.
|
pure virtual |
Get human readable name of some document type ID.
| documentTypeId | ID of document type as returned by GetDocumentTypeIds(). |
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Return true, if the feature(s) is supported by this document template.
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
© Witold Gantzke and Kirill Lepskiy