lyx_mirror/src/frontends/NoGuiFontLoader.h
Lars Gullik Bjønnes 0d449056ef Output docbook as utf8. Probably quite a bit more work needed, but then help form a docbook person is needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15387 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-19 21:00:33 +00:00

49 lines
1023 B
C++

// -*- C++ -*-
/**
* \file NoGuiFontLoader.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef LYX_NO_GUI_FONTLOADER_H
#define LYX_NO_GUI_FONTLOADER_H
#include "frontends/FontLoader.h"
#include "frontends/NoGuiFontMetrics.h"
namespace lyx {
namespace frontend {
/// Dummy FontLoader for command-line output.
class NoGuiFontLoader: public FontLoader
{
public:
///
NoGuiFontLoader() {}
///
virtual ~NoGuiFontLoader() {}
/// Update fonts after zoom, dpi, font names, or norm change
virtual void update() {};
/// Is the given font available ?
virtual bool available(LyXFont const &) { return false; };
/// Get the Font metrics for this LyXFont
virtual FontMetrics const & metrics(LyXFont const &) { return metrics_; }
private:
///
NoGuiFontMetrics metrics_;
};
} // namespace frontend
} // namespace lyx
#endif // LYX_NO_GUI_FONTLOADER_H