LibreOffice Module oox (master)  1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
oox::drawingml::Shape Class Reference

#include <shape.hxx>

Inheritance diagram for oox::drawingml::Shape:
[legend]
Collaboration diagram for oox::drawingml::Shape:
[legend]

Public Member Functions

 Shape (const char *pServiceType=nullptr, bool bDefaultHeight=true)
 
 Shape (const ShapePtr &pSourceShape)
 
virtual ~Shape ()
 
OUString & getServiceName ()
 
void setServiceName (const char *pServiceName)
 
PropertyMapgetShapeProperties ()
 
LinePropertiesgetLineProperties ()
 
const LinePropertiesgetLineProperties () const
 
FillPropertiesgetFillProperties ()
 
const FillPropertiesgetFillProperties () const
 
GraphicPropertiesgetGraphicProperties ()
 
const GraphicPropertiesgetGraphicProperties () const
 
CustomShapePropertiesPtrgetCustomShapeProperties ()
 
Shape3DPropertiesget3DProperties ()
 
const Shape3DPropertiesget3DProperties () const
 
table::TablePropertiesPtr const & getTableProperties ()
 
EffectPropertiesgetEffectProperties () const
 
void setChildPosition (css::awt::Point nPosition)
 
void setChildSize (css::awt::Size aSize)
 
void setPosition (css::awt::Point nPosition)
 
const css::awt::Point & getPosition () const
 
void setSize (css::awt::Size aSize)
 
const css::awt::Size & getSize () const
 
void setRotation (sal_Int32 nRotation)
 
sal_Int32 getRotation () const
 
void setDiagramRotation (sal_Int32 nRotation)
 
void setFlip (bool bFlipH, bool bFlipV)
 
void addChild (const ShapePtr &rChildPtr)
 
std::vector< ShapePtr > & getChildren ()
 
void setName (const OUString &rName)
 
const OUString & getName () const
 
void setInternalName (const OUString &rInternalName)
 
const OUString & getInternalName () const
 
void setId (const OUString &rId)
 
const OUString & getId () const
 
void setDescription (const OUString &rDescr)
 
void setHidden (bool bHidden)
 
void setHiddenMasterShape (bool bHiddenMasterShape)
 
void setLocked (bool bLocked)
 
void setSubType (sal_Int32 nSubType)
 
sal_Int32 getSubType () const
 
void setSubTypeIndex (sal_Int32 nSubTypeIndex)
 
const OptValue< sal_Int32 > & getSubTypeIndex () const
 
void setDefaults (bool bHeight)
 
::oox::vml::OleObjectInfosetOleObjectType ()
 
ChartShapeInfosetChartType (bool bEmbedShapes)
 
void setDiagramType ()
 
void setTableType ()
 
void setTextBody (const TextBodyPtr &pTextBody)
 
const TextBodyPtrgetTextBody () const
 
void setMasterTextListStyle (const TextListStylePtr &pMasterTextListStyle)
 
const TextListStylePtrgetMasterTextListStyle () const
 
ShapeStyleRefMapgetShapeStyleRefs ()
 
const ShapeStyleRefMapgetShapeStyleRefs () const
 
const ShapeStyleRefgetShapeStyleRef (sal_Int32 nRefType) const
 
bool hasShapeStyleRefs () const
 
void addShape (::oox::core::XmlFilterBase &rFilterBase, const Theme *pTheme, const css::uno::Reference< css::drawing::XShapes > &rxShapes, const basegfx::B2DHomMatrix &aTransformation, const FillProperties &rShapeOrParentShapeFillProps, ShapeIdMap *pShapeMap=nullptr, oox::drawingml::ShapePtr pParentGroupShape=nullptr)
 
const css::uno::Reference< css::drawing::XShape > & getXShape () const
 
void applyShapeReference (const Shape &rReferencedShape, bool bUseText=true)
 
const ::std::vector< OUString > & getExtDrawings () const
 
void addExtDrawingRelId (const OUString &rRelId)
 
void setFontRefColorForNodes (const Color &rColor)
 
const ColorgetFontRefColorForNodes () const
 
void setLockedCanvas (bool bLockedCanvas)
 
bool getLockedCanvas () const
 
void setWps (bool bWps)
 
bool getWps () const
 
void setTextBox (bool bTextBox)
 
const css::uno::Sequence< css::beans::PropertyValue > & getDiagramDoms () const
 
void setDiagramDoms (const css::uno::Sequence< css::beans::PropertyValue > &rDiagramDoms)
 
void setDiagramData (const DiagramDataPtr &pDiagramData)
 
css::uno::Sequence< css::uno::Sequence< css::uno::Any > > resolveRelationshipsOfTypeFromOfficeDoc (core::XmlFilterBase &rFilter, const OUString &sFragment, std::u16string_view sType)
 
void setLinkedTxbxAttributes (const LinkedTxbxAttr &rhs)
 
void setTxbxHasLinkedTxtBox (const bool rhs)
 
const LinkedTxbxAttrgetLinkedTxbxAttributes () const
 
bool isLinkedTxbx () const
 
void setZOrder (sal_Int32 nZOrder)
 
sal_Int32 getZOrder () const
 
void setZOrderOff (sal_Int32 nZOrderOff)
 
sal_Int32 getZOrderOff () const
 
void setDataNodeType (sal_Int32 nDataNodeType)
 
sal_Int32 getDataNodeType () const
 
void setAspectRatio (double fAspectRatio)
 
