|
| | 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 override |
| | Return true, if the feature(s) is supported by this document template.
|
| |
| virtual Ids | GetDocumentTypeIds () const override |
| | Get list of supported document type IDs.
|
| |
| virtual QString | GetDocumentTypeName (const QByteArray &documentTypeId) const override |
| | Get human readable name of some document type ID.
|
| |
| virtual ifile::IFileTypeInfo * | GetDocumentFileTypeInfo (const QByteArray &documentTypeId) const override |
| | Get file type information object for some selected document type.
|
| |
| virtual Ids | GetDocumentTypeIdsForFile (const QString &filePath) const override |
| | Get list of supported document IDs that can handle the specified file.
|
| |
| virtual QString | GetDefaultDirectory (const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=NULL) const override |
| | Return default directory for specified document type.
|
| |
| virtual Ids | GetViewTypeIds (const QByteArray &documentTypeId) const override |
| | Return supported view type IDs for specified document type.
|
| |
| virtual QString | GetViewTypeName (const QByteArray &documentTypeId, const QByteArray &viewTypeId) const override |
| | Get human readable name of some view type ID.
|
| |
| virtual ifile::IFilePersistence * | GetFileLoader (const QByteArray &documentTypeId) const =0 |
| | Get file loader/saver for specified document ID.
|
| |
| virtual istd::IChangeableUniquePtr | CreateDocument (QByteArray &documentTypeId, bool initialize=true, bool beQuiet=false, bool *ignoredFlagPtr=NULL) const =0 |
| | Creates a document instance for document type documentTypeId.
|
| |
| virtual ViewUniquePtr | CreateView (const QByteArray &documentTypeId, istd::IChangeable *documentPtr, const QByteArray &viewTypeId=QByteArray()) const =0 |
| | Creates a view instance for document document of type viewTypeId.
|
| |
| virtual idoc::IUndoManagerUniquePtr | CreateUndoManager (const QByteArray &documentTypeId, istd::IChangeable *documentPtr) const =0 |
| | Creates an undo manager for a given document documentPtr.
|
| |
| virtual | ~IPolymorphic () |
| |
Base class implementing document template for single document type.
Definition at line 20 of file CSingleDocumentTemplateBase.h.
| virtual Ids idoc::CSingleDocumentTemplateBase::GetDocumentTypeIdsForFile |
( |
const QString & |
filePath | ) |
const |
|
overridevirtual |
Get list of supported document IDs that can handle the specified file.
- Parameters
-
| filePath | Full path to file to check. |
- Returns
- Vector of document type IDs that can open/handle this file.
This method determines which document types are compatible with a given file based on file extension, content analysis, or other criteria.
Implements idoc::IDocumentTypesInfo.
Reimplemented in iqtdoc::CExtendedDocumentTemplateComp.