* 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
This commit is contained in:
Edwin Leuven 2008-03-20 08:45:40 +00:00
parent 01bd0aa6d7
commit b7406da7f0
10 changed files with 16 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 B

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 B

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 B

After

Width:  |  Height:  |  Size: 232 B

View File

@ -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

View File

@ -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;

View File

@ -175,6 +175,8 @@ public:
///
SET_INTERLINE_SPACE,
///
SET_BORDER_LINES,
///
LAST_ACTION
};
///