Class to define the position of an object (textbox, picture, ..) in the document. More...
#include <MWAWPosition.hxx>
| Public Types | |
| enum | AnchorTo { Char, CharBaseLine, Frame, Paragraph, Page, Cell, Unknown } | 
| a list of enum used to defined the anchor  More... | |
| enum | Wrapping { WNone, WBackground, WDynamic, WForeground, WParallel, WRunThrough } | 
| an enum used to define the wrapping: none, ...  More... | |
| enum | XPos { XRight, XLeft, XCenter, XFull } | 
| an enum used to define the relative X position  More... | |
| enum | YPos { YTop, YBottom, YCenter, YFull } | 
| an enum used to define the relative Y position  More... | |
| Public Member Functions | |
| MWAWPosition (MWAWVec2f const &orig=MWAWVec2f(), MWAWVec2f const &sz=MWAWVec2f(), librevenge::RVNGUnit theUnit=librevenge::RVNG_INCH) | |
| constructor  More... | |
| MWAWPosition (MWAWPosition const &)=default | |
| MWAWPosition & | operator= (MWAWPosition const &)=default | 
| ~MWAWPosition () | |
| destructor  More... | |
| bool | operator== (MWAWPosition const &f) const | 
| basic operator==  More... | |
| bool | operator!= (MWAWPosition const &f) const | 
| basic operator!=  More... | |
| bool | operator< (MWAWPosition const &f) const | 
| basic operator<  More... | |
| int | page () const | 
| returns the frame page  More... | |
| MWAWVec2f const & | origin () const | 
| return the frame origin  More... | |
| MWAWVec2f const & | size () const | 
| returns the frame size  More... | |
| MWAWVec2f const & | naturalSize () const | 
| returns the natural size (if known)  More... | |
| MWAWVec2f const & | leftTopClipping () const | 
| returns the left top clipping  More... | |
| MWAWVec2f const & | rightBottomClipping () const | 
| returns the right bottom clipping  More... | |
| librevenge::RVNGUnit | unit () const | 
| returns the unit  More... | |
| float | getInvUnitScale (librevenge::RVNGUnit fromUnit) const | 
| returns a float which can be used to scale some data in object unit  More... | |
| void | setPage (int pg) const | 
| sets the page  More... | |
| void | setOrigin (MWAWVec2f const &orig) | 
| sets the frame origin  More... | |
| void | setSize (MWAWVec2f const &sz) | 
| sets the frame size  More... | |
| void | setNaturalSize (MWAWVec2f const &naturalSz) | 
| sets the natural size (if known)  More... | |
| void | setUnit (librevenge::RVNGUnit newUnit) | 
| sets the dimension unit  More... | |
| void | setPagePos (int pg, MWAWVec2f const &newOrig) const | 
| sets/resets the page and the origin  More... | |
| void | setRelativePosition (AnchorTo anchor, XPos X=XLeft, YPos Y=YTop) | 
| sets the relative position  More... | |
| void | setAnchorToCell (librevenge::RVNGString const &cellName) | 
| sets the anchor to a cell position  More... | |
| void | setClippingPosition (MWAWVec2f lTop, MWAWVec2f rBottom) | 
| sets the clipping position  More... | |
| int | order () const | 
| returns background/foward order  More... | |
| void | setOrder (int ord) const | 
| set background/foward order  More... | |
| Static Public Member Functions | |
| static float | getScaleFactor (librevenge::RVNGUnit orig, librevenge::RVNGUnit dest) | 
| Public Attributes | |
| AnchorTo | m_anchorTo | 
| anchor position  More... | |
| librevenge::RVNGString | m_anchorCellName | 
| the anchor cell name  More... | |
| XPos | m_xPos | 
| X relative position.  More... | |
| YPos | m_yPos | 
| Y relative position.  More... | |
| Wrapping | m_wrapping | 
| Wrapping.  More... | |
| Protected Member Functions | |
| int | cmp (MWAWPosition const &f) const | 
| basic function to compare two positions  More... | |
| Protected Attributes | |
| int | m_page | 
| the page  More... | |
| MWAWVec2f | m_orig | 
| the origin position in a page  More... | |
| MWAWVec2f | m_size | 
| MWAWVec2f | m_naturalSize | 
| the natural size of the data (if known)  More... | |
| MWAWVec2f | m_LTClip | 
| the left top clip position  More... | |
| MWAWVec2f | m_RBClip | 
| librevenge::RVNGUnit | m_unit | 
| the unit used in orig, in m_size and in m_LTClip , .... Default: in inches  More... | |
| int | m_order | 
| background/foward order  More... | |
| Friends | |
| std::ostream & | operator<< (std::ostream &o, MWAWPosition const &pos) | 
| operator<<  More... | |
Class to define the position of an object (textbox, picture, ..) in the document.
Stores the page, object position, object size, anchor, wrapping, ...
| enum MWAWPosition::XPos | 
| enum MWAWPosition::YPos | 
| 
 | inlineexplicit | 
