]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbranch.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetbranch.h
index 5c3c1ea5f3f2f93b9366576dbf068df9905b60d0..44c2786627e10030892709bf67169ed134492a77 100644 (file)
 
 #include "insetcollapsable.h"
 
-class BranchList;
+class Buffer;
 
 
-struct InsetBranchParams {
+class InsetBranchParams {
+public:
        explicit InsetBranchParams(std::string const & b = std::string())
                : branch(b) {}
        ///
@@ -71,9 +72,11 @@ public:
        void setParams(InsetBranchParams const & params) { params_ = params; }
 
        /** \returns true if params_.branch is listed as 'selected' in
-           \c branchlist.
+           \c buffer. This handles the case of child documents.
         */
-       bool isBranchSelected(BranchList const & branchlist) const;
+       bool isBranchSelected(Buffer const & buffer) const;
+       ///
+       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
 
 protected:
        InsetBranch(InsetBranch const &);