- bool hasCharSelection() const {return (sel_pos_start != sel_pos_end);}
- bool hasCellSelection() const {return hasCharSelection() &&
- (sel_cell_start != sel_cell_end);}
+ bool hasSelection() const {return ((sel_pos_start != sel_pos_end) ||
+ (sel_cell_start != sel_cell_end));}
+ ///
+ bool ActivateCellInset(BufferView *, int x=0, int y=0, int button=0,
+ bool behind = false);
+ ///
+ bool InsetHit(BufferView * bv, int x, int y) const;
+ ///
+ int GetMaxWidthOfCell(Painter &, int cell) const;
+ ///
+ void recomputeTextInsets(BufferView *, const LyXFont &) const;
+