6#include <QtCore/QString>
94 const QByteArray& documentTypeId,
95 const QByteArray& viewTypeId)
const = 0;
126 QByteArray& documentTypeId,
127 bool initialize =
true,
128 bool beQuiet =
false,
129 bool* ignoredFlagPtr =
NULL)
const = 0;
154 const QByteArray& documentTypeId,
156 const QByteArray& viewTypeId = QByteArray())
const = 0;
Common interface for a document template.
istd::TSharedInterfacePtr< istd::IPolymorphic > ViewSharedPtr
virtual idoc::IUndoManagerUniquePtr CreateUndoManager(const QByteArray &documentTypeId, istd::IChangeable *documentPtr) const =0
Creates an undo manager for a given document documentPtr.
virtual QString GetViewTypeName(const QByteArray &documentTypeId, const QByteArray &viewTypeId) const =0
Get human readable name of some view type ID.
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 Ids GetViewTypeIds(const QByteArray &documentTypeId) const =0
Return supported view type IDs for specified document type.
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.
istd::TUniqueInterfacePtr< istd::IPolymorphic > ViewUniquePtr
Type definitions for view smart pointers.
virtual ifile::IFilePersistence * GetFileLoader(const QByteArray &documentTypeId) const =0
Get file loader/saver for specified document ID.
Provide information about different document types.
QVector< QByteArray > Ids
Type definition for document type ID collections.
Interface providing loading and saving of data objects.
Common interface for data model objects, which can be changed.
Shared ownership smart pointer for interface types.
Unique ownership smart pointer for interface types.
Contains the system independent basic implementations of Document/View design pattern.