]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.h
This optional argument to the InsetCollapsable constructor
[lyx.git] / src / insets / InsetBranch.h
index ca24e99980a760c71120b5c292ae85583b886ddf..b608fd19cc1a7a509331095e908eeee5dfed3f5f 100644 (file)
@@ -78,24 +78,33 @@ private:
        ///
        void validate(LaTeXFeatures &) const;
        ///
+       void addToToc(DocIterator const &);
+       ///
        InsetBranchParams const & params() const { return params_; }
        ///
        void setParams(InsetBranchParams const & params) { params_ = params; }
+       ///
+       virtual bool usePlainLayout() { return false; }
 
        /** \returns true if params_.branch is listed as 'selected' in
            \c buffer. This handles the case of child documents.
         */
        bool isBranchSelected() const;
+       /*!
+        * Is the content of this inset part of the output document?
+        *
+        * Note that Branch insets are only considered part of the
+        * document when they are selected.
+        */
+       bool producesOutput() const { return isBranchSelected(); }
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
-       void updateLabels(ParIterator const &);
-       ///
        bool isMacroScope() const;
        ///
        docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
-       bool useEmptyLayout() const { return false; }
+       bool usePlainLayout() const { return false; }
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///