ThestateIDreturnedbythegetStateId()method abstractlyencodestheobject'sstate.WhenthisID changes,clientscanassumethattheobject'sstatehas changed.
*/ class State final
{ public:
/// Abstract, numerically encoded state ID typedef ::std::size_t StateId;
};
Andyes,there'sareasonwhyweevenpassboolsandints byconstreference.Namely,thatmakestheset*methods differonlyinthevaluetype,whichgreatlyreduces templatevariability(e.g.inAnimationFactory).
*/ class ShapeAttributeLayer
{ public: /** Create a ShapeAttributeLayer instance, with all attributessettodefault.
/** Query whether the width attribute is valid.
*/ bool isWidthValid() const; /** Query the current width of the shape
*/ double getWidth() const; /** Set the new width of the shape
/** Query whether the height attribute is valid.
*/ bool isHeightValid() const; /** Query the current height of the shape
*/ double getHeight() const; /** Set the new height of the shape
/** Query whether the x position attribute is valid
*/ bool isPosXValid() const; /** Query the current x position of the shape.
Thecurrentxpositionoftheshapeisalwaysrelative tothe<em>center</em>oftheshape(incontrastto theShape::getBounds()andShape::getUpdateArea() methods).
*/ double getPosX() const; /** Set the new x position of the shape
/** Query whether the y position attribute is valid
*/ bool isPosYValid() const; /** Query the current y position of the shape
Thecurrentypositionoftheshapeisalwaysrelative tothe<em>center</em>oftheshape(incontrastto theShape::getBounds()andShape::getUpdateArea() methods).
*/ double getPosY() const; /** Set the new y position of the shape
/** Query whether the shear x angle attribute is valid
*/ bool isShearXAngleValid() const; /** Query the current shear angle at the x axis of the shape
@returntheshearangleinradians.
*/ double getShearXAngle() const; /** Set the new shear angle at the x axis of the shape
/** Query whether the shear y angle attribute is valid
*/ bool isShearYAngleValid() const; /** Query the current shear angle at the y axis of the shape
@returntheshearangleinradians.
*/ double getShearYAngle() const; /** Set the new shear angle at the y axis of the shape
/** Query whether the alpha attribute is valid
*/ bool isAlphaValid() const; /** Query the current alpha value of the shape
*/ double getAlpha() const; /** Set the new alpha value of the shape
/** Query whether the clip attribute is valid
*/ bool isClipValid() const; /** Query the current clip polygon of the shape
*/
::basegfx::B2DPolyPolygon getClip() const; /** Set the new clip polygon of the shape
/** Query whether the dim color attribute is valid
Thedimcolorglobally'dims'theshapetowardsthat color
*/ bool isDimColorValid() const; /** Get the dim color for the whole shape.
*/
RGBColor getDimColor() const; /** Set the dim color globally for the whole shape.
*/ void setDimColor( const RGBColor& nNewColor );
/** Query whether the fill color attribute is valid
*/ bool isFillColorValid() const; /** Get the fill color for the whole shape.
Ifthere'snouniquefillcolor,thecolorfromthe firstfilledpolygonisreturned.
*/
RGBColor getFillColor() const; /** Set the fill color globally for the whole shape.
*/ void setFillColor( const RGBColor& nNewColor );
/** Query whether the line color attribute is valid
*/ bool isLineColorValid() const; /** Get the line color for the whole shape.
Ifthere'snouniquelinecolor,thecolorfromthe firstlineisreturned.
*/
RGBColor getLineColor() const; /** Set the line color globally for the whole shape.
*/ void setLineColor( const RGBColor& nNewColor );
/** Query whether the fill mode attribute is valid
*/ bool isFillStyleValid() const; /** Get the current fill mode for polygon fillings.
/** Query whether the line mode attribute is valid
*/ bool isLineStyleValid() const; /** Get the current line mode for line drawing.
@returnsthecurrentlinestyle
*/
sal_Int16 getLineStyle() const; /** Set line style for the whole shape
*/ void setLineStyle( const sal_Int16& rStyle );
/** Query whether the visibility state attribute is valid
*/ bool isVisibilityValid() const; /** Get the current shape visibility.
@returnstrueforvisible,falseforinvisible.
*/ bool getVisibility() const; /** Set the shape visibility
*/ void setVisibility( constbool& bVisible );
/** Query whether the char color attribute is valid
*/ bool isCharColorValid() const; /** Get the text color for the whole shape.
Ifthere'snouniquetextcolor,thecolorfromthe firsttextdrawnisreturned.
*/
RGBColor getCharColor() const; /** Set the text color globally for the whole shape.
*/ void setCharColor( const RGBColor& nNewColor );
/** Query whether the char weight attribute is valid
*/ bool isCharWeightValid() const; /** Get the current char weight value for the whole shape.
@returnsthevalueforthecharweight.Thevaluemust beoutofthecss::awt::FontWeight constantgroup.
*/ double getCharWeight() const; /** Set the char weight globally for the whole shape.
/** Query whether the underline mode attribute is valid
*/ bool isUnderlineModeValid() const; /** Get the current text underline status for the whole shape.
Ifthereisnouniqueunderlinestatus,falseisreturned.
@returnstrueforunderlinedtext,falsefornormal.
*/
sal_Int16 getUnderlineMode() const; /** Set the underline status globally for the whole shape
*/ void setUnderlineMode( const sal_Int16& bUnderline );
/** Query whether the font family attribute is valid
*/ bool isFontFamilyValid() const; /** Get the current text font family for the whole shape.
Ifthereisnouniquefontfamily,thefontfamilyof thefirsttextoftheshapeisreturned.
*/
OUString getFontFamily() const; /** Set the text font family name globally for the whole shape
*/ void setFontFamily( const OUString& rName );
/** Query whether the italic mode attribute is valid
*/ bool isCharPostureValid() const; /** Get the current text italic style for the whole shape.
@returnstheitalicstyle.Thevaluereturnedisone ofthecss::awt::FontSlantenums
*/
sal_Int16 getCharPosture() const; /** Set the italic style globally for the whole shape.
/** Query whether the char scaling attribute is valid
*/ bool isCharScaleValid() const; /** Query the current char scaling attribute globally for theshape.
Thecharscalingchangesthescaleofthewholeshape text(uniformly,i.e.bothinxandinydirection).
*/ double getCharScale() const; /** Set the new char scale globally for the shape
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.