34 #ifndef STOFF_POSITION_H 35 #define STOFF_POSITION_H 39 #include <librevenge/librevenge.h> 59 void addTo(librevenge::RVNGPropertyList &propList)
const 62 for (i.rewind(); i.next();) {
64 STOFF_DEBUG_MSG((
"STOFFPosition::addTo: find unexpected property child\n"));
65 propList.insert(i.key(), *i.child());
68 propList.insert(i.key(), i()->clone());
92 o <<
"prop=[" << pos.
m_propertyList.getPropString().cstr() <<
"],";
void setSize(STOFFVec2f const &size, librevenge::RVNGUnit unit)
utility function to set a size
Definition: STOFFPosition.hxx:78
Definition: STOFFPosition.hxx:51
friend std::ostream & operator<<(std::ostream &o, STOFFPosition const &pos)
operator<<
Definition: STOFFPosition.hxx:90
bool operator==(STOFFPosition const &f) const
basic operator==
Definition: STOFFPosition.hxx:96
AnchorTo m_anchorTo
anchor position
Definition: STOFFPosition.hxx:107
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:127
Definition: STOFFPosition.hxx:51
Definition: STOFFPosition.hxx:51
Definition: STOFFPosition.hxx:51
Definition: STOFFPosition.hxx:51
T y() const
second element
Definition: libstaroffice_internal.hxx:593
virtual ~STOFFPosition()
destructor
Definition: STOFFPosition.hxx:57
T x() const
first element
Definition: libstaroffice_internal.hxx:588
Definition: STOFFPosition.hxx:51
AnchorTo
a list of enum used to defined the anchor
Definition: STOFFPosition.hxx:51
bool operator!=(STOFFPosition const &f) const
basic operator!=
Definition: STOFFPosition.hxx:101
void setOrigin(STOFFVec2f const &origin, librevenge::RVNGUnit unit)
utility function to set a origin
Definition: STOFFPosition.hxx:72
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFPosition.hxx:109
STOFFPosition()
constructor
Definition: STOFFPosition.hxx:55
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFPosition.hxx:59
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47