]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBranch.h
* Lazy MathData to avoid unneeded interpretation of macro definitions
[features.git] / src / insets / InsetBranch.h
index 4ae2f191242df11578a7b0078336405afacb765c..30305d8235740d18e8b2cb28bf64035b98209321 100644 (file)
@@ -45,7 +45,7 @@ public:
        ///
        virtual docstring const editMessage() const;
        ///
-       Inset::Code lyxCode() const { return Inset::BRANCH_CODE; }
+       InsetCode lyxCode() const { return BRANCH_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
@@ -53,7 +53,7 @@ public:
        ///
        void setButtonLabel();
        ///
-       virtual Color_color backgroundColor() const;
+       virtual ColorCode backgroundColor() const;
        ///
        bool showInsetDialog(BufferView *) const;
        ///
@@ -80,8 +80,10 @@ public:
        bool isBranchSelected(Buffer const & buffer) const;
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
-       // 
+       ///
        virtual void updateLabels(Buffer const &, ParIterator const &);
+       ///
+       bool isMacroScope(Buffer const & buf) const;
 protected:
        ///
        InsetBranch(InsetBranch const &);
@@ -94,8 +96,6 @@ private:
 
        virtual Inset * clone() const;
 
-       /// used by the constructors
-       void init();
        ///
        InsetBranchParams params_;
 };