summaryrefslogtreecommitdiff
path: root/svx
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
parentfd382a483f7d9e30bf99efc612da0c6a5fffc851 (diff)
import relief item
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svxrtf.hxx12
-rw-r--r--svx/source/svrtf/rtfitem.cxx22
-rw-r--r--svx/source/svrtf/svxrtf.cxx5
3 files changed, 31 insertions, 8 deletions
diff --git a/svx/inc/svxrtf.hxx b/svx/inc/svxrtf.hxx
index 2d4f43943875..700e6317a586 100644
--- a/svx/inc/svxrtf.hxx
+++ b/svx/inc/svxrtf.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svxrtf.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jp $ $Date: 2001-02-16 10:28:22 $
+ * last change: $Author: jp $ $Date: 2001-03-12 16:19:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -205,7 +205,8 @@ struct RTFPlainAttrMapIds
nTwoLines,
nCharScaleX,
nHorzVert,
- nRuby
+ nRuby,
+ nRelief
;
RTFPlainAttrMapIds( const SfxItemPool& rPool );
};
@@ -468,11 +469,14 @@ inline SfxItemSet& SvxRTFParser::GetAttrSet()
Source Code Control System - Header
- $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/svx/inc/svxrtf.hxx,v 1.4 2001-02-16 10:28:22 jp Exp $
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/svx/inc/svxrtf.hxx,v 1.5 2001-03-12 16:19:49 jp Exp $
Source Code Control System - Update
$Log: not supported by cvs2svn $
+ Revision 1.4 2001/02/16 10:28:22 jp
+ im-/export the Rotate-/ScaleWidth-Character attribut
+
Revision 1.3 2001/02/06 17:56:21 jp
Bug #81999#: replace GetWhichId with SetScriptAttr - for asian/complex char.attributes
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 )