#include <utility>
#include <iostream>
-#include FORMS_H_LOCATION
-
#include "lyx_cb.h"
#include "lyx_gui_misc.h"
#include "lyx_main.h"
+#include "buffer.h"
#include "bufferlist.h"
#include "bufferview_funcs.h"
+#include "debug.h"
#include "lastfiles.h"
#include "LyXView.h"
#include "lyxrc.h"
#include "lyxtext.h"
#include "frontends/FileDialog.h"
+#include "frontends/GUIRunTime.h"
#include "insets/insetlabel.h"
#include "support/FileInfo.h"
#include "support/filetools.h"
#include "support/path.h"
#include "support/syscall.h"
+#include "support/lstrings.h"
#include "gettext.h"
#include "BufferView.h"
bool MenuWrite(BufferView * bv, Buffer * buffer)
{
// FIXME: needed ?
- XFlush(fl_get_display());
+ XFlush(GUIRunTime::x11Display());
if (!buffer->save()) {
string const fname = buffer->fileName();
void MenuInsertLabel(BufferView * bv, string const & arg)
{
string label(arg);
- ProhibitInput(bv);
+ bv->owner()->prohibitInput();
if (label.empty()) {
Paragraph * par = bv->text->cursor.par();
LyXLayout const * layout =
InsetLabel * inset = new InsetLabel( p );
bv->insertInset( inset );
}
- AllowInput(bv);
+ bv->owner()->allowInput();
}