- ///
- enum UpdateCodes {
- NONE = 0,
- CURSOR = 1,
- CELL = 2,
- SELECTION = 3,
- FULL = 4,
- INIT = 5
- };
- ///
- InsetTabular(Buffer const &, int rows = 1, int columns = 1);
- ///
- InsetTabular(InsetTabular const &, Buffer const &);
- ///
- ~InsetTabular();
- ///
- Inset * Clone(Buffer const &) const;
- ///
- void Read(Buffer const *, LyXLex &);
- ///
- void Write(Buffer const *, std::ostream &) const;
- ///
- int ascent(BufferView *, LyXFont const &) const;
- ///
- int descent(BufferView *, LyXFont const &) const;
- ///
- int width(BufferView *, LyXFont const & f) const;
- ///
- void draw(BufferView *, const LyXFont &, int , float &, bool) const;
- ///
- void update(BufferView *, LyXFont const &, bool = false);
- ///
- string const EditMessage() const;
- ///
- void Edit(BufferView *, int x, int y, unsigned int);
- ///
- bool doClearArea() const { return !locked; };
- ///
- void InsetUnlock(BufferView *);
- ///
- void UpdateLocal(BufferView *, UpdateCodes, bool mark_dirty) const;
- ///
- bool LockInsetInInset(BufferView *, UpdatableInset *);
- ///
- bool UnlockInsetInInset(BufferView *, UpdatableInset *, bool lr = false);
- ///
- bool UpdateInsetInInset(BufferView *, Inset *);
- ///
- unsigned int InsetInInsetY();
- ///
- UpdatableInset * GetLockingInset();
- ///
- UpdatableInset * GetFirstLockingInsetOfType(Inset::Code);
- ///
- bool InsertInset(BufferView *, Inset *);
- ///
- bool IsTextInset() const { return true; }
- ///
- bool display() const { return tabular->IsLongTabular(); }
- ///
- void InsetButtonRelease(BufferView *, int, int, int);
- ///
- void InsetButtonPress(BufferView *, int, int, int);
- ///
- void InsetMotionNotify(BufferView *, int, int, int);
- ///
- void InsetKeyPress(XKeyEvent *);
- ///
- UpdatableInset::RESULT LocalDispatch(BufferView *, int, string const &);
- ///
- int Latex(Buffer const *, std::ostream &, bool, bool) const;
- ///
- int Ascii(Buffer const *, std::ostream &, int linelen) const;
- ///
- int Linuxdoc(Buffer const *, std::ostream &) const;
- ///
- int DocBook(Buffer const *, std::ostream &) const;
- ///
- void Validate(LaTeXFeatures & features) const;
- ///
- Inset::Code LyxCode() const { return Inset::TABULAR_CODE; }
- ///
- void GetCursorPos(BufferView *, int & x, int & y) const;
- ///
- void ToggleInsetCursor(BufferView *);
- ///
- bool TabularFeatures(BufferView * bv, string const & what);
- ///
- void TabularFeatures(BufferView * bv, LyXTabular::Feature feature,
- string const & val = string());
- ///
- int GetActCell() const { return actcell; }
- ///
- void SetFont(BufferView *, LyXFont const &, bool toggleall = false);
- ///
- int getMaxWidth(Painter & pain, UpdatableInset const *) const;
- ///
- Buffer * BufferOwner() const { return const_cast<Buffer *>(buffer); }
- ///
- LyXText * getLyXText(BufferView *) const;
- ///
- void resizeLyXText(BufferView *) const;
- ///
- void OpenLayoutDialog(BufferView *) const;
- ///
- LyXFunc::func_status getStatus(string const & argument) const;
+ ///
+ enum UpdateCodes {
+ NONE = 0,
+ CURSOR = 1,
+ CELL = 2,
+ SELECTION = 3,
+ FULL = 4,
+ INIT = 5
+ };
+ ///
+ InsetTabular(Buffer const &, int rows = 1, int columns = 1);
+ ///
+ InsetTabular(InsetTabular const &, Buffer const &, bool same_id = false);
+ ///
+ ~InsetTabular();
+ ///
+ Inset * clone(Buffer const &, bool same_id = false) const;
+ ///
+ void read(Buffer const *, LyXLex &);
+ ///
+ void write(Buffer const *, std::ostream &) const;
+ ///
+ int ascent(BufferView *, LyXFont const &) const;
+ ///
+ int descent(BufferView *, LyXFont const &) const;
+ ///
+ int width(BufferView *, LyXFont const & f) const;
+ ///
+ void draw(BufferView *, const LyXFont &, int , float &, bool) const;
+ ///
+ void update(BufferView *, LyXFont const &, bool = false);
+ ///
+ string const editMessage() const;
+ ///
+ void edit(BufferView *, int x, int y, unsigned int);
+ ///
+ void edit(BufferView * bv, bool front = true);
+ ///
+ bool doClearArea() const;
+ ///
+ void insetUnlock(BufferView *);
+ ///
+ void updateLocal(BufferView *, UpdateCodes, bool mark_dirty) const;
+ ///
+ bool lockInsetInInset(BufferView *, UpdatableInset *);
+ ///
+ bool unlockInsetInInset(BufferView *, UpdatableInset *,
+ bool lr = false);
+ ///
+ bool updateInsetInInset(BufferView *, Inset *);
+ ///
+ unsigned int insetInInsetY();
+ ///
+ UpdatableInset * getLockingInset() const;
+ ///
+ UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
+ ///
+ bool insertInset(BufferView *, Inset *);
+ ///
+ bool insetAllowed(Inset::Code code) const;
+ ///
+ bool isTextInset() const { return true; }
+ ///
+ bool display() const { return tabular->IsLongTabular(); }
+ ///
+ bool insetButtonRelease(BufferView *, int, int, int);
+ ///
+ void insetButtonPress(BufferView *, int, int, int);
+ ///
+ void insetMotionNotify(BufferView *, int, int, int);
+ ///
+ void insetKeyPress(XKeyEvent *);
+ ///
+ UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
+ string const &);
+ ///
+ int latex(Buffer const *, std::ostream &, bool, bool) const;
+ ///
+ int ascii(Buffer const *, std::ostream &, int linelen) const;
+ ///
+ int linuxdoc(Buffer const *, std::ostream &) const;
+ ///
+ int docbook(Buffer const *, std::ostream &) const;
+ ///
+ void validate(LaTeXFeatures & features) const;
+ ///
+ Inset::Code lyxCode() const { return Inset::TABULAR_CODE; }
+ ///
+ void getCursorPos(BufferView *, int & x, int & y) const;
+ ///
+ void toggleInsetCursor(BufferView *);
+ ///
+ bool tabularFeatures(BufferView * bv, string const & what);
+ ///
+ void tabularFeatures(BufferView * bv, LyXTabular::Feature feature,
+ string const & val = string());
+ ///
+ int getActCell() const { return actcell; }
+ ///
+ void setFont(BufferView *, LyXFont const &, bool toggleall = false,
+ bool selectall = false);
+ ///
+ int getMaxWidth(BufferView *, UpdatableInset const *) const;
+ ///
+ Buffer * bufferOwner() const { return const_cast<Buffer *>(buffer); }
+ ///
+ LyXText * getLyXText(BufferView const *,
+ bool const recursive = false) const;
+ ///
+ void deleteLyXText(BufferView *, bool recursive = true) const;
+ ///
+ void resizeLyXText(BufferView *, bool force = false) const;
+ ///
+ void openLayoutDialog(BufferView *) const;
+ ///
+ bool showInsetDialog(BufferView *) const;
+ ///
+ FuncStatus getStatus(string const & argument) const;
+ ///
+ std::vector<string> const getLabelList() 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, sx);
+ }
+ ///
+ void scroll(BufferView *bv, int offset) const {
+ UpdatableInset::scroll(bv, offset);
+ }
+ ///
+ Paragraph * getParFromID(int id) const;
+ ///
+ Inset * getInsetFromID(int id) const;
+ ///
+ Paragraph * firstParagraph() const;
+ ///
+ Paragraph * getFirstParagraph(int) const;
+ ///
+ LyXCursor const & cursor(BufferView *) const;
+ ///
+ bool allowSpellcheck() { return true; }
+ string const selectNextWordToSpellcheck(BufferView *, float & value) const;
+ void selectSelectedWord(BufferView *);
+ void toggleSelection(BufferView *, bool kill_selection);
+ ///
+ bool searchForward(BufferView *, string const &,
+ bool = true, bool = false);
+ bool searchBackward(BufferView *, string const &,
+ bool = true, bool = false);