#ifndef CONTEXT_H
#define CONTEXT_H
-#include "TextClass.h"
+#include "tex2lyx.h"
#include <iosfwd>
class Context {
public:
Context(bool need_layout_,
- TextClass const & textclass_,
- LayoutPtr layout_ = LayoutPtr(),
- LayoutPtr parent_layout_= LayoutPtr(),
+ TeX2LyXDocClass const & textclass_,
+ Layout const * layout_ = 0,
+ Layout const * parent_layout_= 0,
TeXFont font_ = TeXFont());
~Context();
static bool empty;
/// The textclass of the document. Could actually be a global variable
- TextClass const & textclass;
+ TeX2LyXDocClass const & textclass;
/// The layout of the current paragraph
- LayoutPtr layout;
+ Layout const * layout;
/// The layout of the outer paragraph (for environment layouts)
- LayoutPtr parent_layout;
+ Layout const * parent_layout;
/// font attributes of this context
TeXFont font;
/// font attributes of normal text