Kaydet (Commit) 4544256d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Replace macro with function

Change-Id: I005622c607a5a3dcd31b46f6e819546b7ece630b
üst a633ffc8
......@@ -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() ) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment