summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2001-05-17 09:28:29 +0000
committerPeter Burow <pb@openoffice.org>2001-05-17 09:28:29 +0000
commitdf168e02cc9c1c2aaff428955a1e3c25705e7b8a (patch)
tree4165cacb94b5f7d6493006cc33f221414fa80b7f /svtools/inc
parentdf9fcc5ad07acf4305a9dc1ac9cd497eca84dfe5 (diff)
fix: #87061# new class TextAttribFontWeight
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/txtattr.hxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/svtools/inc/txtattr.hxx b/svtools/inc/txtattr.hxx
index 80acb67563bc..9aaef7bff8ee 100644
--- a/svtools/inc/txtattr.hxx
+++ b/svtools/inc/txtattr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtattr.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:58:54 $
+ * last change: $Author: pb $ $Date: 2001-05-17 10:25:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,6 +66,10 @@
#include <vcl/color.hxx>
#endif
+#ifndef _VCL_VCLENUM_HXX
+#include <vcl/vclenum.hxx>
+#endif
+
#ifndef _STRING_HXX //autogen
#include <tools/string.hxx>
#endif
@@ -79,6 +83,7 @@ class Font;
#define TEXTATTR_INVALID 0
#define TEXTATTR_FONTCOLOR 1
#define TEXTATTR_HYPERLINK 2
+#define TEXTATTR_FONTWEIGHT 3
@@ -121,6 +126,20 @@ public:
virtual int operator==( const TextAttrib& rAttr ) const;
};
+class TextAttribFontWeight : public TextAttrib
+{
+private:
+ FontWeight meWeight;
+
+public:
+ TextAttribFontWeight( FontWeight eWeight );
+ TextAttribFontWeight( const TextAttribFontWeight& rAttr );
+ ~TextAttribFontWeight();
+
+ virtual void SetFont( Font& rFont ) const;
+ virtual TextAttrib* Clone() const;
+ virtual int operator==( const TextAttrib& rAttr ) const;
+};
class TextAttribHyperLink : public TextAttrib