double getAspectRatio () const
 
void setVerticalShapesCount (sal_Int32 nVerticalShapesCount)
 
sal_Int32 getVerticalShapesCount () const
 
void setUseBgFill (bool bUseBgFill)
 
void cloneFillProperties ()
 Changes reference semantics to value semantics for fill properties. More...
 
void keepDiagramDrawing (::oox::core::XmlFilterBase &rFilterBase, const OUString &rFragmentPath)
 
oox::core::NamedShapePairsgetDiagramFontHeights ()
 

Protected Types

enum  FrameType {
  FRAMETYPE_GENERIC,
  FRAMETYPE_OLEOBJECT,
  FRAMETYPE_CHART,
  FRAMETYPE_DIAGRAM,
  FRAMETYPE_TABLE
}
 

Protected Member Functions

css::uno::Reference< css::drawing::XShape > const & createAndInsert (::oox::core::XmlFilterBase &rFilterBase, const OUString &rServiceName, const Theme *pTheme, const css::uno::Reference< css::drawing::XShapes > &rxShapes, bool bClearText, bool bDoNotInsertEmptyTextBody, basegfx::B2DHomMatrix &aTransformation, const FillProperties &rShapeOrParentShapeFillProps, oox::drawingml::ShapePtr pParentGroupShape=nullptr)
 
void addChildren (::oox::core::XmlFilterBase &rFilterBase, Shape &rMaster, const Theme *pTheme, const css::uno::Reference< css::drawing::XShapes > &rxShapes, ShapeIdMap *pShapeMap, const basegfx::B2DHomMatrix &aTransformation)
 
void keepDiagramCompatibilityInfo ()
 
void syncDiagramFontHeights ()
 
void convertSmartArtToMetafile (::oox::core::XmlFilterBase const &rFilterBase)
 
css::uno::Reference< css::drawing::XShape > renderDiagramToGraphic (::oox::core::XmlFilterBase const &rFilterBase)
 
OUString finalizeServiceName (::oox::core::XmlFilterBase &rFilter, const OUString &rServiceName, const css::awt::Rectangle &rShapeRect)
 
virtual void finalizeXShape (::oox::core::XmlFilterBase &rFilter, const css::uno::Reference< css::drawing::XShapes > &rxShapes)
 
void putPropertyToGrabBag (const OUString &sPropertyName, const css::uno::Any &aPropertyValue)
 
void putPropertyToGrabBag (const css::beans::PropertyValue &pProperty)
 
void putPropertiesToGrabBag (const css::uno::Sequence< css::beans::PropertyValue > &aProperties)
 
FillProperties getActualFillProperties (const Theme *pTheme, const FillProperties *pParentShapeFillProps) const
 
LineProperties getActualLineProperties (const Theme *pTheme) const
 
EffectProperties getActualEffectProperties (const Theme *pTheme) const
 

Protected Attributes

std::vector< ShapePtrmaChildren
 
css::awt::Size maChSize
 
css::awt::Point maChPosition
 
TextBodyPtr mpTextBody
 
LinePropertiesPtr mpLinePropertiesPtr
 
LinePropertiesPtr mpShapeRefLinePropPtr
 
FillPropertiesPtr mpFillPropertiesPtr
 
FillPropertiesPtr mpShapeRefFillPropPtr
 
GraphicPropertiesPtr mpGraphicPropertiesPtr
 
CustomShapePropertiesPtr mpCustomShapePropertiesPtr
 
table::TablePropertiesPtr mpTablePropertiesPtr
 
Shape3DPropertiesPtr mp3DPropertiesPtr
 
EffectPropertiesPtr mpEffectPropertiesPtr
 
EffectPropertiesPtr mpShapeRefEffectPropPtr
 
PropertyMap maShapeProperties
 
PropertyMap maDefaultShapeProperties
 
TextListStylePtr mpMasterTextListStyle
 
css::uno::Reference< css::drawing::XShape > mxShape
 
OUString msServiceName
 
OUString msName
 
OUString msInternalName
 
OUString msId
 
OUString msDescription
 
sal_Int32 mnSubType
 
OptValue< sal_Int32 > moSubTypeIndex
 
ShapeStyleRefMap maShapeStyleRefs
 
css::awt::Size maSize
 
css::awt::Point maPosition
 
::std::vector< OUString > maExtDrawings
 
Color maFontRefColorForNodes
 
FrameType meFrameType
 Type for graphic frame shapes. More...
 

Private Types

typedef std::shared_ptr< ::oox::vml::OleObjectInfoOleObjectInfoRef
 
typedef std::shared_ptr< ChartShapeInfoChartShapeInfoRef
 

Private Attributes

OleObjectInfoRef mxOleObjectInfo
 Additional data for OLE objects. More...
 
ChartShapeInfoRef mxChartShapeInfo
 Additional data for chart shapes. More...
 
sal_Int32 mnRotation
 
sal_Int32 mnDiagramRotation
 
bool mbFlipH
 
bool mbFlipV
 
bool mbHidden
 
bool mbHiddenMasterShape
 
bool mbLocked
 
bool mbLockedCanvas
 Is this shape part of a locked canvas? More...
 
bool mbWps
 Is this a wps shape? More...
 
bool mbTextBox
 This shape has a textbox. More...
 
LinkedTxbxAttr maLinkedTxbxAttr
 
bool mbHasLinkedTxbx
 
css::uno::Sequence< css::beans::PropertyValue > maDiagramDoms
 
