diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 33b6969f02..65d5ed1032 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2005-04-23 Jürgen Spitzmüller + + * insettabular.C: handle the LFUN_UNSET_* longtabular methods + in getStatus and the tabularFeature string (bug 1860). + 2005-04-22 Georg Baum * insetbranch.C (getStatus): make the code more compact diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 805cb1b8f5..e27ff5d9a9 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -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;