Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MWAWPageSpan Class Reference

A class which defines the page properties. More...

`#include <MWAWPageSpan.hxx>`

## Public Types
enum | FormOrientation { PORTRAIT, LANDSCAPE }
| the page orientation More...
enum | PageNumberPosition { None = 0, TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight }
| a fixed page number position More...

## Public Member Functions
| MWAWPageSpan ()
| constructor More...
| ~MWAWPageSpan ()
| destructor More...
double | getFormLength () const
| returns the page length More...
double | getFormWidth () const
| returns the page width More...
FormOrientation | getFormOrientation () const
| returns the page orientation More...
double | getMarginLeft () const
| returns the left margin More...
double | getMarginRight () const
| returns the right margin More...
double | getMarginTop () const
| returns the top margin More...
double | getMarginBottom () const
| returns the bottom margin More...
double | getPageLength () const
| returns the page length (form width without margin ) More...
double | getPageWidth () const
| returns the page width (form width without margin ) More...
MWAWColor | backgroundColor () const
| returns the background color More...
int | getPageNumber () const
int | getPageSpan () const
void | setHeaderFooter (MWAWHeaderFooter const &headerFooter)
| add a header/footer on some page More...
void | setFormLength (const double formLength)
| set the total page length More...
void | setFormWidth (const double formWidth)
| set the total page width More...
void | setFormOrientation (const FormOrientation formOrientation)
| set the form orientation More...
void | setMarginLeft (const double marginLeft)
| set the page left margin More...
void | setMarginRight (const double marginRight)
| set the page right margin More...
void | setMarginTop (const double marginTop)
| set the page top margin More...
void | setMarginBottom (const double marginBottom)
| set the page bottom margin More...
void | setMargins (double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
| set all the margins More...
void | checkMargins ()
| check if the page margins are consistent with the page dimension, if not update them More...
void | setPageName (librevenge::RVNGString const &name)
| set the page name More...
bool | hasPageName () const
| return true if the page has a name More...
librevenge::RVNGString const & | getPageName () const
| return the page name More...
void | setMasterPageName (librevenge::RVNGString const &name)
| set the page master name More...
bool | hasMasterPageName () const
| return true if the masterPage has a name More...
librevenge::RVNGString const & | getMasterPageName () const
| return the page master name More...
void | setBackgroundColor (MWAWColor color=MWAWColor::white())
| set the background color More...
void | setPageNumber (const int pageNumber)
| set the page number More...
void | setPageSpan (const int pageSpan)
| set the page span ( default 1) More...
bool | operator== (std::shared_ptr< MWAWPageSpan > const &pageSpan) const
| operator== More...
bool | operator!= (std::shared_ptr< MWAWPageSpan > const &pageSpan) const
| operator!= More...
void | getPageProperty (librevenge::RVNGPropertyList &pList, bool isPresentation=false) const
| add the page properties in pList More...
void | sendHeaderFooters (MWAWListener *listener) const
| send the page's headers/footers if some exists More...
void | sendHeaderFooters (MWAWListener *listener, MWAWHeaderFooter::Occurrence occurrence) const
| send the page's headers/footers corresponding to an occurrence if some exists More...

## Protected Member Functions
int | getHeaderFooterPosition (MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
| return the header footer positions in m_headerFooterList More...
void | removeHeaderFooter (MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
| remove a header footer More...
bool | containsHeaderFooter (MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
| return true if we have a header footer in this position More...

## Private Attributes
double | m_formLength
| the form length More...
double | m_formWidth
| the form width More...
double | m_margins [4]
| the margins: libmwaw::Left, ... More...
librevenge::RVNGString | m_name
| the page name More...
librevenge::RVNGString | m_masterName
| the page master name More...
FormOrientation | m_formOrientation
| the form orientation More...
MWAWColor | m_backgroundColor
| the page background color: default white More...
std::vector< MWAWHeaderFooter > | m_headerFooterList
| the list of header More...
int | m_pageNumber
| the page number ( or -1) More...
int | m_pageSpan
| the number of page More...

## Detailed Description

A class which defines the page properties.

## Member Enumeration Documentation

## ◆ FormOrientation

enum MWAWPageSpan::FormOrientation

the page orientation

Enumerator
PORTRAIT |
LANDSCAPE |

## ◆ PageNumberPosition

enum MWAWPageSpan::PageNumberPosition

a fixed page number position

Enumerator
None |
TopLeft |
TopCenter |
TopRight |
BottomLeft |
BottomCenter |
BottomRight |

## Constructor & Destructor Documentation

## ◆ MWAWPageSpan()

MWAWPageSpan::MWAWPageSpan | ( |  | ) |

constructor

## ◆ ~MWAWPageSpan()

MWAWPageSpan::~MWAWPageSpan | ( |  | ) |

destructor

## Member Function Documentation

## ◆ backgroundColor()

MWAWColor MWAWPageSpan::backgroundColor | ( |  | ) | const
| inline

returns the background color

Referenced by operator==().

## ◆ checkMargins()

void MWAWPageSpan::checkMargins | ( |  | ) |

check if the page margins are consistent with the page dimension, if not update them

Referenced by MarinerWrtParser::readPrintInfo().

## ◆ containsHeaderFooter()

bool MWAWPageSpan::containsHeaderFooter | ( | MWAWHeaderFooter::Type | type,
|  | MWAWHeaderFooter::Occurrence | occurrence
| ) |  |
| protected

return true if we have a header footer in this position

Referenced by setHeaderFooter().

## ◆ getFormLength()

double MWAWPageSpan::getFormLength | ( |  | ) | const
| inline

returns the page length

Referenced by MWAWPresentationListener::_openPageSpan(), MWAWGraphicListener::_openPageSpan(), getPageProperty(), MWAWPresentationListener::insertFooter(), MWAWGraphicListener::insertFooter(), MWAWPresentationListener::openMasterPage(), MWAWGraphicListener::openMasterPage(), and BeagleWksStructManager::readDocumentInfo().

## ◆ getFormOrientation()

FormOrientation MWAWPageSpan::getFormOrientation | ( |  | ) | const
| inline

returns the page orientation

Referenced by getPageProperty().

## ◆ getFormWidth()

double MWAWPageSpan::getFormWidth | ( |  | ) | const
| inline

returns the page width

Referenced by MWAWPresentationListener::_openPageSpan(), MWAWGraphicListener::_openPageSpan(), getPageProperty(), MWAWPresentationListener::openMasterPage(), MWAWGraphicListener::openMasterPage(), and BeagleWksStructManager::readDocumentInfo().

## ◆ getHeaderFooterPosition()

int MWAWPageSpan::getHeaderFooterPosition | ( | MWAWHeaderFooter::Type | type,
|  | MWAWHeaderFooter::Occurrence | occurrence
| ) |  |
| protected

return the header footer positions in m_headerFooterList

Referenced by containsHeaderFooter(), removeHeaderFooter(), and setHeaderFooter().

## ◆ getMarginBottom()

double MWAWPageSpan::getMarginBottom | ( |  | ) | const
| inline

returns the bottom margin

Referenced by ClarisWksDocument::getFinalPageSpan(), getPageProperty(), and operator==().

## ◆ getMarginLeft()

double MWAWPageSpan::getMarginLeft | ( |  | ) | const
| inline

returns the left margin

Referenced by getPageProperty(), WriterPlsParser::getParagraph(), operator==(), ClarisWksBMParser::parse(), MacPaintParser::sendBitmap(), PixelPaintParser::sendBitmap(), BeagleWksBMParser::sendBitmap(), SuperPaintParser::sendBitmap(), GreatWksGraph::sendFrame(), and GreatWksBMParser::sendPicture().

## ◆ getMarginRight()

double MWAWPageSpan::getMarginRight | ( |  | ) | const
| inline

returns the right margin

Referenced by ClarisWksDocument::getFinalPageSpan(), getPageProperty(), operator==(), ClarisWksBMParser::parse(), MacPaintParser::sendBitmap(), PixelPaintParser::sendBitmap(), BeagleWksBMParser::sendBitmap(), SuperPaintParser::sendBitmap(), and GreatWksBMParser::sendPicture().

## ◆ getMarginTop()

double MWAWPageSpan::getMarginTop | ( |  | ) | const
| inline

returns the top margin

Referenced by getPageProperty(), operator==(), and GreatWksGraph::sendFrame().

## ◆ getMasterPageName()

librevenge::RVNGString const& MWAWPageSpan::getMasterPageName | ( |  | ) | const
| inline

return the page master name

Referenced by getPageProperty(), and operator==().

## ◆ getPageLength()

double MWAWPageSpan::getPageLength | ( |  | ) | const
| inline

returns the page length (form width without margin )

Referenced by WriterPlsParser::getTextHeight(), ClarisWksBMParser::parse(), MacPaintParser::sendBitmap(), PixelPaintParser::sendBitmap(), BeagleWksBMParser::sendBitmap(), SuperPaintParser::sendBitmap(), GreatWksBMParser::sendPicture(), and MsWks3Text::update().

## ◆ getPageName()

librevenge::RVNGString const& MWAWPageSpan::getPageName | ( |  | ) | const
| inline

return the page name

Referenced by getPageProperty(), and operator==().

## ◆ getPageNumber()

int MWAWPageSpan::getPageNumber | ( |  | ) | const
| inline

Referenced by operator==().

## ◆ getPageProperty()

void MWAWPageSpan::getPageProperty | ( | librevenge::RVNGPropertyList & | pList,
|  | bool | isPresentation = `false`
| ) |  | const

add the page properties in pList

Referenced by MWAWTextListener::_openPageSpan(), MWAWPresentationListener::_openPageSpan(), MWAWGraphicListener::_openPageSpan(), MWAWSpreadsheetListener::_openPageSpan(), MWAWPresentationListener::openMasterPage(), and MWAWGraphicListener::openMasterPage().

## ◆ getPageSpan()

int MWAWPageSpan::getPageSpan | ( |  | ) | const
| inline

Referenced by MWAWTextListener::_openPageSpan(), MWAWPresentationListener::_openPageSpan(), MWAWGraphicListener::_openPageSpan(), MWAWSpreadsheetListener::_openPageSpan(), MacWrtParser::createDocument(), MarinerWrtParser::createDocument(), and getPageProperty().

## ◆ getPageWidth()

double MWAWPageSpan::getPageWidth | ( |  | ) | const
| inline

returns the page width (form width without margin )

Referenced by ClarisWksBMParser::parse(), MacPaintParser::sendBitmap(), PixelPaintParser::sendBitmap(), BeagleWksBMParser::sendBitmap(), SuperPaintParser::sendBitmap(), MouseWrtParser::sendMainZone(), and GreatWksBMParser::sendPicture().

## ◆ hasMasterPageName()

bool MWAWPageSpan::hasMasterPageName | ( |  | ) | const
| inline

return true if the masterPage has a name

Referenced by getPageProperty().

## ◆ hasPageName()

bool MWAWPageSpan::hasPageName | ( |  | ) | const
| inline

return true if the page has a name

Referenced by getPageProperty().

## ◆ operator!=()

bool MWAWPageSpan::operator!= | ( | std::shared_ptr< MWAWPageSpan > const & | pageSpan | ) | const
| inline

operator!=

## ◆ operator==()

bool MWAWPageSpan::operator== | ( | std::shared_ptr< MWAWPageSpan > const & | pageSpan | ) | const

operator==

## ◆ removeHeaderFooter()

void MWAWPageSpan::removeHeaderFooter | ( | MWAWHeaderFooter::Type | type,
|  | MWAWHeaderFooter::Occurrence | occurrence
| ) |  |
| protected

remove a header footer

Referenced by setHeaderFooter().

## ◆ sendHeaderFooters() [1/2]

void MWAWPageSpan::sendHeaderFooters | ( | MWAWListener * | listener | ) | const

send the page's headers/footers if some exists

Referenced by MWAWTextListener::_openPageSpan(), MWAWPresentationListener::_openPageSpan(), MWAWGraphicListener::_openPageSpan(), and MWAWSpreadsheetListener::_openPageSpan().

## ◆ sendHeaderFooters() [2/2]

void MWAWPageSpan::sendHeaderFooters | ( | MWAWListener * | listener,
|  | MWAWHeaderFooter::Occurrence | occurrence
| ) |  | const

send the page's headers/footers corresponding to an occurrence if some exists

## ◆ setBackgroundColor()

void MWAWPageSpan::setBackgroundColor | ( | MWAWColor | color = `MWAWColor::white()` | ) |
| inline

set the background color

Referenced by StyleParser::createDocument(), PowerPoint1Parser::createDocument(), PowerPoint3Parser::createDocument(), MoreParser::createDocument(), MarinerWrtParser::createDocument(), and DocMkrText::updatePageSpanList().

## ◆ setFormLength()

void MWAWPageSpan::setFormLength | ( | const double | formLength | ) |
| inline

set the total page length

Referenced by FreeHandParser::checkHeader(), MacDrawProParser::computeLayersAndLibrariesBoundingBox(), ApplePictParser::createDocument(), MacDocParser::createZones(), MWAWGraphicListener::MWAWGraphicListener(), MWAWSpreadsheetListener::MWAWSpreadsheetListener(), PowerPoint7Parser::readDocAtom(), MacDraftParser::readDocHeader(), ClarisDrawParser::readDocHeader(), MacDraft5Parser::readDocHeader(), MacWrtProParser::readDocHeader(), ClarisWksDocument::readDocHeader(), PowerPoint3Parser::readDocInfo(), MsWrd1Parser::readDocInfo(), FullWrtParser::readDocInfo(), PowerPoint1Parser::readDocInfo(), LightWayTxtParser::readDocument(), MoreParser::readDocumentInfo(), MsWrdParser::readDocumentInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), EDocParser::readInfo(), NisusWrtParser::readPageLimit(), MouseWrtParser::readPrintInfo(), SuperPaintParser::readPrintInfo(), MacDrawParser::readPrintInfo(), WingzParser::readPrintInfo(), MacWrtParser::readPrintInfo(), WriterPlsParser::readPrintInfo(), MacDrawProParser::readPrintInfo(), CricketDrawParser::readPrintInfo(), StyleParser::readPrintInfo(), MacDraft5Parser::readPrintInfo(), ActaParser::readPrintInfo(), LightWayTxtParser::readPrintInfo(), ClarisDrawParser::readPrintInfo(), BeagleWksDBParser::readPrintInfo(), MindWrtParser::readPrintInfo(), BeagleWksBMParser::readPrintInfo(), BeagleWksParser::readPrintInfo(), NisusWrtParser::readPrintInfo(), BeagleWksSSParser::readPrintInfo(), MoreParser::readPrintInfo(), FullWrtParser::readPrintInfo(), GreatWksDocument::readPrintInfo(), MsWrdParser::readPrintInfo(), BeagleWksDRParser::readPrintInfo(), WriteNowParser::readPrintInfo(), MacWrtProParser::readPrintInfo(), RagTimeParser::readPrintInfo(), ClarisWksDocument::readPrintInfo(), HanMacWrdJParser::readPrintInfo(), MarinerWrtParser::readPrintInfo(), HanMacWrdKParser::readPrintInfo(), MsWks4Zone::readPRNT(), and ClarisWksDocument::updateChildPositions().

## ◆ setFormOrientation()

void MWAWPageSpan::setFormOrientation | ( | const FormOrientation | formOrientation | ) |
| inline

set the form orientation

Referenced by FreeHandParser::checkHeader(), PowerPoint3Parser::readDocInfo(), PowerPoint1Parser::readDocInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), NisusWrtParser::readPageLimit(), MsWrdParser::readPrintInfo(), and MsWks4Zone::readPRNT().

## ◆ setFormWidth()

void MWAWPageSpan::setFormWidth | ( | const double | formWidth | ) |
| inline

set the total page width

Referenced by FreeHandParser::checkHeader(), MacDrawProParser::computeLayersAndLibrariesBoundingBox(), ApplePictParser::createDocument(), MacDocParser::createZones(), MWAWGraphicListener::MWAWGraphicListener(), MWAWSpreadsheetListener::MWAWSpreadsheetListener(), PowerPoint7Parser::readDocAtom(), MacDraftParser::readDocHeader(), ClarisDrawParser::readDocHeader(), MacDraft5Parser::readDocHeader(), MacWrtProParser::readDocHeader(), ClarisWksDocument::readDocHeader(), PowerPoint3Parser::readDocInfo(), MsWrd1Parser::readDocInfo(), FullWrtParser::readDocInfo(), PowerPoint1Parser::readDocInfo(), LightWayTxtParser::readDocument(), MoreParser::readDocumentInfo(), MsWrdParser::readDocumentInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), EDocParser::readInfo(), NisusWrtParser::readPageLimit(), MouseWrtParser::readPrintInfo(), SuperPaintParser::readPrintInfo(), MacDrawParser::readPrintInfo(), WingzParser::readPrintInfo(), MacWrtParser::readPrintInfo(), WriterPlsParser::readPrintInfo(), MacDrawProParser::readPrintInfo(), CricketDrawParser::readPrintInfo(), StyleParser::readPrintInfo(), MacDraft5Parser::readPrintInfo(), ActaParser::readPrintInfo(), LightWayTxtParser::readPrintInfo(), ClarisDrawParser::readPrintInfo(), BeagleWksDBParser::readPrintInfo(), MindWrtParser::readPrintInfo(), BeagleWksBMParser::readPrintInfo(), BeagleWksParser::readPrintInfo(), NisusWrtParser::readPrintInfo(), BeagleWksSSParser::readPrintInfo(), MoreParser::readPrintInfo(), FullWrtParser::readPrintInfo(), GreatWksDocument::readPrintInfo(), MsWrdParser::readPrintInfo(), BeagleWksDRParser::readPrintInfo(), WriteNowParser::readPrintInfo(), MacWrtProParser::readPrintInfo(), RagTimeParser::readPrintInfo(), ClarisWksDocument::readPrintInfo(), HanMacWrdJParser::readPrintInfo(), MarinerWrtParser::readPrintInfo(), HanMacWrdKParser::readPrintInfo(), MsWks4Zone::readPRNT(), and ClarisWksDocument::updateChildPositions().

## ◆ setHeaderFooter()

void MWAWPageSpan::setHeaderFooter | ( | MWAWHeaderFooter const & | headerFooter | ) |

add a header/footer on some page

Referenced by MouseWrtParser::createDocument(), GreatWksParser::createDocument(), MsWrd1Parser::createDocument(), MacWrtParser::createDocument(), GreatWksSSParser::createDocument(), ActaParser::createDocument(), BeagleWksParser::createDocument(), LightWayTxtParser::createDocument(), GreatWksDBParser::createDocument(), MindWrtParser::createDocument(), BeagleWksDBParser::createDocument(), NisusWrtParser::createDocument(), BeagleWksSSParser::createDocument(), WriterPlsParser::createDocument(), FullWrtParser::createDocument(), MacWrtProParser::createDocument(), WriteNowParser::createDocument(), MoreParser::createDocument(), ZWrtParser::createDocument(), MsWrdParser::createDocument(), HanMacWrdJParser::createDocument(), MarinerWrtParser::createDocument(), HanMacWrdKParser::createDocument(), MsWksDocument::getPageSpanList(), ClarisWksText::updatePageSpanList(), DocMkrText::updatePageSpanList(), and ClarisWksDocument::updatePageSpanList().

## ◆ setMarginBottom()

void MWAWPageSpan::setMarginBottom | ( | const double | marginBottom | ) |
| inline

set the page bottom margin

Referenced by FreeHandParser::checkHeader(), ClarisWksDocument::getFinalPageSpan(), HanMacWrdKParser::init(), ClarisDrawParser::readDocHeader(), MacWrtProParser::readDocHeader(), ClarisWksDocument::readDocHeader(), GreatWksParser::readDocInfo(), PowerPoint3Parser::readDocInfo(), FullWrtParser::readDocInfo(), PowerPoint1Parser::readDocInfo(), MarinerWrtParser::readDocInfo(), LightWayTxtParser::readDocument(), BeagleWksStructManager::readDocumentInfo(), MoreParser::readDocumentInfo(), MsWrdParser::readDocumentInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), BeagleWksParser::readLastZone(), StyleParser::readMargins(), NisusWrtParser::readPageLimit(), MouseWrtParser::readPrintInfo(), SuperPaintParser::readPrintInfo(), MacDrawParser::readPrintInfo(), WingzParser::readPrintInfo(), MacWrtParser::readPrintInfo(), WriterPlsParser::readPrintInfo(), MacDrawProParser::readPrintInfo(), CricketDrawParser::readPrintInfo(), StyleParser::readPrintInfo(), MacDraftParser::readPrintInfo(), MacDraft5Parser::readPrintInfo(), ActaParser::readPrintInfo(), LightWayTxtParser::readPrintInfo(), ClarisDrawParser::readPrintInfo(), BeagleWksDBParser::readPrintInfo(), MindWrtParser::readPrintInfo(), BeagleWksBMParser::readPrintInfo(), NisusWrtParser::readPrintInfo(), BeagleWksParser::readPrintInfo(), BeagleWksSSParser::readPrintInfo(), MoreParser::readPrintInfo(), ZWrtParser::readPrintInfo(), FullWrtParser::readPrintInfo(), GreatWksDocument::readPrintInfo(), MsWrdParser::readPrintInfo(), BeagleWksDRParser::readPrintInfo(), WriteNowParser::readPrintInfo(), MacWrtProParser::readPrintInfo(), RagTimeParser::readPrintInfo(), ClarisWksDocument::readPrintInfo(), HanMacWrdJParser::readPrintInfo(), MarinerWrtParser::readPrintInfo(), HanMacWrdKParser::readPrintInfo(), MsWks4Zone::readPRNT(), and DocMkrText::updatePageSpanList().

