diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-10 15:27:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-13 09:34:53 +0200 |
commit | 43fbf02984f405864f89fb3e36eff32f9d757b57 (patch) | |
tree | 1ed1c173cd42f07d8fd5c77b1e3c8d9f9cbe95f1 /sfx2/source/doc | |
parent | 5651f2d9f64c213b4106e2d5a433f4c525d41bbf (diff) |
convert HiddenWarningFact to scoped enum
Change-Id: I23579d746a3c612de68345794731f1ff2cbdf605
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 8c4db55720cb..119e52f9e6f6 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -405,7 +405,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) if( SID_SIGNATURE == nId || SID_MACRO_SIGNATURE == nId ) { - if ( QueryHiddenInformation( WhenSigning, NULL ) == RET_YES ) + if ( QueryHiddenInformation( HiddenWarningFact::WhenSigning, NULL ) == RET_YES ) ( SID_SIGNATURE == nId ) ? SignDocumentContent() : SignScriptingContent(); return; } @@ -653,7 +653,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) SfxStoringHelper aHelper; - if ( QueryHiddenInformation( bIsPDFExport ? WhenCreatingPDF : WhenSaving, NULL ) == RET_YES ) + if ( QueryHiddenInformation( bIsPDFExport ? HiddenWarningFact::WhenCreatingPDF : HiddenWarningFact::WhenSaving, NULL ) == RET_YES ) { aHelper.GUIStoreModel( GetModel(), OUString::createFromAscii( pSlot->GetUnoName() ), diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 062ac57746c5..b1ed9b3d42c7 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2959,25 +2959,25 @@ sal_Int16 SfxObjectShell::QueryHiddenInformation( HiddenWarningFact eFact, vcl:: switch ( eFact ) { - case WhenSaving : + case HiddenWarningFact::WhenSaving : { nResId = STR_HIDDENINFO_CONTINUE_SAVING; eOption = SvtSecurityOptions::E_DOCWARN_SAVEORSEND; break; } - case WhenPrinting : + case HiddenWarningFact::WhenPrinting : { nResId = STR_HIDDENINFO_CONTINUE_PRINTING; eOption = SvtSecurityOptions::E_DOCWARN_PRINT; break; } - case WhenSigning : + case HiddenWarningFact::WhenSigning : { nResId = STR_HIDDENINFO_CONTINUE_SIGNING; eOption = SvtSecurityOptions::E_DOCWARN_SIGNING; break; } - case WhenCreatingPDF : + case HiddenWarningFact::WhenCreatingPDF : { nResId = STR_HIDDENINFO_CONTINUE_CREATEPDF; eOption = SvtSecurityOptions::E_DOCWARN_CREATEPDF; @@ -2991,7 +2991,7 @@ sal_Int16 SfxObjectShell::QueryHiddenInformation( HiddenWarningFact eFact, vcl:: { OUString sMessage( SfxResId(STR_HIDDENINFO_CONTAINS).toString() ); HiddenInformation nWantedStates = HiddenInformation::RECORDEDCHANGES | HiddenInformation::NOTES; - if ( eFact != WhenPrinting ) + if ( eFact != HiddenWarningFact::WhenPrinting ) nWantedStates |= HiddenInformation::DOCUMENTVERSIONS; HiddenInformation nStates = GetHiddenInformationState( nWantedStates ); bool bWarning = false; |