From 2de99bed22564af4d535bdfb61b07a0745e71d76 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 19 Jan 2007 16:23:47 +0000 Subject: [PATCH] * 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 --- src/insets/insetbranch.C | 7 +++++++ src/insets/insetbranch.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/insets/insetbranch.C b/src/insets/insetbranch.C index 21d77944c0..d39d69c718 100644 --- a/src/insets/insetbranch.C +++ b/src/insets/insetbranch.C @@ -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); diff --git a/src/insets/insetbranch.h b/src/insets/insetbranch.h index 2a8721860b..f39fe12707 100644 --- a/src/insets/insetbranch.h +++ b/src/insets/insetbranch.h @@ -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_; }