LibreOffice Module oox (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::ppt::PPTShape Class Referencefinal

#include <pptshape.hxx>

Inheritance diagram for oox::ppt::PPTShape:
[legend]
Collaboration diagram for oox::ppt::PPTShape:
[legend]

Public Member Functions

 PPTShape (const oox::ppt::ShapeLocation eShapeLocation, const char *pServiceType)
 
virtual ~PPTShape () override
 
void addShape (oox::core::XmlFilterBase &rFilterBase, const SlidePersist &rPersist, const oox::drawingml::Theme *pTheme, const css::uno::Reference< css::drawing::XShapes > &rxShapes, basegfx::B2DHomMatrix &aTransformation, ::oox::drawingml::ShapeIdMap *pShapeMap)
 
ShapeLocation getShapeLocation () const
 
void setReferenced (bool bReferenced)
 
void setPlaceholder (oox::drawingml::ShapePtr pPlaceholder)
 
void setModelId (const OUString &rId)
 
void setHasNoninheritedShapeProperties ()
 Flags shape as having a non-empty spPr tag. More...
 
bool hasNonInheritedShapeProperties () const
 Returns whether or not the shape had a non-empty spPr tag. More...
 
- Public Member Functions inherited from oox::drawingml::Shape
 Shape (const char *pServiceType=nullptr, bool bDefaultHeight=true)
 
 Shape (const ShapePtr &pSourceShape)
 
 Shape (Shape const &)=default
 
virtual ~Shape ()
 
Shapeoperator= (Shape const &)=default
 
OUString & getServiceName ()
 
void setServiceName (const char *pServiceName)
 
const OUString & getDiagramDataModelID () const
 
void setDiagramDataModelID (const OUString &rDiagramDataModelID)
 
PropertyMapgetShapeProperties ()
 
LinePropertiesgetLineProperties ()
 
const LinePropertiesgetLineProperties () const
 
FillPropertiesgetFillProperties ()
 
const FillPropertiesgetFillProperties () const
 
GraphicPropertiesgetGraphicProperties ()
 
const GraphicPropertiesgetGraphicProperties () const
 
CustomShapePropertiesPtrgetCustomShapeProperties ()
 
OUString & getConnectorName ()
 
std::vector< OUString > & getConnectorAdjustments ()
 
ConnectorShapePropertiesListgetConnectorShapeProperties ()
 
void setConnectorShape (bool bConnector)
 
bool isConnectorShape () const
 
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)
 
bool getFlipH () const
 
bool getFlipV () const
 
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 setDecorative (bool const isDecorative)
 
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 std::optional< 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 setWPGChild (bool bWPG)
 
bool isWPGChild () 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)
 
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 cloneFillProperties ()
 Changes reference semantics to value semantics for fill properties. More...
 
void keepDiagramDrawing (::oox::core::XmlFilterBase &rFilterBase, const OUString &rFragmentPath)
 
void prepareDiagramHelper (const std::shared_ptr< Diagram > &rDiagramPtr, const std::shared_ptr<::oox::drawingml::Theme > &rTheme)
 
void propagateDiagramHelper ()
 
void migrateDiagramHelperToNewShape (const ShapePtr &pTarget)
 

Static Public Member Functions

static oox::drawingml::ShapePtr findPlaceholder (const sal_Int32 nFirstSubType, const sal_Int32 nSecondSubType, const std::optional< sal_Int32 > &oSubTypeIndex, std::vector< oox::drawingml::ShapePtr > &rShapes, bool bMasterOnly=false)
 
static oox::drawingml::ShapePtr findPlaceholderByIndex (const sal_Int32 nIdx, std::vector< oox::drawingml::ShapePtr > &rShapes, bool bMasterOnly=false)
 
static oox::drawingml::TextListStylePtr getSubTypeTextListStyle (const SlidePersist &rSlidePersist, sal_Int32 nSubType)
 

Private Member Functions

bool IsPlaceHolderCandidate (const SlidePersist &rSlidePersist) const
 

Private Attributes

OUString msModelId
 
ShapeLocation meShapeLocation
 
