- /// inset is initially collapsed if bool = true
- InsetCollapsable(BufferParams const &, bool collapsed = false);
- ///
- InsetCollapsable(InsetCollapsable const & in);
- ///
- void read(Buffer const *, LyXLex &);
- ///
- void write(Buffer const *, std::ostream &) const;
- ///
- void metrics(MetricsInfo &, Dimension &) const;
- ///
- void draw(PainterInfo & pi, int x, int y) const;
- /// draw, either inlined (no button) or collapsed/open
- void draw(PainterInfo & pi, int x, int y, bool inlined) const;
- ///
- EDITABLE editable() const;
- ///
- bool insertInset(BufferView *, InsetOld * inset);
- ///
- virtual bool insetAllowed(InsetOld::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 *, InsetOld *);
- ///
- int insetInInsetY() const;
- ///
- RESULT localDispatch(FuncRequest const &);
- ///
- int latex(Buffer const *, std::ostream &,
- LatexRunParams const &) 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;
- ///
- UpdatableInset * getFirstLockingInsetOfType(InsetOld::Code);
- ///
- void setFont(BufferView *, LyXFont const &, bool toggleall = false,
- bool selectall = false);
- ///
- void setLabel(string const & l) const;