#include "debug.h"
#include "LaTeXFeatures.h"
-#include "LColor.h"
-#include "lyxlex.h"
-#include "metricsinfo.h"
+#include "Color.h"
+#include "Lexer.h"
+#include "MetricsInfo.h"
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
void InsetSpecialChar::draw(PainterInfo & pi, int x, int y) const
{
- LyXFont font = pi.base.font;
+ Font font = pi.base.font;
switch (kind_) {
case HYPHENATION:
{
- font.setColor(LColor::special);
+ font.setColor(Color::special);
pi.pain.text(x, y, char_type('-'), font);
break;
}
case LIGATURE_BREAK:
{
- font.setColor(LColor::special);
+ font.setColor(Color::special);
pi.pain.text(x, y, char_type('|'), font);
break;
}
case END_OF_SENTENCE:
{
- font.setColor(LColor::special);
+ font.setColor(Color::special);
pi.pain.text(x, y, char_type('.'), font);
break;
}
case LDOTS:
{
- font.setColor(LColor::special);
+ font.setColor(Color::special);
string ell = ". . . ";
docstring dell(ell.begin(), ell.end());
pi.pain.text(x, y, dell, font);
xp[2] = ox + w; yp[2] = y - h/2;
xp[3] = ox; yp[3] = y;
- pi.pain.lines(xp, yp, 4, LColor::special);
+ pi.pain.lines(xp, yp, 4, Color::special);
break;
}
}
// This function will not be necessary when lyx3
-void InsetSpecialChar::read(Buffer const &, LyXLex & lex)
+void InsetSpecialChar::read(Buffer const &, Lexer & lex)
{
lex.next();
string const command = lex.getString();
}
-auto_ptr<InsetBase> InsetSpecialChar::doClone() const
+auto_ptr<Inset> InsetSpecialChar::doClone() const
{
- return auto_ptr<InsetBase>(new InsetSpecialChar(kind_));
+ return auto_ptr<Inset>(new InsetSpecialChar(kind_));
}