20#ifndef INCLUDED_VCL_TXTATTR_HXX
21#define INCLUDED_VCL_TXTATTR_HXX
31#define TEXTATTR_FONTCOLOR 1
32#define TEXTATTR_FONTWEIGHT 3
34#define TEXTATTR_USER_START 1000
35#define TEXTATTR_PROTECTED 4
51 sal_uInt16
Which()
const {
return mnWhich; }
53 virtual std::unique_ptr<TextAttrib>
Clone()
const = 0;
57 {
return !(*
this == rAttr ); }
71 virtual void SetFont(
vcl::Font& rFont )
const override;
72 virtual std::unique_ptr<TextAttrib>
Clone()
const override;
85 virtual void SetFont(
vcl::Font& rFont )
const override;
86 virtual std::unique_ptr<TextAttrib>
Clone()
const override;
98 virtual std::unique_ptr<TextAttrib>
Clone()
const override;
107 std::unique_ptr<TextAttrib>
126 inline sal_Int32
GetLen()
const;
131 inline void Expand( sal_Int32 nDiff );
132 inline void Collaps( sal_Int32 nDiff );
134 inline bool IsIn( sal_Int32 nIndex )
const;
135 inline bool IsInside( sal_Int32 nIndex )
const;
const Color & GetColor() const
FontWeight getFontWeight() const
virtual std::unique_ptr< TextAttrib > Clone() const override
virtual bool operator==(const TextAttrib &rAttr) const override
virtual void SetFont(vcl::Font &rFont) const override
TextAttrib(sal_uInt16 nWhich)
virtual std::unique_ptr< TextAttrib > Clone() const =0
virtual void SetFont(vcl::Font &rFont) const =0
bool operator!=(const TextAttrib &rAttr) const
TextAttrib(const TextAttrib &)=default
void Expand(sal_Int32 nDiff)
void MoveBackward(sal_Int32 nDiff)
void Collaps(sal_Int32 nDiff)
void SetStart(sal_Int32 n)
const TextAttrib & GetAttr() const
TextCharAttrib(const TextAttrib &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
bool IsIn(sal_Int32 nIndex) const
void MoveForward(sal_Int32 nDiff)
sal_Int32 GetStart() const
bool IsInside(sal_Int32 nIndex) const
std::unique_ptr< TextAttrib > mpAttr
#define DBG_ASSERT(sCon, aError)
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)