constructor
| 
 | default | 
| MWAWPosition::~MWAWPosition | ( | ) | 
destructor
| 
 | inlineprotected | 
basic function to compare two positions
Referenced by operator!=(), operator<(), and operator==().
| 
 | inline | 
returns a float which can be used to scale some data in object unit
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), MWAWPresentationListener::insertShape(), MWAWGraphicListener::insertShape(), MWAWPresentationListener::insertSlideNote(), MWAWPresentationListener::insertTextBox(), MWAWGraphicListener::insertTextBox(), and MWAWOLEParser::parse().
| 
 | inlinestatic | 
| 
 | inline | 
returns the left top clipping
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), and MWAWSpreadsheetListener::_handleFrameParameters().
| 
 | inline | 
returns the natural size (if known)
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), and MWAWOLEParser::parse().
| 
 | inline | 
basic operator!=
| 
 | inline | 
basic operator<
| 
 | default | 
| 
 | inline | 
basic operator==
| 
 | inline | 
returns background/foward order
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), MWAWGraphicListener::insertShape(), and ClarisDrawGraph::sendShape().
| 
 | inline | 
return the frame origin
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), MWAWPresentationListener::insertHeader(), MWAWGraphicListener::insertHeader(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), MWAWTextListener::insertShape(), MWAWPresentationListener::insertShape(), MWAWGraphicListener::insertShape(), MWAWSpreadsheetListener::insertShape(), MWAWPresentationListener::insertSlideNote(), MWAWPresentationListener::insertTextBox(), MWAWGraphicListener::insertTextBox(), MsWksGraph::send(), RagTimeParser::sendBasicPicture(), MsWksTable::sendChart(), WingzGraph::sendGraphic(), ClarisDrawGraph::sendGroup(), ClarisWksGraph::sendGroup(), GreatWksGraph::sendGroupChild(), ClarisWksGraph::sendGroupChild(), HanMacWrdKGraph::sendGroupChild(), HanMacWrdJGraph::sendGroupChild(), MsWksGraph::sendGroupChild(), ClarisDrawGraph::sendMainGroupChild(), NisusWrtGraph::sendPicture(), MsWrdParser::sendPicture(), WingzGraph::sendShape(), GreatWksGraph::sendShape(), ClarisDrawGraph::sendShape(), ClarisWksGraph::sendShape(), and GreatWksGraph::sendTextbox().
| 
 | inline | 
returns the frame page
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), cmp(), and MsWks4ZoneInternal::operator<<().
| 
 | inline | 
returns the right bottom clipping
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), and MWAWSpreadsheetListener::_handleFrameParameters().
| 
 | inline | 
sets the anchor to a cell position
Referenced by RagTime5Spreadsheet::send().
sets the clipping position
Referenced by NisusWrtGraph::sendPicture(), and NisusWrtText::sendText().
| 
 | inline | 
sets the natural size (if known)
Referenced by MWAWOLEParser::parse(), MWAWOLEParser::readContents(), MWAWOLEParser::readCONTENTS(), MacWrtParser::readGraphic(), WriterPlsParser::readGraphic(), MWAWOLEParser::readOlePres(), WriteNowText::readTokenV2(), FullWrtGraph::sendGraphic(), WriteNowParser::sendPicture(), and MacWrtProParser::sendPicture().
| 
 | inline | 