## ◆ setMarginLeft()

void MWAWPageSpan::setMarginLeft | ( | const double | marginLeft | ) |
| inline

set the page left margin

Referenced by FreeHandParser::checkHeader(), HanMacWrdKParser::init(), ClarisDrawParser::readDocHeader(), MacWrtProParser::readDocHeader(), ClarisWksDocument::readDocHeader(), GreatWksParser::readDocInfo(), PowerPoint3Parser::readDocInfo(), MsWrd1Parser::readDocInfo(), FullWrtParser::readDocInfo(), PowerPoint1Parser::readDocInfo(), MarinerWrtParser::readDocInfo(), LightWayTxtParser::readDocument(), BeagleWksStructManager::readDocumentInfo(), MoreParser::readDocumentInfo(), MsWrdParser::readDocumentInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), BeagleWksParser::readLastZone(), StyleParser::readMargins(), NisusWrtParser::readPageLimit(), MouseWrtParser::readPrintInfo(), SuperPaintParser::readPrintInfo(), MacDrawParser::readPrintInfo(), WingzParser::readPrintInfo(), MacWrtParser::readPrintInfo(), WriterPlsParser::readPrintInfo(), MacDrawProParser::readPrintInfo(), CricketDrawParser::readPrintInfo(), StyleParser::readPrintInfo(), MacDraftParser::readPrintInfo(), MacDraft5Parser::readPrintInfo(), ActaParser::readPrintInfo(), LightWayTxtParser::readPrintInfo(), ClarisDrawParser::readPrintInfo(), MindWrtParser::readPrintInfo(), BeagleWksDBParser::readPrintInfo(), BeagleWksBMParser::readPrintInfo(), BeagleWksParser::readPrintInfo(), NisusWrtParser::readPrintInfo(), BeagleWksSSParser::readPrintInfo(), MoreParser::readPrintInfo(), ZWrtParser::readPrintInfo(), FullWrtParser::readPrintInfo(), GreatWksDocument::readPrintInfo(), MsWrdParser::readPrintInfo(), BeagleWksDRParser::readPrintInfo(), WriteNowParser::readPrintInfo(), MacWrtProParser::readPrintInfo(), RagTimeParser::readPrintInfo(), ClarisWksDocument::readPrintInfo(), HanMacWrdJParser::readPrintInfo(), MarinerWrtParser::readPrintInfo(), HanMacWrdKParser::readPrintInfo(), MsWks4Zone::readPRNT(), and DocMkrText::updatePageSpanList().

