Begin undoing the tocString() mess by renaming that routine.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36889 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-12-15 01:34:04 +00:00
parent de1655f92b
commit 832d6cd7e1
20 changed files with 28 additions and 28 deletions

View File

@ -2928,7 +2928,7 @@ docstring Paragraph::asString(pos_type beg, pos_type end, int options) const
|| (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 << " ";
}

View File

@ -323,8 +323,8 @@ public:
// 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

View File

@ -238,10 +238,10 @@ docstring InsetBranch::xhtml(XHTMLStream & xs, OutputParams const & rp) const
}
void InsetBranch::tocString(odocstream & os) const
void InsetBranch::toString(odocstream & os) const
{
if (isBranchSelected())
InsetCollapsable::tocString(os);
InsetCollapsable::toString(os);
}

View File

@ -73,7 +73,7 @@ private:
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
void tocString(odocstream &) const;
void toString(odocstream &) const;
///
void validate(LaTeXFeatures &) const;
///

View File

@ -540,7 +540,7 @@ docstring InsetCitation::xhtml(XHTMLStream & xs, OutputParams const &) const
}
void InsetCitation::tocString(odocstream & os) const
void InsetCitation::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}

View File

@ -51,7 +51,7 @@ public:
///
docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
void tocString(odocstream &) const;
void toString(odocstream &) const;
///
void validate(LaTeXFeatures &) const;
///

View File

@ -236,7 +236,7 @@ docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const
}
void InsetHyperlink::tocString(odocstream & os) const
void InsetHyperlink::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}

View File

@ -36,7 +36,7 @@ public:
///
bool isInToc() const { return true; }
///
void tocString(odocstream &) const;
void toString(odocstream &) const;
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///

View File

@ -327,7 +327,7 @@ docstring InsetQuotes::xhtml(XHTMLStream & xs, OutputParams const & op) const
}
void InsetQuotes::tocString(odocstream & os) const
void InsetQuotes::toString(odocstream & os) const
{
os << displayString();
}

View File

@ -86,8 +86,8 @@ public:
///
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;

View File

@ -231,7 +231,7 @@ docstring InsetRef::xhtml(XHTMLStream & xs, OutputParams const &) const
}
void InsetRef::tocString(odocstream & os) const
void InsetRef::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}

View File

@ -58,8 +58,8 @@ public:
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;
///

View File

@ -734,7 +734,7 @@ void InsetSpace::validate(LaTeXFeatures & features) const
}
void InsetSpace::tocString(odocstream & os) const
void InsetSpace::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}

View File

@ -129,8 +129,8 @@ public:
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; }
///

View File

@ -318,7 +318,7 @@ docstring InsetSpecialChar::xhtml(XHTMLStream & xs, OutputParams const &) const
}
void InsetSpecialChar::tocString(odocstream & os) const
void InsetSpecialChar::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}

View File

@ -66,8 +66,8 @@ public:
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

View File

@ -666,7 +666,7 @@ void InsetText::updateBuffer(ParIterator const & it, UpdateType utype)
}
void InsetText::tocString(odocstream & os) const
void InsetText::toString(odocstream & os) const
{
os << text().asString(0, 1, AS_STR_LABEL | AS_STR_INSETS);
}

View File

@ -163,8 +163,8 @@ public:
/// 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 &);
///

View File

@ -1983,7 +1983,7 @@ docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const & op) const
}
void InsetMathHull::tocString(odocstream & os) const
void InsetMathHull::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}

View File

@ -130,8 +130,8 @@ public:
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);