LibreOffice Module slideshow (master) 1
Public Member Functions | Private Attributes | List of all members
slideshow::internal::ShapeAttributeLayerHolder Class Reference

Holds a ShapeAttributeLayer, together with the associated Shape. More...

#include <shapeattributelayerholder.hxx>

Public Member Functions

 ShapeAttributeLayerHolder ()
 Create a ShapeAttributeLayerHolder instance. More...
 
 ~ShapeAttributeLayerHolder ()
 
 ShapeAttributeLayerHolder (const ShapeAttributeLayerHolder &)=delete
 
ShapeAttributeLayerHolderoperator= (const ShapeAttributeLayerHolder &)=delete
 
void reset ()
 
bool createAttributeLayer (const AttributableShapeSharedPtr &rShape)
 This constructor receives a pointer to the Shape, from which attribute layers should be generated. More...
 
const ShapeAttributeLayerSharedPtrget () const
 

Private Attributes

AttributableShapeSharedPtr mpShape
 
ShapeAttributeLayerSharedPtr mpAttributeLayer
 

Detailed Description

Holds a ShapeAttributeLayer, together with the associated Shape.

Use this class to hold ShapeAttributeLayer objects the RAII way. When this object gets deleted, it will automatically revoke the attribute layer for the given shape (this encapsulates the somewhat clumsy notification process that is required for shape and attribute layer interaction).

Definition at line 38 of file shapeattributelayerholder.hxx.

Constructor & Destructor Documentation

◆ ShapeAttributeLayerHolder() [1/2]

slideshow::internal::ShapeAttributeLayerHolder::ShapeAttributeLayerHolder ( )
inline

Create a ShapeAttributeLayerHolder instance.

This constructor creates an empty attribute holder, to generate an attribute layer, you have to manually call createAttributeLayer().

Definition at line 47 of file shapeattributelayerholder.hxx.

◆ ~ShapeAttributeLayerHolder()

slideshow::internal::ShapeAttributeLayerHolder::~ShapeAttributeLayerHolder ( )
inline

Definition at line 53 of file shapeattributelayerholder.hxx.

References reset().

◆ ShapeAttributeLayerHolder() [2/2]

slideshow::internal::ShapeAttributeLayerHolder::ShapeAttributeLayerHolder ( const ShapeAttributeLayerHolder )
delete

Member Function Documentation

◆ createAttributeLayer()

bool slideshow::internal::ShapeAttributeLayerHolder::createAttributeLayer ( const AttributableShapeSharedPtr rShape)
inline

This constructor receives a pointer to the Shape, from which attribute layers should be generated.

Initially, this object does not create an attribute layer, you have to manually call createAttributeLayer().

Parameters
rShapeShape for which attribute layers should be generated.

Definition at line 76 of file shapeattributelayerholder.hxx.

References mpAttributeLayer, mpShape, and reset().

Referenced by slideshow::internal::AnimationBaseNode::activate_st().

◆ get()

const ShapeAttributeLayerSharedPtr & slideshow::internal::ShapeAttributeLayerHolder::get ( ) const
inline

◆ operator=()

ShapeAttributeLayerHolder & slideshow::internal::ShapeAttributeLayerHolder::operator= ( const ShapeAttributeLayerHolder )
delete

◆ reset()

void slideshow::internal::ShapeAttributeLayerHolder::reset ( )
inline

Member Data Documentation

◆ mpAttributeLayer

ShapeAttributeLayerSharedPtr slideshow::internal::ShapeAttributeLayerHolder::mpAttributeLayer
private

Definition at line 95 of file shapeattributelayerholder.hxx.

Referenced by createAttributeLayer(), get(), and reset().

◆ mpShape

AttributableShapeSharedPtr slideshow::internal::ShapeAttributeLayerHolder::mpShape
private

Definition at line 94 of file shapeattributelayerholder.hxx.

Referenced by createAttributeLayer(), and reset().


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