## ◆ setMarginRight()

void MWAWPageSpan::setMarginRight | ( | const double | marginRight | ) |
| inline

set the page right margin

Referenced by FreeHandParser::checkHeader(), ClarisWksDocument::getFinalPageSpan(), HanMacWrdKParser::init(), ClarisDrawParser::readDocHeader(), MacWrtProParser::readDocHeader(), ClarisWksDocument::readDocHeader(), GreatWksParser::readDocInfo(), PowerPoint3Parser::readDocInfo(), FullWrtParser::readDocInfo(), PowerPoint1Parser::readDocInfo(), MarinerWrtParser::readDocInfo(), LightWayTxtParser::readDocument(), BeagleWksStructManager::readDocumentInfo(), MoreParser::readDocumentInfo(), MsWrdParser::readDocumentInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), BeagleWksParser::readLastZone(), StyleParser::readMargins(), NisusWrtParser::readPageLimit(), MouseWrtParser::readPrintInfo(), SuperPaintParser::readPrintInfo(), MacDrawParser::readPrintInfo(), WingzParser::readPrintInfo(), MacWrtParser::readPrintInfo(), WriterPlsParser::readPrintInfo(), MacDrawProParser::readPrintInfo(), CricketDrawParser::readPrintInfo(), StyleParser::readPrintInfo(), MacDraftParser::readPrintInfo(), MacDraft5Parser::readPrintInfo(), ActaParser::readPrintInfo(), LightWayTxtParser::readPrintInfo(), ClarisDrawParser::readPrintInfo(), BeagleWksDBParser::readPrintInfo(), MindWrtParser::readPrintInfo(), BeagleWksBMParser::readPrintInfo(), NisusWrtParser::readPrintInfo(), BeagleWksParser::readPrintInfo(), BeagleWksSSParser::readPrintInfo(), MoreParser::readPrintInfo(), ZWrtParser::readPrintInfo(), FullWrtParser::readPrintInfo(), GreatWksDocument::readPrintInfo(), MsWrdParser::readPrintInfo(), BeagleWksDRParser::readPrintInfo(), WriteNowParser::readPrintInfo(), MacWrtProParser::readPrintInfo(), RagTimeParser::readPrintInfo(), ClarisWksDocument::readPrintInfo(), HanMacWrdJParser::readPrintInfo(), MarinerWrtParser::readPrintInfo(), HanMacWrdKParser::readPrintInfo(), MsWks4Zone::readPRNT(), and DocMkrText::updatePageSpanList().

