ICF 3.1.1.10
Technical documentation of ICF Libraries
IMultiPageDocument.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// Qt includes
10#include <QtCore/QSizeF>
11#include <QtCore/QString>
12
13// ICF includes
14#include <istd/IChangeable.h>
15
16
17namespace iprm
18{
19 class IParamsSet;
20}
21
22
23namespace idoc
24{
25
26
27class IDocumentMetaInfo;
28
29
35{
36public:
40 virtual int GetPagesCount() const = 0;
41
45 virtual const istd::IChangeable& GetDocumentPage(int pageIndex) const = 0;
46
50 virtual const idoc::IDocumentMetaInfo* GetPageMetaInfo(int pageIndex) const = 0;
51
55 virtual void ResetPages() = 0;
56
65 const idoc::IDocumentMetaInfo* pageMetaInfoPtr = nullptr,
66 const iprm::IParamsSet* pageParameterPtr = nullptr,
67 int position = -1) = 0;
68
72 virtual bool RemovePage(int pageIndex) = 0;
73
77 virtual const IDocumentMetaInfo& GetDocumentMetaInfo() const = 0;
78};
79
80
81} // namespace idoc
82
83
Interface for document meta-information.
Simple interface for a structured document.
virtual void ResetPages()=0
Remove all pages and their content from the document.
virtual const istd::IChangeable & GetDocumentPage(int pageIndex) const =0
Get the document page.
virtual const idoc::IDocumentMetaInfo * GetPageMetaInfo(int pageIndex) const =0
Get meta info of the given page if exists.
virtual istd::IChangeable * InsertPage(const idoc::IDocumentMetaInfo *pageMetaInfoPtr=nullptr, const iprm::IParamsSet *pageParameterPtr=nullptr, int position=-1)=0
Insert a new document page at the given position.
virtual int GetPagesCount() const =0
Get number of pages in the document.
virtual bool RemovePage(int pageIndex)=0
Remove the page at the given index.
virtual const IDocumentMetaInfo & GetDocumentMetaInfo() const =0
Get meta information about the document.
Set of general parameters.
Definition IParamsSet.h:29
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains the system indenendent basic implementations of Document/View design pattern.
Contains interfaces and implementations of flexible parameter concept.

© Witold Gantzke and Kirill Lepskiy