-docstring InsetMarginal::editMessage() const
-{
- return _("Opened Marginal Note Inset");
-}
-
-
-docstring InsetMarginal::toolTip(BufferView const & bv, int x, int y) const
-{
- docstring default_tip = InsetCollapsable::toolTip(bv, x, y);
- OutputParams rp(&buffer().params().encoding());
- odocstringstream ods;
- InsetText::plaintext(ods, rp);
- docstring margin_tip = ods.str();
- // shorten it if necessary
- if (margin_tip.size() > 200)
- margin_tip = margin_tip.substr(0, 200) + "...";
- if (!isOpen() && !margin_tip.empty())
- return margin_tip + '\n' + default_tip;
- return default_tip;
-}
-
-
-int InsetMarginal::latex(odocstream & os, OutputParams const & runparams) const
-{
- os << "%\n\\marginpar{";
- int const i = InsetText::latex(os, runparams);
- os << "%\n}";
- return i + 2;
-}
-
-
-int InsetMarginal::plaintext(odocstream & os,
- OutputParams const & runparams) const
+int InsetMarginal::plaintext(odocstringstream & os,
+ OutputParams const & runparams, size_t max_length) const