20#ifndef INCLUDED_OOX_DRAWINGML_CHART_CHARTDRAWINGFRAGMENT_HXX
21#define INCLUDED_OOX_DRAWINGML_CHART_CHARTDRAWINGFRAGMENT_HXX
59 void setPos( sal_Int32 nElement, sal_Int32 nParentContext, std::u16string_view rValue );
78 const OUString& rFragmentPath,
79 const css::uno::Reference< css::drawing::XShapes >& rxDrawPage,
80 const css::awt::Size& rChartSize,
81 const css::awt::Point& rShapesOffset,
86 virtual void onCharacters(
const OUString& rChars )
override;
90 css::uno::Reference< css::drawing::XShapes >
Provides access to attribute values of an element.
Handler for a chart drawing fragment (c:userShapes root element).
std::shared_ptr< ShapeAnchor > mxAnchor
Current top-level shape.
::oox::drawingml::ShapePtr mxShape
Drawing page of this sheet.
css::uno::Reference< css::drawing::XShapes > mxDrawPage
virtual void onCharacters(const OUString &rChars) override
virtual ~ChartDrawingFragment() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onEndElement() override
bool mbOleSupport
Position and size of the chart object for embedded shapes (in EMUs).
ChartDrawingFragment(::oox::core::XmlFilterBase &rFilter, const OUString &rFragmentPath, const css::uno::Reference< css::drawing::XShapes > &rxDrawPage, const css::awt::Size &rChartSize, const css::awt::Point &rShapesOffset, bool bOleSupport)
EmuRectangle maChartRectEmu
Current anchor of top-level shape.
Contains the position of a shape in the chart object.
EmuRectangle calcAnchorRectEmu(const EmuRectangle &rChartRect) const
Calculates the resulting shape anchor in EMUs.
ShapeAnchor(bool bRelSize)
void importExt(const AttributeList &rAttribs)
Imports the absolute anchor size from the cdr:ext element.
AnchorSizeModel maSize
Bottom-right position relative to chart object.
bool mbRelSize
Shape size, if anchor has absolute size.
AnchorPosModel maTo
Top-left position relative to chart object.
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.
::rtl::Reference< ContextHandler > ContextHandlerRef
std::shared_ptr< Shape > ShapePtr
A structure for a rectangle with 64-bit integer components.
A structure for a size with 64-bit integer components.
Relative shape position in a chart object.
double mfY
X coordinate relative to chart object (0.0 to 1.0).
AnchorPosModel()
Y coordinate relative to chart object (0.0 to 1.0).
Absolute shape size in a chart object (in EMUs).