IMultiPageDocument.h
Go to the documentation of this file.
1 #ifndef idoc_IMultiPageDocument_included
2 #define idoc_IMultiPageDocument_included
3 
4 
5 // Qt includes
6 #include <QtCore/QSizeF>
7 #include <QtCore/QString>
8 
9 // ACF includes
10 #include <istd/IChangeable.h>
11 
12 
13 namespace iprm
14 {
15  class IParamsSet;
16 }
17 
18 
19 namespace idoc
20 {
21 
22 
23 class IDocumentMetaInfo;
24 
25 
31 {
32 public:
36  virtual int GetPagesCount() const = 0;
37 
41  virtual const istd::IChangeable& GetDocumentPage(int pageIndex) const = 0;
42 
46  virtual const idoc::IDocumentMetaInfo* GetPageMetaInfo(int pageIndex) const = 0;
47 
51  virtual void ResetPages() = 0;
52 
61  const idoc::IDocumentMetaInfo* pageMetaInfoPtr = NULL,
62  const iprm::IParamsSet* pageParameterPtr = NULL,
63  int position = -1) = 0;
64 
68  virtual bool RemovePage(int pageIndex) = 0;
69 
73  virtual const IDocumentMetaInfo& GetDocumentMetaInfo() const = 0;
74 };
75 
76 
77 } // namespace idoc
78 
79 
80 #endif // !idoc_IMultiPageDocument_included
81 
82 
virtual const IDocumentMetaInfo & GetDocumentMetaInfo() const =0
Get meta information about the document.
Interface for document meta-information.
Simple interface for a structured document.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual int GetPagesCount() const =0
Get number of pages in the document.
virtual const idoc::IDocumentMetaInfo * GetPageMetaInfo(int pageIndex) const =0
Get meta info of the given page if exists.
#define NULL
Definition: istd.h:64
virtual void ResetPages()=0
Remove all pages and their content from the document.
virtual istd::IChangeable * InsertPage(const idoc::IDocumentMetaInfo *pageMetaInfoPtr=NULL, const iprm::IParamsSet *pageParameterPtr=NULL, int position=-1)=0
Insert a new document page at the given position.
virtual bool RemovePage(int pageIndex)=0
Remove the page at the given index.
Set of general parameters.
Definition: IParamsSet.h:23
virtual const istd::IChangeable & GetDocumentPage(int pageIndex) const =0
Get the document page.

© 2007-2017 Witold Gantzke and Kirill Lepskiy