set background/foward order
Referenced by MsWksGraphInternal::Zone::getPosition(), RagTime5Graph::send(), HanMacWrdKGraph::sendEmptyPicture(), HanMacWrdJGraph::sendEmptyPicture(), WingzGraph::sendGraphic(), ClarisWksGraph::sendGroup(), and ClarisDrawGraph::sendShape().
| 
 | inline | 
sets the frame origin
Referenced by MsWksGraph::send(), RagTime5Graph::send(), MsWksTable::sendChart(), HanMacWrdKGraph::sendFrame(), HanMacWrdJGraph::sendFrame(), ClarisWksGraph::sendGroup(), GreatWksGraph::sendGroupChild(), ClarisWksGraph::sendGroupChild(), HanMacWrdKGraph::sendGroupChild(), HanMacWrdJGraph::sendGroupChild(), MsWksGraph::sendGroupChild(), NisusWrtGraph::sendPicture(), MsWrdParser::sendPicture(), MacWrtProParser::sendPicture(), GreatWksGraph::sendShape(), ClarisDrawGraph::sendShape(), and ClarisWksGraph::sendShape().
| 
 | inline | 
sets the page
Referenced by MsWks4ZoneInternal::Frame::Frame(), MsWksGraphInternal::Zone::getPosition(), MacWrtProStructuresInternal::Block::getPosition(), MsWks4Zone::readFRAM(), MacWrtParser::readInformations(), MacWrtParser::readInformationsV3(), RagTime5Layout::sendPageContents(), SuperPaintParser::sendPictures(), BeagleWksDRParser::sendPictures(), and FullWrtGraph::sendSideBar().
| 
 | inline | 
sets/resets the page and the origin
Referenced by BeagleWksDBParser::sendFrame(), BeagleWksSSParser::sendFrame(), BeagleWksBMParser::sendFrame(), BeagleWksParser::sendFrame(), BeagleWksDRParser::sendFrame(), ClarisWksGraph::sendGroup(), and BeagleWksSSParser::sendSpreadsheet().
sets the relative position
Referenced by ClarisDrawParser::createDocument(), MarinerWrtGraph::flushExtra(), NisusWrtGraph::flushExtra(), HanMacWrdKGraph::flushExtra(), HanMacWrdJGraph::flushExtra(), ClarisDrawGraph::flushExtra(), ClarisWksGraph::flushExtra(), MsWksGraphInternal::Zone::getPosition(), MacWrtProStructuresInternal::Block::getPosition(), CorelPainterParser::getZonePosition(), ClarisDrawParser::parse(), ClarisWksBMParser::parse(), MsWksGraphInternal::SubDocument::parse(), MWAWOLEParser::readContents(), MWAWOLEParser::readCONTENTS(), MindWrtParser::readGraphic(), MacWrtParser::readGraphic(), WriterPlsParser::readGraphic(), MWAWOLEParser::readOlePres(), WriteNowText::readTokenV2(), MacPaintParser::sendBitmap(), PixelPaintParser::sendBitmap(), BeagleWksBMParser::sendBitmap(), SuperPaintParser::sendBitmap(), MsWksTable::sendChart(), HanMacWrdKGraph::sendEmptyPicture(), HanMacWrdJGraph::sendEmptyPicture(), MWAWTable::sendExtraLines(), BeagleWksDBParser::sendFrame(), BeagleWksSSParser::sendFrame(), BeagleWksBMParser::sendFrame(), BeagleWksParser::sendFrame(), BeagleWksDRParser::sendFrame(), GreatWksGraph::sendFrame(), ActaText::sendGraphic(), FullWrtGraph::sendGraphic(), ClarisWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), LightWayTxtGraph::sendJPEG(), MsWksGraph::sendObjects(), ClarisWksGraph::sendPageChild(), NisusWrtGraph::sendPageGraphics(), HanMacWrdKGraph::sendPageGraphics(), HanMacWrdJGraph::sendPageGraphics(), LightWayTxtGraph::sendPICT(), GreatWksBMParser::sendPicture(), MacDocParser::sendPicture(), EDocParser::sendPicture(), NisusWrtGraph::sendPicture(), TeachTxtParser::sendPicture(), DocMkrParser::sendPicture(), MarinerWrtGraph::sendPicture(), StyleParser::sendPicture(), WriteNowParser::sendPicture(), MsWrdParser::sendPicture(), MarinerWrtGraph::sendRule(), BeagleWksSSParser::sendSpreadsheet(), NisusWrtText::sendText(), ClarisWksText::sendText(), MacWrtProParser::sendText(), GreatWksText::sendZone(), HanMacWrdJParser::sendZone(), and HanMacWrdKParser::sendZone().
| 
 | inline | 
