![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Base class implementing document template for single document type. More...
#include <CSingleDocumentTemplateBase.h>
Public Member Functions | |
| CSingleDocumentTemplateBase () | |
| const QByteArray & | GetDocumentTypeId () const |
| virtual void | SetSupportedFeatures (int featureFlags) |
| virtual void | SetDocumentTypeId (const QByteArray &id) |
| virtual void | SetDocumentTypeName (const QString &name) |
| virtual void | SetViewTypeId (const QByteArray &id) |
| virtual void | SetViewTypeName (const QString &name) |
| virtual void | SetDefaultDirectory (const QString &defaultDirectory) |
| virtual bool | IsFeatureSupported (int featureFlags, const QByteArray &documentTypeId) const |
Return true, if the feature(s) is supported by this document template. | |
| virtual Ids | GetDocumentTypeIds () const |
| Get list of supported document ID's can be created for specified file. | |
| virtual QString | GetDocumentTypeName (const QByteArray &documentTypeId) const |
| Get human readable name of some document type ID. | |
| virtual ifile::IFileTypeInfo * | GetDocumentFileTypeInfo (const QByteArray &documentTypeId) const |
| Get file type information object for some selected document type. | |
| virtual Ids | GetDocumentTypeIdsForFile (const QString &filePath) const |
| Get list of supported document ID's can be created for specified file. | |
| virtual QString | GetDefaultDirectory (const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=nullptr) const |
| Return default directory for specified document type. | |
| virtual Ids | GetViewTypeIds (const QByteArray &documentTypeId) const |
| Return supported view type IDs for specified document type. | |
| virtual QString | GetViewTypeName (const QByteArray &documentTypeId, const QByteArray &viewTypeId) const |
| Get human readable name of some view type ID. | |
Public Member Functions inherited from idoc::IDocumentTemplate | |
| virtual ifile::IFilePersistence * | GetFileLoader (const QByteArray &documentTypeId) const =0 |
| Get file loader/saver for spacified document ID. | |
| virtual std::unique_ptr< istd::IChangeable > | CreateDocument (QByteArray &documentTypeId, bool initialize=true, bool beQuiet=false, bool *ignoredFlagPtr=nullptr) const =0 |
Creates a document instance for document type documentTypeId. | |
| virtual std::unique_ptr< istd::IPolymorphic > | CreateView (const QByteArray &documentTypeId, istd::IChangeable *documentPtr, const QByteArray &viewTypeId=QByteArray()) const =0 |
Creates a view instance for document document of type viewTypeId. | |
| virtual std::unique_ptr< IUndoManager > | CreateUndoManager (const QByteArray &documentTypeId, istd::IChangeable *documentPtr) const =0 |
Creates an undo manger for a given document documentPtr. | |
Public Member Functions inherited from idoc::IDocumentTypesInfo | |
Protected Member Functions | |
| bool | IsDocumentTypeSupported (const QByteArray &documentTypeId) const |
| bool | IsViewTypeSupported (const QByteArray &viewTypeId) const |
Additional Inherited Members | |
Public Types inherited from idoc::IDocumentTypesInfo | |
| 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 |
Base class implementing document template for single document type.
Definition at line 24 of file CSingleDocumentTemplateBase.h.
| idoc::CSingleDocumentTemplateBase::CSingleDocumentTemplateBase | ( | ) |
|
virtual |
Return default directory for specified document type.
| sugestedDir | template directory sugested by user. |
| documentTypeIdPtr | optional ID of document type. |
Implements idoc::IDocumentTypesInfo.
|
virtual |
Get file type information object for some selected document type.
| documentTypeId | ID of document type as returned by GetDocumentTypeIds(). |
Implements idoc::IDocumentTypesInfo.
|
inline |
Definition at line 69 of file CSingleDocumentTemplateBase.h.
|
virtual |
Get list of supported document ID's can be created for specified file.
Implements idoc::IDocumentTypesInfo.
|
virtual |
Get list of supported document ID's can be created for specified file.
Implements idoc::IDocumentTypesInfo.
Reimplemented in idocgui::CExtendedDocumentTemplateComp.
|
virtual |
Get human readable name of some document type ID.
| documentTypeId | ID of document type as returned by GetDocumentTypeIds(). |
Implements idoc::IDocumentTypesInfo.
|
virtual |
Return supported view type IDs for specified document type.
| documentTypeId | ID of document type. |
Implements idoc::IDocumentTemplate.
|
virtual |
Get human readable name of some view type ID.
Implements idoc::IDocumentTemplate.
|
inlineprotected |
Definition at line 77 of file CSingleDocumentTemplateBase.h.
|
virtual |
Return true, if the feature(s) is supported by this document template.
Implements idoc::IDocumentTypesInfo.
|
inlineprotected |
Definition at line 83 of file CSingleDocumentTemplateBase.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
© Witold Gantzke and Kirill Lepskiy