]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiApplication.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / GuiApplication.h
index aace15e84e1604da75a87938984c6fb640f2452f..6f3acf8dda78cf05c352499ddabd8b8bd1b1cb33 100644 (file)
@@ -14,7 +14,7 @@
 #define QT4_APPLICATION_H
 
 #include "ColorCache.h"
-#include "FontLoader.h"
+#include "GuiFontLoader.h"
 #include "GuiClipboard.h"
 #include "GuiImplementation.h"
 #include "GuiSelection.h"
@@ -50,24 +50,27 @@ class GuiApplication : public QApplication, public Application
 {
 public:
        GuiApplication(int & argc, char ** argv);
+       ///
+       virtual ~GuiApplication() {}
 
        /// Method inherited from \c Application class
        //@{
        virtual Clipboard& clipboard();
        virtual Selection& selection();
+       virtual FontLoader & fontLoader() { return font_loader_; }
        virtual int const exec();
        virtual Gui & gui() { return gui_; }
        virtual void exit(int status);
+       virtual std::string const romanFontName();
+       virtual std::string const sansFontName();
+       virtual std::string const typewriterFontName();
        //@}
 
        ///
        ColorCache & colorCache() { return color_cache_; }
        ///
-       FontLoader & fontLoader() { return font_loader_; }
-
        ///
-       LyXView & createView(unsigned int width, unsigned int height,
-               int posx, int posy, bool maximize);
+       GuiFontLoader & guiFontLoader() { return font_loader_; }
 
 private:
        ///
@@ -77,7 +80,7 @@ private:
        ///
        GuiSelection selection_;
        ///
-       FontLoader font_loader_;
+       GuiFontLoader font_loader_;
        ///
        ColorCache color_cache_;