]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_data.h
forward search in math insets. ugly. seems to work. don't ask why.
[lyx.git] / src / mathed / math_data.h
index b537e51d700dfb531211e47b494a3e08db036886..373396bbdb8bbb74d398bf3a6e9409c9450fb87f 100644 (file)
@@ -16,6 +16,7 @@
 #ifndef MATH_DATA_H
 #define MATH_DATA_H
 
+#include <iosfwd>
 #include <vector>
 
 #include "math_atom.h"
@@ -107,8 +108,12 @@ public:
        void dump2() const;
        ///
        void substitute(MathMacro const &);
-       ///
+       /// looks for exact match
        bool match(MathArray const &) const;
+       /// looks for inclusion match starting at pos
+       bool matchpart(MathArray const &, pos_type pos) const;
+       /// looks for containment
+       const_iterator find(MathArray const &) const;
        ///
        void replace(ReplaceData &);
 
@@ -132,4 +137,8 @@ private:
        buffer_type bf_;
 };
 
+///
+std::ostream & operator<<(std::ostream & os, MathArray const & ar);
+
+
 #endif