Resolves: fdo#60904 allow export of VBAProject

xModLibContainerExport has a "VBAProject" entry but
xDlgLibContainerExport doesn't, so just export the
one we do have

Change-Id: I15f7794904a5aff7679f2cf9fd654d741fd5cbe3
This commit is contained in:
Caolán McNamara 2014-10-09 15:40:08 +01:00
parent 227ca23324
commit 6033e2d29d

View File

@ -1106,8 +1106,14 @@ void LibPage::implExportLib( const OUString& aLibName, const OUString& aTargetUR
if ( xModLibContainerExport.is() ) if ( xModLibContainerExport.is() )
xModLibContainerExport->exportLibrary( aOULibName, aTargetURL, Handler ); xModLibContainerExport->exportLibrary( aOULibName, aTargetURL, Handler );
if ( xDlgLibContainerExport.is() ) if (!xDlgLibContainerExport.is())
xDlgLibContainerExport->exportLibrary( aOULibName, aTargetURL, Handler ); return;
Reference<container::XNameAccess> xNameAcc(xDlgLibContainerExport, UNO_QUERY);
if (!xNameAcc.is())
return;
if (!xNameAcc->hasByName(aOULibName))
return;
xDlgLibContainerExport->exportLibrary(aOULibName, aTargetURL, Handler);
} }
// Implementation XCommandEnvironment // Implementation XCommandEnvironment