From f050faebabec8a0c2d63fe63a1195bb845ea4443 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 1 Apr 2017 19:07:52 +0100 Subject: cgm mode is now unused Change-Id: Iea58345633cdea50fdecfe9376160ae4ffcfc6a9 --- sd/source/filter/cgm/sdcgmfilter.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sd') diff --git a/sd/source/filter/cgm/sdcgmfilter.cxx b/sd/source/filter/cgm/sdcgmfilter.cxx index 70e35bcbcb9d..0d24bcf88097 100644 --- a/sd/source/filter/cgm/sdcgmfilter.cxx +++ b/sd/source/filter/cgm/sdcgmfilter.cxx @@ -33,18 +33,16 @@ #include "../../ui/inc/DrawDocShell.hxx" -#define CGM_BIG_ENDIAN 0x00020000 - using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::task; using namespace ::com::sun::star::frame; -typedef sal_uInt32 ( SAL_CALL *ImportCGMPointer )(SvStream&, Reference< XModel > const &, sal_uInt32, Reference< XStatusIndicator > const &); +typedef sal_uInt32 ( SAL_CALL *ImportCGMPointer )(SvStream&, Reference< XModel > const &, Reference< XStatusIndicator > const &); #ifdef DISABLE_DYNLOADING -extern "C" sal_uInt32 ImportCGM(SvStream&, Reference< XModel > const &, sal_uInt32, Reference< XStatusIndicator > const &); +extern "C" sal_uInt32 ImportCGM(SvStream&, Reference< XModel > const &, Reference< XStatusIndicator > const &); #endif @@ -95,7 +93,7 @@ bool SdCGMFilter::Import() CreateStatusIndicator(); std::unique_ptr xIn(::utl::UcbStreamHelper::CreateStream(aFileURL, StreamMode::READ)); - nRetValue = xIn ? FncImportCGM(*xIn, mxModel, CGM_BIG_ENDIAN, mxStatusIndicator) : 0; + nRetValue = xIn ? FncImportCGM(*xIn, mxModel, mxStatusIndicator) : 0; if( nRetValue ) { @@ -133,7 +131,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportCGM(SvStream &rStream) CGMPointer aPointer; - bool bRet = aPointer.get()(rStream, xDocShRef->GetModel(), CGM_BIG_ENDIAN, css::uno::Reference()) == 0; + bool bRet = aPointer.get()(rStream, xDocShRef->GetModel(), css::uno::Reference()) == 0; xDocShRef->DoClose(); -- cgit