## ◆ setMargins()

void MWAWPageSpan::setMargins | ( | double | margin,
|  | int | wh = `libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit`
| ) |  |
| inline

set all the margins

Referenced by CricketDrawParser::CricketDrawParser(), MacDocParser::init(), TeachTxtParser::init(), GreatWksDRParser::init(), PixelPaintParser::init(), EDocParser::init(), MacPaintParser::init(), GreatWksBMParser::init(), GreatWksParser::init(), MsWrd1Parser::init(), MacWrtParser::init(), MsWksDRParser::init(), MsWksParser::init(), GreatWksSSParser::init(), SuperPaintParser::init(), MacDraftParser::init(), MacDrawParser::init(), ActaParser::init(), BeagleWksBMParser::init(), WingzParser::init(), BeagleWksParser::init(), LightWayTxtParser::init(), MindWrtParser::init(), BeagleWksDBParser::init(), GreatWksDBParser::init(), BeagleWksDRParser::init(), NisusWrtParser::init(), MacDraft5Parser::init(), FreeHandParser::init(), RagTimeParser::init(), BeagleWksSSParser::init(), MacDrawProParser::init(), ClarisWksBMParser::init(), MsWksDBParser::init(), WriterPlsParser::init(), MsWksSSParser::init(), FullWrtParser::init(), ClarisWksParser::init(), ClarisWksPRParser::init(), ClarisWksSSParser::init(), MacWrtProParser::init(), ApplePictParser::init(), WriteNowParser::init(), ClarisDrawParser::init(), MoreParser::init(), ZWrtParser::init(), RagTime5Parser::init(), MsWrdParser::init(), HanMacWrdJParser::init(), MarinerWrtParser::init(), MaxWrtParser::MaxWrtParser(), MWAWGraphicListener::MWAWGraphicListener(), MWAWSpreadsheetListener::MWAWSpreadsheetListener(), and StyleParser::StyleParser().

