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

Encapsulates all modifiable attributes of a shape. More...

#include <shapeattributelayer.hxx>

Collaboration diagram for slideshow::internal::ShapeAttributeLayer:
[legend]

Public Member Functions

 ShapeAttributeLayer (const ShapeAttributeLayerSharedPtr &rChildLayer)
 Create a ShapeAttributeLayer instance, with all attributes set to default. More...
 
bool revokeChildLayer (const ShapeAttributeLayerSharedPtr &rChildLayer)
 Revoke the given layer. More...
 
const ShapeAttributeLayerSharedPtrgetChildLayer () const
 Query the child layer of this object. More...
 
void setAdditiveMode (sal_Int16 nMode)
 Set the additive mode for possible child attributes. More...
 
bool isWidthValid () const
 Query whether the width attribute is valid. More...
 
double getWidth () const
 Query the current width of the shape. More...
 
void setWidth (const double &rNewWidth)
 Set the new width of the shape. More...
 
bool isHeightValid () const
 Query whether the height attribute is valid. More...
 
double getHeight () const
 Query the current height of the shape. More...
 
void setHeight (const double &rNewHeight)
 Set the new height of the shape. More...
 
void setSize (const ::basegfx::B2DSize &rNewSize)
 Set the new size of the shape. More...
 
bool isPosXValid () const
 Query whether the x position attribute is valid. More...
 
double getPosX () const
 Query the current x position of the shape. More...
 
void setPosX (const double &rNewX)
 Set the new x position of the shape. More...
 
bool isPosYValid () const
 Query whether the y position attribute is valid. More...
 
double getPosY () const
 Query the current y position of the shape. More...
 
void setPosY (const double &rNewY)
 Set the new y position of the shape. More...
 
void setPosition (const ::basegfx::B2DPoint &rNewPos)
 Set the new position of the shape. More...
 
bool isRotationAngleValid () const
 Query whether the rotation angle attribute is valid. More...
 
double getRotationAngle () const
 Query the current rotation angle of the shape. More...
 
void setRotationAngle (const double &rNewAngle)
 Set the new rotation angle of the shape. More...
 
bool isShearXAngleValid () const
 Query whether the shear x angle attribute is valid. More...
 
double getShearXAngle () const
 Query the current shear angle at the x axis of the shape. More...
 
void setShearXAngle (const double &rNewAngle)
 Set the new shear angle at the x axis of the shape. More...
 
bool isShearYAngleValid () const
 Query whether the shear y angle attribute is valid. More...
 
double getShearYAngle () const
 Query the current shear angle at the y axis of the shape. More...
 
void setShearYAngle (const double &rNewAngle)
 Set the new shear angle at the y axis of the shape. More...
 
bool isAlphaValid () const
 Query whether the alpha attribute is valid. More...
 
double getAlpha () const
 Query the current alpha value of the shape. More...
 
void setAlpha (const double &rNewValue)
 Set the new alpha value of the shape. More...
 
bool isClipValid () const
 Query whether the clip attribute is valid. More...
 
::basegfx::B2DPolyPolygon getClip () const
 Query the current clip polygon of the shape. More...
 
void setClip (const ::basegfx::B2DPolyPolygon &rNewClip)
 Set the new clip polygon of the shape. More...
 
bool isDimColorValid () const
 Query whether the dim color attribute is valid. More...
 
RGBColor getDimColor () const
 Get the dim color for the whole shape. More...
 
void setDimColor (const RGBColor &nNewColor)
 Set the dim color globally for the whole shape. More...
 
bool isFillColorValid () const
 Query whether the fill color attribute is valid. More...
 
RGBColor getFillColor () const
 Get the fill color for the whole shape. More...
 
void setFillColor (const RGBColor &nNewColor)
 Set the fill color globally for the whole shape. More...
 
bool isLineColorValid () const
 Query whether the line color attribute is valid. More...
 
RGBColor getLineColor () const
 Get the line color for the whole shape. More...
 
void setLineColor (const RGBColor &nNewColor)
 Set the line color globally for the whole shape. More...
 
bool isFillStyleValid () const
 Query whether the fill mode attribute is valid. More...
 
sal_Int16 getFillStyle () const
 Get the current fill mode for polygon fillings. More...
 
void setFillStyle (const sal_Int16 &rStyle)
 Changes polygon fillings. More...
 
bool isLineStyleValid () const
 Query whether the line mode attribute is valid. More...
 
sal_Int16 getLineStyle () const
 Get the current line mode for line drawing. More...
 
void setLineStyle (const sal_Int16 &rStyle)
 Set line style for the whole shape. More...
 
bool isVisibilityValid () const
 Query whether the visibility state attribute is valid. More...
 
bool getVisibility () const
 Get the current shape visibility. More...
 
void setVisibility (const bool &bVisible)
 Set the shape visibility. More...
 
bool isCharColorValid () const
 Query whether the char color attribute is valid. More...
 
RGBColor getCharColor () const
 Get the text color for the whole shape. More...
 
void setCharColor (const RGBColor &nNewColor)
 Set the text color globally for the whole shape. More...
 
bool isCharWeightValid () const
 Query whether the char weight attribute is valid. More...
 
double getCharWeight () const
 Get the current char weight value for the whole shape. More...
 
void setCharWeight (const double &rStyle)
 Set the char weight globally for the whole shape. More...
 
bool isUnderlineModeValid () const
 Query whether the underline mode attribute is valid. More...
 
sal_Int16 getUnderlineMode () const
 Get the current text underline status for the whole shape. More...
 
void setUnderlineMode (const sal_Int16 &bUnderline)
 Set the underline status globally for the whole shape. More...
 
