|
ACF $AcfVersion:0$
|
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 operations with documents. More... | |
| typedef QVector< QByteArray > | Ids |
| Type definition for document type ID collections. | |
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 type IDs. | |
| 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 IDs that can handle the specified file. | |
| virtual QString | GetDefaultDirectory (const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=NULL) const =0 |
| Return default directory for specified document type. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Provide information about different document types.
This interface provides metadata about document types supported by a template or manager. It includes information about document type IDs, names, supported features, file types, and default directories.
Document types define what kinds of documents can be created or opened by the application. Each type has a unique ID and associated metadata that describes its capabilities.
Definition at line 68 of file IDocumentTypesInfo.h.
| typedef QVector<QByteArray> idoc::IDocumentTypesInfo::Ids |
Type definition for document type ID collections.
Definition at line 74 of file IDocumentTypesInfo.h.
Enumeration for supported types of operations with documents.
| Enumerator | |
|---|---|
| SF_NEW_DOCUMENT | A new document can be created (File > New). |
| SF_EDIT_DOCUMENT | A document is editable (content can be modified). |
| SF_DEFAULT | All features are supported. |
Definition at line 79 of file IDocumentTypesInfo.h.
|
pure virtual |
Return default directory for specified document type.
| suggestedDir | Template directory suggested by user or application. |
| documentTypeIdPtr | Optional pointer to ID of document type. |
If suggestedDir is provided and valid, it may be used. Otherwise, the type-specific default directory is returned.
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 type IDs.
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Get list of supported document IDs that can handle the specified file.
| filePath | Full path to file to check. |
This method determines which document types are compatible with a given file based on file extension, content analysis, or other criteria.
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, 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::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.
|
pure virtual |
Return true, if the feature(s) is supported by this document template.
| featureFlags | Bitwise OR of SupportedFeatures flags to check. |
| documentTypeId | ID of document type to check. |
Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.