sets the frame size
Referenced by MWAWOLEParser::readContents(), RagTime5Graph::send(), ClarisDrawGraph::sendBitmap(), ClarisWksGraph::sendBitmap(), MsWksTable::sendChart(), ClarisWksGraph::sendGroup(), MsWksGraph::sendGroup(), GreatWksGraph::sendGroupChild(), ClarisWksGraph::sendGroupChild(), HanMacWrdKGraph::sendGroupChild(), HanMacWrdJGraph::sendGroupChild(), MsWksGraph::sendGroupChild(), LightWayTxtGraph::sendJPEG(), NisusWrtGraph::sendPicture(), MsWrdParser::sendPicture(), MacWrtProParser::sendPicture(), ClarisWksGraph::sendPicture(), MarinerWrtGraph::sendPSZone(), GreatWksGraph::sendShape(), ClarisDrawGraph::sendShape(), ClarisWksGraph::sendShape(), and GreatWksGraph::sendTextbox().
| 
 | inline | 
sets the dimension unit
Referenced by MWAWOLEParser::readContents(), MWAWOLEParser::readCONTENTS(), MWAWOLEParser::readOlePres(), RagTime5Graph::send(), ClarisWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), LightWayTxtGraph::sendJPEG(), and MacWrtProParser::sendPicture().
| 
 | inline | 
returns the frame size
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), MWAWTextListener::insertPicture(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), MWAWSpreadsheetListener::insertPicture(), MWAWTextListener::insertShape(), MWAWSpreadsheetListener::insertShape(), MWAWPresentationListener::insertTextBox(), MWAWGraphicListener::insertTextBox(), RagTime5Spreadsheet::send(), MsWksGraph::send(), RagTimeSpreadsheet::send(), ClarisDrawGraph::sendBitmap(), ClarisWksGraph::sendBitmap(), MsWksTable::sendChart(), HanMacWrdKGraph::sendEmptyPicture(), HanMacWrdJGraph::sendEmptyPicture(), WingzGraph::sendGraphic(), ClarisWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), NisusWrtGraph::sendPicture(), MacWrtProParser::sendPicture(), ClarisWksGraph::sendPicture(), MarinerWrtGraph::sendPSZone(), WingzGraph::sendShape(), GreatWksGraph::sendShape(), ClarisDrawGraph::sendShape(), ClarisWksGraph::sendShape(), and GreatWksGraph::sendTextbox().
| 
 | inline | 
returns the unit
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), MWAWTextListener::insertPicture(), MWAWSpreadsheetListener::insertPicture(), MWAWTextListener::insertShape(), MWAWSpreadsheetListener::insertShape(), and MWAWOLEParser::parse().
| 
 | friend | 
