diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-10 14:28:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-13 09:34:53 +0200 |
commit | 5651f2d9f64c213b4106e2d5a433f4c525d41bbf (patch) | |
tree | 2b82422a0d7299fac8261f57527dad3ee3d99883 /sc | |
parent | ccfa9fa13db230cc66207bc42d528b773c4cf4f6 (diff) |
convert HIDDENINFORMATION_ constants into scoped enum
Change-Id: I94136c926fc8fa69ce2ce2b97fa34dc984dbe095
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 0ab97e119818..1261dab65c72 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -230,17 +230,17 @@ SCTAB ScDocShell::GetSaveTab() return nTab; } -sal_uInt16 ScDocShell::GetHiddenInformationState( sal_uInt16 nStates ) +HiddenInformation ScDocShell::GetHiddenInformationState( HiddenInformation nStates ) { - // get global state like HIDDENINFORMATION_DOCUMENTVERSIONS - sal_uInt16 nState = SfxObjectShell::GetHiddenInformationState( nStates ); + // get global state like HiddenInformation::DOCUMENTVERSIONS + HiddenInformation nState = SfxObjectShell::GetHiddenInformationState( nStates ); - if ( nStates & HIDDENINFORMATION_RECORDEDCHANGES ) + if ( nStates & HiddenInformation::RECORDEDCHANGES ) { if ( aDocument.GetChangeTrack() && aDocument.GetChangeTrack()->GetFirst() ) - nState |= HIDDENINFORMATION_RECORDEDCHANGES; + nState |= HiddenInformation::RECORDEDCHANGES; } - if ( nStates & HIDDENINFORMATION_NOTES ) + if ( nStates & HiddenInformation::NOTES ) { SCTAB nTableCount = aDocument.GetTableCount(); bool bFound = false; @@ -251,7 +251,7 @@ sal_uInt16 ScDocShell::GetHiddenInformationState( sal_uInt16 nStates ) } if (bFound) - nState |= HIDDENINFORMATION_NOTES; + nState |= HiddenInformation::NOTES; } return nState; diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index e0576a598669..340508c1601c 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -413,7 +413,7 @@ public: void BeforeXMLLoading(); void AfterXMLLoading(bool bRet); - virtual sal_uInt16 GetHiddenInformationState( sal_uInt16 nStates ) SAL_OVERRIDE; + virtual HiddenInformation GetHiddenInformationState( HiddenInformation nStates ) SAL_OVERRIDE; const ScOptSolverSave* GetSolverSaveData() const { return pSolverSaveData; } // may be null void SetSolverSaveData( const ScOptSolverSave& rData ); |