diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-10-08 11:40:45 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-10-08 11:46:51 +0300 |
commit | 72f348746c67632aa8e53d78e79a889e76063fea (patch) | |
tree | 822ac6ffed3badab6da5dd6bedf44c05451e3ef0 /sd | |
parent | Deduplicate lcl_mediumColor (diff) | |
download | core-72f348746c67632aa8e53d78e79a889e76063fea.tar.gz core-72f348746c67632aa8e53d78e79a889e76063fea.zip |
There is no ExportCGM
Change-Id: I1251c25e14636fea96aba08f90dfe3d16978a270
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/cgm/sdcgmfilter.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/sd/source/filter/cgm/sdcgmfilter.cxx b/sd/source/filter/cgm/sdcgmfilter.cxx index c5d1ccf4822e..0f6a0d94626e 100644 --- a/sd/source/filter/cgm/sdcgmfilter.cxx +++ b/sd/source/filter/cgm/sdcgmfilter.cxx @@ -73,7 +73,6 @@ typedef sal_Bool ( __LOADONCALLAPI *ExportCGMPointer )( ::rtl::OUString&, Refere #ifdef DISABLE_DYNLOADING extern "C" sal_uInt32 ImportCGM( ::rtl::OUString&, Reference< XModel >&, sal_uInt32, Reference< XStatusIndicator >& ); -extern "C" sal_Bool ExportCGM( ::rtl::OUString&, Reference< XModel >&, Reference< XStatusIndicator >&, void* ); #endif @@ -150,22 +149,16 @@ sal_Bool SdCGMFilter::Import() sal_Bool SdCGMFilter::Export() { -#ifndef DISABLE_DYNLOADING +#ifdef DISABLE_DYNLOADING + // No ExportCGM function exists(!) + return sal_False; +#else ::osl::Module* pLibrary = OpenLibrary( mrMedium.GetFilter()->GetUserData() ); -#endif sal_Bool bRet = sal_False; - if( -#ifndef DISABLE_DYNLOADING - pLibrary && -#endif - mxModel.is() ) + if( pLibrary && mxModel.is() ) { -#ifndef DISABLE_DYNLOADING ExportCGMPointer FncCGMExport = reinterpret_cast< ExportCGMPointer >( pLibrary->getFunctionSymbol( "ExportCGM" ) ); -#else - ExportCGMPointer FncCGMExport = ExportCGM; -#endif if( FncCGMExport ) { @@ -176,10 +169,9 @@ sal_Bool SdCGMFilter::Export() } } -#ifndef DISABLE_DYNLOADING delete pLibrary; -#endif return bRet; +#endif } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |