#include "lyxscreen.h"
#include "WorkArea.h"
#include "gettext.h"
+#include "lyxfunc.h"
using std::ostream;
using std::ifstream;
// and current buffer's textclass (number). */
LyXTextClassList::ClassList::size_type tclass =
bv->buffer()->params.textclass;
- std::pair<bool, LyXTextClass::size_type> layout =
- textclasslist.NumberOfLayout(tclass, arg);
+ std::pair <bool, LyXTextClass::size_type> layout =
+ textclasslist.NumberOfLayout(tclass, arg);
// If the entry is obsolete, use the new one instead.
if (layout.first) {
// see if we found the layout number:
if (!layout.first) {
string const msg = string(N_("Layout ")) + arg + N_(" not known");
- bv->owner()->message(msg);
+ bv->owner()->getLyXFunc()->Dispatch(LFUN_MESSAGE, msg);
break;
}
bool InsetText::checkAndActivateInset(BufferView * bv, int x, int y,
int button)
{
- int dummyx = x = x - drawTextXOffset;
- int dummyy = y + insetAscent;
+ int dummyx, dummyy;
+
+ dummyx = x = x - drawTextXOffset;
+ dummyy = y + insetAscent;
Inset * inset = bv->checkInsetHit(TEXT(bv), dummyx, dummyy, button);
if (inset) {
}
}
-
bool InsetText::nodraw() const
{
if (the_locking_inset)
return UpdatableInset::nodraw();
}
-
int InsetText::scroll(bool recursive) const
{
int sx = UpdatableInset::scroll(false);
return sx;
}
-
bool InsetText::doClearArea() const
{
return !locked || (need_update & (FULL|INIT));