LibreOffice Module oox (master) 1
|
A shape template contains all formatting properties of shapes and can serve as templates for several shapes in a drawing. More...
#include <vmlshape.hxx>
Public Member Functions | |
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 | |
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... | |
Protected Attributes | |
Drawing & | mrDrawing |
The VML drawing page that contains this shape. More... | |
ShapeTypeModel | maTypeModel |
The model structure containing shape type data. More... | |
A shape template contains all formatting properties of shapes and can serve as templates for several shapes in a drawing.
Definition at line 130 of file vmlshape.hxx.
|
explicit |
Definition at line 151 of file vmlshape.cxx.
|
virtual |
Definition at line 156 of file vmlshape.cxx.
|
protectedvirtual |
Returns the absolute shape rectangle.
Reimplemented in oox::vml::LineShape.
Definition at line 188 of file vmlshape.cxx.
References oox::vml::ConversionHelper::decodeMeasureToHmm(), oox::vml::Drawing::getFilter(), oox::core::FilterBase::getGraphicHelper(), oox::vml::ShapeTypeModel::maHeight, oox::vml::ShapeTypeModel::maLeft, oox::vml::ShapeTypeModel::maMarginLeft, oox::vml::ShapeTypeModel::maMarginTop, oox::vml::ShapeTypeModel::maPosition, oox::vml::ShapeTypeModel::maTop, maTypeModel, oox::vml::ShapeTypeModel::maWidth, mrDrawing, and SAL_WARN.
Referenced by getRectangle().
|
protected |
Returns the coordinate system of this shape.
Definition at line 170 of file vmlshape.cxx.
References maTypeModel, oox::vml::ShapeTypeModel::moCoordPos, and oox::vml::ShapeTypeModel::moCoordSize.
Referenced by oox::vml::PolyLineShape::implConvertAndInsert(), oox::vml::BezierShape::implConvertAndInsert(), and oox::vml::GroupShape::implConvertAndInsert().
|
inline |
Definition at line 148 of file vmlshape.hxx.
Referenced by oox::vml::ShapeContext::onCreateContext(), and oox::vml::ShapeContext::setPoints().
OUString oox::vml::ShapeType::getGraphicPath | ( | ) | const |
Returns the fragment path to the embedded graphic used by this shape.
Definition at line 165 of file vmlshape.cxx.
References maTypeModel, and oox::vml::ShapeTypeModel::moGraphicPath.
Referenced by oox::vml::RectangleShape::implConvertAndInsert(), and oox::vml::ComplexShape::implConvertAndInsert().
|
protected |
Returns the absolute shape rectangle according to the passed anchor.
Definition at line 181 of file vmlshape.cxx.
References getAbsRectangle(), getRelRectangle(), oox::vml::ShapeParentAnchor::maCoordSys, and oox::vml::ShapeParentAnchor::maShapeRect.
Referenced by oox::vml::ShapeBase::calcShapeRectangle().
|
protectedvirtual |
Returns the rectangle relative to the parent coordinate system.
Reimplemented in oox::vml::LineShape.
Definition at line 217 of file vmlshape.cxx.
References oox::vml::ShapeTypeModel::maHeight, oox::vml::ShapeTypeModel::maLeft, oox::vml::ShapeTypeModel::maTop, maTypeModel, and oox::vml::ShapeTypeModel::maWidth.
Referenced by getRectangle().
|
inline |
Returns the shape identifier (which is unique through the containing drawing).
Definition at line 142 of file vmlshape.hxx.
Referenced by oox::vml::ShapeBase::getShapeName().
sal_Int32 oox::vml::ShapeType::getShapeType | ( | ) | const |
Returns the application defined shape type.
Definition at line 160 of file vmlshape.cxx.
References maTypeModel, and oox::vml::ShapeTypeModel::moShapeType.
Referenced by oox::vml::SimpleShape::implConvertAndInsert(), oox::vml::CustomShape::implConvertAndInsert(), and oox::vml::ComplexShape::implConvertAndInsert().
|
inline |
Returns read/write access to the shape template model structure.
Definition at line 137 of file vmlshape.hxx.
Referenced by oox::vml::ShapeBase::convertAndInsert(), oox::vml::ShapeContext::onCreateContext(), and oox::vml::ShapeContext::setPoints().
|
inline |
Returns read access to the shape template model structure.
Definition at line 139 of file vmlshape.hxx.
|
protected |
The model structure containing shape type data.
Definition at line 162 of file vmlshape.hxx.
Referenced by oox::vml::ShapeBase::convertAndInsert(), oox::vml::ShapeBase::convertShapeProperties(), oox::vml::SimpleShape::createPictureObject(), oox::vml::SimpleShape::finalImplConvertAndInsert(), oox::vml::ShapeBase::finalizeFragmentImport(), getAbsRectangle(), getCoordSystem(), getGraphicPath(), getRelRectangle(), oox::vml::ShapeBase::getShapeName(), getShapeType(), oox::vml::SimpleShape::implConvertAndInsert(), oox::vml::RectangleShape::implConvertAndInsert(), oox::vml::LineShape::implConvertAndInsert(), oox::vml::BezierShape::implConvertAndInsert(), oox::vml::ComplexShape::implConvertAndInsert(), and oox::vml::GroupShape::implConvertAndInsert().
|
protected |
The VML drawing page that contains this shape.
Definition at line 161 of file vmlshape.hxx.
Referenced by oox::vml::ShapeBase::calcShapeRectangle(), oox::vml::ShapeBase::convertAndInsert(), oox::vml::ShapeBase::convertShapeProperties(), oox::vml::SimpleShape::createEmbeddedPictureObject(), oox::vml::SimpleShape::createPictureObject(), oox::vml::SimpleShape::finalImplConvertAndInsert(), oox::vml::ShapeBase::finalizeFragmentImport(), getAbsRectangle(), oox::vml::LineShape::getAbsRectangle(), oox::vml::ShapeBase::getShapeName(), oox::vml::SimpleShape::implConvertAndInsert(), oox::vml::BezierShape::implConvertAndInsert(), oox::vml::ComplexShape::implConvertAndInsert(), and oox::vml::GroupShape::implConvertAndInsert().