34 #ifndef MWAWPAGESPAN_H 35 #define MWAWPAGESPAN_H 123 return m_formOrientation;
158 return m_backgroundColor;
174 m_formLength = formLength;
179 m_formWidth = formWidth;
184 m_formOrientation = formOrientation;
189 m_margins[
libmwaw::Left] = (marginLeft >= 0) ? marginLeft : 0.01;
194 m_margins[
libmwaw::Right] = (marginRight >= 0) ? marginRight : 0.01;
199 m_margins[
libmwaw::Top] =(marginTop >= 0) ? marginTop : 0.01;
204 m_margins[
libmwaw::Bottom] = (marginBottom >= 0) ? marginBottom : 0.01;
209 if (margin < 0.0) margin = 0.01;
229 return !m_name.empty();
244 return !m_masterName.empty();
254 m_backgroundColor=color;
259 m_pageNumber = pageNumber;
264 m_pageSpan = pageSpan;
267 bool operator==(shared_ptr<MWAWPageSpan>
const &pageSpan)
const;
269 bool operator!=(shared_ptr<MWAWPageSpan>
const &pageSpan)
const 276 void getPageProperty(librevenge::RVNGPropertyList &pList)
const;
290 double m_formLength, m_formWidth ;
NumberingType
Definition: libmwaw_internal.hxx:169
int getPageSpan() const
Definition: MWAWPageSpan.hxx:164
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
Definition: libmwaw_internal.hxx:167
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
int m_pageNumber
the page number ( or -1)
Definition: MWAWPageSpan.hxx:302
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
int getPageNumber() const
Definition: MWAWPageSpan.hxx:160
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:225
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:126
librevenge::RVNGString m_masterName
the page master name
Definition: MWAWPageSpan.hxx:298
PageNumberPosition
a fixed page number position
Definition: MWAWPageSpan.hxx:101
Definition: libmwaw_internal.hxx:165
FormOrientation
the page orientation
Definition: MWAWPageSpan.hxx:99
Definition: libmwaw_internal.hxx:165
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
Definition: libmwaw_internal.hxx:165
the class to store a color
Definition: libmwaw_internal.hxx:176
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:510
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWPageSpan.hxx:156
Definition: libmwaw_internal.hxx:165
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:146
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:131
Class to store font.
Definition: MWAWFont.hxx:43
FormOrientation getFormOrientation() const
returns the page orientation
Definition: MWAWPageSpan.hxx:121
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:116
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
Definition: MWAWPageSpan.hxx:99
void setPageName(librevenge::RVNGString const &name)
set the page name
Definition: MWAWPageSpan.hxx:222
librevenge::RVNGString const & getPageName() const
return the page name
Definition: MWAWPageSpan.hxx:232
Definition: libmwaw_internal.hxx:167
shared_ptr< MWAWHeaderFooter > MWAWHeaderFooterPtr
Definition: MWAWPageSpan.hxx:92
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:111
bool operator!=(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator!=
Definition: MWAWPageSpan.hxx:269
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:182
double getMarginTop() const
returns the top margin
Definition: MWAWPageSpan.hxx:136
Definition: libmwaw_internal.hxx:167
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
std::vector< MWAWHeaderFooter > m_headerFooterList
the list of header
Definition: MWAWPageSpan.hxx:304
bool hasPageName() const
return true if the page has a name
Definition: MWAWPageSpan.hxx:227
MWAWColor m_backgroundColor
the page background color: default white
Definition: MWAWPageSpan.hxx:300
Definition: MWAWPageSpan.hxx:101
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:151
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
void setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:257
FormOrientation m_formOrientation
the form orientation
Definition: MWAWPageSpan.hxx:292
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:237
int m_pageSpan
the number of page
Definition: MWAWPageSpan.hxx:306
librevenge::RVNGString const & getMasterPageName() const
return the page master name
Definition: MWAWPageSpan.hxx:247
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
bool hasMasterPageName() const
return true if the masterPage has a name
Definition: MWAWPageSpan.hxx:242
Definition: libmwaw_internal.hxx:167
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:141
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:252
librevenge::RVNGString m_name
the page name
Definition: MWAWPageSpan.hxx:296