CExternalOpenDocumentCommandCompBase.h
Go to the documentation of this file.
1 #ifndef ifilegui_CExternalOpenDocumentCommandCompBase_included
2 #define ifilegui_CExternalOpenDocumentCommandCompBase_included
3 
4 
5 // ACF includes
9 
10 
11 namespace ifilegui
12 {
13 
14 
16 {
17 public:
19 
20  I_BEGIN_BASE_COMPONENT(CExternalOpenDocumentCommandCompBase);
21  I_ASSIGN(m_documentPersistenceCompPtr, "DocumentPersistence", "File persistence for the actual document type", true, "DocumentPersistence");
22  I_ASSIGN_TO(m_documentPersistenceInfoCompPtr, m_documentPersistenceCompPtr, false);
23  I_ASSIGN(m_documentFileCompPtr, "DocumentFilePath", "Path used for saving the current document", true, "DocumentFilePath");
24  I_END_COMPONENT;
25 
26 protected:
27  // abstract methods
28  virtual const istd::IChangeable* GetDocumentPtr() const = 0;
29 
30  // reimplemented (iqtgui::CProcessStartCommandComp)
31  virtual bool StartProcess(const QStringList& arguments);
32 
33  // reimplemented (icomp::CComponentBase)
34  virtual void OnComponentCreated();
35 
36 protected:
37  I_REF(ifile::IFilePersistence, m_documentPersistenceCompPtr);
38  I_REF(ifile::IFilePersistenceInfo, m_documentPersistenceInfoCompPtr);
39  I_REF(ifile::IFileNameParam, m_documentFileCompPtr);
40 };
41 
42 
43 } // namespace ifilegui
44 
45 
46 #endif // ifilegui_CExternalOpenDocumentCommandCompBase_included
47 
48 
Common interface for any file system item name (e.g directory, file or URL path)
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
Provide some information about file loader state.
virtual const istd::IChangeable * GetDocumentPtr() const =0
Interface providing loading and saving of data objects.
virtual bool StartProcess(const QStringList &arguments)

© 2007-2017 Witold Gantzke and Kirill Lepskiy