* new function to set border around selection
* add to toolbar + icon * update border icons to match in size git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23846 a592a061-630c-0410-9148-cb99ea01b6c8
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 211 B |
BIN
lib/images/tabular-feature_set-border-lines.png
Normal file
After Width: | Height: | Size: 308 B |
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 232 B |
@ -122,6 +122,7 @@ ToolbarSet
|
||||
Item "Set bottom line" "tabular-feature toggle-line-bottom"
|
||||
Item "Set left line" "tabular-feature toggle-line-left"
|
||||
Item "Set right line" "tabular-feature toggle-line-right"
|
||||
Item "Set border lines" "tabular-feature set-border-lines"
|
||||
Item "Set all lines" "tabular-feature set-all-lines"
|
||||
Item "Unset all lines" "tabular-feature unset-all-lines"
|
||||
Separator
|
||||
|
@ -157,6 +157,7 @@ TabularFeature tabularFeature[] =
|
||||
{ Tabular::SET_TOP_SPACE, "set-top-space" },
|
||||
{ Tabular::SET_BOTTOM_SPACE, "set-bottom-space" },
|
||||
{ Tabular::SET_INTERLINE_SPACE, "set-interline-space" },
|
||||
{ Tabular::SET_BORDER_LINES, "set-border-lines" },
|
||||
{ Tabular::LAST_ACTION, "" }
|
||||
};
|
||||
|
||||
@ -3607,6 +3608,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
case Tabular::SET_TOP_SPACE:
|
||||
case Tabular::SET_BOTTOM_SPACE:
|
||||
case Tabular::SET_INTERLINE_SPACE:
|
||||
case Tabular::SET_BORDER_LINES:
|
||||
status.clear();
|
||||
return true;
|
||||
|
||||
@ -4343,6 +4345,17 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
||||
tabular.cellIndex(i,j), setLines);
|
||||
break;
|
||||
|
||||
case Tabular::SET_BORDER_LINES:
|
||||
for (row_type i = sel_row_start; i <= sel_row_end; ++i) {
|
||||
tabular.setLeftLine(tabular.cellIndex(i, sel_col_start), true);
|
||||
tabular.setRightLine(tabular.cellIndex(i, sel_col_end), true);
|
||||
}
|
||||
for (col_type j = sel_col_start; j <= sel_col_end; ++j) {
|
||||
tabular.setTopLine(tabular.cellIndex(sel_row_start, j), true);
|
||||
tabular.setBottomLine(tabular.cellIndex(sel_row_end, j), true);
|
||||
}
|
||||
break;
|
||||
|
||||
case Tabular::SET_LONGTABULAR:
|
||||
tabular.setLongTabular(true);
|
||||
break;
|
||||
|
@ -175,6 +175,8 @@ public:
|
||||
///
|
||||
SET_INTERLINE_SPACE,
|
||||
///
|
||||
SET_BORDER_LINES,
|
||||
///
|
||||
LAST_ACTION
|
||||
};
|
||||
///
|
||||
|