ACF $AcfVersion:0$
CExternalOpenDocumentCommandCompBase.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
9
10
11namespace ifilegui
12{
13
14
16{
17public:
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
26protected:
27 // abstract methods
28 virtual const istd::IChangeable* GetDocumentPtr() const = 0;
29
30 // reimplemented (iqtgui::CProcessStartCommandComp)
31 virtual bool StartProcess(const QStringList& arguments) override;
32
33 // reimplemented (icomp::CComponentBase)
34 virtual void OnComponentCreated() override;
35
36protected:
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
47
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.
virtual bool StartProcess(const QStringList &arguments) override
virtual void OnComponentCreated() override
Called when component is created.
virtual const istd::IChangeable * GetDocumentPtr() const =0
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
GUI specific interfaces and components for file system access and representation.