#include "language.h"
#include "buffer.h"
#include "BufferView.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
#include "lyxtext.h"
#include "debug.h"
#include "lyxtextclasslist.h"
}
}
-
-void InsetERT::edit(BufferView * bv, int x, int y, unsigned int button)
+void InsetERT::edit(BufferView * bv, int x, int y, mouse_button::state button)
{
- if (button == 3)
+ if (button == mouse_button::button3)
return;
if (status_ == Inlined) {
void InsetERT::insetButtonPress(BufferView * bv,
- int x, int y, int button)
+ int x, int y, mouse_button::state button)
{
if (status_ == Inlined) {
inset.insetButtonPress(bv, x, y, button);
}
-bool InsetERT::insetButtonRelease(BufferView * bv, int x, int y, int button)
+bool InsetERT::insetButtonRelease(BufferView * bv, int x, int y,
+ mouse_button::state button)
{
- if (button == 3) {
+ if (button == mouse_button::button3) {
showInsetDialog(bv);
return true;
}
void InsetERT::insetMotionNotify(BufferView * bv,
- int x, int y, int state)
+ int x, int y, mouse_button::state state)
{
if (status_ == Inlined) {
inset.insetMotionNotify(bv, x, y, state);
la += inset.paragraph()->getChar(j);
++i;
}
- if (inset.paragraph()->next() || (i > 0 && j < p_siz)) {
+ if (i > 0 && j < p_siz) {
la += "...";
}
if (la.empty()) {
return -1;
return w;
}
-
-
-void InsetERT::update(BufferView * bv, LyXFont const & font,
- bool reinit)
-{
- if (inset.need_update & InsetText::INIT ||
- inset.need_update & InsetText::FULL)
- {
- setButtonLabel();
- }
- InsetCollapsable::update(bv, font, reinit);
-}