* insetbranch.C (textString): implement, so that branches appear

in the ToC.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16767 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-01-19 16:23:47 +00:00
parent b7518c3c95
commit 2de99bed22
2 changed files with 9 additions and 0 deletions

View File

@ -245,6 +245,13 @@ int InsetBranch::plaintext(Buffer const & buf, odocstream & os,
}
void InsetBranch::textString(Buffer const & buf, odocstream & os) const
{
if (isBranchSelected(buf))
os << paragraphs().begin()->asString(buf, true);
}
void InsetBranch::validate(LaTeXFeatures & features) const
{
InsetText::validate(features);

View File

@ -63,6 +63,8 @@ public:
int plaintext(Buffer const &, odocstream &,
OutputParams const & runparams) const;
///
void textString(Buffer const & buf, odocstream &) const;
///
void validate(LaTeXFeatures &) const;
///
InsetBranchParams const & params() const { return params_; }