]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.h
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetBranch.h
index 4d54cfd4df437fc922d1d833696bdb4483f11b68..0c42e8fbe6934c99b1a7708fa4149301bcbb0cba 100644 (file)
@@ -51,6 +51,10 @@ public:
        static std::string params2string(InsetBranchParams const &);
        ///
        static void string2params(std::string const &, InsetBranchParams &);
+       ///
+       docstring branch() const { return params_.branch; }
+       ///
+       void rename(docstring const & newname) { params_.branch = newname; }
 
 private:
        ///
@@ -62,7 +66,7 @@ private:
        ///
        void read(Lexer & lex);
        ///
-       void setButtonLabel();
+       docstring const buttonLabel(BufferView const & bv) const;
        ///
        ColorCode backgroundColor() const;
        ///
@@ -74,13 +78,21 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
-       void textString(odocstream &) const;
+       docstring xhtml(odocstream &, OutputParams const &) const;
+       ///
+       void tocString(odocstream &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
+       docstring contextMenu(BufferView const &, int, int) 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.
@@ -100,7 +112,7 @@ private:
        ///
        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);
        ///