bool isFontFamilyValid () const
 Query whether the font family attribute is valid. More...
 
OUString getFontFamily () const
 Get the current text font family for the whole shape. More...
 
void setFontFamily (const OUString &rName)
 Set the text font family name globally for the whole shape. More...
 
bool isCharPostureValid () const
 Query whether the italic mode attribute is valid. More...
 
sal_Int16 getCharPosture () const
 Get the current text italic style for the whole shape. More...
 
void setCharPosture (const sal_Int16 &rStyle)
 Set the italic style globally for the whole shape. More...
 
bool isCharScaleValid () const
 Query whether the char scaling attribute is valid. More...
 
double getCharScale () const
 Query the current char scaling attribute globally for the shape. More...
 
void setCharScale (const double &rNewScale)
 Set the new char scale globally for the shape. More...
 
State::StateId getTransformationState () const
 
State::StateId getClipState () const
 
State::StateId getAlphaState () const
 
State::StateId getPositionState () const
 
State::StateId getContentState () const
 
State::StateId getVisibilityState () const
 

Private Member Functions

bool haveChild () const
 
void updateStateIds ()
 Update state ids. More...
 
template<typename T >
calcValue (const T &rCurrValue, bool bThisInstanceValid, bool(ShapeAttributeLayer::*pIsValid)() const, T(ShapeAttributeLayer::*pGetValue)() const) const
 Calc attribute value. More...
 

Private Attributes

ShapeAttributeLayerSharedPtr mpChild
 
::basegfx::B2DSize maSize
 
::basegfx::B2DPoint maPosition
 
::basegfx::B2DPolyPolygon maClip
 
OUString maFontFamily
 
double mnRotationAngle
 
double mnShearXAngle
 
double mnShearYAngle
 
double mnAlpha
 
double mnCharScale
 
double mnCharWeight
 
css::drawing::FillStyle meFillStyle
 
css::drawing::LineStyle meLineStyle
 
css::awt::FontSlant meCharPosture
 
sal_Int16 mnUnderlineMode
 
RGBColor maDimColor
 
RGBColor maFillColor
 
RGBColor maLineColor
 
RGBColor maCharColor
 
State::StateId mnTransformationState
 
State::StateId mnClipState
 
State::StateId mnAlphaState
 
State::StateId mnPositionState
 
State::StateId mnContentState
 
State::StateId mnVisibilityState
 
sal_Int16 mnAdditiveMode
 
bool mbVisibility: 1
 
bool mbWidthValid: 1
 
bool mbHeightValid: 1
 
bool mbPosXValid: 1
 
bool mbPosYValid: 1
 
bool mbClipValid: 1
 
bool mbFontFamilyValid: 1
 
bool mbRotationAngleValid: 1
 
bool mbShearXAngleValid: 1
 
bool mbShearYAngleValid: 1
 
bool mbAlphaValid: 1
 
bool mbCharScaleValid: 1
 
bool mbDimColorValid: 1
 
bool mbFillColorValid: 1
 
bool mbLineColorValid: 1
 
bool mbCharColorValid: 1
 
bool mbFillStyleValid: 1
 
bool mbLineStyleValid: 1
 
bool mbCharWeightValid: 1
 
bool mbUnderlineModeValid: 1
 
bool mbCharPostureValid: 1
 
bool mbVisibilityValid: 1
 

Detailed Description

Encapsulates all modifiable attributes of a shape.

This class holds all modifiable attributes of a shape, and at the same time provides means to layer attributes on top of each other...

And yes, there's a reason why we even pass bools and ints by const reference. Namely, that makes the set* methods differ only in the value type, which greatly reduces template variability (e.g. in AnimationFactory).

Definition at line 69 of file shapeattributelayer.hxx.

Constructor & Destructor Documentation

◆ ShapeAttributeLayer()

slideshow::internal::ShapeAttributeLayer::ShapeAttributeLayer ( const ShapeAttributeLayerSharedPtr rChildLayer)
explicit

Create a ShapeAttributeLayer instance, with all attributes set to default.

Furthermore, this constructor gets a pointer to a child layer, which is used as the fallback (or the base value) for all attributes

Parameters
rChildLayerLayer below this one
Attention: \n
This method is only supposed to be called from Shape objects

Definition at line 121 of file shapeattributelayer.cxx.

References BASE, maFillColor, maPosition, and maSize.

Member Function Documentation

◆ calcValue()

template<typename T >
T slideshow::internal::ShapeAttributeLayer::calcValue ( const T &  rCurrValue,
bool  bThisInstanceValid,
bool(ShapeAttributeLayer::*)() const  pIsValid,
T(ShapeAttributeLayer::*)() const  pGetValue 
) const
private

Calc attribute value.

This method determines the current attribute value, appropriately combining it with children values (by evaluating the mnAdditiveMode member).

Definition at line 66 of file shapeattributelayer.cxx.

References haveChild(), mnAdditiveMode, and mpChild.

Referenced by getAlpha(), getCharColor(), getCharScale(), getDimColor(), getFillColor(), getLineColor(), getShearXAngle(), and getShearYAngle().

◆ getAlpha()

double slideshow::internal::ShapeAttributeLayer::getAlpha ( ) const

Query the current alpha value of the shape.

Definition at line 443 of file shapeattributelayer.cxx.

References calcValue(), getAlpha(), isAlphaValid(), mbAlphaValid, and mnAlpha.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getAlpha().

◆ getAlphaState()

State::StateId slideshow::internal::ShapeAttributeLayer::getAlphaState ( ) const

Definition at line 776 of file shapeattributelayer.cxx.

References haveChild(), mnAlphaState, and mpChild.

