Class to define the position of an object (textbox, picture, ..) in the document. More...
#include <STOFFPosition.hxx>
Public Types | |
enum | AnchorTo { Cell, Char, CharBaseLine, Frame, Paragraph, Page, Unknown } |
a list of enum used to defined the anchor More... | |
Public Member Functions | |
STOFFPosition () | |
constructor | |
virtual | ~STOFFPosition () |
destructor | |
void | addTo (librevenge::RVNGPropertyList &propList) const |
add to the propList | |
void | setOrigin (STOFFVec2f const &origin, librevenge::RVNGUnit unit) |
utility function to set a origin | |
void | setSize (STOFFVec2f const &size, librevenge::RVNGUnit unit) |
utility function to set a size | |
void | setAnchor (AnchorTo anchor) |
set the anchor | |
bool | operator== (STOFFPosition const &f) const |
basic operator== | |
bool | operator!= (STOFFPosition const &f) const |
basic operator!= | |
Public Attributes | |
AnchorTo | m_anchorTo |
anchor position | |
librevenge::RVNGPropertyList | m_propertyList |
the property list | |
Friends | |
std::ostream & | operator<< (std::ostream &o, STOFFPosition const &pos) |
operator<< |
Class to define the position of an object (textbox, picture, ..) in the document.
Stores the page, object position, object size, anchor, wrapping, ...
STOFFPosition::STOFFPosition | ( | ) | [inline] |
constructor
STOFFPosition::~STOFFPosition | ( | ) | [virtual] |
destructor
void STOFFPosition::addTo | ( | librevenge::RVNGPropertyList & | propList | ) | const [inline] |
add to the propList
Referenced by STOFFTextListener::_handleFrameParameters(), STOFFSpreadsheetListener::_handleFrameParameters(), STOFFGraphicListener::_handleFrameParameters(), STOFFGraphicListener::insertShape(), STOFFTextListener::insertShape(), STOFFSpreadsheetListener::insertShape(), STOFFGraphicListener::openGroup(), and STOFFTextListener::openGroup().
bool STOFFPosition::operator!= | ( | STOFFPosition const & | f | ) | const [inline] |
basic operator!=
bool STOFFPosition::operator== | ( | STOFFPosition const & | f | ) | const [inline] |
basic operator==
Referenced by operator!=().
void STOFFPosition::setAnchor | ( | AnchorTo | anchor | ) | [inline] |
void STOFFPosition::setOrigin | ( | STOFFVec2f const & | origin, |
librevenge::RVNGUnit | unit | ||
) | [inline] |
utility function to set a origin
Referenced by STOFFGraphicListener::openFooter(), STOFFGraphicListener::openHeader(), STOFFGraphicListener::openTable(), SDGParser::parse(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
void STOFFPosition::setSize | ( | STOFFVec2f const & | size, |
librevenge::RVNGUnit | unit | ||
) | [inline] |
utility function to set a size
Referenced by STOFFGraphicListener::openFooter(), STOFFGraphicListener::openHeader(), STOFFGraphicListener::openTable(), SDGParser::parse(), STOFFOLEParser::readContents(), STOFFOLEParser::readCONTENTS(), STOFFOLEParser::readOlePres(), StarObjectTextInternal::GraphZone::send(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
std::ostream& operator<< | ( | std::ostream & | o, |
STOFFPosition const & | pos | ||
) | [friend] |
operator<<
anchor position
Referenced by addTo(), STOFFGraphicListener::insertShape(), STOFFTextListener::insertShape(), STOFFSpreadsheetListener::insertShape(), STOFFGraphicListener::openFooter(), STOFFSpreadsheetListener::openFrame(), STOFFTextListener::openFrame(), STOFFTextListener::openGroup(), STOFFGraphicListener::openHeader(), STOFFGraphicListener::openTable(), operator==(), STOFFOLEParser::readContents(), STOFFOLEParser::readCONTENTS(), STOFFOLEParser::readOlePres(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectModel::sendPage(), and setAnchor().
librevenge::RVNGPropertyList STOFFPosition::m_propertyList |
the property list
Referenced by addTo(), STOFFSpreadsheetListener::openFrame(), STOFFTextListener::openFrame(), operator==(), StarObjectModel::sendPage(), setOrigin(), and setSize().