ICF 3.1.1.10
Technical documentation of ICF Libraries
idoc::IDocumentTypesInfo Class Referenceabstract

Provide information about different document types. More...

#include <IDocumentTypesInfo.h>

Inheritance diagram for idoc::IDocumentTypesInfo:
Collaboration diagram for idoc::IDocumentTypesInfo:

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::IFileTypeInfoGetDocumentFileTypeInfo (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.
 

Detailed Description

Provide information about different document types.

Definition at line 24 of file IDocumentTypesInfo.h.

Member Typedef Documentation

◆ Ids

QVector<QByteArray> idoc::IDocumentTypesInfo::Ids

Definition at line 27 of file IDocumentTypesInfo.h.

Member Enumeration Documentation

◆ SupportedFeatures

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.

Member Function Documentation

◆ GetDefaultDirectory()

virtual QString idoc::IDocumentTypesInfo::GetDefaultDirectory ( const QString & sugestedDir = "",
const QByteArray * documentTypeIdPtr = nullptr ) const
pure virtual

Return default directory for specified document type.

Parameters
sugestedDirtemplate directory sugested by user.
documentTypeIdPtroptional ID of document type.

Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.

◆ GetDocumentFileTypeInfo()

virtual ifile::IFileTypeInfo * idoc::IDocumentTypesInfo::GetDocumentFileTypeInfo ( const QByteArray & documentTypeId) const
pure virtual

Get file type information object for some selected document type.

Parameters
documentTypeIdID of document type as returned by GetDocumentTypeIds().

Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.

◆ GetDocumentTypeIds()

virtual Ids idoc::IDocumentTypesInfo::GetDocumentTypeIds ( ) const
pure virtual

Get list of supported document ID's can be created for specified file.

Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.

◆ GetDocumentTypeIdsForFile()

virtual Ids idoc::IDocumentTypesInfo::GetDocumentTypeIdsForFile ( const QString & filePath) const
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.

◆ GetDocumentTypeName()

virtual QString idoc::IDocumentTypesInfo::GetDocumentTypeName ( const QByteArray & documentTypeId) const
pure virtual

Get human readable name of some document type ID.

Parameters
documentTypeIdID of document type as returned by GetDocumentTypeIds().

Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.

◆ IsFeatureSupported()

virtual bool idoc::IDocumentTypesInfo::IsFeatureSupported ( int featureFlags,
const QByteArray & documentTypeId ) const
pure virtual

Return true, if the feature(s) is supported by this document template.

Implemented in idoc::CCompositeDocumentTemplateComp, idoc::CSingleDocumentTemplateBase, and idoc::CTmplBasedDocumentManagerBase.


The documentation for this class was generated from the following file:

© Witold Gantzke and Kirill Lepskiy