mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Inset::textString --> Inset::tocString
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27378 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d75f5d973b
commit
b83564d82c
@ -2431,7 +2431,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)->textString(os);
|
||||
getInset(i)->tocString(os);
|
||||
}
|
||||
|
||||
return os.str();
|
||||
|
@ -292,7 +292,7 @@ public:
|
||||
/// docbook output
|
||||
virtual int docbook(odocstream & os, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
virtual void textString(odocstream &) const {}
|
||||
virtual void tocString(odocstream &) const {}
|
||||
|
||||
/** This enum indicates by which means the inset can be modified:
|
||||
- NOT_EDITABLE: the inset's content cannot be modified at all
|
||||
|
@ -232,7 +232,7 @@ int InsetBranch::docbook(odocstream & os,
|
||||
}
|
||||
|
||||
|
||||
void InsetBranch::textString(odocstream & os) const
|
||||
void InsetBranch::tocString(odocstream & os) const
|
||||
{
|
||||
if (isBranchSelected())
|
||||
os << text().asString(0, 1, AS_STR_LABEL | AS_STR_INSETS);
|
||||
|
@ -74,7 +74,7 @@ private:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
///
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
///
|
||||
void validate(LaTeXFeatures &) const;
|
||||
///
|
||||
|
@ -471,7 +471,7 @@ int InsetCitation::docbook(odocstream & os, OutputParams const &) const
|
||||
}
|
||||
|
||||
|
||||
void InsetCitation::textString(odocstream & os) const
|
||||
void InsetCitation::tocString(odocstream & os) const
|
||||
{
|
||||
plaintext(os, OutputParams(0));
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
///
|
||||
void validate(LaTeXFeatures &) const;
|
||||
///
|
||||
|
@ -108,7 +108,7 @@ int InsetFlex::docbook(odocstream & os, OutputParams const & runparams) const
|
||||
}
|
||||
|
||||
|
||||
void InsetFlex::textString(odocstream & os) const
|
||||
void InsetFlex::tocString(odocstream & os) const
|
||||
{
|
||||
os << text().asString(0, 1, AS_STR_LABEL | AS_STR_INSETS);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
|
||||
/// should paragraph indendation be ommitted in any case?
|
||||
bool neverIndent() const { return true; }
|
||||
|
@ -165,7 +165,7 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
|
||||
}
|
||||
|
||||
|
||||
void InsetHyperlink::textString(odocstream & os) const
|
||||
void InsetHyperlink::tocString(odocstream & os) const
|
||||
{
|
||||
plaintext(os, OutputParams(0));
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
///
|
||||
static ParamInfo const & findInfo(std::string const &);
|
||||
///
|
||||
|
@ -312,7 +312,7 @@ int InsetQuotes::docbook(odocstream & os, OutputParams const &) const
|
||||
}
|
||||
|
||||
|
||||
void InsetQuotes::textString(odocstream & os) const
|
||||
void InsetQuotes::tocString(odocstream & os) const
|
||||
{
|
||||
os << displayString();
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public:
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
|
||||
///
|
||||
void validate(LaTeXFeatures &) const;
|
||||
|
@ -115,7 +115,7 @@ int InsetRef::docbook(odocstream & os, OutputParams const & runparams) const
|
||||
}
|
||||
|
||||
|
||||
void InsetRef::textString(odocstream & os) const
|
||||
void InsetRef::tocString(odocstream & os) const
|
||||
{
|
||||
plaintext(os, OutputParams(0));
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
///
|
||||
void validate(LaTeXFeatures & features) const;
|
||||
///
|
||||
|
@ -617,7 +617,7 @@ int InsetSpace::docbook(odocstream & os, OutputParams const &) const
|
||||
}
|
||||
|
||||
|
||||
void InsetSpace::textString(odocstream & os) const
|
||||
void InsetSpace::tocString(odocstream & os) const
|
||||
{
|
||||
plaintext(os, OutputParams(0));
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ private:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
///
|
||||
void edit(Cursor & cur, bool front,
|
||||
EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
|
||||
|
@ -287,7 +287,7 @@ int InsetSpecialChar::docbook(odocstream & os, OutputParams const &) const
|
||||
}
|
||||
|
||||
|
||||
void InsetSpecialChar::textString(odocstream & os) const
|
||||
void InsetSpecialChar::tocString(odocstream & os) const
|
||||
{
|
||||
plaintext(os, OutputParams(0));
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void textString(odocstream &) const;
|
||||
void tocString(odocstream &) const;
|
||||
///
|
||||
InsetCode lyxCode() const { return SPECIALCHAR_CODE; }
|
||||
/// We don't need \begin_inset and \end_inset
|
||||
|
Loading…
Reference in New Issue
Block a user