bool mbReferenced
 
oox::drawingml::ShapePtr mpPlaceholder
 
bool mbHasNoninheritedShapeProperties
 Set if spPr tag is non empty for the shape. More...
 

Additional Inherited Members

- Protected Types inherited from oox::drawingml::Shape
enum  FrameType {
  FRAMETYPE_GENERIC ,
  FRAMETYPE_OLEOBJECT ,
  FRAMETYPE_CHART ,
  FRAMETYPE_DIAGRAM ,
  FRAMETYPE_TABLE
}
 
- Protected Member Functions inherited from oox::drawingml::Shape
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 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 inherited from oox::drawingml::Shape
std::vector< ShapePtrmaChildren
 
css::awt::Size maChSize
 
css::awt::Point maChPosition
 
std::vector< OUString > maConnectorAdjustmentList
 
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
 
ConnectorShapePropertiesList maConnectorShapePropertiesList
 
OUString msConnectorName
 
OUString msServiceName
 
OUString msName
 
OUString msInternalName
 
OUString msId
 
OUString msDescription
 
bool m_isDecorative = false
 
sal_Int32 mnSubType
 
std::optional< 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...
 

Detailed Description

Definition at line 46 of file pptshape.hxx.

Constructor & Destructor Documentation

◆ PPTShape()

oox::ppt::PPTShape::PPTShape ( const oox::ppt::ShapeLocation  eShapeLocation,
const char *  pServiceType 
)

Definition at line 61 of file pptshape.cxx.

References Shape.

◆ ~PPTShape()

oox::ppt::PPTShape::~PPTShape ( )
overridevirtual

Definition at line 69 of file pptshape.cxx.

Member Function Documentation

◆ addShape()

void oox::ppt::PPTShape::addShape ( oox::core::XmlFilterBase rFilterBase,
const SlidePersist rPersist,
const oox::drawingml::Theme pTheme,
const css::uno::Reference< css::drawing::XShapes > &  rxShapes,
basegfx::B2DHomMatrix aTransformation,
::oox::drawingml::ShapeIdMap pShapeMap 
)

Definition at line 160 of file pptshape.cxx.

References oox::drawingml::Shape::addChildren(), Any, aProperties, oox::drawingml::Shape::createAndInsert(), Exception, findPlaceholder(), findPlaceholderByIndex(), oox::drawingml::Shape::FRAMETYPE_DIAGRAM, oox::ppt::SlidePersist::getBodyTextStyle(), oox::drawingml::Shape::getChildren(), oox::ppt::SlidePersist::getDefaultTextStyle(), oox::core::XmlFilterBase::getDiagramFontHeights(), oox::drawingml::Shape::getFillProperties(), oox::drawingml::TextField::getLODateFormat(), oox::drawingml::TextField::getLOTimeFormat(), oox::ppt::SlidePersist::getMasterPersist(), oox::core::FilterBase::getModel(), oox::ppt::SlidePersist::getNotesTextStyle(), oox::ppt::SlidePersist::getOtherTextStyle(), oox::ppt::SlidePersist::getPage(), oox::PropertyMap::getProperty(), oox::drawingml::Shape::getShapeProperties(), oox::ppt::SlidePersist::getShapes(), oox::drawingml::Shape::getSubType(), oox::drawingml::Shape::getSubTypeIndex(), getSubTypeTextListStyle(), oox::drawingml::Shape::getTextBody(), oox::ppt::SlidePersist::getTitleTextStyle(), oox::drawingml::TextField::getType(), namespaces::i, oox::ppt::SlidePersist::isNotesPage(), IsPlaceHolderCandidate(), oox::drawingml::Shape::keepDiagramCompatibilityInfo(), oox::ppt::Layout, oox::ppt::lclDebugSubType(), oox::drawingml::Shape::maPosition, oox::drawingml::Shape::maSize, oox::ppt::Master, oox::drawingml::Shape::meFrameType, meShapeLocation, oox::drawingml::Shape::mnSubType, oox::drawingml::Shape::mpCustomShapePropertiesPtr, oox::drawingml::Shape::mpMasterTextListStyle, mpPlaceholder, oox::drawingml::Shape::msId, msModelId, oox::drawingml::Shape::msServiceName, oox::drawingml::Shape::mxShape, oox::drawingml::Shape::propagateDiagramHelper(), SAL_INFO, oox::core::XmlFilterBase::setDiagramFontHeights(), oox::drawingml::Shape::setMasterTextListStyle(), oox::drawingml::Shape::setPosition(), oox::drawingml::Shape::setSize(), oox::ppt::Slide, sServiceName, u, and value.

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