DiagramDataPtr mpDiagramData
 
sal_Int32 mnZOrder = 0
 Z-Order. More...
 
sal_Int32 mnZOrderOff = 0
 Z-Order offset. More...
 
sal_Int32 mnDataNodeType = 0
 Type of data node for an in-diagram shape. More...
 
double mfAspectRatio = 0
 Aspect ratio for an in-diagram shape. More...
 
sal_Int32 mnVerticalShapesCount = 0
 Number of child shapes to be layouted vertically inside org chart in-diagram shape. More...
 
bool mbUseBgFill = false
 The shape fill should be set to that of the slide background surface. More...
 
oox::core::NamedShapePairs maDiagramFontHeights
 For SmartArt, this contains groups of shapes: automatic font size is the same in each group. More...
 

Detailed Description

Definition at line 103 of file shape.hxx.

Member Typedef Documentation

typedef std::shared_ptr< ChartShapeInfo > oox::drawingml::Shape::ChartShapeInfoRef
private

Definition at line 347 of file shape.hxx.

Definition at line 346 of file shape.hxx.

Member Enumeration Documentation

Enumerator
FRAMETYPE_GENERIC 

Generic shape, no special type.

FRAMETYPE_OLEOBJECT 

OLE object embedded in a shape.

FRAMETYPE_CHART 

Chart embedded in a shape.

FRAMETYPE_DIAGRAM 

Complex diagram drawing shape.

FRAMETYPE_TABLE 

A table embedded in a shape.

Definition at line 250 of file shape.hxx.

Constructor & Destructor Documentation

oox::drawingml::Shape::Shape ( const char *  pServiceType = nullptr,
bool  bDefaultHeight = true 
)
explicit

Definition at line 115 of file shape.cxx.

References make_shared(), msServiceName, and setDefaults().

oox::drawingml::Shape::Shape ( const ShapePtr pSourceShape)
explicit

Definition at line 146 of file shape.cxx.

References maPosition, and maSize.

oox::drawingml::Shape::~Shape ( )
virtual

Definition at line 190 of file shape.cxx.

Member Function Documentation

void oox::drawingml::Shape::addChild ( const ShapePtr rChildPtr)
inline

Definition at line 148 of file shape.hxx.

References maChildren.

void oox::drawingml::Shape::addChildren ( ::oox::core::XmlFilterBase rFilterBase,
Shape rMaster,
const Theme pTheme,
const css::uno::Reference< css::drawing::XShapes > &  rxShapes,
ShapeIdMap pShapeMap,
const basegfx::B2DHomMatrix aTransformation 
)
protected

Definition at line 391 of file shape.cxx.

References getFillProperties(), maChildren, and mpMasterTextListStyle.

Referenced by oox::ppt::PPTShape::addShape(), and addShape().

void oox::drawingml::Shape::addExtDrawingRelId ( const OUString &  rRelId)
inline

Definition at line 200 of file shape.hxx.

void oox::drawingml::Shape::addShape ( ::oox::core::XmlFilterBase rFilterBase,
const Theme pTheme,
const css::uno::Reference< css::drawing::XShapes > &  rxShapes,
const basegfx::B2DHomMatrix aTransformation,
const FillProperties rShapeOrParentShapeFillProps,
ShapeIdMap pShapeMap = nullptr,
oox::drawingml::ShapePtr  pParentGroupShape = nullptr 
)
void oox::drawingml::Shape::applyShapeReference ( const Shape rReferencedShape,
bool  bUseText = true 
)
void oox::drawingml::Shape::cloneFillProperties ( )

Changes reference semantics to value semantics for fill properties.

Definition at line 2139 of file shape.cxx.

References mpFillPropertiesPtr.

void oox::drawingml::Shape::convertSmartArtToMetafile ( ::oox::core::XmlFilterBase const &  rFilterBase)
protected

Definition at line 1754 of file shape.cxx.

References Any, Exception, mxShape, renderDiagramToGraphic(), and TOOLS_WARN_EXCEPTION.

Referenced by addShape().

Reference< XShape > const & oox::drawingml::Shape::createAndInsert ( ::oox::core::XmlFilterBase rFilterBase,
const OUString &  rServiceName,
const Theme pTheme,
const css::uno::Reference< css::drawing::XShapes > &  rxShapes,
bool  bClearText,
bool  bDoNotInsertEmptyTextBody,
basegfx::B2DHomMatrix aTransformation,
const FillProperties rShapeOrParentShapeFillProps,
oox::drawingml::ShapePtr  pParentGroupShape = nullptr 
)
protected

Definition at line 674 of file shape.cxx.

