X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettabular.h;h=9070104ea8efa9cbf3720adf9fe1183e5466daf8;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=f47b2fee595519be0cf35e4bcc5cb48fa7a32bd1;hpb=5fb5569a13ae4b542661052a7e228965b56098ca;p=lyx.git diff --git a/src/insets/insettabular.h b/src/insets/insettabular.h index f47b2fee59..9070104ea8 100644 --- a/src/insets/insettabular.h +++ b/src/insets/insettabular.h @@ -88,14 +88,16 @@ public: /// void InsetUnlock(BufferView *); /// - bool LockInsetInInset(UpdatableInset *); + void UpdateLocal(BufferView *, bool flag = true); /// - bool UnlockInsetInInset(BufferView *, UpdatableInset *, bool lr=false); + bool LockInsetInInset(BufferView *, UpdatableInset *); /// - void UpdateLocal(BufferView *, bool flag = true); + bool UnlockInsetInInset(BufferView *, UpdatableInset *, bool lr=false); /// bool UpdateInsetInInset(BufferView *, Inset *); /// + int InsetInInsetY(); + /// bool display() const { return tabular->IsLongTabular(); } /// void InsetButtonRelease(BufferView *, int, int, int); @@ -120,7 +122,7 @@ public: /// Inset::Code LyxCode() const { return Inset::TABULAR_CODE; } /// - void GetCursorPos(int & x, int & y); + void GetCursorPos(int & x, int & y) const; /// void ToggleInsetCursor(BufferView *); /// @@ -128,7 +130,7 @@ public: /// int GetActCell() { return actcell; } /// - void SetFont(LyXFont const &); + void SetFont(BufferView *, LyXFont const &, bool toggleall = false); /// /// Public structures and variables /// @@ -145,27 +147,32 @@ private: /// void setPos(Painter &, int x, int y) const; /// - void setWidthOfCell(int pos, int cell, int row); + bool SetCellDimensions(Painter & pain, int cell, int row); /// - UpdatableInset::RESULT moveRight(BufferView *); - UpdatableInset::RESULT moveLeft(); + UpdatableInset::RESULT moveRight(BufferView *, bool lock=true); + UpdatableInset::RESULT moveLeft(BufferView *, bool lock=true); UpdatableInset::RESULT moveUp(); UpdatableInset::RESULT moveDown(); bool moveNextCell(); bool movePrevCell(); bool Delete(); /// - void resetPos(BufferView *); + void resetPos(Painter &) const; /// void RemoveTabularRow(); /// bool hasCharSelection() const {return (sel_pos_start != sel_pos_end);} bool hasCellSelection() const {return hasCharSelection() && (sel_cell_start != sel_cell_end);} + /// + bool ActivateCellInset(BufferView *, int x=0, int y=0, int button=0); + /// + bool InsetHit(BufferView * bv, int x, int y) const; + /// /// Private structures and variables /// - UpdatableInset + InsetText * the_locking_inset; Buffer * buffer;