6#include <QtCore/QString>
7#include <QtCore/QVector>
74 typedef QVector<QByteArray>
Ids;
Provide information about different document types.
virtual QString GetDefaultDirectory(const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=NULL) 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 type IDs.
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
Type definition for document type ID collections.
SupportedFeatures
Enumeration for supported types of operations with documents.
@ SF_EDIT_DOCUMENT
A document is editable (content can be modified).
@ SF_DEFAULT
All features are supported.
@ SF_NEW_DOCUMENT
A new document can be created (File > New).
virtual Ids GetDocumentTypeIdsForFile(const QString &filePath) const =0
Get list of supported document IDs that can handle the specified file.
Provide loading and saving of objects.
Base interface for all used interfaces and implementations.
Contains the system independent basic implementations of Document/View design pattern.