]> git.lyx.org Git - features.git/commitdiff
a bit visual feedback for substack...
authorAndré Pönitz <poenitz@gmx.net>
Wed, 14 May 2003 16:29:25 +0000 (16:29 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 14 May 2003 16:29:25 +0000 (16:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6966 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_sizeinset.C
src/mathed/math_substackinset.C
src/mathed/math_substackinset.h

index 27b91ba08672ac04092b319567798b8ee796e9f3..7cfd0f5469c244e895ea2e603e5bb5bcc60a7d0e 100644 (file)
@@ -1,4 +1,8 @@
 
+2003-05-14 André Pönitz <poenitz@gmx.net>
+
+       * math_substack.[Ch]: add markers
+
 2003-05-12 André Pönitz <poenitz@gmx.net>
 
        * formula.C:
index 849874214ace2da22f670894a7f74978e10280bf..cf9a261f093d77b3885c7419aa8010d18a9e5a27 100644 (file)
@@ -1,6 +1,5 @@
 #include <config.h>
 
-
 #include "math_sizeinset.h"
 #include "math_parser.h"
 #include "math_mathmlstream.h"
@@ -8,6 +7,7 @@
 #include "math_support.h"
 #include "support/LOstream.h"
 
+
 using std::atoi;
 
 MathSizeInset::MathSizeInset(latexkeys const * l)
index c996d8bd7b7dbec7439c8a88ed116cf1c8562605..81099479df78eb1bc363a9ea3e57fbf26722f1dd 100644 (file)
@@ -1,9 +1,9 @@
 #include <config.h>
 
-
 #include "math_substackinset.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
+#include "support/LOstream.h"
 
 
 MathSubstackInset::MathSubstackInset()
@@ -25,6 +25,20 @@ void MathSubstackInset::metrics(MetricsInfo & mi) const
        } else {
                MathGridInset::metrics(mi);
        }
+       metricsMarkers2();
+}
+
+
+void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
+{
+       MathGridInset::draw(pi, x + 1, y);
+       drawMarkers2(pi, x, y);
+}
+
+
+void MathSubstackInset::infoize(std::ostream & os) const
+{
+       os << "Substack ";
 }
 
 
index 2de0c7b470a292c8d0eb6f3b53fa92ae95ea1ce4..ad2c3a26e6cd9b9d0b825a83dc482d175f24eb08 100644 (file)
@@ -5,6 +5,7 @@
 #include "math_gridinset.h"
 
 
+/// support for AMS's \\substack
 
 class MathSubstackInset : public MathGridInset {
 public:
@@ -15,11 +16,15 @@ public:
        ///
        void metrics(MetricsInfo & mi) const;
        ///
+       void draw(PainterInfo & pi, int x, int y) const;
+       ///
        MathSubstackInset const * asSubstackInset() const { return this; }
 
        ///
        void normalize();
        ///
+       void infoize(std::ostream & os) const;
+       ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream &) const;