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 //start id for user defined text attributes
35 #define TEXTATTR_PROTECTED 4
51 sal_uInt16
Which()
const {
return mnWhich; }
52 virtual void SetFont(
vcl::Font& rFont )
const = 0;
53 virtual std::unique_ptr<TextAttrib>
Clone()
const = 0;
57 {
return !(*
this == rAttr ); }
72 virtual std::unique_ptr<TextAttrib>
Clone()
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 );
135 inline bool IsInside( sal_Int32 nIndex );
174 return ( (
mnStart <= nIndex ) && (
mnEnd >= nIndex ) );
187 #endif // INCLUDED_VCL_TXTATTR_HXX
const Color & GetColor() const
FontWeight getFontWeight() const
sal_Int32 GetStart() const
void Collaps(sal_Int32 nDiff)
virtual bool operator==(const TextAttrib &rAttr) const override
virtual void SetFont(vcl::Font &rFont) const =0
bool IsInside(sal_Int32 nIndex)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)
virtual void SetFont(vcl::Font &rFont) const override
#define DBG_ASSERT(sCon, aError)
Reference< XAnimationNode > Clone(const Reference< XAnimationNode > &xSourceNode, const SdPage *pSource, const SdPage *pTarget)
std::unique_ptr< TextAttrib > mpAttr
virtual std::unique_ptr< TextAttrib > Clone() const =0
void MoveBackward(sal_Int32 nDiff)
const TextAttrib & GetAttr() const
TextAttrib(sal_uInt16 nWhich)
void Expand(sal_Int32 nDiff)
virtual bool operator==(const TextAttrib &rAttr) const =0
TextCharAttrib(const TextAttrib &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
bool IsIn(sal_Int32 nIndex)
virtual std::unique_ptr< TextAttrib > Clone() const override
bool operator!=(const TextAttrib &rAttr) const
void MoveForward(sal_Int32 nDiff)
void SetStart(sal_Int32 n)