operator<<
| librevenge::RVNGString MWAWPosition::m_anchorCellName | 
| AnchorTo MWAWPosition::m_anchorTo | 
anchor position
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), cmp(), RagTime5Graph::flushExtra(), RagTime5Spreadsheet::flushExtra(), RagTimeSpreadsheet::flushExtra(), MsWksGraph::flushExtra(), RagTimeParser::flushExtra(), MWAWPresentationListener::insertFooter(), MWAWGraphicListener::insertFooter(), MWAWPresentationListener::insertHeader(), MWAWGraphicListener::insertHeader(), MWAWSpreadsheetListener::insertPicture(), MWAWTextListener::insertShape(), MWAWSpreadsheetListener::insertShape(), MWAWSpreadsheetListener::insertTextBox(), MWAWTextListener::openFrame(), MWAWSpreadsheetListener::openFrame(), MWAWTextListener::openGroup(), MWAWSpreadsheetListener::openGroup(), MWAWPresentationListener::openTable(), MWAWGraphicListener::openTable(), CricketDrawParser::send(), MacDraft5Parser::send(), MacDrawParser::send(), RagTime5Spreadsheet::send(), MsWksGraph::send(), MacDraftParser::send(), RagTimeParser::send(), MacDrawProParser::send(), CricketDrawParser::sendAll(), MsWksGraph::sendAll(), CricketDrawParser::sendBitmap(), ClarisDrawGraph::sendBitmap(), ClarisWksGraph::sendBitmap(), RagTime5ClusterManager::sendClusterMainList(), ClarisWksDatabase::sendDatabase(), HanMacWrdKGraph::sendEmptyPicture(), HanMacWrdJGraph::sendEmptyPicture(), PowerPoint7Graph::sendFrame(), PowerPoint1Parser::sendFrame(), HanMacWrdJGraph::sendFrame(), HanMacWrdKGraph::sendFrame(), PowerPoint3Parser::sendFrame(), WingzGraph::sendGraphic(), ClarisDrawGraph::sendGroup(), GreatWksGraph::sendGroup(), FreeHandParser::sendGroup(), ClarisWksGraph::sendGroup(), HanMacWrdKGraph::sendGroup(), HanMacWrdJGraph::sendGroup(), MsWksGraph::sendGroup(), GreatWksGraph::sendGroupChild(), ClarisWksGraph::sendGroupChild(), HanMacWrdKGraph::sendGroupChild(), HanMacWrdJGraph::sendGroupChild(), MsWksGraph::sendGroupChild(), MindWrtParser::sendHeaderFooter(), ClarisDrawGraph::sendMainGroupChild(), MouseWrtParser::sendMainZone(), MsWksGraph::sendObjects(), RagTime5Layout::sendPageContents(), WingzGraph::sendPageGraphics(), NisusWrtGraph::sendPicture(), FreeHandParser::sendPicture(), MarinerWrtGraph::sendRule(), FreeHandParser::sendShape(), PowerPoint7Graph::sendSlide(), PowerPoint1Parser::sendSlide(), PowerPoint3Parser::sendSlides(), MoreText::sendText(), FreeHandParser::sendTextbox(), GreatWksGraph::sendTextboxAsGraphic(), ClarisWksPresentation::sendZone(), ClarisWksDocument::sendZone(), setAnchorToCell(), setRelativePosition(), and ApplePictParserInternal::State::updatePosition().
| 
 | protected | 
the left top clip position
Referenced by cmp(), leftTopClipping(), and setClippingPosition().
| 
 | protected | 
the natural size of the data (if known)
Referenced by cmp(), naturalSize(), and setNaturalSize().
| 
 | mutableprotected | 
background/foward order
Referenced by order(), and setOrder().
| 
 | protected | 
the origin position in a page
Referenced by cmp(), origin(), and setOrigin().
| 
 | protected | 
the page
Referenced by page().
| 
 | protected | 
Referenced by cmp(), rightBottomClipping(), and setClippingPosition().
| 
 | protected | 
the unit used in orig, in m_size and in m_LTClip , .... Default: in inches
Referenced by cmp(), getInvUnitScale(), setUnit(), and unit().
| Wrapping MWAWPosition::m_wrapping | 
Wrapping.
Referenced by MWAWTextListener::_handleFrameParameters(), MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWSpreadsheetListener::_handleFrameParameters(), MsWksGraphInternal::Zone::getPosition(), MacWrtProStructuresInternal::Block::getPosition(), MsWksGraph::send(), RagTime5Graph::send(), BeagleWksDBParser::sendFrame(), BeagleWksSSParser::sendFrame(), BeagleWksBMParser::sendFrame(), BeagleWksParser::sendFrame(), BeagleWksDRParser::sendFrame(), ClarisWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), MindWrtParser::sendHeaderFooter(), MsWksGraph::sendObjects(), NisusWrtGraph::sendPicture(), TeachTxtParser::sendPicture(), DocMkrParser::sendPicture(), MsWrdParser::sendPicture(), and NisusWrtText::sendText().
| XPos MWAWPosition::m_xPos | 
| YPos MWAWPosition::m_yPos |