| 
    LibreOffice Module oox (master) 1
    
   | 
 
Contains the position of a shape in the chart object. More...
#include <chartdrawingfragment.hxx>
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, std::u16string_view 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... | |
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.
      
  | 
  explicit | 
Definition at line 43 of file chartdrawingfragment.cxx.
| EmuRectangle oox::drawingml::chart::ShapeAnchor::calcAnchorRectEmu | ( | const EmuRectangle & | rChartRect | ) | const | 
Calculates the resulting shape anchor in EMUs.
Definition at line 78 of file chartdrawingfragment.cxx.
References oox::drawingml::EmuSize::Height, oox::drawingml::chart::AnchorPosModel::isValid(), oox::drawingml::chart::AnchorSizeModel::isValid(), maFrom, maSize, maTo, mbRelSize, oox::drawingml::chart::AnchorPosModel::mfX, oox::drawingml::chart::AnchorPosModel::mfY, oox::drawingml::EmuRectangle::setSize(), oox::drawingml::EmuSize::Width, oox::drawingml::EmuPoint::X, and oox::drawingml::EmuPoint::Y.
| void oox::drawingml::chart::ShapeAnchor::importExt | ( | const AttributeList & | rAttribs | ) | 
Imports the absolute anchor size from the cdr:ext element.
Definition at line 48 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, | ||
| std::u16string_view | rValue | ||
| ) | 
Sets the relative anchor position from the cdr:from or cdr:to element.
Definition at line 55 of file chartdrawingfragment.cxx.
References from, maFrom, maTo, mbRelSize, oox::drawingml::chart::AnchorPosModel::mfX, oox::drawingml::chart::AnchorPosModel::mfY, to, o3tl::toDouble(), x, and y.
      
  | 
  private | 
Definition at line 65 of file chartdrawingfragment.hxx.
Referenced by calcAnchorRectEmu(), and setPos().
      
  | 
  private | 
Bottom-right position relative to chart object.
Definition at line 67 of file chartdrawingfragment.hxx.
Referenced by calcAnchorRectEmu(), and importExt().
      
  | 
  private | 
Top-left position relative to chart object.
Definition at line 66 of file chartdrawingfragment.hxx.
Referenced by calcAnchorRectEmu(), and setPos().
      
  | 
  private | 
Shape size, if anchor has absolute size.
Definition at line 68 of file chartdrawingfragment.hxx.
Referenced by calcAnchorRectEmu(), importExt(), and setPos().