CExtendedDocumentTemplateComp.h
Go to the documentation of this file.
1 #ifndef iqtdoc_CExtendedDocumentTemplateComp_included
2 #define iqtdoc_CExtendedDocumentTemplateComp_included
3 
4 
5 // ACF includes
7 
8 #include <iqtgui/IGuiObject.h>
9 
10 
11 namespace iqtdoc
12 {
13 
14 
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CExtendedDocumentTemplateComp);
24  I_ASSIGN(m_viewGuiCompFact, "ViewFactory", "Create of document GUI", true, "ViewFactory");
25  I_END_COMPONENT;
26 
27  // reimplemented (idoc::IDocumentTemplate)
28  virtual Ids GetDocumentTypeIdsForFile(const QString& filePath) const;
29 
30 protected:
31  // reimplemented (idoc::CSingleDocumentTemplateComp)
32  virtual istd::IPolymorphic* ExtractViewInterface(icomp::IComponent* componentPtr) const;
33 
34 private:
35  I_FACT(iqtgui::IGuiObject, m_viewGuiCompFact);
36 };
37 
38 
39 } // namespace iqtdoc
40 
41 
42 #endif // !iqtdoc_CExtendedDocumentTemplateComp_included
43 
44 
Document template component supported only one type of the provided document.
Main component interface.
Definition: IComponent.h:31
virtual istd::IPolymorphic * ExtractViewInterface(icomp::IComponent *componentPtr) const
Extract pointer of view interface from factorisied view component.
virtual Ids GetDocumentTypeIdsForFile(const QString &filePath) const
Get list of supported document ID's can be created for specified file.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
idoc::CSingleDocumentTemplateComp BaseClass
Extension of idoc::CSingleDocumentTemplateComp providing additional Qt-specified functionality.
Common interface for GUI objects using in component context.
Definition: IGuiObject.h:25
QVector< QByteArray > Ids

© 2007-2017 Witold Gantzke and Kirill Lepskiy