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:
André Pönitz 2002-08-02 14:04:16 +00:00
parent 3f1a78fbeb
commit 45d1084a64
18 changed files with 26 additions and 25 deletions

View File

@ -2,6 +2,7 @@
#include "button_inset.h"
#include "math_support.h"
#include "math_metricsinfo.h"
#include "frontends/Painter.h"
#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);
mathed_draw_framebox(pi, x, y, this);
} else {
pi.pain.buttonText(x + 2, y, screenLabel(),
pi.base.font);
pi.pain.buttonText(x + 2, y, screenLabel(), pi.base.font);
}
}

View File

@ -25,6 +25,7 @@
#include "math_parser.h"
#include "math_charinset.h"
#include "math_arrayinset.h"
#include "math_metricsinfo.h"
#include "math_deliminset.h"
#include "math_hullinset.h"
#include "math_support.h"

View File

@ -33,6 +33,7 @@
#include "LaTeXFeatures.h"
#include "debug.h"
#include "math_support.h"
#include "math_metricsinfo.h"
#include "support/lstrings.h"
#include "frontends/LyXView.h"
#include "frontends/font_metrics.h"
@ -153,7 +154,6 @@ void InsetFormulaBase::metrics(BufferView * bv) const
if (bv)
view_ = bv->owner()->view();
MathMetricsInfo mi;
mi.view = view_;
//mi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT;
mi.base.style = LM_ST_TEXT;
mi.base.font = font_;

View File

@ -24,6 +24,7 @@
#include "math_macro.h"
#include "math_macrotable.h"
#include "math_macrotemplate.h"
#include "math_metricsinfo.h"
#include "math_support.h"
#include "math_mathmlstream.h"
#include "BufferView.h"

View File

@ -6,6 +6,7 @@
#include "math_amsarrayinset.h"
#include "math_mathmlstream.h"
#include "math_metricsinfo.h"
#include "math_support.h"
#include "math_streamstr.h"
#include "math_support.h"

View File

@ -7,6 +7,7 @@
#include "math_arrayinset.h"
#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_metricsinfo.h"
#include "math_streamstr.h"
#include "Lsstream.h"

View File

@ -21,10 +21,8 @@
#pragma interface
#endif
#include <vector>
#include <iosfwd>
#include "math_nestinset.h"
#include "math_metricsinfo.h"
#include "math_macroarg.h"
#include "LString.h"

View File

@ -6,6 +6,8 @@
// settled.
#include "math_metricsinfo.h"
#include <iosfwd>
class MathArray;

View File

@ -14,14 +14,12 @@ MathMetricsBase::MathMetricsBase()
MathMetricsInfo::MathMetricsInfo()
: fullredraw(false)
{}
MathPainterInfo::MathPainterInfo(Painter & p)
: pain(p)
{}

View File

@ -4,11 +4,7 @@
#include "lyxfont.h"
#include "LString.h"
#include <boost/weak_ptr.hpp>
class BufferView;
class Painter;
class MathNestInset;
/// Standard Math Sizes (Math mode styles)
@ -48,15 +44,13 @@ struct MathMetricsInfo {
///
MathMetricsBase base;
///
boost::weak_ptr<BufferView> view;
///
bool fullredraw;
};
struct MathPainterInfo {
///
MathPainterInfo(Painter & p);
MathPainterInfo(Painter & pain);
///
void draw(int x, int y, char c);

View File

@ -139,7 +139,7 @@ int MathScriptInset::dy1() const
asc += na + 2;
else
asc = max(asc, na);
asc = max(asc, mathed_char_ascent(font_, 'I'));
asc = max(asc, 5);
return asc;
}
@ -166,19 +166,19 @@ int MathScriptInset::dxx() const
int MathScriptInset::nwid() const
{
return nuc().size() ? nuc().width() : mathed_char_width(font_, '.');
return nuc().size() ? nuc().width() : 2;
}
int MathScriptInset::nasc() const
{
return nuc().size() ? nuc().ascent() : mathed_char_ascent(font_, 'I');
return nuc().size() ? nuc().ascent() : 5;
}
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())
nuc().draw(pi, x + dxx(), y);
else if (editing())
drawStr(pi, font_, x + dxx(), y, ".");
drawStr(pi, pi.base.font, x + dxx(), y, ".");
MathScriptChanger dummy(pi.base);
if (hasUp())
up().draw(pi, x + dx1(), y - dy1());

View File

@ -118,8 +118,6 @@ private:
bool script_[2];
/// 1 - "limits", -1 - "nolimits", 0 - "default"
int limits_;
/// cached font
mutable LyXFont font_;
};
#endif

View File

@ -3,6 +3,7 @@
#define MATHSIZEINSET_H
#include "math_nestinset.h"
#include "math_metricsinfo.h"
#ifdef __GNUG__
#pragma interface

View File

@ -7,6 +7,7 @@
#include "math_cursor.h"
#include "math_inset.h"
#include "math_parser.h"
#include "math_metricsinfo.h"
#include "frontends/Painter.h"
#include "frontends/font_metrics.h"
#include "frontends/lyx_gui.h"

View File

@ -1,5 +1,6 @@
#include "math_textinset.h"
#include "math_metricsinfo.h"
#include "debug.h"

View File

@ -5,6 +5,7 @@
#endif
#include "math_xdata.h"
#include "math_metricsinfo.h"
#include "math_support.h"
#include "math_inset.h"
#include "frontends/Painter.h"

View File

@ -6,14 +6,16 @@
#include <iosfwd>
#include "math_data.h"
#include "math_metricsinfo.h"
//#include "math_metricsinfo.h"
#include "dimension.h"
#ifdef __GNUG__
#pragma interface
#endif
class MathMetricsInfo;
class MathPainterInfo;
class TextMetricsInfo;
class TextPainter;

View File

@ -3,6 +3,7 @@
#define MATH_ARROWINSET_H
#include "math_nestinset.h"
#include "math_metricsinfo.h"
#ifdef __GNUG__
#pragma interface
@ -19,9 +20,9 @@ public:
///
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; }