summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-08-24 23:48:45 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-10 04:14:47 +0200
commit1f1ec819edc14ad266d49f16116056fd439b7c46 (patch)
tree227fad6022a60d22313a9e8ee1a6a62532ed98a1 /sfx2
parent5958c94274c99058e2596923a83de3ed684e7848 (diff)
remove more warnings about vba export
Change-Id: I8d0e6f69dd4d51d195422e6e934fedc406caec16
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/guisaveas.cxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index f6145406f7a9..63aebd248e24 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -803,41 +803,6 @@ sal_Int8 ModelData_Impl::CheckFilter( const OUString& aFilterName )
if ( !aPreusedFilterName.equals( aFilterName ) && !aUIName.equals( aDefUIName ) )
{
- // is it possible to get these names from somewhere and not just
- // hardcode them?
- OUString sXLSXFilter("Calc MS Excel 2007 XML");
- OUString sOtherXLSXFilter("Calc Office Open XML");
- bool bHasMacros = hasMacros( GetModel() );
- if ( bHasMacros && ( aFilterName == sXLSXFilter || aFilterName == sOtherXLSXFilter ) )
- {
- uno::Reference< task::XInteractionHandler > xHandler;
- GetMediaDescr()[ OUString( "InteractionHandler" ) ] >>= xHandler;
- if ( xHandler.is() )
- {
- bool bResult = false;
- try
- {
- task::ErrorCodeRequest aErrorCode;
- aErrorCode.ErrCode = ERRCODE_SFX_VBASIC_CANTSAVE_STORAGE;
-
- uno::Any aRequest = uno::makeAny( aErrorCode );
- uno::Sequence< uno::Reference< task::XInteractionContinuation > > aContinuations( 2 );
-
- ::rtl::Reference< ::comphelper::OInteractionApprove > pApprove( new ::comphelper::OInteractionApprove );
- aContinuations[ 0 ] = pApprove.get();
-
- ::rtl::Reference< ::comphelper::OInteractionAbort > pAbort( new ::comphelper::OInteractionAbort );
- aContinuations[ 1 ] = pAbort.get();
- xHandler->handle(::framework::InteractionRequest::CreateRequest (aRequest,aContinuations));
- bResult = pApprove->wasSelected();
- }
- catch( const uno::Exception& )
- {
- }
- if ( !bResult )
- return STATUS_SAVEAS;
- }
- }
if ( !SfxStoringHelper::WarnUnacceptableFormat( GetModel(), aUIName, aDefUIName, aDefExtension,
true, (bool)( nDefFiltFlags & SfxFilterFlags::ALIEN ) ) )
return STATUS_SAVEAS_STANDARDNAME;