remove useless checkbox for some tabular-feature functions in math arrays

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28855 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-03-18 13:39:17 +00:00
parent 9aa0e78047
commit dd658e6f84
2 changed files with 16 additions and 11 deletions

View File

@ -1397,8 +1397,18 @@ bool InsetMathGrid::getStatus(Cursor & cur, FuncRequest const & cmd,
}
if (s == "valign-top" || s == "valign-middle" ||
s == "valign-bottom" || s == "align-left" ||
s == "align-right" || s == "align-center" ||
s == "append-row" || s == "delete-row" ||
s == "align-right" || s == "align-center") {
status.setEnabled(true);
char const ha = horizontalAlignment(cur.col());
char const va = verticalAlignment();
status.setOnOff((s == "align-left" && ha == 'l')
|| (s == "align-right" && ha == 'r')
|| (s == "align-center" && ha == 'c')
|| (s == "valign-top" && va == 't')
|| (s == "valign-bottom" && va == 'b')
|| (s == "valign-middle" && va == 'm'));
}
if (s == "append-row" || s == "delete-row" ||
s == "copy-row" || s == "swap-row" ||
s == "add-hline-above" || s == "add-hline-below" ||
s == "delete-hline-above" || s == "delete-hline-below" ||
@ -1413,15 +1423,6 @@ bool InsetMathGrid::getStatus(Cursor & cur, FuncRequest const & cmd,
from_utf8(N_("Unknown tabular feature '%1$s'")), lyx::from_ascii(s)));
}
char const ha = horizontalAlignment(cur.col());
char const va = verticalAlignment();
status.setOnOff((s == "align-left" && ha == 'l')
|| (s == "align-right" && ha == 'r')
|| (s == "align-center" && ha == 'c')
|| (s == "valign-top" && va == 't')
|| (s == "valign-bottom" && va == 'b')
|| (s == "valign-middle" && va == 'm'));
#if 0
// FIXME: What did this code do?
// Please check whether it is still needed!

View File

@ -117,6 +117,10 @@ What's new
- Fix display of release date in Help>About for development builds.
- Remove empty checkbox for menu entries like Edit>Math>Delete row
(which were only visible with some themes).
* DOCUMENTATION AND LOCALIZATION