- /// inset is initially collapsed if bool = true
- InsetCollapsable(BufferParams const &, bool = false);
- ///
- InsetCollapsable(InsetCollapsable const & in, bool same_id = false);
- ///
- 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 &) const;
- ///
- void draw(BufferView *, const LyXFont &, int , float &) const;
- /// draw, either inlined (no button) or collapsed/open
- void draw(BufferView * bv, LyXFont const & f,
- int baseline, float & x, bool inlined) const;
- ///
- void update(BufferView *, bool =false);
- ///
- EDITABLE editable() const;
- ///
- bool insertInset(BufferView *, Inset * inset);
- ///
- virtual bool insetAllowed(Inset::Code code) const {
- return inset.insetAllowed(code);
- }
- ///
- bool isTextInset() const { return true; }
- ///
- void insetUnlock(BufferView *);
- ///
- bool needFullRow() const { return isOpen(); }
- ///
- bool lockInsetInInset(BufferView *, UpdatableInset *);
- ///
- bool unlockInsetInInset(BufferView *, UpdatableInset *,
- bool lr = false);
- ///
- bool updateInsetInInset(BufferView *, Inset *);
- ///
- int insetInInsetY() const;
- ///
- RESULT localDispatch(FuncRequest const &);
- ///
- int latex(Buffer const *, std::ostream &,
- bool fragile, bool free_spc) const;
- ///
- int ascii(Buffer const *, std::ostream &, int) const;
- ///
- int linuxdoc(Buffer const *, std::ostream &) const;
- ///
- int docbook(Buffer const *, std::ostream &, bool mixcont) const;
- ///
- void validate(LaTeXFeatures & features) const;
- /// FIXME, document
- void getCursorPos(BufferView *, int & x, int & y) const;
- /// Get the absolute document x,y of the cursor
- virtual void getCursor(BufferView &, int &, int &) const;
- ///
- void fitInsetCursor(BufferView * bv) const {
- inset.fitInsetCursor(bv);
- }
- UpdatableInset * getLockingInset() const;