]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.h
Fix bug #7975 following suggestions made by JMarc there.
[lyx.git] / src / insets / InsetBranch.h
index 8f58a50310c1c110ddb7a4f14b774be137d0bf0c..64029c0193dbb2faca889f7438d46478f8fa462b 100644 (file)
@@ -65,7 +65,7 @@ private:
        ///
        ColorCode backgroundColor(PainterInfo const &) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
        ///
@@ -75,11 +75,13 @@ private:
        ///
        void toString(odocstream &) const;
        ///
+       void forToc(docstring &, size_t) const;
+       ///
        void validate(LaTeXFeatures &) const;
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        ///
-       void addToToc(DocIterator const &);
+       void addToToc(DocIterator const &) const;
        ///
        InsetBranchParams const & params() const { return params_; }
        ///
@@ -107,7 +109,7 @@ private:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       docstring name() const { return from_ascii("Branch"); }
+       docstring layoutName() const { return from_ascii("Branch"); }
        ///
        Inset * clone() const { return new InsetBranch(*this); }