## ◆ setMarginTop()

void MWAWPageSpan::setMarginTop | ( | const double | marginTop | ) |
| inline

set the page top margin

Referenced by FreeHandParser::checkHeader(), HanMacWrdKParser::init(), ClarisDrawParser::readDocHeader(), MacWrtProParser::readDocHeader(), ClarisWksDocument::readDocHeader(), GreatWksParser::readDocInfo(), PowerPoint3Parser::readDocInfo(), MsWrd1Parser::readDocInfo(), FullWrtParser::readDocInfo(), PowerPoint1Parser::readDocInfo(), MarinerWrtParser::readDocInfo(), LightWayTxtParser::readDocument(), BeagleWksStructManager::readDocumentInfo(), MoreParser::readDocumentInfo(), MsWrdParser::readDocumentInfo(), MsWks4Zone::readDOP(), MsWrdParser::readHeaderEndV3(), BeagleWksParser::readLastZone(), StyleParser::readMargins(), NisusWrtParser::readPageLimit(), MouseWrtParser::readPrintInfo(), SuperPaintParser::readPrintInfo(), MacDrawParser::readPrintInfo(), WingzParser::readPrintInfo(), MacWrtParser::readPrintInfo(), WriterPlsParser::readPrintInfo(), MacDrawProParser::readPrintInfo(), CricketDrawParser::readPrintInfo(), StyleParser::readPrintInfo(), MacDraftParser::readPrintInfo(), MacDraft5Parser::readPrintInfo(), ActaParser::readPrintInfo(), LightWayTxtParser::readPrintInfo(), ClarisDrawParser::readPrintInfo(), MindWrtParser::readPrintInfo(), BeagleWksDBParser::readPrintInfo(), BeagleWksBMParser::readPrintInfo(), BeagleWksParser::readPrintInfo(), NisusWrtParser::readPrintInfo(), BeagleWksSSParser::readPrintInfo(), MoreParser::readPrintInfo(), ZWrtParser::readPrintInfo(), FullWrtParser::readPrintInfo(), GreatWksDocument::readPrintInfo(), MsWrdParser::readPrintInfo(), BeagleWksDRParser::readPrintInfo(), WriteNowParser::readPrintInfo(), MacWrtProParser::readPrintInfo(), RagTimeParser::readPrintInfo(), ClarisWksDocument::readPrintInfo(), HanMacWrdJParser::readPrintInfo(), MarinerWrtParser::readPrintInfo(), HanMacWrdKParser::readPrintInfo(), MsWks4Zone::readPRNT(), and DocMkrText::updatePageSpanList().

