LibreOffice Module oox (master)  1
Public Member Functions | Private Attributes | List of all members
oox::drawingml::chart::ShapeAnchor Class Reference

Contains the position of a shape in the chart object. More...

#include <chartdrawingfragment.hxx>

Collaboration diagram for oox::drawingml::chart::ShapeAnchor:
[legend]

Public Member Functions

 ShapeAnchor (bool bRelSize)
 
void importExt (const AttributeList &rAttribs)
 Imports the absolute anchor size from the cdr:ext element. More...
 
void setPos (sal_Int32 nElement, sal_Int32 nParentContext, const OUString &rValue)
 Sets the relative anchor position from the cdr:from or cdr:to element. More...
 
EmuRectangle calcAnchorRectEmu (const EmuRectangle &rChartRect) const
 Calculates the resulting shape anchor in EMUs. More...
 

Private Attributes

AnchorPosModel maFrom
 
AnchorPosModel maTo
 Top-left position relative to chart object. More...
 
AnchorSizeModel maSize
 Bottom-right position relative to chart object. More...
 
bool mbRelSize
 Shape size, if anchor has absolute size. More...
 

Detailed Description

Contains the position of a shape in the chart object.

Supports different shape anchor modes (absolute, relative).

Definition at line 51 of file chartdrawingfragment.hxx.

Constructor & Destructor Documentation

oox::drawingml::chart::ShapeAnchor::ShapeAnchor ( bool  bRelSize)
explicit

Definition at line 42 of file chartdrawingfragment.cxx.

Member Function Documentation

EmuRectangle oox::drawingml::chart::ShapeAnchor::calcAnchorRectEmu ( const EmuRectangle rChartRect) const
void oox::drawingml::chart::ShapeAnchor::importExt ( const AttributeList rAttribs)

Imports the absolute anchor size from the cdr:ext element.

Definition at line 47 of file chartdrawingfragment.cxx.

References oox::AttributeList::getHyper(), oox::drawingml::EmuSize::Height, maSize, mbRelSize, and oox::drawingml::EmuSize::Width.

void oox::drawingml::chart::ShapeAnchor::setPos ( sal_Int32  nElement,
sal_Int32  nParentContext,
const OUString &  rValue 
)

Sets the relative anchor position from the cdr:from or cdr:to element.

Definition at line 54 of file chartdrawingfragment.cxx.

References from, maFrom, maTo, mbRelSize, oox::drawingml::chart::AnchorPosModel::mfX, oox::drawingml::chart::AnchorPosModel::mfY, to, x, and y.

Member Data Documentation

AnchorPosModel oox::drawingml::chart::ShapeAnchor::maFrom
private

Definition at line 65 of file chartdrawingfragment.hxx.

Referenced by calcAnchorRectEmu(), and setPos().

AnchorSizeModel oox::drawingml::chart::ShapeAnchor::maSize
private

Bottom-right position relative to chart object.

Definition at line 67 of file chartdrawingfragment.hxx.

Referenced by calcAnchorRectEmu(), and importExt().

AnchorPosModel oox::drawingml::chart::ShapeAnchor::maTo
private

Top-left position relative to chart object.

Definition at line 66 of file chartdrawingfragment.hxx.

Referenced by calcAnchorRectEmu(), and setPos().

bool oox::drawingml::chart::ShapeAnchor::mbRelSize
private

Shape size, if anchor has absolute size.

Definition at line 68 of file chartdrawingfragment.hxx.

Referenced by calcAnchorRectEmu(), importExt(), and setPos().


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