summaryrefslogtreecommitdiff
path: root/svx/source/editeng/editattr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/editeng/editattr.cxx')
-rw-r--r--svx/source/editeng/editattr.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/svx/source/editeng/editattr.cxx b/svx/source/editeng/editattr.cxx
index 543df6712170..a3b2b0c7ccb1 100644
--- a/svx/source/editeng/editattr.cxx
+++ b/svx/source/editeng/editattr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: editattr.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mt $ $Date: 2001-03-02 16:31:50 $
+ * last change: $Author: mt $ $Date: 2001-04-02 14:07:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,6 +82,7 @@
#include <langitem.hxx>
#include <emphitem.hxx>
#include <charscaleitem.hxx>
+#include <charreliefitem.hxx>
#include <editattr.hxx>
@@ -448,3 +449,17 @@ void EditCharAttribEmphasisMark::SetFont( SvxFont& rFont, OutputDevice* )
{
rFont.SetEmphasisMark( ((const SvxEmphasisMarkItem*)GetItem())->GetEmphasisMark() );
}
+
+// -------------------------------------------------------------------------
+// class EditCharAttribRelief
+// -------------------------------------------------------------------------
+EditCharAttribRelief::EditCharAttribRelief( const SvxCharReliefItem& rAttr, USHORT nStart, USHORT nEnd )
+ : EditCharAttrib( rAttr, nStart, nEnd )
+{
+ DBG_ASSERT( rAttr.Which() == EE_CHAR_RELIEF, "Not a relief attribute!" );
+}
+
+void EditCharAttribRelief::SetFont( SvxFont& rFont, OutputDevice* )
+{
+ rFont.SetRelief( (FontRelief)((const SvxCharReliefItem*)GetItem())->GetValue() );
+}