]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFontLoader.h
Make the InsetInfo dialog a bit less esoteric.
[lyx.git] / src / frontends / qt4 / GuiFontLoader.h
index 1d09b6d616cad0af957c37786be2e9369cbd0df6..40c15f5ea0b60ab6391a5ae2532d76257b34f23d 100644 (file)
 #ifndef GUI_FONTLOADER_H
 #define GUI_FONTLOADER_H
 
-#include "GuiFontMetrics.h"
-
-#include <QFont>
+class QFont;
 
 namespace lyx {
-namespace frontend {
 
-/**
- * Qt font loader for LyX. Matches Fonts against
- * actual QFont instances, and also caches metrics.
- */
-class GuiFontInfo
-{
-public:
-       GuiFontInfo(FontInfo const & f);
+class FontInfo;
 
-       /// The font instance
-       QFont font;
-       /// Metrics on the font
-       GuiFontMetrics metrics;
-};
+namespace frontend {
 
+class GuiFontMetrics;
 
-// Load font
-GuiFontInfo const & getFontInfo(FontInfo const & f);
+/// Metrics on the font
+GuiFontMetrics const & getFontMetrics(FontInfo const & f);
 /// Get the QFont for this FontInfo
 QFont const & getFont(FontInfo const & f);