ICF 3.1.1.10
Technical documentation of ICF Libraries
CExternalOpenDocumentCommandCompBase.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
13
14
15namespace ifilegui
16{
17
18
20{
21public:
23
24 I_BEGIN_BASE_COMPONENT(CExternalOpenDocumentCommandCompBase);
25 I_ASSIGN(m_documentPersistenceCompPtr, "DocumentPersistence", "File persistence for the actual document type", true, "DocumentPersistence");
26 I_ASSIGN_TO(m_documentPersistenceInfoCompPtr, m_documentPersistenceCompPtr, false);
27 I_ASSIGN(m_documentFileCompPtr, "DocumentFilePath", "Path used for saving the current document", true, "DocumentFilePath");
28 I_END_COMPONENT;
29
30protected:
31 // abstract methods
32 virtual const istd::IChangeable* GetDocumentPtr() const = 0;
33
34 // reimplemented (istdgui::CProcessStartCommandComp)
35 bool StartProcess(const QStringList& arguments) override;
36
37 // reimplemented (icomp::CComponentBase)
38 void OnComponentCreated() override;
39
40protected:
41 I_REF(ifile::IFilePersistence, m_documentPersistenceCompPtr);
42 I_REF(ifile::IFilePersistenceInfo, m_documentPersistenceInfoCompPtr);
43 I_REF(ifile::IFileNameParam, m_documentFileCompPtr);
44};
45
46
47} // namespace ifilegui
48
49
Common interface for any file system item name (e.g directory, file or URL path)
Interface providing loading and saving of data objects.
Provide some information about file loader state.
bool StartProcess(const QStringList &arguments) override
virtual const istd::IChangeable * GetDocumentPtr() const =0
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
GUI specific interfaces and components for file system access and representation.

© Witold Gantzke and Kirill Lepskiy