]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/FontLoader.h
Simplify the public interface of Buffer::doExport
[lyx.git] / src / frontends / FontLoader.h
index dc4b7458d6a53669000e7566b9179a51410fad07..20fe5b886ec2fffeaa8b8cc3b15f00e963e268e7 100644 (file)
@@ -9,12 +9,13 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef LYX_FONTLOADER_H
-#define LYX_FONTLOADER_H
-
-class LyXFont;
+#ifndef FONTLOADER_H
+#define FONTLOADER_H
 
 namespace lyx {
+
+class FontInfo;
+
 namespace frontend {
 
 class FontMetrics;
@@ -24,24 +25,27 @@ class FontLoader
 {
 public:
        ///
-       FontLoader() {}
-       ///
-       virtual ~FontLoader() {}
+       FontLoader();
+       /// Clears cache
+       ~FontLoader();
 
        /// Update fonts after zoom, dpi, font names, or norm change
-       virtual void update() = 0;
+       // (basically by deleting all cached values)    
+       void update();
 
        /// Is the given font available ?
-       virtual bool available(LyXFont const & f) = 0;
+       bool available(FontInfo const & f);
 
-       /// Get the Font metrics for this LyXFont
-       virtual FontMetrics const & metrics(LyXFont const & f) = 0;
+       /// Get the Font metrics for this FontInfo
+       FontMetrics const & metrics(FontInfo const & f);
 };
 
+
 } // namespace frontend
-} // namespace lyx
 
-/// Implementation is in Application.C
-extern lyx::frontend::FontLoader & theFontLoader();
+/// Implementation is in Application.cpp
+extern frontend::FontLoader & theFontLoader();
+
+} // namespace lyx
 
-#endif // QFONT_LOADER_H
+#endif // FONTLOADER_H