summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/tabsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/tabsh.cxx')
-rw-r--r--sw/source/uibase/shells/tabsh.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 00f1df7a0e2b..75ec7e57c888 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -772,6 +772,7 @@ void SwTableShell::Execute(SfxRequest &rReq)
break;
}
break;
+ case SID_TABLE_MINIMAL_COLUMN_WIDTH:
case FN_TABLE_ADJUST_CELLS:
case FN_TABLE_BALANCE_CELLS:
{
@@ -787,6 +788,13 @@ void SwTableShell::Execute(SfxRequest &rReq)
bCallDone = true;
break;
}
+ case SID_TABLE_MINIMAL_ROW_HEIGHT:
+ {
+ const SwFormatFrameSize aSz;
+ rSh.SetRowHeight( aSz );
+ bCallDone = true;
+ break;
+ }
case FN_TABLE_BALANCE_ROWS:
if ( rSh.BalanceRowHeight(true) )
rSh.BalanceRowHeight(false);
@@ -1221,9 +1229,10 @@ void SwTableShell::GetState(SfxItemSet &rSet)
if ( !rSh.IsTableMode() )
rSet.DisableItem(FN_TABLE_MERGE_CELLS);
break;
+ case SID_TABLE_MINIMAL_COLUMN_WIDTH:
case FN_TABLE_ADJUST_CELLS:
if ( !rSh.IsAdjustCellWidthAllowed() )
- rSet.DisableItem(FN_TABLE_ADJUST_CELLS);
+ rSet.DisableItem(nSlot);
break;
case FN_TABLE_BALANCE_CELLS:
@@ -1257,6 +1266,7 @@ void SwTableShell::GetState(SfxItemSet &rSet)
}
break;
+ case SID_TABLE_MINIMAL_ROW_HEIGHT:
case FN_TABLE_OPTIMAL_HEIGHT:
{
// Disable if auto height already is enabled.