summaryrefslogtreecommitdiff
path: root/svx/source/editeng/impedit2.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/impedit2.cxx
parent595a59693456d95511b74998031a0e2cf127ebb3 (diff)
#87966# EE_FORMAT_XML
Diffstat (limited to 'svx/source/editeng/impedit2.cxx')
-rw-r--r--svx/source/editeng/impedit2.cxx24
1 files changed, 20 insertions, 4 deletions
diff --git a/svx/source/editeng/impedit2.cxx b/svx/source/editeng/impedit2.cxx
index 247a2c4904c2..0d2e695cbfbf 100644
--- a/svx/source/editeng/impedit2.cxx
+++ b/svx/source/editeng/impedit2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: impedit2.cxx,v $
*
- * $Revision: 1.38 $
+ * $Revision: 1.39 $
*
- * 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
@@ -2840,7 +2840,7 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer
aData >>= aSeq;
{
SvMemoryStream aBinStream( aSeq.getArray(), aSeq.getLength(), STREAM_READ );
- aNewSelection = ReadBin( aBinStream, rPaM );
+ aNewSelection = Read( aBinStream, EE_FORMAT_BIN, rPaM );
}
bDone = TRUE;
}
@@ -2874,11 +2874,27 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer
aData >>= aSeq;
{
SvMemoryStream aRTFStream( aSeq.getArray(), aSeq.getLength(), STREAM_READ );
- aNewSelection = ReadRTF( aRTFStream, rPaM );
+ aNewSelection = Read( aRTFStream, EE_FORMAT_RTF, rPaM );
}
bDone = TRUE;
}
}
+ if ( !bDone )
+ {
+ // XML
+// SotExchange::GetFormatDataFlavor( MySOT_FORMAT_XML, aFlavor );
+// if ( rxDataObj->isDataFlavorSupported( aFlavor ) )
+// {
+// uno::Any aData = rxDataObj->getTransferData( aFlavor );
+// uno::Sequence< sal_Int8 > aSeq;
+// aData >>= aSeq;
+// {
+// SvMemoryStream aRTFStream( aSeq.getArray(), aSeq.getLength(), STREAM_READ );
+// aNewSelection = Read( aRTFStream, EE_FORMAT_XML, rPaM );
+// }
+// bDone = TRUE;
+// }
+ }
}
if ( !bDone )
{