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 124 of file vmlshape.hxx.

Constructor & Destructor Documentation

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

Definition at line 150 of file vmlshape.cxx.

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

Definition at line 155 of file vmlshape.cxx.

Member Function Documentation

awt::Rectangle oox::vml::ShapeType::getAbsRectangle ( ) const
protectedvirtual
awt::Rectangle oox::vml::ShapeType::getCoordSystem ( ) const
protected
const Drawing& oox::vml::ShapeType::getDrawing ( ) const
inline

Definition at line 142 of file vmlshape.hxx.

Referenced by oox::vml::ShapeContext::onCreateContext().

OUString oox::vml::ShapeType::getGraphicPath ( ) const

Returns the fragment path to the embedded graphic used by this shape.

Definition at line 164 of file vmlshape.cxx.

References oox::OptValue< Type >::get(), maTypeModel, and oox::vml::ShapeTypeModel::moGraphicPath.

Referenced by oox::vml::RectangleShape::implConvertAndInsert(), and oox::vml::ComplexShape::implConvertAndInsert().

awt::Rectangle oox::vml::ShapeType::getRectangle ( const ShapeParentAnchor pParentAnchor) const
protected

Returns the absolute shape rectangle according to the passed anchor.

Definition at line 180 of file vmlshape.cxx.

References getAbsRectangle(), getRelRectangle(), oox::vml::ShapeParentAnchor::maCoordSys, and oox::vml::ShapeParentAnchor::maShapeRect.

Referenced by oox::vml::ShapeBase::calcShapeRectangle().

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

const OUString& oox::vml::ShapeType::getShapeId ( ) const
inline

Returns the shape identifier (which is unique through the containing drawing).

Definition at line 136 of file vmlshape.hxx.

Referenced by oox::vml::ShapeBase::getShapeName().

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

Returns read/write access to the shape template model structure.

Definition at line 131 of file vmlshape.hxx.

Referenced by oox::vml::ShapeBase::convertAndInsert(), and oox::vml::ShapeContext::onCreateContext().

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

Returns read access to the shape template model structure.

Definition at line 133 of file vmlshape.hxx.

Member Data Documentation

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

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