20 #ifndef INCLUDED_OOX_DRAWINGML_CHART_CHARTDRAWINGFRAGMENT_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_CHARTDRAWINGFRAGMENT_HXX
36 bool isValid()
const {
return (0.0 <= mfX) && (mfX <= 1.0) && (0.0 <=
mfY) && (mfY <= 1.0); }
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 >
bool mbRelSize
Shape size, if anchor has absolute size.
::oox::drawingml::ShapePtr mxShape
Drawing page of this sheet.
virtual void onEndElement() override
Will be called when the current element is about to be left.
css::uno::Reference< css::drawing::XShapes > mxDrawPage
void importExt(const AttributeList &rAttribs)
Imports the absolute anchor size from the cdr:ext element.
bool mbOleSupport
Position and size of the chart object for embedded shapes (in EMUs).
EmuRectangle maChartRectEmu
Current anchor of top-level shape.
A structure for a size with 64-bit integer components.
AnchorSizeModel maSize
Bottom-right position relative to chart object.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Contains the position of a shape in the chart object.
double mfY
X coordinate relative to chart object (0.0 to 1.0).
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)
Provides access to attribute values of an element.
AnchorPosModel()
Y coordinate relative to chart object (0.0 to 1.0).
AnchorPosModel maTo
Top-left position relative to chart object.
virtual void onCharacters(const OUString &rChars) override
Will be called before a new child element starts, or if the current element is about to be left...
::rtl::Reference< ContextHandler > ContextHandlerRef
ShapeAnchor(bool bRelSize)
A structure for a rectangle with 64-bit integer components.
std::shared_ptr< ShapeAnchor > mxAnchor
Current top-level shape.
std::shared_ptr< Shape > ShapePtr
Handler for a chart drawing fragment (c:userShapes root element).
Relative shape position in a chart object.
EmuRectangle calcAnchorRectEmu(const EmuRectangle &rChartRect) const
Calculates the resulting shape anchor in EMUs.
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.
virtual ~ChartDrawingFragment() override
Absolute shape size in a chart object (in EMUs).