98 I_ASSIGN(m_documentTypeIdAttrPtr,
"DocumentTypeId",
"ID of supported document",
true,
"Default");
99 I_ASSIGN(m_documentTypeNameAttrPtr,
"DocumentTypeName",
"Human readable name of document",
false,
"");
100 I_ASSIGN(m_defaultDirectoryAttrPtr,
"DefaultDirectory",
"Default file directory for open file dialog",
true,
".");
101 I_ASSIGN(m_documentCompFact,
"DocumentFactory",
"Document factory",
true,
"DocumentFactory");
102 I_ASSIGN_TO(m_modelCompFact, m_documentCompFact,
true);
103 I_ASSIGN(m_viewCompFact,
"ViewFactory",
"Create of document GUI",
true,
"ViewFactory");
104 I_ASSIGN(m_fileLoaderCompPtr,
"DocumentLoader",
"Provide document loading and saving",
true,
"DocumentLoader");
105 I_ASSIGN(m_undoManagerCompFact,
"UndoManager",
"Undo manager providing undo functionality",
false,
"UndoManager");
106 I_ASSIGN_TO(m_undoManagerObserverCompFact, m_undoManagerCompFact,
true);
107 I_ASSIGN(m_isNewSupportedAttrPtr,
"IsNewSupported",
"Template supports the new operation",
true,
false);
108 I_ASSIGN(m_isEditSupportedAttrPtr,
"IsEditSupported",
"Template supports the edit operation",
true,
false);
114 QByteArray& documentTypeId,
115 bool initialize =
true,
116 bool beQuiet =
false,
117 bool* ignoredFlagPtr =
NULL)
const override;
119 const QByteArray& documentTypeId,
121 const QByteArray& viewTypeId = QByteArray())
const override;
138 I_ATTR(
bool, m_isNewSupportedAttrPtr);
139 I_ATTR(
bool, m_isEditSupportedAttrPtr);
140 I_ATTR(QByteArray, m_documentTypeIdAttrPtr);
142 I_ATTR(QString, m_defaultDirectoryAttrPtr);
virtual ViewUniquePtr CreateView(const QByteArray &documentTypeId, istd::IChangeable *documentPtr, const QByteArray &viewTypeId=QByteArray()) const override
Creates a view instance for document document of type viewTypeId.
virtual istd::IChangeableUniquePtr CreateDocument(QByteArray &documentTypeId, bool initialize=true, bool beQuiet=false, bool *ignoredFlagPtr=NULL) const override
Creates a document instance for document type documentTypeId.