]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.h
* src/mathed/InsetMathHull.cpp:
[lyx.git] / src / mathed / InsetMathHull.h
index a2c4e2e728f78331da66cc03ad485f9b4423a677..f441687b5f2e99080bde86928090d5237614ada5 100644 (file)
@@ -19,6 +19,7 @@
 
 namespace lyx {
 
+class InsetLabel;
 class ParConstIterator;
 class RenderPreview;
 
@@ -33,7 +34,11 @@ public:
        ///
        ~InsetMathHull();
        ///
-       void addToToc(ParConstIterator const &) const;
+       void setBuffer(Buffer &);
+       ///
+       void updateLabels(ParIterator const &);
+       ///
+       void addToToc(DocIterator const &);
        ///
        InsetMathHull & operator=(InsetMathHull const &);
        ///
@@ -58,8 +63,6 @@ public:
        bool numberedType() const;
        ///
        bool ams() const;
-       /// Appends \c list with all labels found within this inset.
-       void getLabelList(std::vector<docstring> & list) const;
        ///
        void validate(LaTeXFeatures & features) const;
        /// identifies HullInset
@@ -125,6 +128,9 @@ public:
        /// Force inset into LTR environment if surroundings are RTL?
        virtual bool forceLTR() const { return true; }
 
+       ///
+       virtual docstring contextMenu(BufferView const &, int, int) const;
+
 protected:
        InsetMathHull(InsetMathHull const &);
 
@@ -180,9 +186,9 @@ private:
        /// "none", "simple", "display", "eqnarray",...
        HullType type_;
        ///
-       std::vector<int> nonum_;
+       std::vector<bool> nonum_;
        ///
-       std::vector<docstring> label_;
+       std::vector<InsetLabel *> label_;
        ///
        boost::scoped_ptr<RenderPreview> preview_;
        ///