summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-03-27 19:15:21 +0000
committerjp <jp@openoffice.org>2001-03-27 19:15:21 +0000
commit22d3dd33934cd8f5ff715b393f59057973c64794 (patch)
tree39e91e5ca79e0b0a0fc2229e40c89f3e751e4a84 /svtools/source/svrtf
parent4990ef2a7d3268a5afd9a672a1af2bc1a7eb156b (diff)
Bug ##615##: read ansicpg token
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r--svtools/source/svrtf/parrtf.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 14869f853a63..1651b1a83397 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: parrtf.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jp $ $Date: 2000-11-08 16:01:59 $
+ * last change: $Author: jp $ $Date: 2001-03-27 20:15:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -605,6 +605,21 @@ void SvRTFParser::Continue( int nToken )
case RTF_PCTYPE: SetSrcEncoding( RTL_TEXTENCODING_IBM_437 ); break;
case RTF_PCATYPE: SetSrcEncoding( RTL_TEXTENCODING_IBM_850 ); break;
+ case RTF_ANSICPG:
+ switch ( nTokenValue )
+ {
+ case 1250: SetSrcEncoding( RTL_TEXTENCODING_MS_1250 ); break;
+ case 1251: SetSrcEncoding( RTL_TEXTENCODING_MS_1251 ); break;
+ case 1253: SetSrcEncoding( RTL_TEXTENCODING_MS_1253 ); break;
+ case 1254: SetSrcEncoding( RTL_TEXTENCODING_MS_1254 ); break;
+ case 1255: SetSrcEncoding( RTL_TEXTENCODING_MS_1255 ); break;
+ case 1256: SetSrcEncoding( RTL_TEXTENCODING_MS_1256 ); break;
+ case 1257: SetSrcEncoding( RTL_TEXTENCODING_MS_1257 ); break;
+ case 1258: SetSrcEncoding( RTL_TEXTENCODING_MS_1258 ); break;
+ }
+ break;
+
+
default:
NEXTTOKEN:
NextToken( nToken );