20#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_SHAPEATTRIBUTELAYER_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_SHAPEATTRIBUTELAYER_HXX
23#include <com/sun/star/drawing/FillStyle.hpp>
24#include <com/sun/star/drawing/LineStyle.hpp>
25#include <com/sun/star/awt/FontSlant.hpp>
142 void setWidth(
const double& rNewWidth );
155 void setHeight(
const double& rNewHeight );
162 void setSize( const ::basegfx::B2DSize& rNewSize );
182 void setPosX(
const double& rNewX );
202 void setPosY(
const double& rNewY );
211 void setPosition( const ::basegfx::B2DPoint& rNewPos );
269 void setAlpha(
const double& rNewValue );
284 void setClip( const ::basegfx::B2DPolyPolygon& rNewClip );
469 template<
typename T > T
calcValue(
const T& rCurrValue,
470 bool bThisInstanceValid,
Encapsulates all modifiable attributes of a shape.
void setCharPosture(const sal_Int16 &rStyle)
Set the italic style globally for the whole shape.
bool revokeChildLayer(const ShapeAttributeLayerSharedPtr &rChildLayer)
Revoke the given layer.
void setWidth(const double &rNewWidth)
Set the new width of the shape.
OUString getFontFamily() const
Get the current text font family for the whole shape.
State::StateId mnAlphaState
double getShearYAngle() const
Query the current shear angle at the y axis of the shape.
State::StateId mnContentState
::basegfx::B2DSize maSize
void setVisibility(const bool &bVisible)
Set the shape visibility.
void setShearYAngle(const double &rNewAngle)
Set the new shear angle at the y axis of the shape.
RGBColor getFillColor() const
Get the fill color for the whole shape.
RGBColor getDimColor() const
Get the dim color for the whole shape.
bool isUnderlineModeValid() const
Query whether the underline mode attribute is valid.
bool isShearXAngleValid() const
Query whether the shear x angle attribute is valid.
void setFontFamily(const OUString &rName)
Set the text font family name globally for the whole shape.
void setPosX(const double &rNewX)
Set the new x position of the shape.
T calcValue(const T &rCurrValue, bool bThisInstanceValid, bool(ShapeAttributeLayer::*pIsValid)() const, T(ShapeAttributeLayer::*pGetValue)() const) const
Calc attribute value.
void setLineStyle(const sal_Int16 &rStyle)
Set line style for the whole shape.
State::StateId getContentState() const
void setSize(const ::basegfx::B2DSize &rNewSize)
Set the new size of the shape.
bool isShearYAngleValid() const
Query whether the shear y angle attribute is valid.
double getCharWeight() const
Get the current char weight value for the whole shape.
void updateStateIds()
Update state ids.
bool mbUnderlineModeValid
sal_Int16 mnUnderlineMode
void setCharWeight(const double &rStyle)
Set the char weight globally for the whole shape.
State::StateId getVisibilityState() const
State::StateId mnClipState
void setAlpha(const double &rNewValue)
Set the new alpha value of the shape.
State::StateId mnPositionState
bool isCharPostureValid() const
Query whether the italic mode attribute is valid.
State::StateId getClipState() const
bool mbRotationAngleValid
void setPosition(const ::basegfx::B2DPoint &rNewPos)
Set the new position of the shape.
void setFillStyle(const sal_Int16 &rStyle)
Changes polygon fillings.
bool isFillColorValid() const
Query whether the fill color attribute is valid.
void setUnderlineMode(const sal_Int16 &bUnderline)
Set the underline status globally for the whole shape.
void setHeight(const double &rNewHeight)
Set the new height of the shape.
bool isLineColorValid() const
Query whether the line color attribute is valid.
bool isFontFamilyValid() const
Query whether the font family attribute is valid.
bool isVisibilityValid() const
Query whether the visibility state attribute is valid.
const ShapeAttributeLayerSharedPtr & getChildLayer() const
Query the child layer of this object.
bool isRotationAngleValid() const
Query whether the rotation angle attribute is valid.
RGBColor getCharColor() const
Get the text color for the whole shape.
State::StateId getPositionState() const
double getPosY() const
Query the current y position of the shape.
void setRotationAngle(const double &rNewAngle)
Set the new rotation angle of the shape.
css::drawing::LineStyle meLineStyle
bool isCharColorValid() const
Query whether the char color attribute is valid.
State::StateId getTransformationState() const
sal_Int16 getLineStyle() const
Get the current line mode for line drawing.
void setCharColor(const RGBColor &nNewColor)
Set the text color globally for the whole shape.
bool isCharScaleValid() const
Query whether the char scaling attribute is valid.
bool isPosXValid() const
Query whether the x position attribute is valid.
bool isDimColorValid() const
Query whether the dim color attribute is valid.
double getShearXAngle() const
Query the current shear angle at the x axis of the shape.
ShapeAttributeLayerSharedPtr mpChild
void setAdditiveMode(sal_Int16 nMode)
Set the additive mode for possible child attributes.
ShapeAttributeLayer(const ShapeAttributeLayerSharedPtr &rChildLayer)
Create a ShapeAttributeLayer instance, with all attributes set to default.
sal_Int16 getFillStyle() const
Get the current fill mode for polygon fillings.
double getAlpha() const
Query the current alpha value of the shape.
bool isWidthValid() const
Query whether the width attribute is valid.
void setFillColor(const RGBColor &nNewColor)
Set the fill color globally for the whole shape.
void setCharScale(const double &rNewScale)
Set the new char scale globally for the shape.
css::drawing::FillStyle meFillStyle
bool isPosYValid() const
Query whether the y position attribute is valid.
State::StateId mnTransformationState
bool isAlphaValid() const
Query whether the alpha attribute is valid.
double getRotationAngle() const
Query the current rotation angle of the shape.
void setDimColor(const RGBColor &nNewColor)
Set the dim color globally for the whole shape.
bool isLineStyleValid() const
Query whether the line mode attribute is valid.
bool isClipValid() const
Query whether the clip attribute is valid.
css::awt::FontSlant meCharPosture
void setClip(const ::basegfx::B2DPolyPolygon &rNewClip)
Set the new clip polygon of the shape.
double getHeight() const
Query the current height of the shape.
double getWidth() const
Query the current width of the shape.
sal_Int16 getUnderlineMode() const
Get the current text underline status for the whole shape.
bool isFillStyleValid() const
Query whether the fill mode attribute is valid.
State::StateId mnVisibilityState
sal_Int16 getCharPosture() const
Get the current text italic style for the whole shape.
::basegfx::B2DPolyPolygon getClip() const
Query the current clip polygon of the shape.
bool isCharWeightValid() const
Query whether the char weight attribute is valid.
bool getVisibility() const
Get the current shape visibility.
double getPosX() const
Query the current x position of the shape.
void setShearXAngle(const double &rNewAngle)
Set the new shear angle at the x axis of the shape.
double getCharScale() const
Query the current char scaling attribute globally for the shape.
State::StateId getAlphaState() const
void setLineColor(const RGBColor &nNewColor)
Set the line color globally for the whole shape.
RGBColor getLineColor() const
Get the line color for the whole shape.
bool isHeightValid() const
Query whether the height attribute is valid.
::basegfx::B2DPoint maPosition
::basegfx::B2DPolyPolygon maClip
void setPosY(const double &rNewY)
Set the new y position of the shape.
This interface represents a stateful object.
::std::size_t StateId
Abstract, numerically encoded state ID.
::std::shared_ptr< ShapeAttributeLayer > ShapeAttributeLayerSharedPtr