## ◆ setMasterPageName()

void MWAWPageSpan::setMasterPageName | ( | librevenge::RVNGString const & | name | ) |
| inline

set the page master name

Referenced by PowerPoint1Parser::createDocument(), PowerPoint7Parser::createDocument(), PowerPoint3Parser::createDocument(), MacDrawProParser::createDocument(), ClarisDrawParser::createDocument(), MacDrawProParser::sendMasterPage(), PowerPoint1Parser::sendSlides(), PowerPoint7Parser::sendSlides(), PowerPoint3Parser::sendSlides(), and ClarisWksDocument::updatePageSpanList().

## ◆ setPageName()

void MWAWPageSpan::setPageName | ( | librevenge::RVNGString const & | name | ) |
| inline

set the page name

Referenced by MacDraft5Parser::createDocument(), MacDrawProParser::createDocument(), ClarisDrawParser::createDocument(), and ClarisWksPresentation::updatePageSpanList().

## ◆ setPageNumber()

void MWAWPageSpan::setPageNumber | ( | const int | pageNumber | ) |
| inline

set the page number

Referenced by DocMkrText::updatePageSpanList().

## ◆ setPageSpan()

void MWAWPageSpan::setPageSpan | ( | const int | pageSpan | ) |
| inline

set the page span ( default 1)

