#include "TextCache.h"
#include "lyxfind.h"
#include "undo_funcs.h"
+#include "ParagraphParameters.h"
#include "figureForm.h"
using std::pair;
if (disable)
flag |= func_status::Disabled;
- // the font related functions
+ // the font related functions (and a few others)
func_status::value_type box = func_status::ToggleOff;
LyXFont const & font =
TEXT(false)->real_current_font;
if (font.series() == LyXFont::BOLD_SERIES)
box = func_status::ToggleOn;
break;
-#ifndef NO_LATEX
- case LFUN_TEX:
- if (font.latex() == LyXFont::ON)
- box = func_status::ToggleOn;
- break;
-#endif
case LFUN_READ_ONLY_TOGGLE:
if (buf->isReadonly())
box = func_status::ToggleOn;
break;
+ case LFUN_APPENDIX:
+ if (TEXT(false)->cursor.par()->params().startOfAppendix())
+ box = func_status::ToggleOn;
+ break;
default:
box = func_status::OK;
break;
owner->getDialogs()->setUserFreeFont();
break;
-#ifndef NO_LATEX
- case LFUN_TEX:
- Tex(owner->view());
- owner->view()->setState();
- owner->showState();
- break;
-#endif
-
case LFUN_RECONFIGURE:
Reconfigure(owner->view());
break;
lyxerr[Debug::INFO] << "No matching paragraph found! ["
<< id << "]" << std::endl;
break;
+ } else {
+ lyxerr << "Paragraph " << par->id()
+ << " found." << endl;
}
// Set the cursor
- TEXT()->setCursor(owner->view(), par, 0);
+ owner->view()->text->setCursor(owner->view(), par, 0);
owner->view()->setState();
owner->showState();