34 #ifndef STOFF_POSITION_H 35 #define STOFF_POSITION_H 39 #include <librevenge/librevenge.h> 61 void addTo(librevenge::RVNGPropertyList &propList)
const 66 propList.insert(
"text:anchor-type",
"cell");
69 propList.insert(
"text:anchor-type",
"char");
72 propList.insert(
"text:anchor-type",
"as-char");
75 propList.insert(
"text:anchor-type",
"frame");
78 propList.insert(
"text:anchor-type",
"paragraph");
81 propList.insert(
"text:anchor-type",
"page");
88 for (i.rewind(); i.next();) {
90 STOFF_DEBUG_MSG((
"STOFFPosition::addTo: find unexpected property child\n"));
91 propList.insert(i.key(), *i.child());
94 propList.insert(i.key(), i()->clone());
123 o <<
"prop=[" << pos.
m_propertyList.getPropString().cstr() <<
"],";
void setSize(STOFFVec2f const &size, librevenge::RVNGUnit unit)
utility function to set a size
Definition: STOFFPosition.hxx:104
Definition: STOFFPosition.hxx:51
friend std::ostream & operator<<(std::ostream &o, STOFFPosition const &pos)
operator<<
Definition: STOFFPosition.hxx:121
bool operator==(STOFFPosition const &f) const
basic operator==
Definition: STOFFPosition.hxx:127
AnchorTo m_anchorTo
anchor position
Definition: STOFFPosition.hxx:138
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
Definition: STOFFPosition.hxx:51
Definition: STOFFPosition.hxx:51
Definition: STOFFPosition.hxx:51
virtual ~STOFFPosition()
destructor
Definition: STOFFPosition.cxx:36
Definition: STOFFPosition.hxx:51
T y() const
second element
Definition: libstaroffice_internal.hxx:597
T x() const
first element
Definition: libstaroffice_internal.hxx:592
Definition: STOFFPosition.hxx:51
AnchorTo
a list of enum used to defined the anchor
Definition: STOFFPosition.hxx:51
void setAnchor(AnchorTo anchor)
set the anchor
Definition: STOFFPosition.hxx:116
bool operator!=(STOFFPosition const &f) const
basic operator!=
Definition: STOFFPosition.hxx:132
void setOrigin(STOFFVec2f const &origin, librevenge::RVNGUnit unit)
utility function to set a origin
Definition: STOFFPosition.hxx:98
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFPosition.hxx:140
STOFFPosition()
constructor
Definition: STOFFPosition.hxx:55
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFPosition.hxx:61
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47
Definition: STOFFPosition.hxx:51