#include "FuncStatus.h"
#include "Language.h"
#include "Layout.h"
-#include "LyXAction.h"
#include "Lexer.h"
-#include "TextClass.h"
+#include "LyXAction.h"
#include "MetricsInfo.h"
#include "ParagraphParameters.h"
#include "Paragraph.h"
+#include "TextClass.h"
#include "frontends/alert.h"
#include "frontends/Application.h"
void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
{
BufferParams const & bp = cur.buffer().params();
- Layout const layout = bp.documentClass().emptyLayout();
+ Layout const layout = bp.documentClass().plainLayout();
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
switch (cmd.action) {
case LFUN_QUOTE_INSERT: {
case LFUN_PASTE:
case LFUN_PRIMARY_SELECTION_PASTE:
case LFUN_QUOTE_INSERT:
- status.enabled(true);
+ status.setEnabled(true);
return true;
// this one is difficult to get right. As a half-baked