]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.h
Math.lyx, Tutorial.lyx: fix some typos spotted by a user
[lyx.git] / src / insets / InsetBranch.h
index c51c728e4f1610a4ce2a070a2cd11087f6240e78..6588bc61b3e81a86a9e5cf4bda002783875b4a35 100644 (file)
@@ -79,7 +79,7 @@ private:
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        ///
        void addToToc(DocIterator const &) const;
        ///
@@ -88,9 +88,9 @@ private:
        void setParams(InsetBranchParams const & params) { params_ = params; }
 
        /** \returns true if params_.branch is listed as 'selected' in
-           \c buffer. This handles the case of child documents.
+               \c buffer. \p child only checks within child documents.
         */
-       bool isBranchSelected() const;
+       bool isBranchSelected(bool const child = false) const;
        /*!
         * Is the content of this inset part of the output document?
         *
@@ -109,7 +109,7 @@ private:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       docstring layoutName() const { return from_ascii("Branch"); }
+       docstring layoutName() const { return from_ascii("Branch:") + branch(); }
        ///
        Inset * clone() const { return new InsetBranch(*this); }