◆ getCharColor()

RGBColor slideshow::internal::ShapeAttributeLayer::getCharColor ( ) const

Get the text color for the whole shape.

If there's no unique text color, the color from the first text drawn is returned.

Definition at line 623 of file shapeattributelayer.cxx.

References calcValue(), getCharColor(), isCharColorValid(), maCharColor, and mbCharColorValid.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getCharColor().

◆ getCharPosture()

sal_Int16 slideshow::internal::ShapeAttributeLayer::getCharPosture ( ) const

Get the current text italic style for the whole shape.

Returns
the italic style. The value returned is one of the css::awt::FontSlant enums

Definition at line 717 of file shapeattributelayer.cxx.

References haveChild(), mbCharPostureValid, meCharPosture, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ getCharScale()

double slideshow::internal::ShapeAttributeLayer::getCharScale ( ) const

Query the current char scaling attribute globally for the shape.

The char scaling changes the scale of the whole shape text (uniformly, i.e. both in x and in y direction).

Definition at line 742 of file shapeattributelayer.cxx.

References calcValue(), getCharScale(), isCharScaleValid(), mbCharScaleValid, and mnCharScale.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getCharScale().

◆ getCharWeight()

double slideshow::internal::ShapeAttributeLayer::getCharWeight ( ) const

Get the current char weight value for the whole shape.

Returns
the value for the char weight. The value must be out of the css::awt::FontWeight constant group.

Definition at line 643 of file shapeattributelayer.cxx.

References haveChild(), mbCharWeightValid, mnCharWeight, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ getChildLayer()

const ShapeAttributeLayerSharedPtr & slideshow::internal::ShapeAttributeLayer::getChildLayer ( ) const

Query the child layer of this object.

Attention: \n
This method is only supposed to be called from Shape objects

Definition at line 229 of file shapeattributelayer.cxx.

References mpChild.

◆ getClip()

basegfx::B2DPolyPolygon slideshow::internal::ShapeAttributeLayer::getClip ( ) const

Query the current clip polygon of the shape.

Definition at line 466 of file shapeattributelayer.cxx.

References haveChild(), maClip, mbClipValid, and mpChild.

◆ getClipState()

State::StateId slideshow::internal::ShapeAttributeLayer::getClipState ( ) const

Definition at line 768 of file shapeattributelayer.cxx.

References haveChild(), mnClipState, and mpChild.

◆ getContentState()

State::StateId slideshow::internal::ShapeAttributeLayer::getContentState ( ) const

Definition at line 792 of file shapeattributelayer.cxx.

References haveChild(), mnContentState, and mpChild.

◆ getDimColor()

RGBColor slideshow::internal::ShapeAttributeLayer::getDimColor ( ) const

Get the dim color for the whole shape.

Definition at line 489 of file shapeattributelayer.cxx.

References calcValue(), getDimColor(), isDimColorValid(), maDimColor, and mbDimColorValid.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getDimColor().

◆ getFillColor()

RGBColor slideshow::internal::ShapeAttributeLayer::getFillColor ( ) const

Get the fill color for the whole shape.

If there's no unique fill color, the color from the first filled polygon is returned.

Definition at line 509 of file shapeattributelayer.cxx.

References calcValue(), getFillColor(), isFillColorValid(), maFillColor, and mbFillColorValid.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getFillColor().

◆ getFillStyle()

sal_Int16 slideshow::internal::ShapeAttributeLayer::getFillStyle ( ) const

Get the current fill mode for polygon fillings.

Returns
the current style

Definition at line 549 of file shapeattributelayer.cxx.

References haveChild(), mbFillStyleValid, meFillStyle, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ getFontFamily()

OUString slideshow::internal::ShapeAttributeLayer::getFontFamily ( ) const

Get the current text font family for the whole shape.

If there is no unique font family, the font family of the first text of the shape is returned.

Definition at line 693 of file shapeattributelayer.cxx.

References haveChild(), maFontFamily, mbFontFamilyValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createStringPropertyAnimation().

◆ getHeight()

double slideshow::internal::ShapeAttributeLayer::getHeight ( ) const

◆ getLineColor()

RGBColor slideshow::internal::ShapeAttributeLayer::getLineColor ( ) const

Get the line color for the whole shape.

If there's no unique line color, the color from the first line is returned.

Definition at line 529 of file shapeattributelayer.cxx.

References calcValue(), getLineColor(), isLineColorValid(), maLineColor, and mbLineColorValid.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getLineColor().

◆ getLineStyle()

sal_Int16 slideshow::internal::ShapeAttributeLayer::getLineStyle ( ) const

Get the current line mode for line drawing.

Returns
the current line style

Definition at line 574 of file shapeattributelayer.cxx.

References haveChild(), mbLineStyleValid, meLineStyle, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ getPositionState()

State::StateId slideshow::internal::ShapeAttributeLayer::getPositionState ( ) const

Definition at line 784 of file shapeattributelayer.cxx.

References haveChild(), mnPositionState, and mpChild.

◆ getPosX()

double slideshow::internal::ShapeAttributeLayer::getPosX ( ) const

Query the current x position of the shape.

The current x position of the shape is always relative to the center of the shape (in contrast to the Shape::getBounds() and Shape::getUpdateArea() methods).

Definition at line 318 of file shapeattributelayer.cxx.

References getPosX(), basegfx::Tuple2D< typename TYPE >::getX(), isPosXValid(), maPosition, and mbPosXValid.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getPosX().

◆ getPosY()

double slideshow::internal::ShapeAttributeLayer::getPosY ( ) const

Query the current y position of the shape.

