LibreOffice Module slideshow (master) 1
|
Encapsulates all modifiable attributes of a shape. More...
#include <shapeattributelayer.hxx>
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 ShapeAttributeLayerSharedPtr & | getChildLayer () 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 > | |
T | calcValue (const T &rCurrValue, bool bThisInstanceValid, bool(ShapeAttributeLayer::*pIsValid)() const, T(ShapeAttributeLayer::*pGetValue)() const) const |
Calc attribute value. More... | |
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.
|
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
rChildLayer | Layer below this one |
Definition at line 121 of file shapeattributelayer.cxx.
References BASE, maFillColor, maPosition, and maSize.
|
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().
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().
State::StateId slideshow::internal::ShapeAttributeLayer::getAlphaState | ( | ) | const |
Definition at line 776 of file shapeattributelayer.cxx.
References haveChild(), mnAlphaState, and mpChild.
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().
sal_Int16 slideshow::internal::ShapeAttributeLayer::getCharPosture | ( | ) | const |
Get the current text italic style for the whole shape.
Definition at line 717 of file shapeattributelayer.cxx.
References haveChild(), mbCharPostureValid, meCharPosture, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().
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().
double slideshow::internal::ShapeAttributeLayer::getCharWeight | ( | ) | const |
Get the current char weight value for the whole shape.
Definition at line 643 of file shapeattributelayer.cxx.
References haveChild(), mbCharWeightValid, mnCharWeight, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().
const ShapeAttributeLayerSharedPtr & slideshow::internal::ShapeAttributeLayer::getChildLayer | ( | ) | const |
Query the child layer of this object.
Definition at line 229 of file shapeattributelayer.cxx.
References mpChild.
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.
State::StateId slideshow::internal::ShapeAttributeLayer::getClipState | ( | ) | const |
Definition at line 768 of file shapeattributelayer.cxx.
References haveChild(), mnClipState, and mpChild.
State::StateId slideshow::internal::ShapeAttributeLayer::getContentState | ( | ) | const |
Definition at line 792 of file shapeattributelayer.cxx.
References haveChild(), mnContentState, and mpChild.
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().
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().
sal_Int16 slideshow::internal::ShapeAttributeLayer::getFillStyle | ( | ) | const |
Get the current fill mode for polygon fillings.
Definition at line 549 of file shapeattributelayer.cxx.
References haveChild(), mbFillStyleValid, meFillStyle, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().
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().
double slideshow::internal::ShapeAttributeLayer::getHeight | ( | ) | const |
Query the current height of the shape.
Definition at line 283 of file shapeattributelayer.cxx.
References basegfx::Size2D< typename TYPE >::getHeight(), getHeight(), isHeightValid(), maSize, and mbHeightValid.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getHeight().
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().
sal_Int16 slideshow::internal::ShapeAttributeLayer::getLineStyle | ( | ) | const |
Get the current line mode for line drawing.
Definition at line 574 of file shapeattributelayer.cxx.
References haveChild(), mbLineStyleValid, meLineStyle, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().
State::StateId slideshow::internal::ShapeAttributeLayer::getPositionState | ( | ) | const |
Definition at line 784 of file shapeattributelayer.cxx.
References haveChild(), mnPositionState, and mpChild.
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().
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().
double slideshow::internal::ShapeAttributeLayer::getRotationAngle | ( | ) | const |
Query the current rotation angle of the shape.
Definition at line 373 of file shapeattributelayer.cxx.
References getRotationAngle(), isRotationAngleValid(), mbRotationAngleValid, and mnRotationAngle.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getRotationAngle().
double slideshow::internal::ShapeAttributeLayer::getShearXAngle | ( | ) | const |
Query the current shear angle at the x axis of the shape.
Definition at line 397 of file shapeattributelayer.cxx.
References calcValue(), getShearXAngle(), isShearXAngleValid(), mbShearXAngleValid, and mnShearXAngle.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getShearXAngle().
double slideshow::internal::ShapeAttributeLayer::getShearYAngle | ( | ) | const |
Query the current shear angle at the y axis of the shape.
Definition at line 420 of file shapeattributelayer.cxx.
References calcValue(), getShearYAngle(), isShearYAngleValid(), mbShearYAngleValid, and mnShearYAngle.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), and getShearYAngle().
State::StateId slideshow::internal::ShapeAttributeLayer::getTransformationState | ( | ) | const |
Definition at line 760 of file shapeattributelayer.cxx.
References haveChild(), mnTransformationState, and mpChild.
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.
Definition at line 668 of file shapeattributelayer.cxx.
References haveChild(), mbUnderlineModeValid, mnUnderlineMode, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createEnumPropertyAnimation().
bool slideshow::internal::ShapeAttributeLayer::getVisibility | ( | ) | const |
Get the current shape visibility.
Definition at line 599 of file shapeattributelayer.cxx.
References haveChild(), mbVisibility, mbVisibilityValid, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createBoolPropertyAnimation().
State::StateId slideshow::internal::ShapeAttributeLayer::getVisibilityState | ( | ) | const |
Definition at line 800 of file shapeattributelayer.cxx.
References haveChild(), mnVisibilityState, and mpChild.
double slideshow::internal::ShapeAttributeLayer::getWidth | ( | ) | const |
Query the current width of the shape.
Definition at line 259 of file shapeattributelayer.cxx.
References basegfx::Size2D< typename TYPE >::getWidth(), getWidth(), isWidthValid(), maSize, and mbWidthValid.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getWidth().
|
inlineprivate |
Definition at line 466 of file shapeattributelayer.hxx.
References mpChild.
Referenced by calcValue(), getAlphaState(), getCharPosture(), getCharWeight(), getClip(), getClipState(), getContentState(), getFillStyle(), getFontFamily(), getLineStyle(), getPositionState(), getTransformationState(), getUnderlineMode(), getVisibility(), getVisibilityState(), isAlphaValid(), isCharColorValid(), isCharPostureValid(), isCharScaleValid(), isCharWeightValid(), isClipValid(), isDimColorValid(), isFillColorValid(), isFillStyleValid(), isFontFamilyValid(), isHeightValid(), isLineColorValid(), isLineStyleValid(), isPosXValid(), isPosYValid(), isRotationAngleValid(), isShearXAngleValid(), isShearYAngleValid(), isUnderlineModeValid(), isVisibilityValid(), isWidthValid(), revokeChildLayer(), and updateStateIds().
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().
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().
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().
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().
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().
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.
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().
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().
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().
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().
bool slideshow::internal::ShapeAttributeLayer::isHeightValid | ( | ) | const |
Query whether the height attribute is valid.
Definition at line 278 of file shapeattributelayer.cxx.
References haveChild(), mbHeightValid, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getHeight().
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().
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().
bool slideshow::internal::ShapeAttributeLayer::isPosXValid | ( | ) | const |
Query whether the x position attribute is valid.
Definition at line 313 of file shapeattributelayer.cxx.
References haveChild(), mbPosXValid, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getPosX().
bool slideshow::internal::ShapeAttributeLayer::isPosYValid | ( | ) | const |
Query whether the y position attribute is valid.
Definition at line 337 of file shapeattributelayer.cxx.
References haveChild(), mbPosYValid, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getPosY().
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().
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().
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().
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().
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().
bool slideshow::internal::ShapeAttributeLayer::isWidthValid | ( | ) | const |
Query whether the width attribute is valid.
Definition at line 254 of file shapeattributelayer.cxx.
References haveChild(), mbWidthValid, and mpChild.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation(), slideshow::internal::AnimationFactory::createPairPropertyAnimation(), and getWidth().
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.
Definition at line 188 of file shapeattributelayer.cxx.
References ENSURE_OR_RETURN_FALSE, haveChild(), mnAlphaState, mnClipState, mnContentState, mnPositionState, mnTransformationState, mnVisibilityState, mpChild, and updateStateIds().
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.
nMode | Must be one of css::animations::AnimationAdditiveMode. |
Definition at line 234 of file shapeattributelayer.cxx.
References mnAdditiveMode, mnAlphaState, mnClipState, mnContentState, mnPositionState, mnTransformationState, and mnVisibilityState.
void slideshow::internal::ShapeAttributeLayer::setAlpha | ( | const double & | rNewValue | ) |
Set the new alpha value of the shape.
rNewValue | New 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().
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().
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().
void slideshow::internal::ShapeAttributeLayer::setCharScale | ( | const double & | rNewScale | ) |
Set the new char scale globally for the shape.
rNewScale | New char scale |
Definition at line 750 of file shapeattributelayer.cxx.
References ENSURE_OR_THROW, mbCharScaleValid, mnCharScale, and mnContentState.
Referenced by slideshow::internal::AnimationFactory::createNumberPropertyAnimation().
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().
void slideshow::internal::ShapeAttributeLayer::setClip | ( | const ::basegfx::B2DPolyPolygon & | rNewClip | ) |
Set the new clip polygon of the shape.
rNewClip | New 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.
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().
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().
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().
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().
void slideshow::internal::ShapeAttributeLayer::setHeight | ( | const double & | rNewHeight | ) |
Set the new height of the shape.
rNewHeight | A 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().
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().
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().
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().
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().
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().
void slideshow::internal::ShapeAttributeLayer::setRotationAngle | ( | const double & | rNewAngle | ) |
Set the new rotation angle of the shape.
rNewAngle | New 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().
void slideshow::internal::ShapeAttributeLayer::setShearXAngle | ( | const double & | rNewAngle | ) |
Set the new shear angle at the x axis of the shape.
rNewAngle | New 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().
void slideshow::internal::ShapeAttributeLayer::setShearYAngle | ( | const double & | rNewAngle | ) |
Set the new shear angle at the y axis of the shape.
rNewAngle | New 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().
void slideshow::internal::ShapeAttributeLayer::setSize | ( | const ::basegfx::B2DSize & | rNewSize | ) |
Set the new size of the shape.
rNewSize | A 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().
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().
void slideshow::internal::ShapeAttributeLayer::setVisibility | ( | const bool & | bVisible | ) |
Set the shape visibility.
Definition at line 611 of file shapeattributelayer.cxx.
References bVisible, mbVisibility, mbVisibilityValid, and mnVisibilityState.
Referenced by slideshow::internal::AnimationFactory::createBoolPropertyAnimation().
void slideshow::internal::ShapeAttributeLayer::setWidth | ( | const double & | rNewWidth | ) |
Set the new width of the shape.
rNewWidth | A 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().
|
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().
|
private |
Definition at line 497 of file shapeattributelayer.hxx.
Referenced by getCharColor(), and setCharColor().
|
private |
Definition at line 478 of file shapeattributelayer.hxx.
|
private |
Definition at line 494 of file shapeattributelayer.hxx.
Referenced by getDimColor(), and setDimColor().
|
private |
Definition at line 495 of file shapeattributelayer.hxx.
Referenced by getFillColor(), and setFillColor().
|
private |
Definition at line 480 of file shapeattributelayer.hxx.
Referenced by getFontFamily(), and setFontFamily().
|
private |
Definition at line 496 of file shapeattributelayer.hxx.
Referenced by getLineColor(), and setLineColor().
|
private |
Definition at line 477 of file shapeattributelayer.hxx.
Referenced by getPosX(), getPosY(), setPosition(), setPosX(), and setPosY().
|
private |
Definition at line 476 of file shapeattributelayer.hxx.
Referenced by getHeight(), getWidth(), setHeight(), setSize(), and setWidth().
|
private |
Definition at line 522 of file shapeattributelayer.hxx.
Referenced by getAlpha(), isAlphaValid(), and setAlpha().
|
private |
Definition at line 529 of file shapeattributelayer.hxx.
Referenced by getCharColor(), isCharColorValid(), and setCharColor().
|
private |
Definition at line 535 of file shapeattributelayer.hxx.
Referenced by getCharPosture(), isCharPostureValid(), and setCharPosture().
|
private |
Definition at line 524 of file shapeattributelayer.hxx.
Referenced by getCharScale(), isCharScaleValid(), and setCharScale().
|
private |
Definition at line 533 of file shapeattributelayer.hxx.
Referenced by getCharWeight(), isCharWeightValid(), and setCharWeight().
|
private |
Definition at line 514 of file shapeattributelayer.hxx.
Referenced by getClip(), isClipValid(), and setClip().
|
private |
Definition at line 526 of file shapeattributelayer.hxx.
Referenced by getDimColor(), isDimColorValid(), and setDimColor().
|
private |
Definition at line 527 of file shapeattributelayer.hxx.
Referenced by getFillColor(), isFillColorValid(), and setFillColor().
|
private |
Definition at line 531 of file shapeattributelayer.hxx.
Referenced by getFillStyle(), isFillStyleValid(), and setFillStyle().
|
private |
Definition at line 516 of file shapeattributelayer.hxx.
Referenced by getFontFamily(), isFontFamilyValid(), and setFontFamily().
|
private |
Definition at line 511 of file shapeattributelayer.hxx.
Referenced by getHeight(), isHeightValid(), setHeight(), and setSize().
|
private |
Definition at line 528 of file shapeattributelayer.hxx.
Referenced by getLineColor(), isLineColorValid(), and setLineColor().
|
private |
Definition at line 532 of file shapeattributelayer.hxx.
Referenced by getLineStyle(), isLineStyleValid(), and setLineStyle().
|
private |
Definition at line 512 of file shapeattributelayer.hxx.
Referenced by getPosX(), isPosXValid(), setPosition(), and setPosX().
|
private |
Definition at line 513 of file shapeattributelayer.hxx.
Referenced by getPosY(), isPosYValid(), setPosition(), and setPosY().
|
private |
Definition at line 518 of file shapeattributelayer.hxx.
Referenced by getRotationAngle(), isRotationAngleValid(), and setRotationAngle().
|
private |
Definition at line 519 of file shapeattributelayer.hxx.
Referenced by getShearXAngle(), isShearXAngleValid(), and setShearXAngle().
|
private |
Definition at line 520 of file shapeattributelayer.hxx.
Referenced by getShearYAngle(), isShearYAngleValid(), and setShearYAngle().
|
private |
Definition at line 534 of file shapeattributelayer.hxx.
Referenced by getUnderlineMode(), isUnderlineModeValid(), and setUnderlineMode().
|
private |
Definition at line 508 of file shapeattributelayer.hxx.
Referenced by getVisibility(), and setVisibility().
|
private |
Definition at line 536 of file shapeattributelayer.hxx.
Referenced by getVisibility(), isVisibilityValid(), and setVisibility().
|
private |
Definition at line 510 of file shapeattributelayer.hxx.
Referenced by getWidth(), isWidthValid(), setSize(), and setWidth().
|
private |
Definition at line 491 of file shapeattributelayer.hxx.
Referenced by getCharPosture(), and setCharPosture().
|
private |
Definition at line 489 of file shapeattributelayer.hxx.
Referenced by getFillStyle(), and setFillStyle().
|
private |
Definition at line 490 of file shapeattributelayer.hxx.
Referenced by getLineStyle(), and setLineStyle().
|
private |
Definition at line 506 of file shapeattributelayer.hxx.
Referenced by calcValue(), and setAdditiveMode().
|
private |
Definition at line 485 of file shapeattributelayer.hxx.
Referenced by getAlpha(), and setAlpha().
|
private |
Definition at line 501 of file shapeattributelayer.hxx.
Referenced by getAlphaState(), revokeChildLayer(), setAdditiveMode(), setAlpha(), and updateStateIds().
|
private |
Definition at line 486 of file shapeattributelayer.hxx.
Referenced by getCharScale(), and setCharScale().
|
private |
Definition at line 487 of file shapeattributelayer.hxx.
Referenced by getCharWeight(), and setCharWeight().
|
private |
Definition at line 500 of file shapeattributelayer.hxx.
Referenced by getClipState(), revokeChildLayer(), setAdditiveMode(), setClip(), and updateStateIds().
|
private |
Definition at line 503 of file shapeattributelayer.hxx.
Referenced by getContentState(), revokeChildLayer(), setAdditiveMode(), setCharColor(), setCharPosture(), setCharScale(), setCharWeight(), setDimColor(), setFillColor(), setFillStyle(), setFontFamily(), setLineColor(), setLineStyle(), setUnderlineMode(), and updateStateIds().
|
private |
Definition at line 502 of file shapeattributelayer.hxx.
Referenced by getPositionState(), revokeChildLayer(), setAdditiveMode(), setPosition(), setPosX(), setPosY(), and updateStateIds().
|
private |
Definition at line 482 of file shapeattributelayer.hxx.
Referenced by getRotationAngle(), and setRotationAngle().
|
private |
Definition at line 483 of file shapeattributelayer.hxx.
Referenced by getShearXAngle(), and setShearXAngle().
|
private |
Definition at line 484 of file shapeattributelayer.hxx.
Referenced by getShearYAngle(), and setShearYAngle().
|
private |
Definition at line 499 of file shapeattributelayer.hxx.
Referenced by getTransformationState(), revokeChildLayer(), setAdditiveMode(), setHeight(), setRotationAngle(), setShearXAngle(), setShearYAngle(), setSize(), setWidth(), and updateStateIds().
|
private |
Definition at line 492 of file shapeattributelayer.hxx.
Referenced by getUnderlineMode(), and setUnderlineMode().
|
private |
Definition at line 504 of file shapeattributelayer.hxx.
Referenced by getVisibilityState(), revokeChildLayer(), setAdditiveMode(), setVisibility(), and updateStateIds().
|
private |
Definition at line 474 of file shapeattributelayer.hxx.
Referenced by calcValue(), getAlphaState(), getCharPosture(), getCharWeight(), getChildLayer(), getClip(), getClipState(), getContentState(), getFillStyle(), getFontFamily(), getLineStyle(), getPositionState(), getTransformationState(), getUnderlineMode(), getVisibility(), getVisibilityState(), haveChild(), isAlphaValid(), isCharColorValid(), isCharPostureValid(), isCharScaleValid(), isCharWeightValid(), isClipValid(), isDimColorValid(), isFillColorValid(), isFillStyleValid(), isFontFamilyValid(), isHeightValid(), isLineColorValid(), isLineStyleValid(), isPosXValid(), isPosYValid(), isRotationAngleValid(), isShearXAngleValid(), isShearYAngleValid(), isUnderlineModeValid(), isVisibilityValid(), isWidthValid(), revokeChildLayer(), and updateStateIds().