///
void drawSelection(PainterInfo & pi, int x, int y) const;
/// return x,y of given position relative to the inset's baseline
- void getCursorPos(CursorSlice const & sl, int & x, int & y) const;
+ void cursorPos(CursorSlice const & sl, bool boundary, int & x, int & y) const;
///
bool hitButton(FuncRequest const &) const;
///
///
void setLabelFont(LyXFont & f);
///
- int scroll(bool recursive = true) const;
- ///
- void scroll(BufferView & bv, double sx) const;
- ///
- void scroll(BufferView & bv, int offset) const;
- ///
bool isOpen() const { return status_ == Open || status_ == Inlined; }
///
bool inlined() const { return status_ == Inlined; }
///
- CollapseStatus status() const { return status_; }
+ CollapseStatus status() const;
///
bool allowSpellCheck() const { return true; }
///
void setStatus(LCursor & cur, CollapseStatus st);
protected:
-
///
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
///
Dimension dimensionCollapsed() const;
///
- int getMaxTextWidth(Painter & pain, UpdatableInset const *) const;
- ///
Box const & buttonDim() const;
///
void edit(LCursor & cur, bool left);
mutable CollapseStatus status_;
/// a substatus of the Open status, determined automatically in metrics
mutable bool openinlined_;
+ /// the inset will automatically open when the cursor is inside
+ mutable bool autoOpen_;
///
mutable Dimension textdim_;
};