The current y position of the shape is always relative to the center of the shape (in contrast to the Shape::getBounds() and Shape::getUpdateArea() methods).

Definition at line 342 of file shapeattributelayer.cxx.

References getPosY(), basegfx::Tuple2D< typename TYPE >::getY(), isPosYValid(), maPosition, and mbPosYValid.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getPosY().

◆ getRotationAngle()

double slideshow::internal::ShapeAttributeLayer::getRotationAngle ( ) const

Query the current rotation angle of the shape.

Returns
the rotation angle in degrees.

Definition at line 373 of file shapeattributelayer.cxx.

References getRotationAngle(), isRotationAngleValid(), mbRotationAngleValid, and mnRotationAngle.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getRotationAngle().

◆ getShearXAngle()

double slideshow::internal::ShapeAttributeLayer::getShearXAngle ( ) const

Query the current shear angle at the x axis of the shape.

Returns
the shear angle in radians.

Definition at line 397 of file shapeattributelayer.cxx.

References calcValue(), getShearXAngle(), isShearXAngleValid(), mbShearXAngleValid, and mnShearXAngle.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getShearXAngle().

◆ getShearYAngle()

double slideshow::internal::ShapeAttributeLayer::getShearYAngle ( ) const

Query the current shear angle at the y axis of the shape.

Returns
the shear angle in radians.

Definition at line 420 of file shapeattributelayer.cxx.

References calcValue(), getShearYAngle(), isShearYAngleValid(), mbShearYAngleValid, and mnShearYAngle.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getShearYAngle().

◆ getTransformationState()

State::StateId slideshow::internal::ShapeAttributeLayer::getTransformationState ( ) const

Definition at line 760 of file shapeattributelayer.cxx.

References haveChild(), mnTransformationState, and mpChild.

◆ getUnderlineMode()

sal_Int16 slideshow::internal::ShapeAttributeLayer::getUnderlineMode ( ) const

Get the current text underline status for the whole shape.

If there is no unique underline status, false is returned.

Returns
true for underlined text, false for normal.

Definition at line 668 of file shapeattributelayer.cxx.

References haveChild(), mbUnderlineModeValid, mnUnderlineMode, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ getVisibility()

bool slideshow::internal::ShapeAttributeLayer::getVisibility ( ) const

Get the current shape visibility.

Returns
true for visible, false for invisible.

Definition at line 599 of file shapeattributelayer.cxx.

References haveChild(), mbVisibility, mbVisibilityValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createBoolPropertyAnimation().

◆ getVisibilityState()

State::StateId slideshow::internal::ShapeAttributeLayer::getVisibilityState ( ) const

Definition at line 800 of file shapeattributelayer.cxx.

References haveChild(), mnVisibilityState, and mpChild.

◆ getWidth()

double slideshow::internal::ShapeAttributeLayer::getWidth ( ) const

◆ haveChild()

bool slideshow::internal::ShapeAttributeLayer::haveChild ( ) const
inlineprivate

◆ isAlphaValid()

bool slideshow::internal::ShapeAttributeLayer::isAlphaValid ( ) const

Query whether the alpha attribute is valid.

Definition at line 438 of file shapeattributelayer.cxx.

References haveChild(), mbAlphaValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getAlpha().

◆ isCharColorValid()

bool slideshow::internal::ShapeAttributeLayer::isCharColorValid ( ) const

Query whether the char color attribute is valid.

Definition at line 618 of file shapeattributelayer.cxx.

References haveChild(), mbCharColorValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getCharColor().

◆ isCharPostureValid()

bool slideshow::internal::ShapeAttributeLayer::isCharPostureValid ( ) const

Query whether the italic mode attribute is valid.

Definition at line 712 of file shapeattributelayer.cxx.

References haveChild(), mbCharPostureValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ isCharScaleValid()

bool slideshow::internal::ShapeAttributeLayer::isCharScaleValid ( ) const

Query whether the char scaling attribute is valid.

Definition at line 737 of file shapeattributelayer.cxx.

References haveChild(), mbCharScaleValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getCharScale().

◆ isCharWeightValid()

bool slideshow::internal::ShapeAttributeLayer::isCharWeightValid ( ) const

Query whether the char weight attribute is valid.

Definition at line 638 of file shapeattributelayer.cxx.

References haveChild(), mbCharWeightValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ isClipValid()

bool slideshow::internal::ShapeAttributeLayer::isClipValid ( ) const

Query whether the clip attribute is valid.

Definition at line 461 of file shapeattributelayer.cxx.

References haveChild(), mbClipValid, and mpChild.

◆ isDimColorValid()

bool slideshow::internal::ShapeAttributeLayer::isDimColorValid ( ) const

Query whether the dim color attribute is valid.

The dim color globally 'dims' the shape towards that color

Definition at line 484 of file shapeattributelayer.cxx.

References haveChild(), mbDimColorValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getDimColor().

◆ isFillColorValid()

bool slideshow::internal::ShapeAttributeLayer::isFillColorValid ( ) const

Query whether the fill color attribute is valid.

Definition at line 504 of file shapeattributelayer.cxx.

References haveChild(), mbFillColorValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getFillColor().

◆ isFillStyleValid()

bool slideshow::internal::ShapeAttributeLayer::isFillStyleValid ( ) const

Query whether the fill mode attribute is valid.

Definition at line 544 of file shapeattributelayer.cxx.

References haveChild(), mbFillStyleValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ isFontFamilyValid()

bool slideshow::internal::ShapeAttributeLayer::isFontFamilyValid ( ) const

Query whether the font family attribute is valid.

Definition at line 688 of file shapeattributelayer.cxx.

References haveChild(), mbFontFamilyValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createStringPropertyAnimation().

