STOFFPosition Class Reference

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...
 

Detailed Description

Class to define the position of an object (textbox, picture, ..) in the document.

Stores the page, object position, object size, anchor, wrapping, ...

Member Enumeration Documentation

◆ AnchorTo

a list of enum used to defined the anchor

Enumerator
Cell 
Char 
CharBaseLine 
Frame 
Paragraph 
Page 
Unknown 

Constructor & Destructor Documentation

◆ STOFFPosition()

STOFFPosition::STOFFPosition ( )
inline

constructor

◆ ~STOFFPosition()

STOFFPosition::~STOFFPosition ( )
virtual

destructor

Member Function Documentation

◆ addTo()

void STOFFPosition::addTo ( librevenge::RVNGPropertyList &  propList) const
inline

add to the propList

Referenced by STOFFFrameStyle::addTo().

◆ operator!=()

bool STOFFPosition::operator!= ( STOFFPosition const &  f) const
inline

basic operator!=

◆ operator==()

bool STOFFPosition::operator== ( STOFFPosition const &  f) const
inline

basic operator==

Referenced by operator!=().

◆ setAnchor()

◆ setOrigin()

◆ setSize()

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
STOFFPosition const &  pos 
)
friend

operator<<

Member Data Documentation

◆ m_anchorTo

◆ m_offset

STOFFVec2f STOFFPosition::m_offset

internal: an offset used to retrieve the local position in a DrawingLayer

Referenced by operator==(), and StarObjectSmallGraphicInternal::SdrGraphicGroup::send().

◆ m_origin

STOFFVec2f STOFFPosition::m_origin

◆ m_propertyList

librevenge::RVNGPropertyList STOFFPosition::m_propertyList

◆ m_size


The documentation for this class was generated from the following files:

Generated on Mon Jan 20 2020 23:02:20 for libstaroffice by doxygen 1.8.16