*
* \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 *, Inset *);
- ///
int insetInInsetY() const;
///
UpdatableInset * getLockingInset() const;
///
- UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
+ UpdatableInset * getFirstLockingInsetOfType(InsetOld::Code);
///
- bool insertInset(BufferView *, Inset *);
+ bool insertInset(BufferView *, InsetOld *);
///
- bool insetAllowed(Inset::Code code) const;
+ bool insetAllowed(InsetOld::Code code) const;
///
bool isTextInset() const { return true; }
/** returns true if, when outputing LaTeX, font changes should
///
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;
///
- Inset::Code lyxCode() const { return Inset::TABULAR_CODE; }
+ InsetOld::Code lyxCode() const { return InsetOld::TABULAR_CODE; }
/// FIXME, document
void getCursorPos(BufferView *, int & x, int & y) const;
/// Get the absolute document x,y of the cursor
///
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 {
UpdatableInset::scroll(bv, offset);
}
///
- Inset * getInsetFromID(int id) const;
+ InsetOld * getInsetFromID(int id) const;
///
ParagraphList * getParagraphs(int) const;
///
selectNextWordToSpellcheck(BufferView *, float & value) const;
///
void selectSelectedWord(BufferView *);
- ///
- void toggleSelection(BufferView *, bool kill_selection);
void markErased();
// this should return true if we have a "normal" cell, otherwise true.
// "normal" means without width set!
- bool forceDefaultParagraphs(Inset const * in) const;
+ bool forceDefaultParagraphs(InsetOld const * in) const;
///
void addPreview(lyx::graphics::PreviewLoader &) const;
///
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;
};