◆ isHeightValid()

bool slideshow::internal::ShapeAttributeLayer::isHeightValid ( ) const

◆ isLineColorValid()

bool slideshow::internal::ShapeAttributeLayer::isLineColorValid ( ) const

Query whether the line color attribute is valid.

Definition at line 524 of file shapeattributelayer.cxx.

References haveChild(), mbLineColorValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation(), and getLineColor().

◆ isLineStyleValid()

bool slideshow::internal::ShapeAttributeLayer::isLineStyleValid ( ) const

Query whether the line mode attribute is valid.

Definition at line 569 of file shapeattributelayer.cxx.

References haveChild(), mbLineStyleValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ isPosXValid()

bool slideshow::internal::ShapeAttributeLayer::isPosXValid ( ) const

◆ isPosYValid()

bool slideshow::internal::ShapeAttributeLayer::isPosYValid ( ) const

◆ isRotationAngleValid()

bool slideshow::internal::ShapeAttributeLayer::isRotationAngleValid ( ) const

Query whether the rotation angle attribute is valid.

Definition at line 368 of file shapeattributelayer.cxx.

References haveChild(), mbRotationAngleValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getRotationAngle().

◆ isShearXAngleValid()

bool slideshow::internal::ShapeAttributeLayer::isShearXAngleValid ( ) const

Query whether the shear x angle attribute is valid.

Definition at line 392 of file shapeattributelayer.cxx.

References haveChild(), mbShearXAngleValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getShearXAngle().

◆ isShearYAngleValid()

bool slideshow::internal::ShapeAttributeLayer::isShearYAngleValid ( ) const

Query whether the shear y angle attribute is valid.

Definition at line 415 of file shapeattributelayer.cxx.

References haveChild(), mbShearYAngleValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getShearYAngle().

◆ isUnderlineModeValid()

bool slideshow::internal::ShapeAttributeLayer::isUnderlineModeValid ( ) const

Query whether the underline mode attribute is valid.

Definition at line 663 of file shapeattributelayer.cxx.

References haveChild(), mbUnderlineModeValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ isVisibilityValid()

bool slideshow::internal::ShapeAttributeLayer::isVisibilityValid ( ) const

Query whether the visibility state attribute is valid.

Definition at line 594 of file shapeattributelayer.cxx.

References haveChild(), mbVisibilityValid, and mpChild.

Referenced by slideshow::internal::AnimationFactory::createBoolPropertyAnimation().

◆ isWidthValid()

bool slideshow::internal::ShapeAttributeLayer::isWidthValid ( ) const

◆ revokeChildLayer()

bool slideshow::internal::ShapeAttributeLayer::revokeChildLayer ( const ShapeAttributeLayerSharedPtr rChildLayer)

Revoke the given layer.

This method revokes the given layer from this object or one of the children. That is, if this object does have children, and the given layer is no direct child, it is recursively passed to the children for removal.

Returns
true, if removal was successful.
Attention: \n
This method is only supposed to be called from Shape objects

Definition at line 188 of file shapeattributelayer.cxx.

References ENSURE_OR_RETURN_FALSE, haveChild(), mnAlphaState, mnClipState, mnContentState, mnPositionState, mnTransformationState, mnVisibilityState, mpChild, and updateStateIds().

◆ setAdditiveMode()

void slideshow::internal::ShapeAttributeLayer::setAdditiveMode ( sal_Int16  nMode)

Set the additive mode for possible child attributes.

This method sets the additive mode for child attributes. That is the way underlying attribute layers are combined with this one (i.e. to overrule lower layers, or how to combine the values). The default is css::animations::AnimationAdditiveMode::BASE, which means, take the value of the underlying layers, or from the model shape itself.

Parameters
nModeMust be one of css::animations::AnimationAdditiveMode.

Definition at line 234 of file shapeattributelayer.cxx.

References mnAdditiveMode, mnAlphaState, mnClipState, mnContentState, mnPositionState, mnTransformationState, and mnVisibilityState.

◆ setAlpha()

void slideshow::internal::ShapeAttributeLayer::setAlpha ( const double &  rNewValue)

Set the new alpha value of the shape.

Parameters
rNewValueNew alpha value, must be in the [0,1] range

Definition at line 451 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, mbAlphaValid, mnAlpha, and mnAlphaState.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setCharColor()

void slideshow::internal::ShapeAttributeLayer::setCharColor ( const RGBColor nNewColor)

Set the text color globally for the whole shape.

Definition at line 631 of file shapeattributelayer.cxx.

References maCharColor, mbCharColorValid, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation().

◆ setCharPosture()

void slideshow::internal::ShapeAttributeLayer::setCharPosture ( const sal_Int16 &  rStyle)

Set the italic style globally for the whole shape.

The value must be one of the css::awt::FontSlant enums.

Definition at line 729 of file shapeattributelayer.cxx.

References mbCharPostureValid, meCharPosture, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ setCharScale()

void slideshow::internal::ShapeAttributeLayer::setCharScale ( const double &  rNewScale)

Set the new char scale globally for the shape.

Parameters
rNewScaleNew char scale

Definition at line 750 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, mbCharScaleValid, mnCharScale, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setCharWeight()

void slideshow::internal::ShapeAttributeLayer::setCharWeight ( const double &  rStyle)

Set the char weight globally for the whole shape.

The value must be out of the css::awt::FontWeight constant group.

Definition at line 655 of file shapeattributelayer.cxx.

References mbCharWeightValid, mnCharWeight, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setClip()

void slideshow::internal::ShapeAttributeLayer::setClip ( const ::basegfx::B2DPolyPolygon rNewClip)

