2003-07-26 00:17:21 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-04-29 18:17:15 +00:00
|
|
|
* \file tex2lyx/Font.h
|
2003-07-26 00:17:21 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2003-08-19 10:04:35 +00:00
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-08-19 10:04:35 +00:00
|
|
|
*
|
|
|
|
* This class is just a dummy version of that in the main LyX source tree
|
|
|
|
* to enable tex2lyx to use LyX's textclass classes and not have to
|
|
|
|
* re-invent the wheel.
|
2003-07-26 00:17:21 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-08-21 23:17:37 +00:00
|
|
|
#ifndef TEX2LYX_FONT_H
|
|
|
|
#define TEX2LYX_FONT_H
|
2003-07-26 00:17:21 +00:00
|
|
|
|
2007-10-28 18:51:54 +00:00
|
|
|
//#include "FontInfo.h"
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2007-04-26 11:30:54 +00:00
|
|
|
class Lexer;
|
2003-07-26 00:17:21 +00:00
|
|
|
|
2007-10-28 18:51:54 +00:00
|
|
|
class FontInfo
|
|
|
|
{
|
2003-07-26 00:17:21 +00:00
|
|
|
public:
|
2007-10-28 18:51:54 +00:00
|
|
|
FontInfo() {}
|
|
|
|
FontInfo & realize(FontInfo const &) { return *this; }
|
|
|
|
bool resolved() const { return true; }
|
|
|
|
};
|
2003-07-26 00:17:21 +00:00
|
|
|
|
2007-10-28 18:51:54 +00:00
|
|
|
/// Sane font.
|
|
|
|
extern FontInfo const sane_font;
|
|
|
|
/// All inherit font.
|
|
|
|
extern FontInfo const inherit_font;
|
|
|
|
/// All ignore font.
|
|
|
|
extern FontInfo const ignore_font;
|
2003-07-26 00:17:21 +00:00
|
|
|
|
2007-10-28 18:51:54 +00:00
|
|
|
class Font
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Font() {}
|
|
|
|
Font(FontInfo const &) {}
|
2003-07-26 00:17:21 +00:00
|
|
|
};
|
|
|
|
|
2007-10-28 18:51:54 +00:00
|
|
|
/// Read a font specification from Lexer. Used for layout files.
|
2007-11-01 09:47:02 +00:00
|
|
|
FontInfo lyxRead(Lexer &, FontInfo const & fi);
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-21 23:17:37 +00:00
|
|
|
#endif // TEX2LYX_FONT_H
|