◆ findPlaceholder()

oox::drawingml::ShapePtr oox::ppt::PPTShape::findPlaceholder ( const sal_Int32  nFirstSubType,
const sal_Int32  nSecondSubType,
const std::optional< sal_Int32 > &  oSubTypeIndex,
std::vector< oox::drawingml::ShapePtr > &  rShapes,
bool  bMasterOnly = false 
)
static

◆ findPlaceholderByIndex()

oox::drawingml::ShapePtr oox::ppt::PPTShape::findPlaceholderByIndex ( const sal_Int32  nIdx,
std::vector< oox::drawingml::ShapePtr > &  rShapes,
bool  bMasterOnly = false 
)
static

◆ getShapeLocation()

ShapeLocation oox::ppt::PPTShape::getShapeLocation ( ) const
inline

◆ getSubTypeTextListStyle()

oox::drawingml::TextListStylePtr oox::ppt::PPTShape::getSubTypeTextListStyle ( const SlidePersist rSlidePersist,
sal_Int32  nSubType 
)
static

◆ hasNonInheritedShapeProperties()

bool oox::ppt::PPTShape::hasNonInheritedShapeProperties ( ) const
inline

Returns whether or not the shape had a non-empty spPr tag.

Definition at line 82 of file pptshape.hxx.

References mbHasNoninheritedShapeProperties.

◆ IsPlaceHolderCandidate()

bool oox::ppt::PPTShape::IsPlaceHolderCandidate ( const SlidePersist rSlidePersist) const
private

◆ setHasNoninheritedShapeProperties()

void oox::ppt::PPTShape::setHasNoninheritedShapeProperties ( )
inline

Flags shape as having a non-empty spPr tag.

Definition at line 80 of file pptshape.hxx.

References mbHasNoninheritedShapeProperties.

Referenced by oox::ppt::PPTShapePropertiesContext::onCreateContext().

◆ setModelId()

void oox::ppt::PPTShape::setModelId ( const OUString &  rId)
inline

Definition at line 77 of file pptshape.hxx.

References msModelId.

◆ setPlaceholder()

void oox::ppt::PPTShape::setPlaceholder ( oox::drawingml::ShapePtr  pPlaceholder)
inline

◆ setReferenced()

void oox::ppt::PPTShape::setReferenced ( bool  bReferenced)
inline

Member Data Documentation

◆ mbHasNoninheritedShapeProperties

bool oox::ppt::PPTShape::mbHasNoninheritedShapeProperties
private

Set if spPr tag is non empty for the shape.

Definition at line 54 of file pptshape.hxx.

Referenced by hasNonInheritedShapeProperties(), and setHasNoninheritedShapeProperties().

◆ mbReferenced

bool oox::ppt::PPTShape::mbReferenced
private

Definition at line 50 of file pptshape.hxx.

Referenced by setReferenced().

◆ meShapeLocation

ShapeLocation oox::ppt::PPTShape::meShapeLocation
private

Definition at line 49 of file pptshape.hxx.

Referenced by addShape(), getShapeLocation(), and IsPlaceHolderCandidate().

◆ mpPlaceholder

oox::drawingml::ShapePtr oox::ppt::PPTShape::mpPlaceholder
private

Definition at line 52 of file pptshape.hxx.

Referenced by addShape(), and setPlaceholder().

◆ msModelId

OUString oox::ppt::PPTShape::msModelId
private

Definition at line 48 of file pptshape.hxx.

Referenced by addShape(), and setModelId().


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