summaryrefslogtreecommitdiffstats
path: root/svx/source/svrtf
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 11:06:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 11:06:02 +0000
commit662f910f11d7991c8f0ad7021e171d5cba946ace (patch)
tree874bcc0973673133877c4af64a24c25d51ee51fd /svx/source/svrtf
parentINTEGRATION: CWS traleefilterteam20 (1.20.6); FILE MERGED (diff)
downloadcore-662f910f11d7991c8f0ad7021e171d5cba946ace.tar.gz
core-662f910f11d7991c8f0ad7021e171d5cba946ace.zip
INTEGRATION: CWS traleefilterteam20 (1.18.4); FILE MERGED
2004/01/22 19:44:52 cmc 1.18.4.2: RESYNC: (1.18-1.19); FILE MERGED 2004/01/22 14:10:08 cmc 1.18.4.1: #i15020# add handy virtual methods to base rtf parser
Diffstat (limited to 'svx/source/svrtf')
-rw-r--r--svx/source/svrtf/svxrtf.cxx29
1 files changed, 20 insertions, 9 deletions
diff --git a/svx/source/svrtf/svxrtf.cxx b/svx/source/svrtf/svxrtf.cxx
index 98ead18dc79f..1a1123739d0d 100644
--- a/svx/source/svrtf/svxrtf.cxx
+++ b/svx/source/svrtf/svxrtf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svxrtf.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: obo $ $Date: 2004-01-13 17:42:56 $
+ * last change: $Author: hr $ $Date: 2004-02-04 12:06:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -147,6 +147,18 @@ SvxRTFParser::SvxRTFParser( SfxItemPool& rPool, SvStream& rIn,
pDfltColor = new Color;
}
+void SvxRTFParser::EnterEnvironment()
+{
+}
+
+void SvxRTFParser::LeaveEnvironment()
+{
+}
+
+void SvxRTFParser::ResetPard()
+{
+}
+
SvxRTFParser::~SvxRTFParser()
{
if( aColorTbl.Count() )
@@ -285,22 +297,21 @@ INSINGLECHAR:
case RTF_PAR:
InsertPara();
break;
-
case '{':
- if( bNewGroup ) // Verschachtelung !!
+ if (bNewGroup) // Verschachtelung !!
_GetAttrSet();
- bNewGroup = TRUE;
+ EnterEnvironment();
+ bNewGroup = true;
break;
-
case '}':
if( !bNewGroup ) // leere Gruppe ??
AttrGroupEnd();
- bNewGroup = FALSE;
+ LeaveEnvironment();
+ bNewGroup = false;
break;
-
case RTF_INFO:
#ifndef SVX_LIGHT
- if( bReadDocInfo && bNewDoc )
+ if (bReadDocInfo && bNewDoc)
ReadInfo();
else
#endif