diff options
-rw-r--r-- | sc/source/ui/pagedlg/tptable.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx index 1190ef82fbc7..90754c32d1cc 100644 --- a/sc/source/ui/pagedlg/tptable.cxx +++ b/sc/source/ui/pagedlg/tptable.cxx @@ -68,7 +68,13 @@ static bool lcl_PutBoolItem( sal_uInt16 nWhich, #define PAGENO_HDL LINK(this,ScTablePage,PageNoHdl) #define PAGEDIR_HDL LINK(this,ScTablePage,PageDirHdl) -#define WAS_DEFAULT(w,s) (SfxItemState::DEFAULT==(s).GetItemState((w))) +namespace { + +bool WAS_DEFAULT(sal_uInt16 w, SfxItemSet const & s) +{ return SfxItemState::DEFAULT==s.GetItemState(w); } + +} + #define GET_BOOL(sid,set) static_cast<const SfxBoolItem&>((set).Get(GetWhich((sid)))).GetValue() #define GET_USHORT(sid,set) static_cast<const SfxUInt16Item&>((set).Get(GetWhich((sid)))).GetValue() #define GET_SHOW(sid,set) ( ScVObjMode( static_cast<const ScViewObjectModeItem&>((set).Get(GetWhich((sid)))).GetValue() ) \ |