summaryrefslogtreecommitdiff
path: root/svx/source/editeng/impedit4.cxx
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-07-18 14:16:25 +0000
committerMalte Timmermann <mt@openoffice.org>2001-07-18 14:16:25 +0000
commit5a1dade25c33b9e743fb123d71116477e9672c93 (patch)
treed037f9f5df9f06f4b823db3165d95c898c02007c /svx/source/editeng/impedit4.cxx
parent595a59693456d95511b74998031a0e2cf127ebb3 (diff)
#87966# EE_FORMAT_XML
Diffstat (limited to 'svx/source/editeng/impedit4.cxx')
-rw-r--r--svx/source/editeng/impedit4.cxx29
1 files changed, 27 insertions, 2 deletions
diff --git a/svx/source/editeng/impedit4.cxx b/svx/source/editeng/impedit4.cxx
index c158e2d34305..32d5cd2caf57 100644
--- a/svx/source/editeng/impedit4.cxx
+++ b/svx/source/editeng/impedit4.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: impedit4.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: thb $ $Date: 2001-07-17 07:04:28 $
+ * last change: $Author: mt $ $Date: 2001-07-18 15:16:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -162,6 +162,8 @@ EditPaM ImpEditEngine::Read( SvStream& rInput, EETextFormat eFormat, EditSelecti
aPaM = ReadText( rInput, aSel );
else if ( eFormat == EE_FORMAT_RTF )
aPaM = ReadRTF( rInput, aSel );
+ else if ( eFormat == EE_FORMAT_XML )
+ aPaM = ReadXML( rInput, aSel );
else if ( eFormat == EE_FORMAT_HTML )
aPaM = ReadHTML( rInput, aSel, pHTTPHeaderAttrs );
else if ( eFormat == EE_FORMAT_BIN)
@@ -193,6 +195,18 @@ EditPaM ImpEditEngine::ReadText( SvStream& rInput, EditSelection aSel )
return aPaM;
}
+EditPaM ImpEditEngine::ReadXML( SvStream& rInput, EditSelection aSel )
+{
+ if ( aSel.HasRange() )
+ aSel = ImpDeleteSelection( aSel );
+
+ ESelection aESel = CreateESel( aSel );
+
+// CL: ::ReadXML( *this, aESel, rInput );
+
+ return aSel.Max();
+}
+
EditPaM ImpEditEngine::ReadRTF( SvStream& rInput, EditSelection aSel )
{
#ifndef SVX_LIGHT
@@ -280,6 +294,8 @@ void ImpEditEngine::Write( SvStream& rOutput, EETextFormat eFormat, EditSelectio
WriteText( rOutput, aSel );
else if ( eFormat == EE_FORMAT_RTF )
WriteRTF( rOutput, aSel );
+ else if ( eFormat == EE_FORMAT_XML )
+ WriteXML( rOutput, aSel );
else if ( eFormat == EE_FORMAT_HTML )
WriteHTML( rOutput, aSel );
else if ( eFormat == EE_FORMAT_BIN)
@@ -365,6 +381,15 @@ sal_uInt32 ImpEditEngine::WriteBin( SvStream& rOutput, EditSelection aSel, BOOL
return 0;
}
+sal_uInt32 ImpEditEngine::WriteXML( SvStream& rOutput, EditSelection aSel )
+{
+ ESelection aESel = CreateESel( aSel );
+
+ // CL: ::WriteXML( *this, aESel, rOutput );
+
+ return 0;
+}
+
sal_uInt32 ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel )
{
#ifndef SVX_LIGHT