diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-22 15:15:17 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-09-04 09:05:34 -0500 |
commit | 8e4dc1d760d85e09bbc3f3bbb5b8be2947db1b63 (patch) | |
tree | dbb60d3d9c8f931ed98e6ac864695d1d9046cee5 /sc/source/ui/inc/delcodlg.hxx | |
parent | a62a046df3302e5763b7a568ac25032bb1501d44 (diff) |
create type-safe bitfield for sc insert/delete flags
The most important part of the change is in sc/inc/global.hxx
It creates a type-safe struct that prevents the accidental interaction
between regular integer types and the flags struct.
It also provides utility methods that make combining and testing the
flags type-safe.
Change-Id: Ibc5b20058b1655df913490682b679afd1297b36d
Reviewed-on: https://gerrit.libreoffice.org/11071
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/delcodlg.hxx')
-rw-r--r-- | sc/source/ui/inc/delcodlg.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/inc/delcodlg.hxx b/sc/source/ui/inc/delcodlg.hxx index fcc4acb9ecbc..c119b495a1f0 100644 --- a/sc/source/ui/inc/delcodlg.hxx +++ b/sc/source/ui/inc/delcodlg.hxx @@ -40,18 +40,18 @@ private: bool bObjectsDisabled; static bool bPreviousAllCheck; - static sal_uInt16 nPreviousChecks; + static InsertDeleteFlags nPreviousChecks; void DisableChecks( bool bDelAllChecked = true ); DECL_LINK( DelAllHdl, void * ); public: ScDeleteContentsDlg( Window* pParent, - sal_uInt16 nCheckDefaults = 0 ); + InsertDeleteFlags nCheckDefaults = IDF_NONE ); virtual ~ScDeleteContentsDlg(); void DisableObjects(); - sal_uInt16 GetDelContentsCmdBits() const; + InsertDeleteFlags GetDelContentsCmdBits() const; }; #endif // INCLUDED_SC_SOURCE_UI_INC_DELCODLG_HXX |