Set the new clip polygon of the shape.

Parameters
rNewClipNew clip polygon, is interpreted in shape view coordinates, but relative to the shape (i.e. the origin of the shape coincides with the origin of the clip polygon).

Definition at line 477 of file shapeattributelayer.cxx.

References maClip, mbClipValid, and mnClipState.

◆ setDimColor()

void slideshow::internal::ShapeAttributeLayer::setDimColor ( const RGBColor nNewColor)

Set the dim color globally for the whole shape.

Definition at line 497 of file shapeattributelayer.cxx.

References maDimColor, mbDimColorValid, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation().

◆ setFillColor()

void slideshow::internal::ShapeAttributeLayer::setFillColor ( const RGBColor nNewColor)

Set the fill color globally for the whole shape.

Definition at line 517 of file shapeattributelayer.cxx.

References maFillColor, mbFillColorValid, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation().

◆ setFillStyle()

void slideshow::internal::ShapeAttributeLayer::setFillStyle ( const sal_Int16 &  rStyle)

Changes polygon fillings.

Definition at line 561 of file shapeattributelayer.cxx.

References mbFillStyleValid, meFillStyle, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ setFontFamily()

void slideshow::internal::ShapeAttributeLayer::setFontFamily ( const OUString &  rName)

Set the text font family name globally for the whole shape.

Definition at line 705 of file shapeattributelayer.cxx.

References maFontFamily, mbFontFamilyValid, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createStringPropertyAnimation().

◆ setHeight()

void slideshow::internal::ShapeAttributeLayer::setHeight ( const double &  rNewHeight)

Set the new height of the shape.

Parameters
rNewHeightA negative height mirrors the shape.

Definition at line 292 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, maSize, mbHeightValid, mnTransformationState, and basegfx::Size2D< typename TYPE >::setHeight().

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setLineColor()

void slideshow::internal::ShapeAttributeLayer::setLineColor ( const RGBColor nNewColor)

Set the line color globally for the whole shape.

Definition at line 537 of file shapeattributelayer.cxx.

References maLineColor, mbLineColorValid, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createColorPropertyAnimation().

◆ setLineStyle()

void slideshow::internal::ShapeAttributeLayer::setLineStyle ( const sal_Int16 &  rStyle)

Set line style for the whole shape.

Definition at line 586 of file shapeattributelayer.cxx.

References mbLineStyleValid, meLineStyle, and mnContentState.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ setPosition()

void slideshow::internal::ShapeAttributeLayer::setPosition ( const ::basegfx::B2DPoint rNewPos)

Set the new position of the shape.

The current position of the shape is always relative to the center of the shape (in contrast to the Shape::getBounds() and Shape::getUpdateArea() methods).

Definition at line 361 of file shapeattributelayer.cxx.

References maPosition, mbPosXValid, mbPosYValid, and mnPositionState.

Referenced by slideshow::internal::AnimationFactory::createPairPropertyAnimation().

◆ setPosX()

void slideshow::internal::ShapeAttributeLayer::setPosX ( const double &  rNewX)

Set the new x position of the shape.

The current x position of the shape is always relative to the center of the shape (in contrast to the Shape::getBounds() and Shape::getUpdateArea() methods).

Definition at line 327 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, maPosition, mbPosXValid, mnPositionState, and basegfx::Tuple2D< typename TYPE >::setX().

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setPosY()

void slideshow::internal::ShapeAttributeLayer::setPosY ( const double &  rNewY)

Set the new y position of the shape.

The current y position of the shape is always relative to the center of the shape (in contrast to the Shape::getBounds() and Shape::getUpdateArea() methods).

Definition at line 351 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, maPosition, mbPosYValid, mnPositionState, and basegfx::Tuple2D< typename TYPE >::setY().

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setRotationAngle()

void slideshow::internal::ShapeAttributeLayer::setRotationAngle ( const double &  rNewAngle)

Set the new rotation angle of the shape.

Parameters
rNewAngleNew rotation angle in degrees.

Definition at line 382 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, mbRotationAngleValid, mnRotationAngle, and mnTransformationState.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setShearXAngle()

void slideshow::internal::ShapeAttributeLayer::setShearXAngle ( const double &  rNewAngle)

Set the new shear angle at the x axis of the shape.

Parameters
rNewAngleNew shear angle in radians.

Definition at line 405 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, mbShearXAngleValid, mnShearXAngle, and mnTransformationState.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setShearYAngle()

void slideshow::internal::ShapeAttributeLayer::setShearYAngle ( const double &  rNewAngle)

Set the new shear angle at the y axis of the shape.

Parameters
rNewAngleNew shear angle in radians.

Definition at line 428 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, mbShearYAngleValid, mnShearYAngle, and mnTransformationState.

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ setSize()

void slideshow::internal::ShapeAttributeLayer::setSize ( const ::basegfx::B2DSize rNewSize)

Set the new size of the shape.

Parameters
rNewSizeA negative size mirrors the shape.

Definition at line 302 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, maSize, mbHeightValid, mbWidthValid, and mnTransformationState.

Referenced by slideshow::internal::AnimationFactory::createPairPropertyAnimation().

◆ setUnderlineMode()

void slideshow::internal::ShapeAttributeLayer::setUnderlineMode ( const sal_Int16 &  bUnderline)

Set the underline status globally for the whole shape.

Definition at line 680 of file shapeattributelayer.cxx.

References mbUnderlineModeValid, mnContentState, and mnUnderlineMode.

Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().

◆ setVisibility()

void slideshow::internal::ShapeAttributeLayer::setVisibility ( const bool &  bVisible)

◆ setWidth()

