Kaydet (Commit) 99628775 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uLong to ErrCode

Change-Id: I2b4b2673aa27de664f6c6780e67c70559ec61971
üst d1eb389d
......@@ -27,10 +27,10 @@
using namespace com::sun::star;
sal_uLong SvxImportMSVBasic::SaveOrDelMSVBAStorage( bool bSaveInto,
ErrCode SvxImportMSVBasic::SaveOrDelMSVBAStorage( bool bSaveInto,
const OUString& rStorageName )
{
sal_uLong nRet = ERRCODE_NONE;
ErrCode nRet = ERRCODE_NONE;
uno::Reference < embed::XStorage > xSrcRoot( rDocSh.GetStorage() );
OUString aDstStgName( GetMSBasicStorageName() );
tools::SvRef<SotStorage> xVBAStg( SotStorage::OpenOLEStorage( xSrcRoot, aDstStgName,
......@@ -62,7 +62,7 @@ sal_uLong SvxImportMSVBasic::SaveOrDelMSVBAStorage( bool bSaveInto,
// check if the MS-VBA-Storage exists in the RootStorage of the DocShell.
// If it exists, then return the WarningId for losing the information.
sal_uLong SvxImportMSVBasic::GetSaveWarningOfMSVBAStorage( SfxObjectShell &rDocSh)
ErrCode SvxImportMSVBasic::GetSaveWarningOfMSVBAStorage( SfxObjectShell &rDocSh)
{
uno::Reference < embed::XStorage > xSrcRoot( rDocSh.GetStorage() );
tools::SvRef<SotStorage> xVBAStg( SotStorage::OpenOLEStorage( xSrcRoot, GetMSBasicStorageName(),
......
......@@ -58,11 +58,11 @@ public:
// form the ObjectShell
// - returns a warning code if a modified basic exist, in all other
// cases return ERRCODE_NONE.
sal_uLong SaveOrDelMSVBAStorage( bool bSaveInto, const OUString& rStorageName );
ErrCode SaveOrDelMSVBAStorage( bool bSaveInto, const OUString& rStorageName );
// check if the MS-VBA-Storage exist in the RootStorage of the DocShell.
// If it exist, then return the WarningId for losing the information.
static sal_uLong GetSaveWarningOfMSVBAStorage( SfxObjectShell &rDocS );
static ErrCode GetSaveWarningOfMSVBAStorage( SfxObjectShell &rDocS );
static OUString GetMSBasicStorageName();
private:
......
......@@ -105,7 +105,7 @@ FltError ExportBiff5::Write()
else if( pDocShell && xRootStrg.Is() && eVbaExportMode == VBAExportMode::REEXPORT_STREAM )
{
SvxImportMSVBasic aBasicImport( *pDocShell, *xRootStrg );
sal_uLong nErr = aBasicImport.SaveOrDelMSVBAStorage( true, EXC_STORAGE_VBA_PROJECT );
const ErrCode nErr = aBasicImport.SaveOrDelMSVBAStorage( true, EXC_STORAGE_VBA_PROJECT );
if( nErr != ERRCODE_NONE )
pDocShell->SetError( nErr, OUString( OSL_LOG_PREFIX ) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment