mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
remove a few unneeded 'include'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4842 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3f1a78fbeb
commit
45d1084a64
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "button_inset.h"
|
#include "button_inset.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "frontends/Painter.h"
|
#include "frontends/Painter.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -37,7 +38,6 @@ void ButtonInset::draw(MathPainterInfo & pi, int x, int y) const
|
|||||||
xcell(1).draw(pi, x + xcell(0).width() + 2, y);
|
xcell(1).draw(pi, x + xcell(0).width() + 2, y);
|
||||||
mathed_draw_framebox(pi, x, y, this);
|
mathed_draw_framebox(pi, x, y, this);
|
||||||
} else {
|
} else {
|
||||||
pi.pain.buttonText(x + 2, y, screenLabel(),
|
pi.pain.buttonText(x + 2, y, screenLabel(), pi.base.font);
|
||||||
pi.base.font);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "math_parser.h"
|
#include "math_parser.h"
|
||||||
#include "math_charinset.h"
|
#include "math_charinset.h"
|
||||||
#include "math_arrayinset.h"
|
#include "math_arrayinset.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "math_deliminset.h"
|
#include "math_deliminset.h"
|
||||||
#include "math_hullinset.h"
|
#include "math_hullinset.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "frontends/LyXView.h"
|
#include "frontends/LyXView.h"
|
||||||
#include "frontends/font_metrics.h"
|
#include "frontends/font_metrics.h"
|
||||||
@ -153,7 +154,6 @@ void InsetFormulaBase::metrics(BufferView * bv) const
|
|||||||
if (bv)
|
if (bv)
|
||||||
view_ = bv->owner()->view();
|
view_ = bv->owner()->view();
|
||||||
MathMetricsInfo mi;
|
MathMetricsInfo mi;
|
||||||
mi.view = view_;
|
|
||||||
//mi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT;
|
//mi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT;
|
||||||
mi.base.style = LM_ST_TEXT;
|
mi.base.style = LM_ST_TEXT;
|
||||||
mi.base.font = font_;
|
mi.base.font = font_;
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "math_macro.h"
|
#include "math_macro.h"
|
||||||
#include "math_macrotable.h"
|
#include "math_macrotable.h"
|
||||||
#include "math_macrotemplate.h"
|
#include "math_macrotemplate.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
#include "BufferView.h"
|
#include "BufferView.h"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include "math_amsarrayinset.h"
|
#include "math_amsarrayinset.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
#include "math_streamstr.h"
|
#include "math_streamstr.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "math_arrayinset.h"
|
#include "math_arrayinset.h"
|
||||||
#include "math_parser.h"
|
#include "math_parser.h"
|
||||||
#include "math_mathmlstream.h"
|
#include "math_mathmlstream.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "math_streamstr.h"
|
#include "math_streamstr.h"
|
||||||
#include "Lsstream.h"
|
#include "Lsstream.h"
|
||||||
|
|
||||||
|
@ -21,10 +21,8 @@
|
|||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include <iosfwd>
|
|
||||||
|
|
||||||
#include "math_nestinset.h"
|
#include "math_nestinset.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "math_macroarg.h"
|
#include "math_macroarg.h"
|
||||||
#include "LString.h"
|
#include "LString.h"
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
// settled.
|
// settled.
|
||||||
|
|
||||||
|
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
|
|
||||||
#include <iosfwd>
|
#include <iosfwd>
|
||||||
|
|
||||||
class MathArray;
|
class MathArray;
|
||||||
|
@ -14,14 +14,12 @@ MathMetricsBase::MathMetricsBase()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MathMetricsInfo::MathMetricsInfo()
|
MathMetricsInfo::MathMetricsInfo()
|
||||||
: fullredraw(false)
|
: fullredraw(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MathPainterInfo::MathPainterInfo(Painter & p)
|
MathPainterInfo::MathPainterInfo(Painter & p)
|
||||||
: pain(p)
|
: pain(p)
|
||||||
{}
|
{}
|
||||||
|
@ -4,11 +4,7 @@
|
|||||||
#include "lyxfont.h"
|
#include "lyxfont.h"
|
||||||
#include "LString.h"
|
#include "LString.h"
|
||||||
|
|
||||||
#include <boost/weak_ptr.hpp>
|
|
||||||
|
|
||||||
class BufferView;
|
|
||||||
class Painter;
|
class Painter;
|
||||||
class MathNestInset;
|
|
||||||
|
|
||||||
|
|
||||||
/// Standard Math Sizes (Math mode styles)
|
/// Standard Math Sizes (Math mode styles)
|
||||||
@ -48,15 +44,13 @@ struct MathMetricsInfo {
|
|||||||
///
|
///
|
||||||
MathMetricsBase base;
|
MathMetricsBase base;
|
||||||
///
|
///
|
||||||
boost::weak_ptr<BufferView> view;
|
|
||||||
///
|
|
||||||
bool fullredraw;
|
bool fullredraw;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct MathPainterInfo {
|
struct MathPainterInfo {
|
||||||
///
|
///
|
||||||
MathPainterInfo(Painter & p);
|
MathPainterInfo(Painter & pain);
|
||||||
///
|
///
|
||||||
void draw(int x, int y, char c);
|
void draw(int x, int y, char c);
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ int MathScriptInset::dy1() const
|
|||||||
asc += na + 2;
|
asc += na + 2;
|
||||||
else
|
else
|
||||||
asc = max(asc, na);
|
asc = max(asc, na);
|
||||||
asc = max(asc, mathed_char_ascent(font_, 'I'));
|
asc = max(asc, 5);
|
||||||
return asc;
|
return asc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,19 +166,19 @@ int MathScriptInset::dxx() const
|
|||||||
|
|
||||||
int MathScriptInset::nwid() const
|
int MathScriptInset::nwid() const
|
||||||
{
|
{
|
||||||
return nuc().size() ? nuc().width() : mathed_char_width(font_, '.');
|
return nuc().size() ? nuc().width() : 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int MathScriptInset::nasc() const
|
int MathScriptInset::nasc() const
|
||||||
{
|
{
|
||||||
return nuc().size() ? nuc().ascent() : mathed_char_ascent(font_, 'I');
|
return nuc().size() ? nuc().ascent() : 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int MathScriptInset::ndes() const
|
int MathScriptInset::ndes() const
|
||||||
{
|
{
|
||||||
return nuc().size() ? nuc().descent() : mathed_char_descent(font_, 'I');
|
return nuc().size() ? nuc().descent() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ void MathScriptInset::draw(MathPainterInfo & pi, int x, int y) const
|
|||||||
if (nuc().size())
|
if (nuc().size())
|
||||||
nuc().draw(pi, x + dxx(), y);
|
nuc().draw(pi, x + dxx(), y);
|
||||||
else if (editing())
|
else if (editing())
|
||||||
drawStr(pi, font_, x + dxx(), y, ".");
|
drawStr(pi, pi.base.font, x + dxx(), y, ".");
|
||||||
MathScriptChanger dummy(pi.base);
|
MathScriptChanger dummy(pi.base);
|
||||||
if (hasUp())
|
if (hasUp())
|
||||||
up().draw(pi, x + dx1(), y - dy1());
|
up().draw(pi, x + dx1(), y - dy1());
|
||||||
|
@ -118,8 +118,6 @@ private:
|
|||||||
bool script_[2];
|
bool script_[2];
|
||||||
/// 1 - "limits", -1 - "nolimits", 0 - "default"
|
/// 1 - "limits", -1 - "nolimits", 0 - "default"
|
||||||
int limits_;
|
int limits_;
|
||||||
/// cached font
|
|
||||||
mutable LyXFont font_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#define MATHSIZEINSET_H
|
#define MATHSIZEINSET_H
|
||||||
|
|
||||||
#include "math_nestinset.h"
|
#include "math_nestinset.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface
|
#pragma interface
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "math_cursor.h"
|
#include "math_cursor.h"
|
||||||
#include "math_inset.h"
|
#include "math_inset.h"
|
||||||
#include "math_parser.h"
|
#include "math_parser.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "frontends/Painter.h"
|
#include "frontends/Painter.h"
|
||||||
#include "frontends/font_metrics.h"
|
#include "frontends/font_metrics.h"
|
||||||
#include "frontends/lyx_gui.h"
|
#include "frontends/lyx_gui.h"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
#include "math_textinset.h"
|
#include "math_textinset.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "math_xdata.h"
|
#include "math_xdata.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
#include "math_support.h"
|
#include "math_support.h"
|
||||||
#include "math_inset.h"
|
#include "math_inset.h"
|
||||||
#include "frontends/Painter.h"
|
#include "frontends/Painter.h"
|
||||||
|
@ -6,14 +6,16 @@
|
|||||||
#include <iosfwd>
|
#include <iosfwd>
|
||||||
|
|
||||||
#include "math_data.h"
|
#include "math_data.h"
|
||||||
#include "math_metricsinfo.h"
|
//#include "math_metricsinfo.h"
|
||||||
#include "dimension.h"
|
#include "dimension.h"
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
class MathMetricsInfo;
|
||||||
class MathPainterInfo;
|
class MathPainterInfo;
|
||||||
|
class TextMetricsInfo;
|
||||||
class TextPainter;
|
class TextPainter;
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#define MATH_ARROWINSET_H
|
#define MATH_ARROWINSET_H
|
||||||
|
|
||||||
#include "math_nestinset.h"
|
#include "math_nestinset.h"
|
||||||
|
#include "math_metricsinfo.h"
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface
|
#pragma interface
|
||||||
@ -19,9 +20,9 @@ public:
|
|||||||
///
|
///
|
||||||
MathInset * clone() const;
|
MathInset * clone() const;
|
||||||
///
|
///
|
||||||
void metrics(MathMetricsInfo & st) const;
|
void metrics(MathMetricsInfo & mi) const;
|
||||||
///
|
///
|
||||||
void draw(MathPainterInfo & pain, int x, int y) const;
|
void draw(MathPainterInfo & pi, int x, int y) const;
|
||||||
///
|
///
|
||||||
MathXYArrowInset * asXYArrowInset() { return this; }
|
MathXYArrowInset * asXYArrowInset() { return this; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user