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
|
|
|
|
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-04-29 18:17:15 +00:00
|
|
|
class Font {
|
2003-07-26 00:17:21 +00:00
|
|
|
public:
|
|
|
|
/// Trick to overload constructor and make it megafast
|
|
|
|
enum FONT_INIT1 { ALL_INHERIT };
|
|
|
|
enum FONT_INIT3 { ALL_SANE };
|
|
|
|
|
2007-04-29 18:17:15 +00:00
|
|
|
Font() {}
|
|
|
|
explicit Font(Font::FONT_INIT1) {}
|
|
|
|
explicit Font(Font::FONT_INIT3) {}
|
2003-07-26 00:17:21 +00:00
|
|
|
|
2007-04-29 18:17:15 +00:00
|
|
|
Font & lyxRead(Lexer &);
|
2003-07-26 00:17:21 +00:00
|
|
|
|
2007-04-29 18:17:15 +00:00
|
|
|
Font & realize(Font const &) { return *this; }
|
2003-07-26 00:17:21 +00:00
|
|
|
bool resolved() const { return true; }
|
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-21 23:17:37 +00:00
|
|
|
#endif // TEX2LYX_FONT_H
|