References Any, aProperties, oox::drawingml::LineProperties::assignUsed(), oox::drawingml::TextCharacterProperties::assignUsed(), oox::drawingml::FillProperties::assignUsed(), oox::drawingml::Color::clearTransformations(), ColorTransparency, comphelper::containerToSequence(), o3tl::convert(), oox::drawingml::convertEmuToHmm(), basegfx::B2DPolygon::count(), basegfx::B2DHomMatrix::decompose(), basegfx::deg2rad(), o3tl::emu, Tuple2D< double >::equalZero(), finalizeServiceName(), finalizeXShape(), FRAMETYPE_GENERIC, basegfx::B2DHomMatrix::get(), o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get(), oox::OptValue< Type >::get(), get3DProperties(), getActualEffectProperties(), getActualFillProperties(), getActualLineProperties(), basegfx::B2DPolygon::getB2DPoint(), oox::drawingml::Generic3DProperties::getCameraAttributes(), oox::drawingml::Color::getColor(), oox::ModelObjectHelper::getFillBitmap(), getFillProperties(), oox::drawingml::GetFontHeight(), oox::drawingml::Theme::getFontStyle(), PresetGeometryTypeNames::GetFontworkType(), oox::core::FilterBase::getGraphicHelper(), SvGlobalName::GetHexName(), oox::drawingml::Generic3DProperties::getLightRigAttributes(), oox::drawingml::LineProperties::getLineCap(), oox::drawingml::LineProperties::getLineJoint(), oox::drawingml::LineProperties::getLineStyle(), oox::drawingml::Theme::getLineStyle(), oox::drawingml::LineProperties::getLineWidth(), getLinkedTxbxAttributes(), oox::core::FilterBase::getModel(), oox::core::FilterBase::getModelObjectHelper(), oox::PropertyMap::getPropertyName(), oox::drawingml::Color::getSchemeName(), oox::drawingml::Generic3DProperties::getShape3DAttributes(), getShapeProperties(), getShapeStyleRef(), getTextBody(), oox::drawingml::Color::getTransformations(), oox::drawingml::Color::getTransparency(), Tuple2D< double >::getX(), Tuple2D< double >::getY(), oox::OptValue< Type >::has(), namespaces::i, oox::drawingml::LinkedTxbxAttr::id, comphelper::InitPropertySequence(), basegfx::B2DPolygon::insert(), isLinkedTxbx(), oox::drawingml::Color::isPlaceHolder(), oox::drawingml::lcl_createPresetShape(), length, oox::drawingml::EffectProperties::m_Effects, oox::drawingml::Generic3DProperties::maCameraRotation, maDefaultShapeProperties, oox::drawingml::FillProperties::maFillColor, oox::drawingml::TextCharacterProperties::maFillProperties, oox::drawingml::EffectProperties::maGlow, oox::drawingml::FillProperties::maGradientProps, oox::drawingml::GradientFillProperties::maGradientStops, makeAny(), comphelper::makePropertyValue(), oox::drawingml::LineProperties::maLineFill, maPosition, oox::drawingml::EffectProperties::maShadow, maShapeProperties, maSize, oox::drawingml::EffectProperties::maSoftEdge, mbFlipH, mbFlipV, mbHidden, mbHiddenMasterShape, mbLocked, mbLockedCanvas, mbTextBox, mbUseBgFill, mbWps, meFrameType, o3tl::mm100, mnDiagramRotation, oox::drawingml::RotationProperties::mnRevolution, mnRotation, mnSubType, oox::drawingml::FillProperties::moFillType, oox::drawingml::EffectGlowProperties::moGlowColor, oox::drawingml::EffectGlowProperties::moGlowRad, oox::drawingml::LineProperties::moLineWidth, oox::drawingml::EffectSoftEdgeProperties::moRad, oox::drawingml::EffectShadowProperties::moShadowDir, mpCustomShapePropertiesPtr, mpGraphicPropertiesPtr, mpMasterTextListStyle, mpTablePropertiesPtr, mpTextBody, msDescription, msId, msName, msServiceName, mxShape, name, nBorder, nLength, NormAngle36000(), oox::drawingml::LineProperties::pushToPropMap(), oox::drawingml::EffectProperties::pushToPropMap(), oox::drawingml::FillProperties::pushToPropMap(), putPropertiesToGrabBag(), putPropertyToGrabBag(), basegfx::B2DHomMatrix::rotate(), SAL_INFO, SAL_WARN, o3tl::saturating_add(), basegfx::B2DHomMatrix::scale(), oox::drawingml::LinkedTxbxAttr::seq, oox::OptValue< Type >::set(), oox::PropertySet::setAnyProperty(), oox::PropertySet::setProperties(), oox::PropertyMap::setProperty(), Tuple2D< double >::setX(), SO3_SM_CLASSID, basegfx::B2DPolygon::transform(), basegfx::B2DHomMatrix::translate(), and u.

Referenced by oox::ppt::PPTShape::addShape(), and addShape().

OUString oox::drawingml::Shape::finalizeServiceName ( ::oox::core::XmlFilterBase rFilter,
const OUString &  rServiceName,
const css::awt::Rectangle &  rShapeRect 
)
protected
virtual void oox::drawingml::Shape::finalizeXShape ( ::oox::core::XmlFilterBase rFilter,
const css::uno::Reference< css::drawing::XShapes > &  rxShapes 
)
protectedvirtual

Referenced by createAndInsert().

Shape3DProperties& oox::drawingml::Shape::get3DProperties ( )
inline
const Shape3DProperties& oox::drawingml::Shape::get3DProperties ( ) const
inline

Definition at line 129 of file shape.hxx.

EffectProperties oox::drawingml::Shape::getActualEffectProperties ( const Theme pTheme) const
protected
FillProperties oox::drawingml::Shape::getActualFillProperties ( const Theme pTheme,
const FillProperties pParentShapeFillProps 
) const
protected
LineProperties oox::drawingml::Shape::getActualLineProperties ( const Theme pTheme) const
protected
double oox::drawingml::Shape::getAspectRatio ( ) const
inline

Definition at line 234 of file shape.hxx.

std::vector< ShapePtr >& oox::drawingml::Shape::getChildren ( )
inline

Definition at line 149 of file shape.hxx.

References maChildren.

Referenced by oox::ppt::PPTShape::addShape().

