#ifndef METRICSINFO_H
#define METRICSINFO_H
-#include "LyXFont.h"
+#include "Font.h"
#include "support/docstring.h"
#include <string>
///
MetricsBase();
///
- MetricsBase(BufferView * bv, LyXFont const & font, int textwidth);
+ MetricsBase(BufferView * bv, Font const & font, int textwidth);
/// the current view
BufferView * bv;
/// current font
- LyXFont font;
+ Font font;
/// current math style (display/text/script/..)
Styles style;
/// name of current font - mathed specific
///
MetricsInfo();
///
- MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth);
+ MetricsInfo(BufferView * bv, Font const & font, int textwidth);
///
MetricsBase base;
// temporarily change some aspect of a font
-class FontChanger : public Changer<LyXFont> {
+class FontChanger : public Changer<Font> {
public:
///
- FontChanger(LyXFont & orig, docstring const & font);
+ FontChanger(Font & orig, docstring const & font);
FontChanger(MetricsBase & mb, char const * const font);
///
~FontChanger();
// temporarily change the shape of a font
-class ShapeChanger : public Changer<LyXFont, LyXFont::FONT_SHAPE> {
+class ShapeChanger : public Changer<Font, Font::FONT_SHAPE> {
public:
///
- ShapeChanger(LyXFont & font, LyXFont::FONT_SHAPE shape);
+ ShapeChanger(Font & font, Font::FONT_SHAPE shape);
///
~ShapeChanger();
};
// temporarily change the used color
-class ColorChanger : public Changer<LyXFont, std::string> {
+class ColorChanger : public Changer<Font, std::string> {
public:
///
- ColorChanger(LyXFont & font, std::string const & color);
+ ColorChanger(Font & font, std::string const & color);
///
~ColorChanger();
};