Referenced by MaxWrtParser::createDocument(), StyleParser::createDocument(), MouseWrtParser::createDocument(), MacDocParser::createDocument(), TeachTxtParser::createDocument(), GreatWksDRParser::createDocument(), PixelPaintParser::createDocument(), EDocParser::createDocument(), MacPaintParser::createDocument(), CricketDrawParser::createDocument(), GreatWksBMParser::createDocument(), GreatWksParser::createDocument(), MsWrd1Parser::createDocument(), MacWrtParser::createDocument(), GreatWksSSParser::createDocument(), SuperPaintParser::createDocument(), ActaParser::createDocument(), MacDraftParser::createDocument(), MacDrawParser::createDocument(), BeagleWksParser::createDocument(), WingzParser::createDocument(), BeagleWksBMParser::createDocument(), LightWayTxtParser::createDocument(), GreatWksDBParser::createDocument(), MindWrtParser::createDocument(), NisusWrtParser::createDocument(), BeagleWksDBParser::createDocument(), BeagleWksDRParser::createDocument(), MacDraft5Parser::createDocument(), FreeHandParser::createDocument(), BeagleWksSSParser::createDocument(), MacDrawProParser::createDocument(), WriterPlsParser::createDocument(), FullWrtParser::createDocument(), MacWrtProParser::createDocument(), WriteNowParser::createDocument(), ApplePictParser::createDocument(), ClarisDrawParser::createDocument(), MoreParser::createDocument(), ZWrtParser::createDocument(), RagTimeParser::createDocument(), MsWrdParser::createDocument(), HanMacWrdJParser::createDocument(), RagTime5Parser::createDocument(), MarinerWrtParser::createDocument(), HanMacWrdKParser::createDocument(), MsWksDocument::getPageSpanList(), MWAWGraphicListener::MWAWGraphicListener(), MWAWSpreadsheetListener::MWAWSpreadsheetListener(), ClarisWksPresentation::updatePageSpanList(), ClarisWksText::updatePageSpanList(), and ClarisWksDocument::updatePageSpanList().

