]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetBranch.h
index 72d30a263ff199fd3c614a7d1da606e7ab39d278..c62fbdd52bbaa3b717ae869a83f9dd5521bae214 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,6 +53,8 @@ public:
        ///
        void setButtonLabel();
        ///
+       virtual ColorCode backgroundColor() const;
+       ///
        bool showInsetDialog(BufferView *) const;
        ///
        int latex(Buffer const &, odocstream &,
@@ -78,7 +80,12 @@ 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;
+       ///
+       docstring toolTip(BufferView const & bv, int x, int y) const;
 protected:
        ///
        InsetBranch(InsetBranch const &);
@@ -89,10 +96,8 @@ protected:
 private:
        friend class InsetBranchParams;
 
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
-       /// used by the constructors
-       void init();
        ///
        InsetBranchParams params_;
 };