summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-07-25 14:53:18 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-26 08:15:21 +0000
commit60f36bb7cd5956fa30b3f7ebe8a1489ed0f98685 (patch)
treedce874ec32705c11a470ca7ff887b6ca6686912d /sc/inc/document.hxx
parent00a58dfead6e05724b252f74e24f9f6c89a68d76 (diff)
sc: convert SC_SCENARIO_.. defines typed flags ..
ScScenarioFlags add ScScenarioFlags::NONE for 0. replace uses of '-= flag' with '&= ~flag'. Change-Id: I003c0ca1f59b060f52935fec8bb6282fd9981805 Reviewed-on: https://gerrit.libreoffice.org/27464 Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index f860dbc574ed..5d034189f120 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -825,14 +825,14 @@ public:
SC_DLLPUBLIC bool IsNegativePage( SCTAB nTab ) const;
SC_DLLPUBLIC void SetScenario( SCTAB nTab, bool bFlag );
SC_DLLPUBLIC bool IsScenario( SCTAB nTab ) const;
- SC_DLLPUBLIC void GetScenarioData( SCTAB nTab, OUString& rComment,
- Color& rColor, sal_uInt16& rFlags ) const;
- SC_DLLPUBLIC void SetScenarioData( SCTAB nTab, const OUString& rComment,
- const Color& rColor, sal_uInt16 nFlags );
+ SC_DLLPUBLIC void GetScenarioData(SCTAB nTab, OUString& rComment,
+ Color& rColor, ScScenarioFlags &rFlags) const;
+ SC_DLLPUBLIC void SetScenarioData(SCTAB nTab, const OUString& rComment,
+ const Color& rColor, ScScenarioFlags nFlags);
SC_DLLPUBLIC Color GetTabBgColor( SCTAB nTab ) const;
SC_DLLPUBLIC void SetTabBgColor( SCTAB nTab, const Color& rColor );
SC_DLLPUBLIC bool IsDefaultTabBgColor( SCTAB nTab ) const;
- void GetScenarioFlags( SCTAB nTab, sal_uInt16& rFlags ) const;
+ void GetScenarioFlags(SCTAB nTab, ScScenarioFlags &rFlags) const;
SC_DLLPUBLIC bool IsActiveScenario( SCTAB nTab ) const;
SC_DLLPUBLIC void SetActiveScenario( SCTAB nTab, bool bActive ); // only for Undo etc.
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const;
@@ -1502,9 +1502,9 @@ public:
void CopyScenario( SCTAB nSrcTab, SCTAB nDestTab, bool bNewScenario = false );
bool TestCopyScenario( SCTAB nSrcTab, SCTAB nDestTab ) const;
- void MarkScenario( SCTAB nSrcTab, SCTAB nDestTab,
- ScMarkData& rDestMark, bool bResetMark = true,
- sal_uInt16 nNeededBits = 0 ) const;
+ void MarkScenario(SCTAB nSrcTab, SCTAB nDestTab,
+ ScMarkData& rDestMark, bool bResetMark = true,
+ ScScenarioFlags nNeededBits = ScScenarioFlags::NONE) const;
bool HasScenarioRange( SCTAB nTab, const ScRange& rRange ) const;
SC_DLLPUBLIC const ScRangeList* GetScenarioRanges( SCTAB nTab ) const;