ToolMap
Loading...
Searching...
No Matches
pdflayer.h
1/***************************************************************************
2 pdflayer.h
3 -------------------
4 copyright : (C) 2011 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef _PDFLAYER_H_
16#define _PDFLAYER_H_
17
18// For compilers that support precompilation, includes "wx/wx.h".
19#include <wx/wxprec.h>
20
21#ifndef WX_PRECOMP
22#include <wx/wx.h>
23#endif
24
25#include <wx/pdfdocument.h>
26
28
30
31class PdfDocument;
32
33class PdfLayer : wxObject {
34 private:
35 ProjectDefMemoryLayers* m_prjLayer;
36 PdfDocument* m_pdfDocumentParent;
37
38 wxArrayDouble m_ColWidthLayer;
39 wxArrayDouble m_ColWidthObjects;
40 wxArrayDouble m_ColWidthAttributs;
41
42 void _UpdateColWidth();
43
44 void _WriteCell(const wxString& text, int columnindex);
45
46 void _GenerateObjects();
47
48 void _GenerateAttributs();
49
50 void _GenerateAttributsDefinition(ProjectDefMemoryFields* field);
51
52 public:
54
55 virtual ~PdfLayer();
56
57 bool Generate();
58
59 wxString GetName();
60
61 int GetLayerTypeOrder();
62
63 double GetObjectsWidth(wxPdfDocument* pdf);
64
65 double GetAttributsWidth(wxPdfDocument* pdf);
66
67 double GetObjectsHeight(wxPdfDocument* pdf);
68
69 double GetAttributsHeight(wxPdfDocument* pdf);
70};
71
72WX_DECLARE_OBJARRAY(PdfLayer*, ArrayPdfLayer);
73
74#endif
Definition pdfdocument.h:37
Definition pdflayer.h:33
Storing Fields property in memory.
Definition projectdefmemory.h:198
Storing layers properties in memory.
Definition projectdefmemory.h:246