CustomShapePropertiesPtr& oox::drawingml::Shape::getCustomShapeProperties ( )
inline
sal_Int32 oox::drawingml::Shape::getDataNodeType ( ) const
inline

Definition at line 230 of file shape.hxx.

const css::uno::Sequence<css::beans::PropertyValue>& oox::drawingml::Shape::getDiagramDoms ( ) const
inline

Definition at line 210 of file shape.hxx.

oox::core::NamedShapePairs& oox::drawingml::Shape::getDiagramFontHeights ( )
inline

Definition at line 246 of file shape.hxx.

Referenced by oox::ppt::PPTShape::addShape().

EffectProperties& oox::drawingml::Shape::getEffectProperties ( ) const
inline
const ::std::vector<OUString>& oox::drawingml::Shape::getExtDrawings ( ) const
inline

Definition at line 199 of file shape.hxx.

FillProperties& oox::drawingml::Shape::getFillProperties ( )
inline
const FillProperties& oox::drawingml::Shape::getFillProperties ( ) const
inline

Definition at line 121 of file shape.hxx.

const Color& oox::drawingml::Shape::getFontRefColorForNodes ( ) const
inline

Definition at line 203 of file shape.hxx.

GraphicProperties& oox::drawingml::Shape::getGraphicProperties ( )
inline

Definition at line 123 of file shape.hxx.

const GraphicProperties& oox::drawingml::Shape::getGraphicProperties ( ) const
inline

Definition at line 124 of file shape.hxx.

const OUString& oox::drawingml::Shape::getId ( ) const
inline

Definition at line 156 of file shape.hxx.

const OUString& oox::drawingml::Shape::getInternalName ( ) const
inline

Definition at line 154 of file shape.hxx.

Referenced by addShape().

LineProperties& oox::drawingml::Shape::getLineProperties ( )
inline
const LineProperties& oox::drawingml::Shape::getLineProperties ( ) const
inline

Definition at line 118 of file shape.hxx.

const LinkedTxbxAttr& oox::drawingml::Shape::getLinkedTxbxAttributes ( ) const
inline

Definition at line 217 of file shape.hxx.

Referenced by createAndInsert().

bool oox::drawingml::Shape::getLockedCanvas ( ) const
inline

Definition at line 205 of file shape.hxx.

const TextListStylePtr& oox::drawingml::Shape::getMasterTextListStyle ( ) const
inline

Definition at line 177 of file shape.hxx.

Referenced by oox::drawingml::spDefContext::onCreateContext().

const OUString& oox::drawingml::Shape::getName ( ) const
inline

Definition at line 152 of file shape.hxx.

References msName.

const css::awt::Point& oox::drawingml::Shape::getPosition ( ) const
inline

Definition at line 139 of file shape.hxx.

References maPosition.

Referenced by oox::drawingml::Transform2DContext::onCreateContext().

sal_Int32 oox::drawingml::Shape::getRotation ( ) const
inline

Definition at line 145 of file shape.hxx.

OUString& oox::drawingml::Shape::getServiceName ( )
inline

Definition at line 112 of file shape.hxx.

Referenced by oox::drawingml::ShapePropertiesContext::onCreateContext().

PropertyMap& oox::drawingml::Shape::getShapeProperties ( )
inline
const ShapeStyleRef * oox::drawingml::Shape::getShapeStyleRef ( sal_Int32  nRefType) const
ShapeStyleRefMap& oox::drawingml::Shape::getShapeStyleRefs ( )
inline

Definition at line 179 of file shape.hxx.

Referenced by oox::drawingml::ShapeStyleContext::onCreateContext().

const ShapeStyleRefMap& oox::drawingml::Shape::getShapeStyleRefs ( ) const
inline

Definition at line 180 of file shape.hxx.

const css::awt::Size& oox::drawingml::Shape::getSize ( ) const
inline

Definition at line 142 of file shape.hxx.

References maSize.

Referenced by oox::drawingml::Transform2DContext::onCreateContext().

sal_Int32 oox::drawingml::Shape::getSubType ( ) const
inline

Definition at line 162 of file shape.hxx.

Referenced by oox::ppt::PPTShape::addShape().

const OptValue< sal_Int32 >& oox::drawingml::Shape::getSubTypeIndex ( ) const
inline
table::TablePropertiesPtr const & oox::drawingml::Shape::getTableProperties ( )

Definition at line 194 of file shape.cxx.

References mpTablePropertiesPtr.

const TextBodyPtr& oox::drawingml::Shape::getTextBody ( ) const
inline
sal_Int32 oox::drawingml::Shape::getVerticalShapesCount ( ) const
inline

Definition at line 237 of file shape.hxx.

bool oox::drawingml::Shape::getWps ( ) const
inline

Definition at line 207 of file shape.hxx.

const css::uno::Reference< css::drawing::XShape >& oox::drawingml::Shape::getXShape ( ) const
inline

Definition at line 195 of file shape.hxx.

References mxShape.

sal_Int32 oox::drawingml::Shape::getZOrder ( ) const
inline

Definition at line 222 of file shape.hxx.

sal_Int32 oox::drawingml::Shape::getZOrderOff ( ) const
inline

Definition at line 226 of file shape.hxx.

bool oox::drawingml::Shape::hasShapeStyleRefs ( ) const
inline

Definition at line 182 of file shape.hxx.

bool oox::drawingml::Shape::isLinkedTxbx ( ) const
inline

