#include "buffer.h"
#include "buffer_funcs.h"
#include "BufferView.h"
+#include "funcrequest.h"
+#include "iterators.h"
#include "lyxserver.h"
#include "intl.h"
#include "lyx_main.h"
#include "undo_funcs.h"
#include "ParagraphParameters.h"
-#include "insets/insetbibtex.h"
#include "insets/insetcommand.h"
#include "insets/insetexternal.h"
#include "insets/insettabular.h"
string const & name = argument;
string data;
if (name == "bibitem" ||
+ name == "bibtex" ||
name == "include" ||
name == "index" ||
name == "ref" ||
name == "url") {
InsetCommandParams p(name);
data = InsetCommandMailer::params2string(name, p);
- } else if (name == "bibtex") {
- InsetBibtexParams p;
- Buffer const & buffer = *owner->buffer();
- data = InsetBibtexMailer::params2string(p, buffer);
} else if (name == "citation") {
InsetCommandParams p("cite");
data = InsetCommandMailer::params2string(name, p);
view()->owner()->updateLayoutChoice();
if (view()->available()) {
- view()->fitCursor();
+ if (view()->fitCursor()) {
+ lyxerr << "LyXFunc->fitCursor->update" << endl;
+
+ view()->update();
+ }
// If we executed a mutating lfun, mark the buffer as dirty
if (!getStatus(ev).disabled()