fix longtabular ui (bug 1860)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9868 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-04-23 17:39:12 +00:00
parent 6a4b224ded
commit 8082ce80c7
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-23 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insettabular.C: handle the LFUN_UNSET_* longtabular methods
in getStatus and the tabularFeature string (bug 1860).
2005-04-22 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetbranch.C (getStatus): make the code more compact

View File

@ -117,9 +117,13 @@ TabularFeature tabularFeature[] =
{ LyXTabular::UNSET_ROTATE_CELL, "unset-rotate-cell" },
{ LyXTabular::SET_USEBOX, "set-usebox" },
{ LyXTabular::SET_LTHEAD, "set-lthead" },
{ LyXTabular::UNSET_LTHEAD, "unset-lthead" },
{ LyXTabular::SET_LTFIRSTHEAD, "set-ltfirsthead" },
{ LyXTabular::UNSET_LTFIRSTHEAD, "unset-ltfirsthead" },
{ LyXTabular::SET_LTFOOT, "set-ltfoot" },
{ LyXTabular::UNSET_LTFOOT, "unset-ltfoot" },
{ LyXTabular::SET_LTLASTFOOT, "set-ltlastfoot" },
{ LyXTabular::UNSET_LTLASTFOOT, "unset-ltlastfoot" },
{ LyXTabular::SET_LTNEWPAGE, "set-ltnewpage" },
{ LyXTabular::SET_SPECIAL_COLUMN, "set-special-column" },
{ LyXTabular::SET_SPECIAL_MULTI, "set-special-multi" },
@ -934,18 +938,34 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd,
status.setOnOff(tabular.getRowOfLTHead(sel_row_start, dummyltt));
break;
case LyXTabular::UNSET_LTFIRSTHEAD:
status.setOnOff(!tabular.getRowOfLTHead(sel_row_start, dummyltt));
break;
case LyXTabular::SET_LTHEAD:
status.setOnOff(tabular.getRowOfLTHead(sel_row_start, dummyltt));
break;
case LyXTabular::UNSET_LTHEAD:
status.setOnOff(!tabular.getRowOfLTHead(sel_row_start, dummyltt));
break;
case LyXTabular::SET_LTFOOT:
status.setOnOff(tabular.getRowOfLTFoot(sel_row_start, dummyltt));
break;
case LyXTabular::UNSET_LTFOOT:
status.setOnOff(!tabular.getRowOfLTFoot(sel_row_start, dummyltt));
break;
case LyXTabular::SET_LTLASTFOOT:
status.setOnOff(tabular.getRowOfLTFoot(sel_row_start, dummyltt));
break;
case LyXTabular::UNSET_LTLASTFOOT:
status.setOnOff(!tabular.getRowOfLTFoot(sel_row_start, dummyltt));
break;
case LyXTabular::SET_LTNEWPAGE:
status.setOnOff(tabular.getLTNewPage(sel_row_start));
break;