summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-07-06 09:34:13 +0000
committerjp <jp@openoffice.org>2001-07-06 09:34:13 +0000
commit5f25929d2a3c9ecc80349751d98add11d090f5df (patch)
treef41ae9917c0d9ee6af420b75c914e6b96b9592ef /sot
parent23744e02723163bbeac45f3b4577a4197cfa06a8 (diff)
export function IsFormatSupported()
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/formats.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx
index 6ae1d6bbf4f0..f6ad98a63ef2 100644
--- a/sot/source/base/formats.cxx
+++ b/sot/source/base/formats.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: formats.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: ka $ $Date: 2001-03-22 17:54:49 $
+ * last change: $Author: jp $ $Date: 2001-07-06 10:34:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1454,7 +1454,7 @@ USHORT SotExchange::GetExchangeAction(
// - new style GetExchange methods -
// ---------------------------------
-static sal_Bool HasFormat_Impl( const DataFlavorExVector& rDataFlavorExVector, ULONG nId )
+sal_Bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, ULONG nId )
{
DataFlavorExVector::iterator aIter( ( (DataFlavorExVector&) rDataFlavorExVector ).begin() );
DataFlavorExVector::iterator aEnd( ( (DataFlavorExVector&) rDataFlavorExVector ).end() );
@@ -1566,12 +1566,12 @@ static USHORT GetTransferableAction_Impl(
rFormat = nId;
if( ( !nOnlyTestFormat || nOnlyTestFormat == nId ) &&
- HasFormat_Impl( rDataFlavorExVector, nId ) &&
+ IsFormatSupported( rDataFlavorExVector, nId ) &&
( !pArray->nContextCheckId || CheckTransferableContext_Impl( pxTransferable, *pArray ) ) )
{
if( pxTransferable && (*pxTransferable).is() && ( SOT_FORMAT_FILE_LIST == rFormat ) )
{
- if( HasFormat_Impl( rDataFlavorExVector, SOT_FORMAT_FILE ) )
+ if( IsFormatSupported( rDataFlavorExVector, SOT_FORMAT_FILE ) )
{
DataFlavor aFileListFlavor;
SotExchange::GetFormatDataFlavor( SOT_FORMAT_FILE_LIST, aFileListFlavor );
@@ -1749,7 +1749,8 @@ USHORT SotExchange::GetExchangeAction(
aVector.push_back( aFlavorEx );
- if( ( SOT_FORMATSTR_ID_WMF == aFlavorEx.mnSotId ) && !HasFormat_Impl( aVector, SOT_FORMAT_GDIMETAFILE ) )
+ if( ( SOT_FORMATSTR_ID_WMF == aFlavorEx.mnSotId ) &&
+ !IsFormatSupported( aVector, SOT_FORMAT_GDIMETAFILE ) )
{
if( SotExchange::GetFormatDataFlavor( SOT_FORMAT_GDIMETAFILE, aFlavorEx ) )
{