22#include <osl/diagnose.h>
24#include <svx/svxids.hrc>
45 if ( eState != SfxItemState::DEFAULT )
51 case SID_RULER_LR_MIN_MAX:
57 case SID_ATTR_LONG_LRSPACE:
60 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxLRSpaceItem expected");
64 case SID_ATTR_LONG_ULSPACE:
67 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxULSpaceItem expected");
71 case SID_ATTR_TABSTOP_VERTICAL:
72 case SID_ATTR_TABSTOP:
75 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxTabStopItem expected");
79 case SID_ATTR_PARA_LRSPACE_VERTICAL:
80 case SID_ATTR_PARA_LRSPACE:
83 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxLRSpaceItem expected");
87 case SID_RULER_BORDERS_VERTICAL:
88 case SID_RULER_BORDERS:
90 case SID_RULER_ROWS_VERTICAL:
93 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxColumnItem expected");
100 OSL_FAIL(
"Column item corrupted");
109 case SID_RULER_PAGE_POS:
112 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxPagePosSizeItem expected");
116 case SID_RULER_OBJECT:
119 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxObjectItem expected");
123 case SID_RULER_PROTECT:
126 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxProtectItem expected");
130 case SID_RULER_BORDER_DISTANCE:
133 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SvxLRSpaceItem expected");
137 case SID_RULER_TEXT_RIGHT_TO_LEFT :
140 SAL_WARN_IF(pState !=
nullptr && pItem ==
nullptr,
"svx.dialog",
"SfxBoolItem expected");
bool IsConsistent() const
virtual void StateChangedAtToolBoxControl(sal_uInt16, SfxItemState, const SfxPoolItem *pState) override
SvxRulerItem(sal_uInt16 nId, SvxRuler &, SfxBindings &)
void UpdatePara(const SvxLRSpaceItem *pItem)
void UpdateFrameMinMax(const SfxRectangleItem *pItem)
void Update(const SvxTabStopItem *pItem)
void UpdateTextRTL(const SfxBoolItem *pItem)
void UpdateBorder(const SvxLRSpaceItem *pItem)
void UpdateFrame(const SvxLongLRSpaceItem *pItem)
#define SAL_WARN_IF(condition, area, stream)