Definition at line 218 of file shape.hxx.

Referenced by createAndInsert().

void oox::drawingml::Shape::keepDiagramCompatibilityInfo ( )
protected
void oox::drawingml::Shape::keepDiagramDrawing ( ::oox::core::XmlFilterBase rFilterBase,
const OUString &  rFragmentPath 
)
void oox::drawingml::Shape::putPropertiesToGrabBag ( const css::uno::Sequence< css::beans::PropertyValue > &  aProperties)
protected

Definition at line 1995 of file shape.cxx.

References Any, comphelper::concatSequences(), mxShape, and UNO_NAME_MISC_OBJ_INTEROPGRABBAG.

Referenced by createAndInsert().

void oox::drawingml::Shape::putPropertyToGrabBag ( const OUString &  sPropertyName,
const css::uno::Any &  aPropertyValue 
)
protected

Referenced by createAndInsert().

void oox::drawingml::Shape::putPropertyToGrabBag ( const css::beans::PropertyValue &  pProperty)
protected
Reference< XShape > oox::drawingml::Shape::renderDiagramToGraphic ( ::oox::core::XmlFilterBase const &  rFilterBase)
protected
uno::Sequence< uno::Sequence< uno::Any > > oox::drawingml::Shape::resolveRelationshipsOfTypeFromOfficeDoc ( core::XmlFilterBase rFilter,
const OUString &  sFragment,
std::u16string_view  sType 
)
void oox::drawingml::Shape::setAspectRatio ( double  fAspectRatio)
inline

Definition at line 232 of file shape.hxx.

ChartShapeInfo & oox::drawingml::Shape::setChartType ( bool  bEmbedShapes)
void oox::drawingml::Shape::setChildPosition ( css::awt::Point  nPosition)
inline

Definition at line 135 of file shape.hxx.

Referenced by oox::drawingml::Transform2DContext::onCreateContext().

void oox::drawingml::Shape::setChildSize ( css::awt::Size  aSize)
inline

Definition at line 136 of file shape.hxx.

Referenced by oox::drawingml::Transform2DContext::onCreateContext().

void oox::drawingml::Shape::setDataNodeType ( sal_Int32  nDataNodeType)
inline

Definition at line 228 of file shape.hxx.

void oox::drawingml::Shape::setDefaults ( bool  bHeight)

Definition at line 201 of file shape.cxx.

References maDefaultShapeProperties, and oox::PropertyMap::setProperty().

Referenced by Shape().

void oox::drawingml::Shape::setDescription ( const OUString &  rDescr)
inline

Definition at line 157 of file shape.hxx.

void oox::drawingml::Shape::setDiagramData ( const DiagramDataPtr pDiagramData)
inline

Definition at line 212 of file shape.hxx.

void oox::drawingml::Shape::setDiagramDoms ( const css::uno::Sequence< css::beans::PropertyValue > &  rDiagramDoms)
inline

Definition at line 211 of file shape.hxx.

void oox::drawingml::Shape::setDiagramRotation ( sal_Int32  nRotation)
inline

Definition at line 146 of file shape.hxx.

void oox::drawingml::Shape::setDiagramType ( )

Definition at line 236 of file shape.cxx.

References FRAMETYPE_DIAGRAM, FRAMETYPE_GENERIC, meFrameType, mnSubType, and msServiceName.

void oox::drawingml::Shape::setFlip ( bool  bFlipH,
bool  bFlipV 
)
inline

Definition at line 147 of file shape.hxx.

void oox::drawingml::Shape::setFontRefColorForNodes ( const Color rColor)
inline

Definition at line 202 of file shape.hxx.

void oox::drawingml::Shape::setHidden ( bool  bHidden)
inline

Definition at line 158 of file shape.hxx.

void oox::drawingml::Shape::setHiddenMasterShape ( bool  bHiddenMasterShape)
inline

Definition at line 159 of file shape.hxx.

Referenced by oox::ppt::SlidePersist::hideShapesAsMasterShapes().

void oox::drawingml::Shape::setId ( const OUString &  rId)
inline

Definition at line 155 of file shape.hxx.

void oox::drawingml::Shape::setInternalName ( const OUString &  rInternalName)
inline

Definition at line 153 of file shape.hxx.

void oox::drawingml::Shape::setLinkedTxbxAttributes ( const LinkedTxbxAttr rhs)
inline

Definition at line 215 of file shape.hxx.

void oox::drawingml::Shape::setLocked ( bool  bLocked)
inline

Definition at line 160 of file shape.hxx.

void oox::drawingml::Shape::setLockedCanvas ( bool  bLockedCanvas)

Definition at line 328 of file shape.cxx.

References mbLockedCanvas.

void oox::drawingml::Shape::setMasterTextListStyle ( const TextListStylePtr pMasterTextListStyle)

Definition at line 1853 of file shape.cxx.

References mpMasterTextListStyle, msId, and SAL_INFO.

Referenced by oox::ppt::PPTShape::addShape().

void oox::drawingml::Shape::setName ( const OUString &  rName)
inline

Definition at line 151 of file shape.hxx.

References msName.

oox::vml::OleObjectInfo & oox::drawingml::Shape::setOleObjectType ( )

Definition at line 216 of file shape.cxx.

References FRAMETYPE_GENERIC, FRAMETYPE_OLEOBJECT, meFrameType, and mxOleObjectInfo.

void oox::drawingml::Shape::setPosition ( css::awt::Point  nPosition)
inline
void oox::drawingml::Shape::setRotation ( sal_Int32  nRotation)
inline

Definition at line 144 of file shape.hxx.

void oox::drawingml::Shape::setServiceName ( const char *  pServiceName)

Definition at line 252 of file shape.cxx.

References msServiceName.

void oox::drawingml::Shape::setSize ( css::awt::Size  aSize)
inline
void oox::drawingml::Shape::setSubType ( sal_Int32  nSubType)
inline

Definition at line 161 of file shape.hxx.

void oox::drawingml::Shape::setSubTypeIndex ( sal_Int32  nSubTypeIndex)
inline

Definition at line 163 of file shape.hxx.

void oox::drawingml::Shape::setTableType ( )

Definition at line 244 of file shape.cxx.

References FRAMETYPE_GENERIC, FRAMETYPE_TABLE, meFrameType, mnSubType, and msServiceName.

void oox::drawingml::Shape::setTextBody ( const TextBodyPtr pTextBody)

Definition at line 1848 of file shape.cxx.

References mpTextBody.

Referenced by oox::drawingml::spDefContext::onCreateContext().

void oox::drawingml::Shape::setTextBox ( bool  bTextBox)

Definition at line 338 of file shape.cxx.

References mbTextBox.

void oox::drawingml::Shape::setTxbxHasLinkedTxtBox ( const bool  rhs)
inline

Definition at line 216 of file shape.hxx.

void oox::drawingml::Shape::setUseBgFill ( bool  bUseBgFill)
inline

Definition at line 239 of file shape.hxx.

void oox::drawingml::Shape::setVerticalShapesCount ( sal_Int32  nVerticalShapesCount)
inline

Definition at line 236 of file shape.hxx.

void oox::drawingml::Shape::setWps ( bool  bWps)

Definition at line 333 of file shape.cxx.

References mbWps.

void oox::drawingml::Shape::setZOrder ( sal_Int32  nZOrder)
inline

Definition at line 220 of file shape.hxx.

void oox::drawingml::Shape::setZOrderOff ( sal_Int32  nZOrderOff)
inline

Definition at line 224 of file shape.hxx.

void oox::drawingml::Shape::syncDiagramFontHeights ( )
protected

Definition at line 1716 of file shape.cxx.

References maDiagramFontHeights.

Referenced by oox::ppt::PPTShape::addShape().

Member Data Documentation

std::vector< ShapePtr > oox::drawingml::Shape::maChildren
protected

Definition at line 307 of file shape.hxx.

Referenced by addChildren().

css::awt::Point oox::drawingml::Shape::maChPosition
protected

Definition at line 309 of file shape.hxx.

css::awt::Size oox::drawingml::Shape::maChSize
protected

Definition at line 308 of file shape.hxx.

PropertyMap oox::drawingml::Shape::maDefaultShapeProperties
protected

Definition at line 323 of file shape.hxx.

Referenced by createAndInsert(), and setDefaults().

css::uno::Sequence<css::beans::PropertyValue> oox::drawingml::Shape::maDiagramDoms
private
oox::core::NamedShapePairs oox::drawingml::Shape::maDiagramFontHeights
private

For SmartArt, this contains groups of shapes: automatic font size is the same in each group.

Definition at line 389 of file shape.hxx.

Referenced by syncDiagramFontHeights().

::std::vector<OUString> oox::drawingml::Shape::maExtDrawings
protected

Definition at line 339 of file shape.hxx.

Color oox::drawingml::Shape::maFontRefColorForNodes
protected

Definition at line 340 of file shape.hxx.

LinkedTxbxAttr oox::drawingml::Shape::maLinkedTxbxAttr
private

Definition at line 364 of file shape.hxx.

css::awt::Point oox::drawingml::Shape::maPosition
protected

Definition at line 338 of file shape.hxx.

Referenced by oox::ppt::PPTShape::addShape(), applyShapeReference(), and createAndInsert().

PropertyMap oox::drawingml::Shape::maShapeProperties
protected

Definition at line 322 of file shape.hxx.

Referenced by applyShapeReference(), createAndInsert(), and finalizeServiceName().

ShapeStyleRefMap oox::drawingml::Shape::maShapeStyleRefs
protected

Definition at line 335 of file shape.hxx.

Referenced by getShapeStyleRef().

css::awt::Size oox::drawingml::Shape::maSize
protected

Definition at line 337 of file shape.hxx.

Referenced by oox::ppt::PPTShape::addShape(), applyShapeReference(), and createAndInsert().

bool oox::drawingml::Shape::mbFlipH
private

Definition at line 354 of file shape.hxx.

Referenced by applyShapeReference(), and createAndInsert().

bool oox::drawingml::Shape::mbFlipV
private

Definition at line 355 of file shape.hxx.

Referenced by applyShapeReference(), and createAndInsert().

bool oox::drawingml::Shape::mbHasLinkedTxbx
private

Definition at line 365 of file shape.hxx.

bool oox::drawingml::Shape::mbHidden
private

Definition at line 356 of file shape.hxx.

Referenced by applyShapeReference(), and createAndInsert().

bool oox::drawingml::Shape::mbHiddenMasterShape
private

Definition at line 357 of file shape.hxx.

Referenced by createAndInsert().

bool oox::drawingml::Shape::mbLocked
private

Definition at line 360 of file shape.hxx.

Referenced by applyShapeReference(), and createAndInsert().

bool oox::drawingml::Shape::mbLockedCanvas
private

