summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-02-08 13:46:39 +0000
committerMathias Bauer <mba@openoffice.org>2001-02-08 13:46:39 +0000
commit819a17348259ae410e840f6aea613eb00aff0714 (patch)
treecfa250354d490ea7815ff8d7d3e0e76ac1637880 /sfx2
parentc926c2727838584ed5ab870bbb97b8381c58700c (diff)
use DataFlavor to retrieve ClipboardIds
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index b4094a1f7f7b..59066e2906fc 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fltfnc.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: mba $ $Date: 2001-02-06 12:46:27 $
+ * last change: $Author: mba $ $Date: 2001-02-08 14:46:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,6 +70,9 @@
#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
#include <com/sun/star/container/XNameAccess.hpp>
#endif
+#ifndef _COM_SUN_STAR_DATATRANSFER_DATAFLAVOR_HPP_
+#include <com/sun/star/datatransfer/DataFlavor.hpp>
+#endif
#ifndef _EXCHANGE_HXX //autogen
#include <vcl/exchange.hxx>
@@ -1169,7 +1172,12 @@ void SfxFilterContainer::RealLoad_Impl()
nFlags &= ~pArg->nNotFlags;
sal_uInt32 nClipId = 0;
if( aClipFormat.Len() )
- nClipId = Exchange::RegisterFormatName( aClipFormat );
+ {
+ ::com::sun::star::datatransfer::DataFlavor aDataFlavor;
+ aDataFlavor.MimeType = aClipFormat;
+ nClipId = SotExchange::GetFormat( aDataFlavor );
+ }
+
SfxFilter* pFilter = new SfxFilter(
aName, aWild, nFlags, nClipId, aMacType, aTypeName, nDocIconId,
aMimeType, this, aUserData );