]> git.lyx.org Git - lyx.git/blob - src/frontends/NoGuiFontLoader.h
* Doxy: polish html output.
[lyx.git] / src / frontends / NoGuiFontLoader.h
1 // -*- C++ -*-
2 /**
3  * \file NoGuiFontLoader.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef NO_GUI_FONTLOADER_H
13 #define NO_GUI_FONTLOADER_H
14
15 #include "frontends/FontLoader.h"
16 #include "frontends/NoGuiFontMetrics.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 /// Dummy FontLoader for command-line output.
22 class NoGuiFontLoader : public FontLoader
23 {
24 public:
25         ///
26         NoGuiFontLoader() {}
27         ///
28         virtual ~NoGuiFontLoader() {}
29
30         /// Update fonts after zoom, dpi, font names, or norm change
31         virtual void update() {}
32
33         /// Is the given font available ?
34         virtual bool available(FontInfo const &) { return false; }
35
36         /// Get the Font metrics for this FontInfo
37         virtual FontMetrics const & metrics(FontInfo const &) { return metrics_; }
38
39 private:
40         ///
41         NoGuiFontMetrics metrics_;
42 };
43
44 } // namespace frontend
45 } // namespace lyx
46
47 #endif // NO_GUI_FONTLOADER_H