Go to the documentation of this file.
10#include <QtCore/QString>
11#include <QtCore/QVector>
27 typedef QVector<QByteArray>
Ids;
82 virtual QString
GetDefaultDirectory(
const QString& sugestedDir =
"",
const QByteArray* documentTypeIdPtr =
nullptr)
const = 0;
Provide information about different document types.
virtual QString GetDefaultDirectory(const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=nullptr) const =0
Return default directory for specified document type.
virtual ifile::IFileTypeInfo * GetDocumentFileTypeInfo(const QByteArray &documentTypeId) const =0
Get file type information object for some selected document type.
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 bool IsFeatureSupported(int featureFlags, const QByteArray &documentTypeId) const =0
Return true, if the feature(s) is supported by this document template.
QVector< QByteArray > Ids
SupportedFeatures
Enumeration for supported types of operation with the document.
@ SF_EDIT_DOCUMENT
A document is editable.
@ SF_DEFAULT
All features are supported.
@ SF_NEW_DOCUMENT
A new document can be created.
virtual Ids GetDocumentTypeIdsForFile(const QString &filePath) const =0
Get list of supported document ID's can be created for specified file.
Provide loading and saving of objects.
Contains the system indenendent basic implementations of Document/View design pattern.
© Witold Gantzke and Kirill Lepskiy