mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
a bit visual feedback for substack...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6966 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
30d32ead10
commit
87ab4dc972
@ -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>
|
2003-05-12 André Pönitz <poenitz@gmx.net>
|
||||||
|
|
||||||
* formula.C:
|
* formula.C:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
|
||||||
#include "math_sizeinset.h"
|
#include "math_sizeinset.h"
|
||||||
#include "math_parser.h"
|
#include "math_parser.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
@ -8,6 +7,7 @@
|
|||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
#include "support/LOstream.h"
|
#include "support/LOstream.h"
|
||||||
|
|
||||||
|
|
||||||
using std::atoi;
|
using std::atoi;
|
||||||
|
|
||||||
MathSizeInset::MathSizeInset(latexkeys const * l)
|
MathSizeInset::MathSizeInset(latexkeys const * l)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
|
||||||
#include "math_substackinset.h"
|
#include "math_substackinset.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
#include "math_streamstr.h"
|
#include "math_streamstr.h"
|
||||||
|
#include "support/LOstream.h"
|
||||||
|
|
||||||
|
|
||||||
MathSubstackInset::MathSubstackInset()
|
MathSubstackInset::MathSubstackInset()
|
||||||
@ -25,6 +25,20 @@ void MathSubstackInset::metrics(MetricsInfo & mi) const
|
|||||||
} else {
|
} else {
|
||||||
MathGridInset::metrics(mi);
|
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 ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include "math_gridinset.h"
|
#include "math_gridinset.h"
|
||||||
|
|
||||||
|
|
||||||
|
/// support for AMS's \\substack
|
||||||
|
|
||||||
class MathSubstackInset : public MathGridInset {
|
class MathSubstackInset : public MathGridInset {
|
||||||
public:
|
public:
|
||||||
@ -15,11 +16,15 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi) const;
|
void metrics(MetricsInfo & mi) const;
|
||||||
///
|
///
|
||||||
|
void draw(PainterInfo & pi, int x, int y) const;
|
||||||
|
///
|
||||||
MathSubstackInset const * asSubstackInset() const { return this; }
|
MathSubstackInset const * asSubstackInset() const { return this; }
|
||||||
|
|
||||||
///
|
///
|
||||||
void normalize();
|
void normalize();
|
||||||
///
|
///
|
||||||
|
void infoize(std::ostream & os) const;
|
||||||
|
///
|
||||||
void write(WriteStream & os) const;
|
void write(WriteStream & os) const;
|
||||||
///
|
///
|
||||||
void normalize(NormalStream &) const;
|
void normalize(NormalStream &) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user