]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.h
Small improvement for bug #7509 as suggested by JMarc
[lyx.git] / src / mathed / InsetMathHull.h
index 53062d329840f37a6a37f51cf1f38bdca8d83bd3..8c0ed98265d36663420dfefc5edb8cf69fd245ed 100644 (file)
@@ -42,7 +42,7 @@ public:
        ///
        void updateBuffer(ParIterator const &, UpdateType);
        ///
-       void addToToc(DocIterator const &);
+       void addToToc(DocIterator const &) const;
        ///
        InsetMathHull & operator=(InsetMathHull const &);
        ///
@@ -132,6 +132,8 @@ public:
        void mathmlize(MathStream &) const;
        ///
        void htmlize(HtmlStream &) const;
+       ///
+       void mathAsLatex(WriteStream &) const;
        /// 
        void toString(odocstream &) const;
        ///
@@ -220,6 +222,8 @@ private:
        bool rowChangeOK() const;
        /// can this change its number of cols?
        bool colChangeOK() const;
+       /// are any of the equations numbered?
+       bool haveNumbers() const;
 
        /// "none", "simple", "display", "eqnarray",...
        HullType type_;
@@ -235,6 +239,10 @@ private:
        mutable bool use_preview_;
        ///
        DocIterator docit_;
+       ///
+       typedef std::map<docstring, int> CounterMap;
+       /// used to store current values of important counters
+       CounterMap counter_map;
 //
 // Incorporate me
 //