45 const css::uno::Reference< css::drawing::XShape >& rxShape );
48 virtual void attachMacro(
const OUString& rMacroUrl )
override;
51 css::uno::Reference< css::drawing::XShape >
mxShape;
60 const char* pcServiceName );
65 const css::uno::Reference< css::drawing::XShapes >& rxShapes )
override;
75 const ::oox::core::FragmentHandler2& rParent,
77 const ::oox::drawingml::ShapePtr& rxParentShape,
78 const ::oox::drawingml::ShapePtr& rxShape );
80 static ::oox::core::ContextHandlerRef
86 const ::oox::drawingml::ShapePtr& rxParentShape,
90 virtual ::oox::core::ContextHandlerRef
93 const ::oox::AttributeList& rAttribs )
override;
102 const OUString& rFragmentPath );
106 virtual void onCharacters(
const OUString& rChars )
override;
111 css::uno::Reference< css::drawing::XShapes >
123 const css::uno::Reference< css::container::XIndexContainer >& rxCtrlFormIC,
124 sal_Int32 nCtrlIndex, sal_Int32 nCtrlType, sal_Int32 nDropStyle );
127 virtual void attachMacro(
const OUString& rMacroUrl )
override;
145 virtual bool isShapeSupported( const ::oox::vml::ShapeBase& rShape )
const override;
148 virtual OUString
getShapeBaseName( const ::oox::vml::ShapeBase& rShape )
const override;
152 css::awt::Rectangle& orShapeRect,
153 const OUString& rShapeAnchor )
const override;
156 virtual css::uno::Reference< css::drawing::XShape >
158 const ::oox::vml::ShapeBase& rShape,
159 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
160 const css::awt::Rectangle& rShapeRect )
const override;
164 const css::uno::Reference< css::drawing::XShape >& rxShape,
165 const css::awt::Rectangle& rShapeRect,
166 const ::oox::vml::ShapeBase& rShape,
bool bGroupChild )
override;
174 const ::oox::vml::TextFontModel& rFontModel )
const;
179 const ::oox::vml::TextBox* pTextBox, sal_Int32 nTextHAlign )
const;
183 const ::oox::vml::ShapeBase& rShape )
const;
195 const OUString& rFragmentPath );
VmlDrawingFragment(const WorksheetHelper &rHelper, const OUString &rFragmentPath)
virtual OUString getShapeBaseName(const ::oox::vml::ShapeBase &rShape) const override
Returns additional base names for automatic shape name creation.
css::uno::Reference< css::drawing::XShape > mxShape
::oox::ole::ControlConverter maControlConv
Shape(const WorksheetHelper &rHelper, const AttributeList &rAttribs, const char *pcServiceName)
virtual bool isShapeSupported(const ::oox::vml::ShapeBase &rShape) const override
Filters cell note shapes.
Context handler for creation of shapes embedded in group shapes.
Fragment handler for a complete sheet drawing.
ShapeMacroAttacher(const OUString &rMacroName, const css::uno::Reference< css::drawing::XShape > &rxShape)
::oox::core::ContextHandlerRef createShapeContext(::oox::core::FragmentHandler2 &rParent, const WorksheetHelper &rHelper, sal_Int32 nElement, const AttributeList &rAttribs, const ::oox::drawingml::ShapePtr &rxParentShape,::oox::drawingml::ShapePtr *pxShape=nullptr)
virtual void finalizeXShape(::oox::core::XmlFilterBase &rFilter, const css::uno::Reference< css::drawing::XShapes > &rxShapes) override
virtual bool convertClientAnchor(css::awt::Rectangle &orShapeRect, const OUString &rShapeAnchor) const override
Calculates the shape rectangle from a cell anchor string.
const ::oox::vml::ShapeBase * getNoteShape(const ScAddress &rPos) const
Returns the drawing shape for a cell note at the specified position.
::oox::drawingml::ShapePtr mxShape
Drawing page of this sheet.
::std::unique_ptr< ShapeAnchor > ShapeAnchorRef
virtual void onEndElement() override
virtual void finalizeImport() override
css::uno::Reference< css::drawing::XShapes > mxDrawPage
virtual css::uno::Reference< css::drawing::XShape > createAndInsertClientXShape(const ::oox::vml::ShapeBase &rShape, const css::uno::Reference< css::drawing::XShapes > &rxShapes, const css::awt::Rectangle &rShapeRect) const override
Creates a UNO control shape for legacy drawing controls.
css::uno::Reference< css::container::XIndexContainer > mxCtrlFormIC
DrawingFragment(const WorksheetHelper &rHelper, const OUString &rFragmentPath)
virtual void attachMacro(const OUString &rMacroUrl) override
Fragment handler derived from the WorksheetHelper helper class.
virtual void notifyXShapeInserted(const css::uno::Reference< css::drawing::XShape > &rxShape, const css::awt::Rectangle &rShapeRect, const ::oox::vml::ShapeBase &rShape, bool bGroupChild) override
Updates the bounding box covering all shapes of this drawing.
void convertControlBackground(::oox::ole::AxMorphDataModelBase &rAxModel, const ::oox::vml::ShapeBase &rShape) const
Converts the passed VML shape background formatting to ActiveX control formatting.
void convertControlText(::oox::ole::AxFontData &rAxFontData, sal_uInt32 &rnOleTextColor, OUString &rCaption, const ::oox::vml::TextBox *pTextBox, sal_Int32 nTextHAlign) const
Converts the caption, the font settings, and the horizontal alignment from the passed VML textbox to ...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
VmlControlMacroAttacher(const OUString &rMacroName, const css::uno::Reference< css::container::XIndexContainer > &rxCtrlFormIC, sal_Int32 nCtrlIndex, sal_Int32 nCtrlType, sal_Int32 nDropStyle)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
GroupShapeContext(const ::oox::core::FragmentHandler2 &rParent, const WorksheetHelper &rHelper, const ::oox::drawingml::ShapePtr &rxParentShape, const ::oox::drawingml::ShapePtr &rxShape)
void convertControlFontData(::oox::ole::AxFontData &rAxFontData, sal_uInt32 &rnOleTextColor, const ::oox::vml::TextFontModel &rFontModel) const
Converts the passed VML textbox font to an ActiveX form control font.
std::shared_ptr< Shape > ShapePtr
::oox::vml::TextFontModel maListBoxFont
VmlDrawing(const WorksheetHelper &rHelper)
ShapeAnchorRef mxAnchor
Current top-level shape.
virtual void onCharacters(const OUString &rChars) override
sal_uInt32 convertControlTextColor(const OUString &rTextColor) const
Converts the passed VML textbox text color to an OLE color.
virtual void attachMacro(const OUString &rMacroUrl) override