void slideshow::internal::ShapeAttributeLayer::setWidth ( const double &  rNewWidth)

Set the new width of the shape.

Parameters
rNewWidthA negative width mirrors the shape.

Definition at line 268 of file shapeattributelayer.cxx.

References ENSURE_OR_THROW, maSize, mbWidthValid, mnTransformationState, and basegfx::Size2D< typename TYPE >::setWidth().

Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().

◆ updateStateIds()

void slideshow::internal::ShapeAttributeLayer::updateStateIds ( )
private

Update state ids.

This method updates all state IDs from possible children. Whenever a child's state ID changed, we increment ours.

Definition at line 41 of file shapeattributelayer.cxx.

References haveChild(), mnAlphaState, mnClipState, mnContentState, mnPositionState, mnTransformationState, mnVisibilityState, and mpChild.

Referenced by revokeChildLayer().

Member Data Documentation

◆ maCharColor

RGBColor slideshow::internal::ShapeAttributeLayer::maCharColor
private

Definition at line 497 of file shapeattributelayer.hxx.

Referenced by getCharColor(), and setCharColor().

◆ maClip

::basegfx::B2DPolyPolygon slideshow::internal::ShapeAttributeLayer::maClip
private

Definition at line 478 of file shapeattributelayer.hxx.

Referenced by getClip(), and setClip().

◆ maDimColor

RGBColor slideshow::internal::ShapeAttributeLayer::maDimColor
private

Definition at line 494 of file shapeattributelayer.hxx.

Referenced by getDimColor(), and setDimColor().

◆ maFillColor

RGBColor slideshow::internal::ShapeAttributeLayer::maFillColor
private

Definition at line 495 of file shapeattributelayer.hxx.

Referenced by getFillColor(), and setFillColor().

◆ maFontFamily

OUString slideshow::internal::ShapeAttributeLayer::maFontFamily
private

Definition at line 480 of file shapeattributelayer.hxx.

Referenced by getFontFamily(), and setFontFamily().

◆ maLineColor

RGBColor slideshow::internal::ShapeAttributeLayer::maLineColor
private

Definition at line 496 of file shapeattributelayer.hxx.

Referenced by getLineColor(), and setLineColor().

◆ maPosition

::basegfx::B2DPoint slideshow::internal::ShapeAttributeLayer::maPosition
private

Definition at line 477 of file shapeattributelayer.hxx.

Referenced by getPosX(), getPosY(), setPosition(), setPosX(), and setPosY().

◆ maSize

::basegfx::B2DSize slideshow::internal::ShapeAttributeLayer::maSize
private

Definition at line 476 of file shapeattributelayer.hxx.

Referenced by getHeight(), getWidth(), setHeight(), setSize(), and setWidth().

◆ mbAlphaValid

bool slideshow::internal::ShapeAttributeLayer::mbAlphaValid
private

Definition at line 522 of file shapeattributelayer.hxx.

Referenced by getAlpha(), isAlphaValid(), and setAlpha().

◆ mbCharColorValid

bool slideshow::internal::ShapeAttributeLayer::mbCharColorValid
private

Definition at line 529 of file shapeattributelayer.hxx.

Referenced by getCharColor(), isCharColorValid(), and setCharColor().

◆ mbCharPostureValid

bool slideshow::internal::ShapeAttributeLayer::mbCharPostureValid
private

Definition at line 535 of file shapeattributelayer.hxx.

Referenced by getCharPosture(), isCharPostureValid(), and setCharPosture().

◆ mbCharScaleValid

bool slideshow::internal::ShapeAttributeLayer::mbCharScaleValid
private

Definition at line 524 of file shapeattributelayer.hxx.

Referenced by getCharScale(), isCharScaleValid(), and setCharScale().

◆ mbCharWeightValid

bool slideshow::internal::ShapeAttributeLayer::mbCharWeightValid
private

Definition at line 533 of file shapeattributelayer.hxx.

Referenced by getCharWeight(), isCharWeightValid(), and setCharWeight().

◆ mbClipValid

bool slideshow::internal::ShapeAttributeLayer::mbClipValid
private

Definition at line 514 of file shapeattributelayer.hxx.

Referenced by getClip(), isClipValid(), and setClip().

◆ mbDimColorValid

bool slideshow::internal::ShapeAttributeLayer::mbDimColorValid
private

Definition at line 526 of file shapeattributelayer.hxx.

Referenced by getDimColor(), isDimColorValid(), and setDimColor().

◆ mbFillColorValid

bool slideshow::internal::ShapeAttributeLayer::mbFillColorValid
private

Definition at line 527 of file shapeattributelayer.hxx.

Referenced by getFillColor(), isFillColorValid(), and setFillColor().

◆ mbFillStyleValid

bool slideshow::internal::ShapeAttributeLayer::mbFillStyleValid
private

Definition at line 531 of file shapeattributelayer.hxx.

Referenced by getFillStyle(), isFillStyleValid(), and setFillStyle().

◆ mbFontFamilyValid

bool slideshow::internal::ShapeAttributeLayer::mbFontFamilyValid
private

Definition at line 516 of file shapeattributelayer.hxx.

Referenced by getFontFamily(), isFontFamilyValid(), and setFontFamily().

◆ mbHeightValid

bool slideshow::internal::ShapeAttributeLayer::mbHeightValid
private

Definition at line 511 of file shapeattributelayer.hxx.

Referenced by getHeight(), isHeightValid(), setHeight(), and setSize().

◆ mbLineColorValid

bool slideshow::internal::ShapeAttributeLayer::mbLineColorValid
private

Definition at line 528 of file shapeattributelayer.hxx.

Referenced by getLineColor(), isLineColorValid(), and setLineColor().

