15#ifndef _PDFDOCUMENT_H_
16#define _PDFDOCUMENT_H_
25#include <wx/filename.h>
26#include <wx/pdfdocument.h>
31#define MIN(a, b) ((a < b) ? a : b)
32#define MAX(a, b) ((a > b) ? a : b)
39 ArrayPdfLayer m_pdfLayers;
43 wxPaperSize m_PaperFormat;
47 wxPrintOrientation m_PaperOrientation;
50 double m_UsablePageWidth;
56 bool _GenerateTitle();
58 void _UpdatePageWidth();
60 void _ComputeOnePageSize(
double& width,
double& height);
69 bool Generate(
const wxFileName& filename);
71 inline const int GetFontSize()
const;
73 inline const double GetLineSpacing()
const;
75 inline const bool IsDecorated()
const;
77 void SetDecorate(
bool value);
79 void SetLineSpacing(
double value);
81 void SetFontSize(
int value);
83 void SetPaperFormat(wxPaperSize value);
85 void SetPaperSize(
double width,
double height);
87 void SetPaperOrientation(wxPrintOrientation value);
89 double GetUsablePageWidth();
93 wxPdfDocument* GetPdfRef();
95 inline const bool IsTwoColsLayout()
const;
97 void SetTwoColsLayout(
bool value);
99 inline const bool HasPageBreak()
const;
101 void SetPageBreak(
bool value);
103 void SetOnePage(
bool value);
106inline const int PdfDocument::GetFontSize()
const {
110inline const double PdfDocument::GetLineSpacing()
const {
111 return m_LineSpacing;
114inline const bool PdfDocument::IsDecorated()
const {
118inline const bool PdfDocument::IsTwoColsLayout()
const {
122inline const bool PdfDocument::HasPageBreak()
const {
Definition pdfdocument.h:37
Definition prjdefmemmanage.h:54