5 #include "lyxtextclass.h"
9 Context(bool need_layout_,
10 LyXTextClass const & textclass_,
11 LyXLayout_ptr layout_ = LyXLayout_ptr(),
12 LyXLayout_ptr parent_layout_= LyXLayout_ptr());
14 // Output a \begin_layout is requested
15 void check_layout(std::ostream & os);
17 // Output a \end_layout if needed
18 void check_end_layout(std::ostream & os);
20 // Output a \begin_deeper if needed
21 void check_deeper(ostream & os);
23 // Output a \end_deeper if needed
24 void check_end_deeper(ostream & os);
26 // dump content on stream (for debugging purpose), with
27 // description \c desc.
28 void dump(std::ostream &, std::string const & desc = "context") const;
30 // Do we need to output some \begin_layout command before the
33 // Do we need to output some \end_layout command
35 // We may need to add something after this \begin_layout command
36 std::string extra_stuff;
37 // If there has been an \begin_deeper, we'll need a matching
41 // The textclass of the document. Could actually be a global variable
42 LyXTextClass const & textclass;
43 // The layout of the current paragraph
45 // The layout of the outer paragraph (for environment layouts)
46 LyXLayout_ptr parent_layout;