MWAWPageSpan.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 #ifndef MWAWPAGESPAN_H
35 #define MWAWPAGESPAN_H
36 
37 #include <vector>
38 
39 #include "libmwaw_internal.hxx"
40 
41 #include "MWAWFont.hxx"
42 
45 {
46 public:
48  enum Type { HEADER, FOOTER, UNDEF };
50  enum Occurrence { ODD, EVEN, ALL, NEVER };
53 
55  MWAWHeaderFooter(Type const type=UNDEF, Occurrence const occurrence=NEVER);
59  bool isDefined() const
60  {
61  return m_type != UNDEF;
62  }
64  void send(MWAWListener *listener) const;
66  bool operator==(MWAWHeaderFooter const &headerFooter) const;
68  bool operator!=(MWAWHeaderFooter const &headerFooter) const
69  {
70  return !operator==(headerFooter);
71  }
73  void insertPageNumberParagraph(MWAWListener *listener) const;
74 
75 public:
81  double m_height;
90 };
91 
92 typedef shared_ptr<MWAWHeaderFooter> MWAWHeaderFooterPtr;
93 
96 {
97 public:
103  };
104 public:
106  MWAWPageSpan();
108  ~MWAWPageSpan();
109 
111  double getFormLength() const
112  {
113  return m_formLength;
114  }
116  double getFormWidth() const
117  {
118  return m_formWidth;
119  }
122  {
123  return m_formOrientation;
124  }
126  double getMarginLeft() const
127  {
128  return m_margins[libmwaw::Left];
129  }
131  double getMarginRight() const
132  {
133  return m_margins[libmwaw::Right];
134  }
136  double getMarginTop() const
137  {
138  return m_margins[libmwaw::Top];
139  }
141  double getMarginBottom() const
142  {
143  return m_margins[libmwaw::Bottom];
144  }
146  double getPageLength() const
147  {
149  }
151  double getPageWidth() const
152  {
154  }
157  {
158  return m_backgroundColor;
159  }
160  int getPageNumber() const
161  {
162  return m_pageNumber;
163  }
164  int getPageSpan() const
165  {
166  return m_pageSpan;
167  }
168 
170  void setHeaderFooter(MWAWHeaderFooter const &headerFooter);
172  void setFormLength(const double formLength)
173  {
174  m_formLength = formLength;
175  }
177  void setFormWidth(const double formWidth)
178  {
179  m_formWidth = formWidth;
180  }
182  void setFormOrientation(const FormOrientation formOrientation)
183  {
184  m_formOrientation = formOrientation;
185  }
187  void setMarginLeft(const double marginLeft)
188  {
189  m_margins[libmwaw::Left] = (marginLeft >= 0) ? marginLeft : 0.01;
190  }
192  void setMarginRight(const double marginRight)
193  {
194  m_margins[libmwaw::Right] = (marginRight >= 0) ? marginRight : 0.01;
195  }
197  void setMarginTop(const double marginTop)
198  {
199  m_margins[libmwaw::Top] =(marginTop >= 0) ? marginTop : 0.01;
200  }
202  void setMarginBottom(const double marginBottom)
203  {
204  m_margins[libmwaw::Bottom] = (marginBottom >= 0) ? marginBottom : 0.01;
205  }
208  {
209  if (margin < 0.0) margin = 0.01;
210  if (wh&libmwaw::LeftBit)
211  m_margins[libmwaw::Left]=margin;
212  if (wh&libmwaw::RightBit)
213  m_margins[libmwaw::Right]=margin;
214  if (wh&libmwaw::TopBit)
215  m_margins[libmwaw::Top]=margin;
216  if (wh&libmwaw::BottomBit)
217  m_margins[libmwaw::Bottom]=margin;
218  }
220  void checkMargins();
222  void setPageName(librevenge::RVNGString const &name)
223  {
224  m_name=name;
225  }
227  bool hasPageName() const
228  {
229  return !m_name.empty();
230  }
232  librevenge::RVNGString const &getPageName() const
233  {
234  return m_name;
235  }
237  void setMasterPageName(librevenge::RVNGString const &name)
238  {
239  m_masterName=name;
240  }
242  bool hasMasterPageName() const
243  {
244  return !m_masterName.empty();
245  }
247  librevenge::RVNGString const &getMasterPageName() const
248  {
249  return m_masterName;
250  }
253  {
254  m_backgroundColor=color;
255  }
257  void setPageNumber(const int pageNumber)
258  {
259  m_pageNumber = pageNumber;
260  }
262  void setPageSpan(const int pageSpan)
263  {
264  m_pageSpan = pageSpan;
265  }
267  bool operator==(shared_ptr<MWAWPageSpan> const &pageSpan) const;
269  bool operator!=(shared_ptr<MWAWPageSpan> const &pageSpan) const
270  {
271  return !operator==(pageSpan);
272  }
273 
274  // interface with MWAWListener
276  void getPageProperty(librevenge::RVNGPropertyList &pList, bool isPresentation=false) const;
278  void sendHeaderFooters(MWAWListener *listener) const;
280  void sendHeaderFooters(MWAWListener *listener, MWAWHeaderFooter::Occurrence occurrence) const;
281 
282 protected:
289 private:
292  double m_margins[4];
294  librevenge::RVNGString m_name;
296  librevenge::RVNGString m_masterName;
302  std::vector<MWAWHeaderFooter> m_headerFooterList;
307 };
308 
309 #endif
310 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
MWAWPageSpan::BottomLeft
@ BottomLeft
Definition: MWAWPageSpan.hxx:102
MWAWHeaderFooter::None
@ None
Definition: MWAWPageSpan.hxx:52
MWAWPageSpan::PORTRAIT
@ PORTRAIT
Definition: MWAWPageSpan.hxx:99
MWAWPageSpan::BottomCenter
@ BottomCenter
Definition: MWAWPageSpan.hxx:102
MWAWPageSpan::containsHeaderFooter
bool containsHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
return true if we have a header footer in this position
Definition: MWAWPageSpan.cxx:384
MWAWPageSpan::MWAWPageSpan
MWAWPageSpan()
constructor
Definition: MWAWPageSpan.cxx:208
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
MWAWPageSpan::m_pageNumber
int m_pageNumber
the page number ( or -1)
Definition: MWAWPageSpan.hxx:304
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAWListener::setFont
virtual void setFont(MWAWFont const &font)=0
sets the font
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWPageSpan::getMasterPageName
librevenge::RVNGString const & getMasterPageName() const
return the page master name
Definition: MWAWPageSpan.hxx:247
libmwaw::NumberingType
NumberingType
Definition: libmwaw_internal.hxx:170
MWAWHeaderFooter::~MWAWHeaderFooter
~MWAWHeaderFooter()
destructor
Definition: MWAWPageSpan.cxx:107
MWAWHeaderFooter::Type
Type
the header/footer type
Definition: MWAWPageSpan.hxx:48
MWAWPageSpanInternal
Internal: the structures of a MWAWPageSpan.
Definition: MWAWPageSpan.cxx:45
MWAWListener::insertFooter
virtual bool insertFooter(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)=0
insert a footer (interaction with MWAWPageSpan which fills the parameters for openFooter)
MWAWHeaderFooter::EVEN
@ EVEN
Definition: MWAWPageSpan.hxx:50
MWAWPageSpan::m_formWidth
double m_formWidth
the form width
Definition: MWAWPageSpan.hxx:290
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:168
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
MWAWPageSpan::m_formLength
double m_formLength
the form length
Definition: MWAWPageSpan.hxx:290
MWAWPageSpan::getPageNumber
int getPageNumber() const
Definition: MWAWPageSpan.hxx:160
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
MWAWPageSpan::setFormOrientation
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:182
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
MWAWColor::str
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:231
MWAWPageSpanInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: MWAWPageSpan.cxx:59
MWAWPageSpan::m_margins
double m_margins[4]
the margins: libmwaw::Left, ...
Definition: MWAWPageSpan.hxx:292
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:89
MWAWPageSpan::getHeaderFooterPosition
int getHeaderFooterPosition(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
return the header footer positions in m_headerFooterList
Definition: MWAWPageSpan.cxx:391
MWAWPageSpanInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: MWAWPageSpan.cxx:82
MWAWListener::insertEOL
virtual void insertEOL(bool softBreak=false)=0
adds an end of line ( by default an hard one)
MWAWPageSpan::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:151
MWAWPageSpan::TopLeft
@ TopLeft
Definition: MWAWPageSpan.hxx:101
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWPageSpan::m_pageSpan
int m_pageSpan
the number of page
Definition: MWAWPageSpan.hxx:306
MWAWHeaderFooter::m_height
double m_height
the height ( if known )
Definition: MWAWPageSpan.hxx:81
MWAWPageSpan::getMarginLeft
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:126
MWAWHeaderFooter::isDefined
bool isDefined() const
returns true if the header footer is defined
Definition: MWAWPageSpan.hxx:59
MWAWPageSpan::getPageProperty
void getPageProperty(librevenge::RVNGPropertyList &pList, bool isPresentation=false) const
add the page properties in pList
Definition: MWAWPageSpan.cxx:307
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWPageSpan::m_backgroundColor
MWAWColor m_backgroundColor
the page background color: default white
Definition: MWAWPageSpan.hxx:300
MWAWField::m_numberingType
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:384
MWAWSubDocument.hxx
MWAWListener::insertField
virtual void insertField(MWAWField const &field)=0
adds a field type
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
MWAWHeaderFooter::PageNumberPosition
PageNumberPosition
a fixed page number position
Definition: MWAWPageSpan.hxx:52
MWAWPageSpan::setMasterPageName
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:237
MWAWPageSpan::getPageSpan
int getPageSpan() const
Definition: MWAWPageSpan.hxx:164
MWAWHeaderFooter::send
void send(MWAWListener *listener) const
send to header to the listener
Definition: MWAWPageSpan.cxx:134
MWAWHeaderFooter::operator!=
bool operator!=(MWAWHeaderFooter const &headerFooter) const
operator!=
Definition: MWAWPageSpan.hxx:68
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:178
MWAWPageSpan::PageNumberPosition
PageNumberPosition
a fixed page number position
Definition: MWAWPageSpan.hxx:101
MWAWPageSpan::setBackgroundColor
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:252
MWAWPageSpan::getMarginRight
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:131
MWAWHeaderFooter::m_occurrence
Occurrence m_occurrence
the actual occurrence
Definition: MWAWPageSpan.hxx:79
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
MWAWPageSpan::hasPageName
bool hasPageName() const
return true if the page has a name
Definition: MWAWPageSpan.hxx:227
MWAWParagraph.hxx
MWAWPageSpan::getMarginTop
double getMarginTop() const
returns the top margin
Definition: MWAWPageSpan.hxx:136
MWAWPageSpan::sendHeaderFooters
void sendHeaderFooters(MWAWListener *listener) const
send the page's headers/footers if some exists
Definition: MWAWPageSpan.cxx:278
libmwaw::Bottom
@ Bottom
Definition: libmwaw_internal.hxx:166
libmwaw_internal.hxx
MWAWListener
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
MWAWPageSpan::None
@ None
Definition: MWAWPageSpan.hxx:101
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
MWAWHeaderFooter::NEVER
@ NEVER
Definition: MWAWPageSpan.hxx:50
MWAWListener::setParagraph
virtual void setParagraph(MWAWParagraph const &paragraph)=0
sets the paragraph
MWAWHeaderFooter::operator==
bool operator==(MWAWHeaderFooter const &headerFooter) const
operator==
Definition: MWAWPageSpan.cxx:111
MWAWPageSpan::getPageLength
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:146
MWAWPageSpan::backgroundColor
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWPageSpan.hxx:156
MWAWListener::insertHeader
virtual bool insertHeader(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)=0
insert a header (interaction with MWAWPageSpan which fills the parameters for openHeader)
MWAWPageSpan::getFormWidth
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:116
MWAWPageSpan::hasMasterPageName
bool hasMasterPageName() const
return true if the masterPage has a name
Definition: MWAWPageSpan.hxx:242
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:168
MWAWHeaderFooter::ODD
@ ODD
Definition: MWAWPageSpan.hxx:50
libmwaw::ARABIC
@ ARABIC
Definition: libmwaw_internal.hxx:170
MWAWHeaderFooter::BottomRight
@ BottomRight
Definition: MWAWPageSpan.hxx:52
MWAWHeaderFooter::insertPageNumberParagraph
void insertPageNumberParagraph(MWAWListener *listener) const
insert a page number
Definition: MWAWPageSpan.cxx:174
MWAWHeaderFooter::m_type
Type m_type
the type header/footer
Definition: MWAWPageSpan.hxx:77
MWAWPageSpan::removeHeaderFooter
void removeHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
remove a header footer
Definition: MWAWPageSpan.cxx:377
MWAWPageSpan::TopCenter
@ TopCenter
Definition: MWAWPageSpan.hxx:101
MWAWHeaderFooter::m_pageNumberFont
MWAWFont m_pageNumberFont
the page numbering font
Definition: MWAWPageSpan.hxx:87
MWAWHeaderFooter::Occurrence
Occurrence
the header/footer occurrence in the file
Definition: MWAWPageSpan.hxx:50
MWAWHeaderFooter::BottomLeft
@ BottomLeft
Definition: MWAWPageSpan.hxx:52
MWAWField
a field
Definition: libmwaw_internal.hxx:369
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:371
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
MWAWParagraph::JustificationLeft
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
MWAWHeaderFooter::TopCenter
@ TopCenter
Definition: MWAWPageSpan.hxx:52
MWAWPageSpanInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: MWAWPageSpan.cxx:69
MWAWHeaderFooter::MWAWHeaderFooter
MWAWHeaderFooter(Type const type=UNDEF, Occurrence const occurrence=NEVER)
constructor
Definition: MWAWPageSpan.cxx:100
MWAWPageSpan::setPageName
void setPageName(librevenge::RVNGString const &name)
set the page name
Definition: MWAWPageSpan.hxx:222
MWAWHeaderFooter::UNDEF
@ UNDEF
Definition: MWAWPageSpan.hxx:48
libmwaw::Top
@ Top
Definition: libmwaw_internal.hxx:166
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWPageSpan::getMarginBottom
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:141
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
MWAWHeaderFooter::TopLeft
@ TopLeft
Definition: MWAWPageSpan.hxx:52
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:168
MWAWHeaderFooterPtr
shared_ptr< MWAWHeaderFooter > MWAWHeaderFooterPtr
Definition: MWAWPageSpan.hxx:92
MWAWPageSpan.hxx
MWAWPageSpanInternal::SubDocument::SubDocument
SubDocument(MWAWHeaderFooter const &headerFooter)
constructor
Definition: MWAWPageSpan.cxx:52
MWAWPageSpan::checkMargins
void checkMargins()
check if the page margins are consistent with the page dimension, if not update them
Definition: MWAWPageSpan.cxx:266
MWAWPageSpan::FormOrientation
FormOrientation
the page orientation
Definition: MWAWPageSpan.hxx:99
libmwaw::Right
@ Right
Definition: libmwaw_internal.hxx:166
MWAWPageSpanInternal::SubDocument::m_headerFooter
MWAWHeaderFooter const & m_headerFooter
the header footer
Definition: MWAWPageSpan.cxx:79
MWAWPageSpan::TopRight
@ TopRight
Definition: MWAWPageSpan.hxx:101
MWAWHeaderFooter::TopRight
@ TopRight
Definition: MWAWPageSpan.hxx:52
MWAWPageSpan::m_masterName
librevenge::RVNGString m_masterName
the page master name
Definition: MWAWPageSpan.hxx:296
MWAWPageSpanInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: MWAWPageSpan.cxx:56
MWAWHeaderFooter::BottomCenter
@ BottomCenter
Definition: MWAWPageSpan.hxx:52
MWAWPageSpan::getPageName
librevenge::RVNGString const & getPageName() const
return the page name
Definition: MWAWPageSpan.hxx:232
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:88
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:168
MWAWListener::isParagraphOpened
virtual bool isParagraphOpened() const =0
returns true if a paragraph or a list is opened
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
MWAWHeaderFooter::m_pageNumberPosition
PageNumberPosition m_pageNumberPosition
the page number position ( or none)
Definition: MWAWPageSpan.hxx:83
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
MWAWListener.hxx
libmwaw::Left
@ Left
Definition: libmwaw_internal.hxx:166
MWAWPageSpan::~MWAWPageSpan
~MWAWPageSpan()
destructor
Definition: MWAWPageSpan.cxx:219
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
MWAWPageSpan::m_name
librevenge::RVNGString m_name
the page name
Definition: MWAWPageSpan.hxx:294
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
MWAWFont.hxx
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
MWAWSubDocumentPtr
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
MWAWPageSpan::BottomRight
@ BottomRight
Definition: MWAWPageSpan.hxx:102
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWPageSpan::m_headerFooterList
std::vector< MWAWHeaderFooter > m_headerFooterList
the list of header
Definition: MWAWPageSpan.hxx:302
MWAWPageSpan::getFormLength
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:111
MWAWPageSpan::getFormOrientation
FormOrientation getFormOrientation() const
returns the page orientation
Definition: MWAWPageSpan.hxx:121
MWAWPageSpan::m_formOrientation
FormOrientation m_formOrientation
the form orientation
Definition: MWAWPageSpan.hxx:298
MWAWPageSpanInternal::SubDocument
Internal: the subdocument of a MWAWParser.
Definition: MWAWPageSpan.cxx:49
MWAWPageSpan::LANDSCAPE
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:99
MWAWPageSpan::operator!=
bool operator!=(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator!=
Definition: MWAWPageSpan.hxx:269
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
MWAWHeaderFooter::m_pageNumberType
libmwaw::NumberingType m_pageNumberType
the page numbering type
Definition: MWAWPageSpan.hxx:85
MWAWPageSpan::setPageNumber
void setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:257
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
MWAWPageSpan::operator==
bool operator==(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator==
Definition: MWAWPageSpan.cxx:336

Generated on Wed Jun 17 2020 06:30:12 for libmwaw by doxygen 1.8.18