*
* \author Jürgen Vigna
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
// This is the rewrite of the tabular (table) support.
#include "inset.h"
#include "tabular.h"
-#include "LString.h"
-#include "FuncStatus.h"
+#include "support/std_string.h"
#include "frontends/mouse_state.h"
+class FuncStatus;
class LyXLex;
class Painter;
class BufferView;
class InsetTabular : public UpdatableInset {
public:
- ///
- enum UpdateCodes {
- NONE = 0,
- CURSOR = 1,
- CELL = 2,
- FULL = 4,
- INIT = 5
- };
///
InsetTabular(Buffer const &, int rows = 1, int columns = 1);
///
///
virtual std::auto_ptr<InsetBase> clone() const;
///
- void read(Buffer const *, LyXLex &);
+ void read(Buffer const &, LyXLex &);
///
- void write(Buffer const *, std::ostream &) const;
+ void write(Buffer const &, std::ostream &) const;
///
void metrics(MetricsInfo &, Dimension &) const;
///
//
void insetUnlock(BufferView *);
///
- void updateLocal(BufferView *, UpdateCodes) const;
+ void updateLocal(BufferView *) const;
///
bool lockInsetInInset(BufferView *, UpdatableInset *);
///
bool unlockInsetInInset(BufferView *, UpdatableInset *,
bool lr = false);
///
- bool updateInsetInInset(BufferView *, InsetOld *);
- ///
int insetInInsetY() const;
///
UpdatableInset * getLockingInset() const;
///
RESULT localDispatch(FuncRequest const &);
///
- int latex(Buffer const *, std::ostream &,
+ int latex(Buffer const &, std::ostream &,
LatexRunParams const &) const;
///
- int ascii(Buffer const *, std::ostream &, int linelen) const;
+ int ascii(Buffer const &, std::ostream &, int linelen) const;
///
- int linuxdoc(Buffer const *, std::ostream &) const;
+ int linuxdoc(Buffer const &, std::ostream &) const;
///
- int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+ int docbook(Buffer const &, std::ostream &, bool mixcont) const;
///
void validate(LaTeXFeatures & features) const;
///
///
void deleteLyXText(BufferView *, bool recursive = true) const;
///
- void resizeLyXText(BufferView *, bool force = false) const;
- ///
void openLayoutDialog(BufferView *) const;
///
bool showInsetDialog(BufferView *) const;
///
void getLabelList(std::vector<string> &) const;
///
- void nodraw(bool b) const {
- UpdatableInset::nodraw(b);
- }
- bool nodraw() const;
- ///
int scroll(bool recursive=true) const;
///
void scroll(BufferView *bv, float sx) const {
selectNextWordToSpellcheck(BufferView *, float & value) const;
///
void selectSelectedWord(BufferView *);
- ///
- void toggleSelection(BufferView *, bool kill_selection);
void markErased();
///
virtual BufferView * view() const;
///
- Buffer const * buffer() const;
+ Buffer const & buffer() const;
/// set the owning buffer
void buffer(Buffer * b);
///
mutable bool locked;
///
- mutable UpdateCodes need_update;
- ///
mutable int in_reset_pos;
};