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. More... | |
virtual Ids | GetDocumentTypeIds () const =0 |
Get list of supported document ID's can be created for specified file. More... | |
virtual QString | GetDocumentTypeName (const QByteArray &documentTypeId) const =0 |
Get human readable name of some document type ID. More... | |
virtual ifile::IFileTypeInfo * | GetDocumentFileTypeInfo (const QByteArray &documentTypeId) const =0 |
Get file type information object for some selected document type. More... | |
virtual Ids | GetDocumentTypeIdsForFile (const QString &filePath) const =0 |
Get list of supported document ID's can be created for specified file. More... | |
virtual QString | GetDefaultDirectory (const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=NULL) const =0 |
Return default directory for specified document type. More... | |
![]() | |
virtual | ~IPolymorphic () |
Provide information about different document types.
Definition at line 20 of file IDocumentTypesInfo.h.
typedef QVector<QByteArray> idoc::IDocumentTypesInfo::Ids |
Definition at line 23 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 28 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::CSingleDocumentTemplateBase, idoc::CCompositeDocumentTemplateComp, 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::CSingleDocumentTemplateBase, idoc::CCompositeDocumentTemplateComp, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Get list of supported document ID's can be created for specified file.
Implemented in idoc::CSingleDocumentTemplateBase, idoc::CCompositeDocumentTemplateComp, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Get list of supported document ID's can be created for specified file.
Implemented in idoc::CSingleDocumentTemplateBase, idoc::CCompositeDocumentTemplateComp, idoc::CTmplBasedDocumentManagerBase, and iqtdoc::CExtendedDocumentTemplateComp.
|
pure virtual |
Get human readable name of some document type ID.
documentTypeId | ID of document type as returned by GetDocumentTypeIds() . |
Implemented in idoc::CSingleDocumentTemplateBase, idoc::CCompositeDocumentTemplateComp, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Return true
, if the feature(s) is supported by this document template.
Implemented in idoc::CSingleDocumentTemplateBase, idoc::CCompositeDocumentTemplateComp, and idoc::CTmplBasedDocumentManagerBase.
© 2007-2017 Witold Gantzke and Kirill Lepskiy