## Member Data Documentation

## ◆ m_backgroundColor

MWAWColor MWAWPageSpan::m_backgroundColor
| private

the page background color: default white

Referenced by getPageProperty().

## ◆ m_formLength

double MWAWPageSpan::m_formLength
| private

the form length

Referenced by checkMargins(), and operator==().

## ◆ m_formOrientation

FormOrientation MWAWPageSpan::m_formOrientation
| private

the form orientation

Referenced by operator==().

## ◆ m_formWidth

double MWAWPageSpan::m_formWidth
| private

the form width

Referenced by checkMargins(), and operator==().

## ◆ m_headerFooterList

std::vector<MWAWHeaderFooter> MWAWPageSpan::m_headerFooterList
| private

the list of header

Referenced by containsHeaderFooter(), getHeaderFooterPosition(), operator==(), removeHeaderFooter(), sendHeaderFooters(), and setHeaderFooter().

## ◆ m_margins

double MWAWPageSpan::m_margins[4]
| private

the margins: libmwaw::Left, ...

Referenced by checkMargins(), and MWAWPageSpan().

## ◆ m_masterName

librevenge::RVNGString MWAWPageSpan::m_masterName
| private

the page master name

## ◆ m_name

librevenge::RVNGString MWAWPageSpan::m_name
| private

the page name

## ◆ m_pageNumber

int MWAWPageSpan::m_pageNumber
| private

the page number ( or -1)

## ◆ m_pageSpan

int MWAWPageSpan::m_pageSpan
| private

the number of page

Referenced by MWAWParser::getPageSpan().

The documentation for this class was generated from the following files:

- MWAWPageSpan.hxx
- MWAWPageSpan.cxx