LibreOffice Module oox (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
oox::vml::ShapeType Class Reference

A shape template contains all formatting properties of shapes and can serve as templates for several shapes in a drawing. More...

#include <vmlshape.hxx>

Inheritance diagram for oox::vml::ShapeType:
[legend]
Collaboration diagram for oox::vml::ShapeType:
[legend]

Public Member Functions

 ShapeType (Drawing &rDrawing)
 
virtual ~ShapeType ()
 
ShapeTypeModelgetTypeModel ()
 Returns read/write access to the shape template model structure. More...
 
const ShapeTypeModelgetTypeModel () 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 DrawinggetDrawing () 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

DrawingmrDrawing
 The VML drawing page that contains this shape. More...
 
ShapeTypeModel maTypeModel
 The model structure containing shape type data. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ShapeType()

oox::vml::ShapeType::ShapeType ( Drawing rDrawing)
explicit

Definition at line 151 of file vmlshape.cxx.

◆ ~ShapeType()

oox::vml::ShapeType::~ShapeType ( )
virtual

Definition at line 156 of file vmlshape.cxx.

Member Function Documentation

◆ getAbsRectangle()

awt::Rectangle oox::vml::ShapeType::getAbsRectangle ( ) const
protectedvirtual

◆ getCoordSystem()

awt::Rectangle oox::vml::ShapeType::getCoordSystem ( ) const
protected

◆ getDrawing()

const Drawing & oox::vml::ShapeType::getDrawing ( ) const
inline

◆ getGraphicPath()

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().

◆ getRectangle()

awt::Rectangle oox::vml::ShapeType::getRectangle ( const ShapeParentAnchor pParentAnchor) const
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().

◆ getRelRectangle()

awt::Rectangle oox::vml::ShapeType::getRelRectangle ( ) const
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().

◆ getShapeId()

const OUString & oox::vml::ShapeType::getShapeId ( ) const
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().

◆ getShapeType()

sal_Int32 oox::vml::ShapeType::getShapeType ( ) const

◆ getTypeModel() [1/2]

ShapeTypeModel & oox::vml::ShapeType::getTypeModel ( )
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().

◆ getTypeModel() [2/2]

const ShapeTypeModel & oox::vml::ShapeType::getTypeModel ( ) const
inline

Returns read access to the shape template model structure.

Definition at line 139 of file vmlshape.hxx.

Member Data Documentation

◆ maTypeModel

ShapeTypeModel oox::vml::ShapeType::maTypeModel
protected

◆ mrDrawing

Drawing& oox::vml::ShapeType::mrDrawing
protected

The documentation for this class was generated from the following files: