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:
parent
227ca23324
commit
6033e2d29d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user