// -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file insettabular.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Jürgen Vigna
*
- * Copyright 1995-2001 The LyX Team.
- *
- *======================================================
+ * Full author contact details are available in file CREDITS
*/
// This is the rewrite of the tabular (table) support.
#ifndef INSETTABULAR_H
#define INSETTABULAR_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include "inset.h"
#include "tabular.h"
class Painter;
class BufferView;
class Buffer;
+class BufferParams;
class Paragraph;
class InsetTabular : public UpdatableInset {
///
bool isTextInset() const { return true; }
/** returns true if, when outputing LaTeX, font changes should
- be closed before generating this inset. This is needed for
- insets that may contain several paragraphs */
+ be closed before generating this inset. This is needed for
+ insets that may contain several paragraphs */
bool noFontChange() const { return true; }
///
bool display() const { return tabular->IsLongTabular(); }
UpdatableInset::scroll(bv, offset);
}
///
- Paragraph * getParFromID(int id) const;
- ///
Inset * getInsetFromID(int id) const;
///
Paragraph * firstParagraph() const;
///
LyXCursor const & cursor(BufferView *) const;
///
- bool allowSpellcheck() { return true; }
+ bool allowSpellcheck() const { return true; }
///
WordLangTuple const
selectNextWordToSpellcheck(BufferView *, float & value) const;
void selectSelectedWord(BufferView *);
///
void toggleSelection(BufferView *, bool kill_selection);
+
+ void markErased();
+
+ /// find next change
+ bool nextChange(BufferView *, lyx::pos_type & length);
///
bool searchForward(BufferView *, string const &,
bool = true, bool = false);
///
bool movePrevCell(BufferView *, bool lock = false);
///
- bool deletable() const;
- ///
int getCellXPos(int cell) const;
///
void resetPos(BufferView *) const;
///
bool pasteSelection(BufferView *);
///
- bool cutSelection();
+ bool cutSelection(BufferParams const & bp);
///
bool isRightToLeft(BufferView *);
///