|| (c == '\n' && (options & AS_STR_NEWLINES)))
os.put(c);
else if (c == META_INSET && (options & AS_STR_INSETS)) {
- getInset(i)->tocString(os);
+ getInset(i)->toString(os);
if (getInset(i)->asInsetMath())
os << " ";
}
// FIXME This method is used for things other than generating strings
// for the TOC. E.g., it is called by Paragraph::asString() to get the
// contents of the inset. These two functions should be disentangled.
- /// the string that is passed to the TOC
- virtual void tocString(odocstream &) const {}
+ ///
+ virtual void toString(odocstream &) const {}
/// can the contents of the inset be edited on screen ?
// true for InsetCollapsables (not ButtonOnly) (not InsetInfo), InsetText
}
-void InsetBranch::tocString(odocstream & os) const
+void InsetBranch::toString(odocstream & os) const
{
if (isBranchSelected())
- InsetCollapsable::tocString(os);
+ InsetCollapsable::toString(os);
}
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
- void tocString(odocstream &) const;
+ void toString(odocstream &) const;
///
void validate(LaTeXFeatures &) const;
///
}
-void InsetCitation::tocString(odocstream & os) const
+void InsetCitation::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
- void tocString(odocstream &) const;
+ void toString(odocstream &) const;
///
void validate(LaTeXFeatures &) const;
///
}
-void InsetHyperlink::tocString(odocstream & os) const
+void InsetHyperlink::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
///
bool isInToc() const { return true; }
///
- void tocString(odocstream &) const;
+ void toString(odocstream &) const;
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///
}
-void InsetQuotes::tocString(odocstream & os) const
+void InsetQuotes::toString(odocstream & os) const
{
os << displayString();
}
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
- /// the string that is passed to the TOC
- void tocString(odocstream &) const;
+ ///
+ void toString(odocstream &) const;
///
void validate(LaTeXFeatures &) const;
}
-void InsetRef::tocString(odocstream & os) const
+void InsetRef::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
int docbook(odocstream &, OutputParams const &) const;
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
- /// the string that is passed to the TOC
- void tocString(odocstream &) const;
+ ///
+ void toString(odocstream &) const;
///
void validate(LaTeXFeatures & features) const;
///
}
-void InsetSpace::tocString(odocstream & os) const
+void InsetSpace::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
void validate(LaTeXFeatures & features) const;
- /// the string that is passed to the TOC
- void tocString(odocstream &) const;
+ ///
+ void toString(odocstream &) const;
///
bool hasSettings() const { return true; }
///
}
-void InsetSpecialChar::tocString(odocstream & os) const
+void InsetSpecialChar::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
int docbook(odocstream &, OutputParams const &) const;
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
- /// the string that is passed to the TOC
- void tocString(odocstream &) const;
+ ///
+ void toString(odocstream &) const;
///
InsetCode lyxCode() const { return SPECIALCHAR_CODE; }
/// We don't need \begin_inset and \end_inset
}
-void InsetText::tocString(odocstream & os) const
+void InsetText::toString(odocstream & os) const
{
os << text().asString(0, 1, AS_STR_LABEL | AS_STR_INSETS);
}
/// Update the counters of this inset and of its contents
virtual void updateBuffer(ParIterator const &, UpdateType);
- /// the string that is passed to the TOC
- void tocString(odocstream &) const;
+ ///
+ void toString(odocstream &) const;
///
void addToToc(DocIterator const &);
///
}
-void InsetMathHull::tocString(odocstream & os) const
+void InsetMathHull::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
int docbook(odocstream &, OutputParams const &) const;
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
- /// the string that is passed to the TOC
- void tocString(odocstream &) const;
+ ///
+ void toString(odocstream &) const;
/// get notification when the cursor leaves this inset
bool notifyCursorLeaves(Cursor const & old, Cursor & cur);