ACF $AcfVersion:0$
CExtendedDocumentTemplateComp.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
7#include <iqtgui/IGuiObject.h>
8
9
10namespace iqtdoc
11{
12
13
18{
19public:
21
22 I_BEGIN_COMPONENT(CExtendedDocumentTemplateComp);
23 I_ASSIGN(m_viewGuiCompFact, "ViewFactory", "Create of document GUI", true, "ViewFactory");
24 I_END_COMPONENT;
25
26 // reimplemented (idoc::IDocumentTemplate)
27 virtual Ids GetDocumentTypeIdsForFile(const QString& filePath) const override;
28
29protected:
30 // reimplemented (idoc::CSingleDocumentTemplateComp)
32
33private:
34 I_FACT(iqtgui::IGuiObject, m_viewGuiCompFact);
35};
36
37
38} // namespace iqtdoc
39
40
Document template component supporting only one type of the provided document.
QVector< QByteArray > Ids
Type definition for document type ID collections.
Extension of idoc::CSingleDocumentTemplateComp providing additional Qt-specified functionality.
virtual idoc::IDocumentTemplate::ViewUniquePtr ExtractViewInterface(icomp::IComponentUniquePtr &componentPtr) const override
Extract pointer of view interface from factorisied view component.
virtual Ids GetDocumentTypeIdsForFile(const QString &filePath) const override
Get list of supported document IDs that can handle the specified file.
Common interface for GUI objects used in ACF component context.
Definition IGuiObject.h:133
Unique ownership smart pointer for interface types.
std::unique_ptr< IComponent > IComponentUniquePtr
Definition IComponent.h:72
This package contains Qt implementations related to Document/View concept.