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 More... | |
virtual | ~STOFFPosition () |
destructor More... | |
void | addTo (librevenge::RVNGPropertyList &propList) const |
add to the propList More... | |
void | setOrigin (STOFFVec2f const &origin) |
utility function to set a origin in point More... | |
void | setSize (STOFFVec2f const &size) |
utility function to set a size in point More... | |
void | setAnchor (AnchorTo anchor) |
set the anchor More... | |
bool | operator== (STOFFPosition const &f) const |
basic operator== More... | |
bool | operator!= (STOFFPosition const &f) const |
basic operator!= More... | |
Public Attributes | |
AnchorTo | m_anchorTo |
anchor position More... | |
STOFFVec2f | m_origin |
the origin in point More... | |
STOFFVec2f | m_size |
the size in point More... | |
STOFFVec2f | m_offset |
internal: an offset used to retrieve the local position in a DrawingLayer More... | |
librevenge::RVNGPropertyList | m_propertyList |
the property list More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, STOFFPosition 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, ...
|
inline |
constructor
|
virtual |
destructor
|
inline |
add to the propList
Referenced by STOFFFrameStyle::addTo().
|
inline |
basic operator!=
|
inline |
basic operator==
Referenced by operator!=().
|
inline |
set the anchor
Referenced by StarFrameAttribute::StarFAttributeAnchor::addTo(), SDGParser::parse(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
|
inline |
utility function to set a origin in point
Referenced by STOFFGraphicListener::openFooter(), STOFFGraphicListener::openHeader(), STOFFGraphicListener::openTable(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
|
inline |
utility function to set a size in point
Referenced by StarFrameAttribute::StarFAttributeFrameSize::addTo(), STOFFFrameStyle::getPosition(), STOFFOLEParser::readContents(), STOFFOLEParser::readCONTENTS(), STOFFOLEParser::readOlePres(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
|
friend |
operator<<
AnchorTo STOFFPosition::m_anchorTo |
anchor position
Referenced by addTo(), STOFFGraphicListener::insertShape(), STOFFTextListener::insertShape(), STOFFSpreadsheetListener::insertShape(), STOFFTextListener::openGroup(), operator==(), STOFFOLEParser::readContents(), STOFFOLEParser::readCONTENTS(), STOFFOLEParser::readOlePres(), StarObjectModel::sendPage(), StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone(), and setAnchor().
STOFFVec2f STOFFPosition::m_offset |
internal: an offset used to retrieve the local position in a DrawingLayer
Referenced by operator==(), and StarObjectSmallGraphicInternal::SdrGraphicGroup::send().
STOFFVec2f STOFFPosition::m_origin |
the origin in point
Referenced by operator==(), StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone(), and setOrigin().
librevenge::RVNGPropertyList STOFFPosition::m_propertyList |
the property list
Referenced by addTo(), StarFrameAttribute::StarFAttributeOrientation::addTo(), operator==(), StarObjectModel::sendPage(), setOrigin(), and setSize().
STOFFVec2f STOFFPosition::m_size |
the size in point
Referenced by StarFrameAttribute::StarFAttributeFrameSize::addTo(), STOFFFrameStyle::getPosition(), operator==(), StarTableInternal::Table::send(), setSize(), and StarTableInternal::TableBox::updatePosition().