summaryrefslogtreecommitdiff
path: root/svx/source/svrtf
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-03-12 15:19:49 +0000
committerjp <jp@openoffice.org>2001-03-12 15:19:49 +0000
commit4141dbfa7c30f3e0329bb4ccc577b52bbc85589d (patch)
tree602a258101ff8d6fa0a4a1e7ee795eb388656ddb /svx/source/svrtf
parentfd382a483f7d9e30bf99efc612da0c6a5fffc851 (diff)
import relief item
Diffstat (limited to 'svx/source/svrtf')
-rw-r--r--svx/source/svrtf/rtfitem.cxx22
-rw-r--r--svx/source/svrtf/svxrtf.cxx5
2 files changed, 23 insertions, 4 deletions
diff --git a/svx/source/svrtf/rtfitem.cxx b/svx/source/svrtf/rtfitem.cxx
index 66b0edad1bf8..1b93906d02fb 100644
--- a/svx/source/svrtf/rtfitem.cxx
+++ b/svx/source/svrtf/rtfitem.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rtfitem.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jp $ $Date: 2001-02-16 10:28:44 $
+ * last change: $Author: jp $ $Date: 2001-03-12 16:19:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,6 +110,7 @@
#define ITEMID_TWOLINES 0
#define ITEMID_CHARSCALE_W 0
#define ITEMID_CHARROTATE 0
+#define ITEMID_CHARRELIEF 0
#include "flstitem.hxx"
#include "fontitem.hxx"
@@ -161,6 +162,7 @@
#include "hyznitem.hxx"
#include "charscaleitem.hxx"
#include "charrotateitem.hxx"
+#include "charreliefitem.hxx"
#ifndef _RTFTOKEN_H
#include <svtools/rtftoken.h>
@@ -998,6 +1000,22 @@ ATTR_SETEMPHASIS:
}
break;
+ case RTF_EMBO:
+ if( PLAINID->nRelief )
+ {
+ pSet->Put( SvxCharReliefItem( RELIEF_EMBOSSED,
+ PLAINID->nRelief ));
+ }
+ break;
+
+ case RTF_IMPR:
+ if( PLAINID->nRelief )
+ {
+ pSet->Put( SvxCharReliefItem( RELIEF_ENGRAVED,
+ PLAINID->nRelief ));
+ }
+ break;
+
/* */
diff --git a/svx/source/svrtf/svxrtf.cxx b/svx/source/svrtf/svxrtf.cxx
index 88527dc7ea17..e5ace8e8bd80 100644
--- a/svx/source/svrtf/svxrtf.cxx
+++ b/svx/source/svrtf/svxrtf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svxrtf.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jp $ $Date: 2001-02-16 10:28:44 $
+ * last change: $Author: jp $ $Date: 2001-03-12 16:19:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1340,6 +1340,7 @@ RTFPlainAttrMapIds::RTFPlainAttrMapIds( const SfxItemPool& rPool )
nRuby = 0; //rPool.GetTrueWhich( SID_ATTR_CHAR_CJK_RUBY, FALSE );
nCharScaleX = rPool.GetTrueWhich( SID_ATTR_CHAR_SCALEWIDTH, FALSE );
nHorzVert = rPool.GetTrueWhich( SID_ATTR_CHAR_ROTATED, FALSE );
+ nRelief = rPool.GetTrueWhich( SID_ATTR_CHAR_RELIEF, FALSE );
}
RTFPardAttrMapIds ::RTFPardAttrMapIds ( const SfxItemPool& rPool )