CGM_EXPORT_IMPRESS is always used
Change-Id: Ic5d9f0f015deae6e4db00912f1b432dbfefd8534
This commit is contained in:
@@ -60,7 +60,7 @@ CGM::CGM( sal_uInt32 nMode, uno::Reference< frame::XModel > const & rModel )
|
||||
, mnParaSize(0)
|
||||
, mnActCount(0)
|
||||
, mpBuf(nullptr)
|
||||
, mnMode(nMode | CGM_EXPORT_IMPRESS)
|
||||
, mnMode(nMode)
|
||||
, mnEscape(0)
|
||||
, mnElementClass(0)
|
||||
, mnElementID(0)
|
||||
|
@@ -22,8 +22,6 @@
|
||||
|
||||
#include <com/sun/star/frame/XModel.hpp>
|
||||
|
||||
#define CGM_EXPORT_IMPRESS 0x00000100
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <vector>
|
||||
#include <vcl/vclptr.hxx>
|
||||
|
@@ -75,8 +75,6 @@ void CGM::ImplDoClass7()
|
||||
}
|
||||
break;
|
||||
case 0x2BE : /*AppData - SHWSLIDEREC*/
|
||||
{
|
||||
if ( mnMode & CGM_EXPORT_IMPRESS )
|
||||
{
|
||||
if ( pAppData[ 16 ] == 0 ) // a blank template ?
|
||||
{
|
||||
@@ -95,7 +93,6 @@ void CGM::ImplDoClass7()
|
||||
}
|
||||
mpChart->ResetAnnotation();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0x2C0 : /*AppData - SHWKEYTABLE */break;
|
||||
case 0x2C2 : /*AppData - SHWBUTTONTAB */break;
|
||||
|
@@ -33,7 +33,6 @@
|
||||
|
||||
#include "../../ui/inc/DrawDocShell.hxx"
|
||||
|
||||
#define CGM_EXPORT_IMPRESS 0x00000100
|
||||
#define CGM_BIG_ENDIAN 0x00020000
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
@@ -96,7 +95,7 @@ bool SdCGMFilter::Import()
|
||||
|
||||
CreateStatusIndicator();
|
||||
std::unique_ptr<SvStream> xIn(::utl::UcbStreamHelper::CreateStream(aFileURL, StreamMode::READ));
|
||||
nRetValue = xIn ? FncImportCGM(*xIn, mxModel, CGM_BIG_ENDIAN | CGM_EXPORT_IMPRESS, mxStatusIndicator) : 0;
|
||||
nRetValue = xIn ? FncImportCGM(*xIn, mxModel, CGM_BIG_ENDIAN, mxStatusIndicator) : 0;
|
||||
|
||||
if( nRetValue )
|
||||
{
|
||||
@@ -134,7 +133,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportCGM(SvStream &rStream)
|
||||
|
||||
CGMPointer aPointer;
|
||||
|
||||
bool bRet = aPointer.get()(rStream, xDocShRef->GetModel(), CGM_BIG_ENDIAN | CGM_EXPORT_IMPRESS, css::uno::Reference<css::task::XStatusIndicator>()) == 0;
|
||||
bool bRet = aPointer.get()(rStream, xDocShRef->GetModel(), CGM_BIG_ENDIAN, css::uno::Reference<css::task::XStatusIndicator>()) == 0;
|
||||
|
||||
xDocShRef->DoClose();
|
||||
|
||||
|
Reference in New Issue
Block a user