/// Eg, insetDisplayName(BRANCH_CODE) == _("Branch")
docstring insetDisplayName(InsetCode);
///
-static int const TOC_ENTRY_LENGTH = 80;
+static int const TOC_ENTRY_LENGTH = 120;
/// Common base class to all insets
/// Appends a potentially abbreviated version of the inset to
/// \param str. Intended for use by the TOC.
virtual void forOutliner(docstring & str,
- size_t maxlen = TOC_ENTRY_LENGTH) const;
+ 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
// true for InsetTabular & InsetText
virtual bool isActive() const { return nargs() > 0; }
/// can we click at the specified position ?
- virtual bool clickable(int, int) const { return false; }
+ virtual bool clickable(BufferView const &, int, int) const { return false; }
/// Move one cell backwards
virtual bool allowsCaptionVariation(std::string const &) const { return false; }
+ // true for insets that have a table structure (InsetMathGrid, InsetTabular)
+ virtual bool isTable() const { return false; }
/// does this contain text that can be change track marked in DVI?
virtual bool canTrackChanges() const { return false; }
+ /// Will this inset paint its own change tracking status (in the parent
+ /// paragraph) or will it let RowPainter handle it?
+ virtual bool canPaintChange(BufferView const &) const { return false; }
/// return true if the inset should be removed automatically
virtual bool autoDelete() const;
virtual bool producesOutput() const { return true; }
/// \return Tool tip for this inset.
- /// This default implementation returns an empty string.
+ /// This default implementation returns an empty string. This can be
+ /// either plain text or Qt html, and formatToolTip will be called
+ /// on it before display in both cases.
virtual docstring toolTip(BufferView const & bv, int x, int y) const;
/// \return Context menu identifier. This function determines