#include "lyxtext.h"
#include "lyx_gui_misc.h"
#include "LyXView.h"
-#include "lyxfunc.h"
#include "insets/insettext.h"
#include "frontends/Dialogs.h"
#include "debug.h"
-#include "lyxfunc.h"
#include "WorkArea.h"
#include "gettext.h"
#include "language.h"
if (nodraw())
return;
if (bv->text->status == LyXText::CHANGED_IN_DRAW)
- return;
+ return;
// lyxerr << "InsetTabular::draw(" << need_update << ")\n";
-
+
Painter & pain = bv->painter();
int i;
int j;
if (!copySelection(bv))
break;
bv->text->SetUndo(bv->buffer(), Undo::DELETE,
-#ifndef NEW_INSETS
- bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->previous_,
- bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->next_
-#else
bv->text->cursor.par()->previous(),
- bv->text->cursor.par()->next()
-#endif
- );
+ bv->text->cursor.par()->next());
cutSelection();
UpdateLocal(bv, INIT, true);
break;
break;
case LFUN_PASTESELECTION:
{
- string clip(bv->workarea()->getClipboard());
+ string clip(bv->getClipboard());
if (clip.empty())
break;
case LFUN_PASTE:
if (hasPasteBuffer()) {
bv->text->SetUndo(bv->buffer(), Undo::INSERT,
-#ifndef NEW_INSETS
- bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->previous_,
- bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->next_
-#else
bv->text->cursor.par()->previous(),
- bv->text->cursor.par()->next()
-#endif
- );
+ bv->text->cursor.par()->next());
pasteSelection(bv);
UpdateLocal(bv, INIT, true);
break;
sel_row_start = sel_row_end = tabular->row_of_cell(actcell);
}
bv->text->SetUndo(bv->buffer(), Undo::FINISH,
-#ifndef NEW_INSETS
- bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->previous_,
- bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->next_
-#else
bv->text->cursor.par()->previous(),
- bv->text->cursor.par()->next()
-#endif
- );
+ bv->text->cursor.par()->next());
int row = tabular->row_of_cell(actcell);
int column = tabular->column_of_cell(actcell);
return UpdatableInset::nodraw();
}
-
int InsetTabular::scroll(bool recursive) const
{
int sx = UpdatableInset::scroll(false);
return sx;
}
-
bool InsetTabular::doClearArea() const
{
return !locked || (need_update & (FULL|INIT));