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(std::ostream & os);
23 // Output a \end_deeper if needed
24 void check_end_deeper(std::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
40 // If we are in an itemize-like environment, we need an \item
41 // for each paragraph, otherwise this has to be a deeper
44 // we are handling a standard paragraph in an itemize-like
46 bool deeper_paragraph;
48 // The textclass of the document. Could actually be a global variable
49 LyXTextClass const & textclass;
50 // The layout of the current paragraph
52 // The layout of the outer paragraph (for environment layouts)
53 LyXLayout_ptr parent_layout;