- /// the string that is passed to the TOC
- virtual void textString(odocstream &) const {}
-
- /** This enum indicates by which means the inset can be modified:
- - NOT_EDITABLE: the inset's content cannot be modified at all
- (e.g. printindex, insetspecialchar)
- - IS_EDITABLE: content can be edited via dialog (e.g. bibtex, index, href)
- - HIGHLY_EDITABLE: content can be edited on screen (normally means that
- insettext is contained, e.g. collapsables, tabular) */
- // FIXME: This has not yet been fully implemented to math insets
- enum EDITABLE {
- ///
- NOT_EDITABLE = 0,
- ///
- IS_EDITABLE,
- ///
- HIGHLY_EDITABLE
- };
- /// what appears in the minibuffer when opening
- virtual docstring editMessage() const;
- ///
- virtual EDITABLE editable() const;
+ /// XHTML output
+ /// the inset is expected to write XHTML to the XHTMLStream
+ /// \return any "deferred" material that should be written outside the
+ /// normal stream, and which will in fact be written after the current
+ /// paragraph closes. this is appropriate e.g. for floats.
+ virtual docstring xhtml(XHTMLStream & xs, OutputParams const &) const;
+
+ /// Writes a string representation of the inset to the odocstream.
+ /// This one should be called when you want the whole contents of
+ /// the inset.
+ virtual void toString(odocstream &) const {}
+ /// Appends a potentially abbreviated version of the inset to
+ /// \param str. Intended for use by the TOC.
+ virtual void forOutliner(docstring & str,
+ size_t const maxlen = TOC_ENTRY_LENGTH,
+ bool const shorten = true) const;
+
+ /// can the contents of the inset be edited on screen ?
+ // true for InsetCollapsables (not ButtonOnly) (not InsetInfo), InsetText
+ virtual bool editable() const;
+ /// has the Inset settings that can be modified in a dialog ?
+ virtual bool hasSettings() const;