]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/qfont_loader.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / qfont_loader.h
index 7222fbefac85909fc533a3f894a9c67bf8fa1c26..8c01b202cf51cc96d83303236f422bb2b1f324b5 100644 (file)
@@ -1,25 +1,22 @@
 // -*- C++ -*-
 /**
  * \file qfont_loader.h
- * Copyright 1997 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QFONTLOADER_H
-#define QFONTLOADER_H 
+#define QFONTLOADER_H
 
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-#include <config.h>
-#include <boost/smart_ptr.hpp>
 #include "lyxfont.h"
-#include "LString.h"
 
 #include <qfont.h>
 #include <qfontmetrics.h>
@@ -39,7 +36,7 @@ public:
 
        /// do we have anything matching?
        bool available(LyXFont const & f);
+
        /// get the QFont for this LyXFont
        QFont const & get(LyXFont const & f);
 
@@ -47,7 +44,6 @@ public:
        QFontMetrics const & metrics(LyXFont const & f) {
                return getfontinfo(f)->metrics;
        }
-
 private:
        /// hold info about a particular font
        struct font_info {
@@ -58,14 +54,14 @@ private:
                /// metrics on the font
                QFontMetrics metrics;
        };
+
        /// get font info (font + metrics) for the given LyX font. Does not fail.
        font_info const * getfontinfo(LyXFont const & f);
+
        /// BUTT ugly !
-       boost::scoped_ptr<font_info> fontinfo_[LyXFont::NUM_FAMILIES][2][4][10]; 
+       font_info const * fontinfo_[LyXFont::NUM_FAMILIES][2][4][10];
 };
 
 extern qfont_loader fontloader;
+
 #endif // QFONT_LOADER_H