]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt3/qfont_loader.h
This commit introduces the FontLoader interface class. In the future, I intend to...
[features.git] / src / frontends / qt3 / qfont_loader.h
index eadf2b46cc350e3929fa7b6cdd36fe674da4f049..d18e729ca8d88a3bfbc6d54ed7cd2e9b741196c0 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef QFONTLOADER_H
 #define QFONTLOADER_H
 
+#include "frontends/FontLoader.h"
+
 #include "encoding.h"
 #include "lyxfont.h"
 
@@ -51,19 +53,19 @@ public:
 
 
 /// Hold info about a particular font
-class FontLoader {
+class GuiFontLoader: public lyx::frontend::FontLoader {
 public:
        ///
-       FontLoader();
+       GuiFontLoader();
        
        /// Destructor
-       ~FontLoader();
+       virtual ~GuiFontLoader();
 
        /// Update fonts after zoom, dpi, font names, or norm change
-       void update();
+       virtual void update();
 
        /// Do we have anything matching?
-       bool available(LyXFont const & f);
+       virtual bool available(LyXFont const & f);
 
        /// Get the QFont for this LyXFont
        QFont const & get(LyXFont const & f) {
@@ -94,6 +96,6 @@ private:
        QLFontInfo * fontinfo_[LyXFont::NUM_FAMILIES][2][4][10];
 };
 
-extern FontLoader fontloader;
+extern GuiFontLoader fontloader;
 
 #endif // QFONT_LOADER_H