Is this shape part of a locked canvas?

Definition at line 361 of file shape.hxx.

Referenced by createAndInsert(), and setLockedCanvas().

bool oox::drawingml::Shape::mbTextBox
private

This shape has a textbox.

Definition at line 363 of file shape.hxx.

Referenced by createAndInsert(), and setTextBox().

bool oox::drawingml::Shape::mbUseBgFill = false
private

The shape fill should be set to that of the slide background surface.

Definition at line 386 of file shape.hxx.

Referenced by createAndInsert().

bool oox::drawingml::Shape::mbWps
private

Is this a wps shape?

Definition at line 362 of file shape.hxx.

Referenced by createAndInsert(), setChartType(), and setWps().

FrameType oox::drawingml::Shape::meFrameType
protected
double oox::drawingml::Shape::mfAspectRatio = 0
private

Aspect ratio for an in-diagram shape.

Definition at line 380 of file shape.hxx.

sal_Int32 oox::drawingml::Shape::mnDataNodeType = 0
private

Type of data node for an in-diagram shape.

Definition at line 377 of file shape.hxx.

sal_Int32 oox::drawingml::Shape::mnDiagramRotation
private

Definition at line 353 of file shape.hxx.

Referenced by createAndInsert().

sal_Int32 oox::drawingml::Shape::mnRotation
private

Definition at line 352 of file shape.hxx.

Referenced by applyShapeReference(), and createAndInsert().

sal_Int32 oox::drawingml::Shape::mnSubType
protected
sal_Int32 oox::drawingml::Shape::mnVerticalShapesCount = 0
private

Number of child shapes to be layouted vertically inside org chart in-diagram shape.

Definition at line 383 of file shape.hxx.

sal_Int32 oox::drawingml::Shape::mnZOrder = 0
private

Z-Order.

Definition at line 371 of file shape.hxx.

sal_Int32 oox::drawingml::Shape::mnZOrderOff = 0
private

Z-Order offset.

Definition at line 374 of file shape.hxx.

OptValue< sal_Int32 > oox::drawingml::Shape::moSubTypeIndex
protected

Definition at line 333 of file shape.hxx.

Shape3DPropertiesPtr oox::drawingml::Shape::mp3DPropertiesPtr
protected

Definition at line 319 of file shape.hxx.

CustomShapePropertiesPtr oox::drawingml::Shape::mpCustomShapePropertiesPtr
protected

Definition at line 317 of file shape.hxx.

Referenced by applyShapeReference(), and createAndInsert().

DiagramDataPtr oox::drawingml::Shape::mpDiagramData
private

Definition at line 368 of file shape.hxx.

Referenced by keepDiagramCompatibilityInfo().

EffectPropertiesPtr oox::drawingml::Shape::mpEffectPropertiesPtr
protected

Definition at line 320 of file shape.hxx.

FillPropertiesPtr oox::drawingml::Shape::mpFillPropertiesPtr
protected

Definition at line 314 of file shape.hxx.

Referenced by cloneFillProperties().

GraphicPropertiesPtr oox::drawingml::Shape::mpGraphicPropertiesPtr
protected

Definition at line 316 of file shape.hxx.

Referenced by createAndInsert().

LinePropertiesPtr oox::drawingml::Shape::mpLinePropertiesPtr
protected

Definition at line 312 of file shape.hxx.

TextListStylePtr oox::drawingml::Shape::mpMasterTextListStyle
protected
EffectPropertiesPtr oox::drawingml::Shape::mpShapeRefEffectPropPtr
protected

Definition at line 321 of file shape.hxx.

Referenced by applyShapeReference(), and getActualEffectProperties().

FillPropertiesPtr oox::drawingml::Shape::mpShapeRefFillPropPtr
protected

Definition at line 315 of file shape.hxx.

Referenced by applyShapeReference(), and getActualFillProperties().

LinePropertiesPtr oox::drawingml::Shape::mpShapeRefLinePropPtr
protected

Definition at line 313 of file shape.hxx.

Referenced by applyShapeReference(), and getActualLineProperties().

table::TablePropertiesPtr oox::drawingml::Shape::mpTablePropertiesPtr
protected

Definition at line 318 of file shape.hxx.

Referenced by applyShapeReference(), createAndInsert(), and getTableProperties().

TextBodyPtr oox::drawingml::Shape::mpTextBody
protected

Definition at line 311 of file shape.hxx.

Referenced by applyShapeReference(), createAndInsert(), and setTextBody().

OUString oox::drawingml::Shape::msDescription
protected

Definition at line 331 of file shape.hxx.

Referenced by createAndInsert().

OUString oox::drawingml::Shape::msId
protected
OUString oox::drawingml::Shape::msInternalName
protected

Definition at line 329 of file shape.hxx.

OUString oox::drawingml::Shape::msName
protected

Definition at line 328 of file shape.hxx.

Referenced by createAndInsert().

OUString oox::drawingml::Shape::msServiceName
protected
ChartShapeInfoRef oox::drawingml::Shape::mxChartShapeInfo
private

Additional data for chart shapes.

Definition at line 350 of file shape.hxx.

Referenced by setChartType().

OleObjectInfoRef oox::drawingml::Shape::mxOleObjectInfo
private

Additional data for OLE objects.

Definition at line 349 of file shape.hxx.

Referenced by finalizeServiceName(), and setOleObjectType().

css::uno::Reference< css::drawing::XShape > oox::drawingml::Shape::mxShape
protected

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