◆ mbLineStyleValid

bool slideshow::internal::ShapeAttributeLayer::mbLineStyleValid
private

Definition at line 532 of file shapeattributelayer.hxx.

Referenced by getLineStyle(), isLineStyleValid(), and setLineStyle().

◆ mbPosXValid

bool slideshow::internal::ShapeAttributeLayer::mbPosXValid
private

Definition at line 512 of file shapeattributelayer.hxx.

Referenced by getPosX(), isPosXValid(), setPosition(), and setPosX().

◆ mbPosYValid

bool slideshow::internal::ShapeAttributeLayer::mbPosYValid
private

Definition at line 513 of file shapeattributelayer.hxx.

Referenced by getPosY(), isPosYValid(), setPosition(), and setPosY().

◆ mbRotationAngleValid

bool slideshow::internal::ShapeAttributeLayer::mbRotationAngleValid
private

◆ mbShearXAngleValid

bool slideshow::internal::ShapeAttributeLayer::mbShearXAngleValid
private

Definition at line 519 of file shapeattributelayer.hxx.

Referenced by getShearXAngle(), isShearXAngleValid(), and setShearXAngle().

◆ mbShearYAngleValid

bool slideshow::internal::ShapeAttributeLayer::mbShearYAngleValid
private

Definition at line 520 of file shapeattributelayer.hxx.

Referenced by getShearYAngle(), isShearYAngleValid(), and setShearYAngle().

◆ mbUnderlineModeValid

bool slideshow::internal::ShapeAttributeLayer::mbUnderlineModeValid
private

◆ mbVisibility

bool slideshow::internal::ShapeAttributeLayer::mbVisibility
private

Definition at line 508 of file shapeattributelayer.hxx.

Referenced by getVisibility(), and setVisibility().

◆ mbVisibilityValid

bool slideshow::internal::ShapeAttributeLayer::mbVisibilityValid
private

Definition at line 536 of file shapeattributelayer.hxx.

Referenced by getVisibility(), isVisibilityValid(), and setVisibility().

◆ mbWidthValid

bool slideshow::internal::ShapeAttributeLayer::mbWidthValid
private

Definition at line 510 of file shapeattributelayer.hxx.

Referenced by getWidth(), isWidthValid(), setSize(), and setWidth().

◆ meCharPosture

css::awt::FontSlant slideshow::internal::ShapeAttributeLayer::meCharPosture
private

Definition at line 491 of file shapeattributelayer.hxx.

Referenced by getCharPosture(), and setCharPosture().

◆ meFillStyle

css::drawing::FillStyle slideshow::internal::ShapeAttributeLayer::meFillStyle
private

Definition at line 489 of file shapeattributelayer.hxx.

Referenced by getFillStyle(), and setFillStyle().

◆ meLineStyle

css::drawing::LineStyle slideshow::internal::ShapeAttributeLayer::meLineStyle
private

Definition at line 490 of file shapeattributelayer.hxx.

Referenced by getLineStyle(), and setLineStyle().

◆ mnAdditiveMode

sal_Int16 slideshow::internal::ShapeAttributeLayer::mnAdditiveMode
private

Definition at line 506 of file shapeattributelayer.hxx.

Referenced by calcValue(), and setAdditiveMode().

◆ mnAlpha

double slideshow::internal::ShapeAttributeLayer::mnAlpha
private

Definition at line 485 of file shapeattributelayer.hxx.

Referenced by getAlpha(), and setAlpha().

◆ mnAlphaState

State::StateId slideshow::internal::ShapeAttributeLayer::mnAlphaState
private

◆ mnCharScale

double slideshow::internal::ShapeAttributeLayer::mnCharScale
private

Definition at line 486 of file shapeattributelayer.hxx.

Referenced by getCharScale(), and setCharScale().

◆ mnCharWeight

double slideshow::internal::ShapeAttributeLayer::mnCharWeight
private

Definition at line 487 of file shapeattributelayer.hxx.

Referenced by getCharWeight(), and setCharWeight().

◆ mnClipState

State::StateId slideshow::internal::ShapeAttributeLayer::mnClipState
private

◆ mnContentState

State::StateId slideshow::internal::ShapeAttributeLayer::mnContentState
private

◆ mnPositionState

State::StateId slideshow::internal::ShapeAttributeLayer::mnPositionState
private

◆ mnRotationAngle

double slideshow::internal::ShapeAttributeLayer::mnRotationAngle
private

Definition at line 482 of file shapeattributelayer.hxx.

Referenced by getRotationAngle(), and setRotationAngle().

◆ mnShearXAngle

double slideshow::internal::ShapeAttributeLayer::mnShearXAngle
private

Definition at line 483 of file shapeattributelayer.hxx.

Referenced by getShearXAngle(), and setShearXAngle().

◆ mnShearYAngle

double slideshow::internal::ShapeAttributeLayer::mnShearYAngle
private

Definition at line 484 of file shapeattributelayer.hxx.

Referenced by getShearYAngle(), and setShearYAngle().

◆ mnTransformationState

State::StateId slideshow::internal::ShapeAttributeLayer::mnTransformationState
private

◆ mnUnderlineMode

sal_Int16 slideshow::internal::ShapeAttributeLayer::mnUnderlineMode
private

Definition at line 492 of file shapeattributelayer.hxx.

Referenced by getUnderlineMode(), and setUnderlineMode().

◆ mnVisibilityState

State::StateId slideshow::internal::ShapeAttributeLayer::mnVisibilityState
private

◆ mpChild

ShapeAttributeLayerSharedPtr slideshow::internal::ShapeAttributeLayer::mpChild
private

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