LibreOffice Module oox (master) 1
|
A simple shape object based on a specific UNO shape service. More...
#include <vmlshape.hxx>
Public Member Functions | |
SimpleShape (Drawing &rDrawing, OUString aService) | |
void | setService (const OUString &aService) |
Public Member Functions inherited from oox::vml::ShapeBase | |
ShapeModel & | getShapeModel () |
Returns read/write access to the shape model structure. More... | |
const ShapeModel & | getShapeModel () const |
Returns read access to the shape model structure. More... | |
const TextBox * | getTextBox () const |
Returns read access to the shape textbox. More... | |
const ClientData * | getClientData () const |
Returns read access to the shape client data structure. More... | |
virtual void | finalizeFragmentImport () |
Final processing after import of the drawing fragment. More... | |
OUString | getShapeName () const |
Returns the real shape name if existing, or a generated shape name. More... | |
virtual const ShapeType * | getChildTypeById (const OUString &rShapeId) const |
Returns the shape template with the passed identifier from the child shapes. More... | |
virtual const ShapeBase * | getChildById (const OUString &rShapeId) const |
Returns the shape with the passed identifier from the child shapes. More... | |
css::uno::Reference< css::drawing::XShape > | convertAndInsert (const css::uno::Reference< css::drawing::XShapes > &rxShapes, const ShapeParentAnchor *pParentAnchor=nullptr) const |
Creates the corresponding XShape and inserts it into the passed container. More... | |
void | convertFormatting (const css::uno::Reference< css::drawing::XShape > &rxShape) const |
Converts position and formatting into the passed existing XShape. More... | |
void | setContainer (ShapeContainer *pContainer) |
ShapeContainer * | getContainer () const |
Public Member Functions inherited from oox::vml::ShapeType | |
ShapeType (Drawing &rDrawing) | |
virtual | ~ShapeType () |
ShapeTypeModel & | getTypeModel () |
Returns read/write access to the shape template model structure. More... | |
const ShapeTypeModel & | getTypeModel () const |
Returns read access to the shape template model structure. More... | |
const OUString & | getShapeId () const |
Returns the shape identifier (which is unique through the containing drawing). More... | |
sal_Int32 | getShapeType () const |
Returns the application defined shape type. More... | |
OUString | getGraphicPath () const |
Returns the fragment path to the embedded graphic used by this shape. More... | |
const Drawing & | getDrawing () const |
Protected Member Functions | |
virtual css::uno::Reference< css::drawing::XShape > | implConvertAndInsert (const css::uno::Reference< css::drawing::XShapes > &rxShapes, const css::awt::Rectangle &rShapeRect) const override |
Creates the corresponding XShape and inserts it into the passed container. More... | |
virtual css::uno::Reference< css::drawing::XShape > | finalImplConvertAndInsert (const css::uno::Reference< css::drawing::XShape > &rxShape) const override |
Always called after implConvertAndInsert for the same task. More... | |
css::uno::Reference< css::drawing::XShape > | createEmbeddedPictureObject (const css::uno::Reference< css::drawing::XShapes > &rxShapes, const css::awt::Rectangle &rShapeRect, OUString const &rGraphicPath) const |
Used by both RectangleShape and ComplexShape. More... | |
css::uno::Reference< css::drawing::XShape > | createPictureObject (const css::uno::Reference< css::drawing::XShapes > &rxShapes, const css::awt::Rectangle &rShapeRect, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic) const |
Protected Member Functions inherited from oox::vml::ShapeBase | |
ShapeBase (Drawing &rDrawing) | |
virtual css::uno::Reference< css::drawing::XShape > | implConvertAndInsert (const css::uno::Reference< css::drawing::XShapes > &rxShapes, const css::awt::Rectangle &rShapeRect) const =0 |
Derived classes create the corresponding XShape and insert it into the passed container. More... | |
virtual css::uno::Reference< css::drawing::XShape > | finalImplConvertAndInsert (const css::uno::Reference< css::drawing::XShape > &rxShape) const |
Always called after implConvertAndInsert for the same task. More... | |
css::awt::Rectangle | calcShapeRectangle (const ShapeParentAnchor *pParentAnchor) const |
Calculates the final shape rectangle according to the passed anchor, if present, otherwise according to the own anchor settings. More... | |
void | convertShapeProperties (const css::uno::Reference< css::drawing::XShape > &rxShape) const |
Converts common shape properties such as formatting attributes. More... | |
Protected Member Functions inherited from oox::vml::ShapeType | |
css::awt::Rectangle | getCoordSystem () const |
Returns the coordinate system of this shape. More... | |
css::awt::Rectangle | getRectangle (const ShapeParentAnchor *pParentAnchor) const |
Returns the absolute shape rectangle according to the passed anchor. More... | |
virtual css::awt::Rectangle | getAbsRectangle () const |
Returns the absolute shape rectangle. More... | |
virtual css::awt::Rectangle | getRelRectangle () const |
Returns the rectangle relative to the parent coordinate system. More... | |
Private Attributes | |
OUString | maService |
Name of the UNO shape service. More... | |
Additional Inherited Members | |
Protected Attributes inherited from oox::vml::ShapeBase | |
ShapeModel | maShapeModel |
The model structure containing shape data. More... | |
ShapeContainer * | mpContainer = nullptr |
Protected Attributes inherited from oox::vml::ShapeType | |
Drawing & | mrDrawing |
The VML drawing page that contains this shape. More... | |
ShapeTypeModel | maTypeModel |
The model structure containing shape type data. More... | |
A simple shape object based on a specific UNO shape service.
Definition at line 309 of file vmlshape.hxx.
|
explicit |
Definition at line 574 of file vmlshape.cxx.
|
protected |
Used by both RectangleShape and ComplexShape.
Definition at line 940 of file vmlshape.cxx.
References createPictureObject(), oox::vml::Drawing::getFilter(), oox::core::FilterBase::getGraphicHelper(), oox::GraphicHelper::importEmbeddedGraphic(), and oox::vml::ShapeType::mrDrawing.
Referenced by oox::vml::RectangleShape::implConvertAndInsert(), and oox::vml::ComplexShape::implConvertAndInsert().
|
protected |
Definition at line 946 of file vmlshape.cxx.
References Any, oox::vml::Drawing::createAndInsertXShape(), oox::vml::ConversionHelper::decodeMeasureToHmm(), oox::vml::ConversionHelper::decodeRotation(), o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), oox::vml::Drawing::getFilter(), oox::core::FilterBase::getGraphicHelper(), oox::GraphicHelper::getOriginalSize(), oox::vml::lcl_SetAnchorType(), oox::vml::ShapeTypeModel::maPosition, oox::vml::ShapeTypeModel::maRotation, oox::vml::ShapeType::maTypeModel, oox::vml::ShapeTypeModel::maWrapDistanceBottom, oox::vml::ShapeTypeModel::maWrapDistanceLeft, oox::vml::ShapeTypeModel::maWrapDistanceRight, oox::vml::ShapeTypeModel::maWrapDistanceTop, oox::vml::ShapeTypeModel::mnBlacklevel, oox::vml::ShapeTypeModel::mnGain, oox::vml::ShapeTypeModel::moCropBottom, oox::vml::ShapeTypeModel::moCropLeft, oox::vml::ShapeTypeModel::moCropRight, oox::vml::ShapeTypeModel::moCropTop, oox::vml::ShapeType::mrDrawing, PROP_BottomMargin, PROP_GraphicColorMode, PROP_GraphicCrop, PROP_HoriOrientPosition, PROP_LeftMargin, PROP_Opaque, PROP_RightMargin, PROP_RotateAngle, PROP_TopMargin, PROP_VertOrientPosition, oox::PropertySet::setAnyProperty(), and oox::PropertySet::setProperty().
Referenced by createEmbeddedPictureObject(), and oox::vml::ComplexShape::implConvertAndInsert().
|
overrideprotectedvirtual |
Always called after implConvertAndInsert for the same task.
Reimplemented from oox::vml::ShapeBase.
Definition at line 912 of file vmlshape.cxx.
References oox::vml::ConversionHelper::decodeMeasureToHmm(), oox::vml::ShapeBase::finalImplConvertAndInsert(), oox::vml::Drawing::getFilter(), oox::core::FilterBase::getGraphicHelper(), oox::vml::ShapeBase::getTextBox(), oox::vml::ShapeTypeModel::maLayoutFlowAlt, oox::vml::ShapeTypeModel::maMarginLeft, oox::vml::ShapeTypeModel::maMarginTop, maService, oox::vml::ShapeBase::maShapeModel, oox::vml::ShapeType::maTypeModel, oox::vml::ShapeModel::mbInGroup, oox::vml::ShapeType::mrDrawing, PROP_HoriOrientPosition, PROP_TextWritingMode, PROP_VertOrientPosition, oox::PropertySet::setAnyProperty(), and oox::PropertySet::setProperty().
|
overrideprotectedvirtual |
Creates the corresponding XShape and inserts it into the passed container.
Implements oox::vml::ShapeBase.
Reimplemented in oox::vml::RectangleShape, oox::vml::PolyLineShape, oox::vml::LineShape, oox::vml::BezierShape, oox::vml::CustomShape, and oox::vml::ComplexShape.
Definition at line 695 of file vmlshape.cxx.
References Any, comphelper::containerToSequence(), oox::vml::TextBox::convert(), oox::vml::ShapeBase::convertShapeProperties(), oox::vml::Drawing::createAndInsertXShape(), oox::vml::ConversionHelper::decodeMeasureToHmm(), oox::vml::ConversionHelper::decodeRotation(), oox::vml::Drawing::getFilter(), oox::core::FilterBase::getGraphicHelper(), SdrObject::getSdrObjectFromXShape(), oox::vml::ShapeType::getShapeType(), oox::vml::ShapeBase::getTextBox(), o3tl::getToken(), oox::vml::lcl_SetAnchorType(), oox::vml::ShapeTypeModel::maAdjustments, oox::vml::ShapeTypeModel::maFlip, oox::vml::ShapeTypeModel::maHeightPercent, oox::vml::ShapeTypeModel::maHeightRelative, oox::vml::ShapeModel::maHyperlink, comphelper::makePropertyValue(), makeSdrTextAutoGrowHeightItem(), makeSdrTextAutoGrowWidthItem(), oox::vml::ShapeTypeModel::maLayoutFlowAlt, oox::vml::ShapeModel::maLegacyDiagramPath, oox::vml::ShapeTypeModel::maRotation, maService, oox::vml::ShapeBase::maShapeModel, oox::vml::ShapeType::maTypeModel, oox::vml::ShapeTypeModel::maVTextAnchor, oox::vml::ShapeTypeModel::maWidthPercent, oox::vml::ShapeTypeModel::maWidthRelative, oox::vml::ShapeTypeModel::maWrapDistanceBottom, oox::vml::ShapeTypeModel::maWrapDistanceLeft, oox::vml::ShapeTypeModel::maWrapDistanceRight, oox::vml::ShapeTypeModel::maWrapDistanceTop, oox::vml::ShapeTypeModel::maWrapStyle, oox::vml::ShapeTypeModel::mbAutoHeight, oox::vml::ShapeType::mrDrawing, mso_sptTextCanDown, mso_sptTextOnRing, mso_sptTextPlainText, mso_sptTextSimple, nIndex, nType, oox::core::FilterBase::openInputStream(), PROP_BottomBorderDistance, PROP_BottomMargin, PROP_HoriOrientPosition, PROP_HyperLinkURL, PROP_LeftBorderDistance, PROP_LeftMargin, PROP_RelativeHeight, PROP_RelativeWidth, PROP_RightBorderDistance, PROP_RightMargin, PROP_RotateAngle, PROP_SizeType, PROP_TextAutoGrowHeight, PROP_TextLeftDistance, PROP_TextLowerDistance, PROP_TextRightDistance, PROP_TextUpperDistance, PROP_TextVerticalAdjust, PROP_TextWordWrap, PROP_TopBorderDistance, PROP_TopMargin, PROP_VertOrientPosition, PROP_WritingMode, oox::PropertySet::setAnyProperty(), SdrObject::SetMergedItem(), oox::PropertySet::setProperty(), and o3tl::toInt32().
Referenced by oox::vml::RectangleShape::implConvertAndInsert(), oox::vml::PolyLineShape::implConvertAndInsert(), oox::vml::LineShape::implConvertAndInsert(), oox::vml::BezierShape::implConvertAndInsert(), and oox::vml::CustomShape::implConvertAndInsert().
|
inline |
Definition at line 314 of file vmlshape.hxx.
References maService.
Referenced by oox::vml::PolyLineShape::implConvertAndInsert(), and oox::vml::BezierShape::implConvertAndInsert().
|
private |
Name of the UNO shape service.
Definition at line 335 of file vmlshape.hxx.
Referenced by finalImplConvertAndInsert(), implConvertAndInsert(), and setService().