X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2FContext.h;h=2d5315b5dff7dc4a1af0540bfa101e8a0dca8211;hb=9a1b26a156c913f484ca2293fb2ec1c4986d2a3e;hp=ad95f02b0b8bd374be5b90532146e9faeb2f468f;hpb=8aa37c43a1e7bc6038322183c63aecdd2024ab59;p=lyx.git diff --git a/src/tex2lyx/Context.h b/src/tex2lyx/Context.h index ad95f02b0b..2d5315b5df 100644 --- a/src/tex2lyx/Context.h +++ b/src/tex2lyx/Context.h @@ -82,7 +82,7 @@ public: TeX2LyXDocClass const & textclass_, Layout const * layout_ = 0, Layout const * parent_layout_= 0, - TeXFont font_ = TeXFont()); + TeXFont const & font_ = normalfont); ~Context(); /// Output a \\begin_layout if requested @@ -128,6 +128,12 @@ public: std::string extra_stuff; /// We may need to add something after this \\begin_layout command std::string par_extra_stuff; + /// We may need to add something at the beginning of a list. + std::string list_extra_stuff; + /// Stuff between list begin and first item + std::string list_preamble; + /// A LaTeXParam to be ignored in parsing. + std::string latexparam; /// If there has been an \\begin_deeper, we'll need a matching /// \\end_deeper bool need_end_deeper; @@ -135,6 +141,10 @@ public: /// for each paragraph, otherwise this has to be a deeper /// paragraph. bool has_item; + /// If we are in an itemize-like environment, this marks + /// the text before the first \item. Typically, list + /// parameters (such as lengths) are adjusted here. + bool in_list_preamble; /// we are handling a standard paragraph in an itemize-like /// environment bool deeper_paragraph; @@ -161,6 +171,8 @@ public: TeXFont font; /// font attributes of normal text static TeXFont normalfont; + /// Table rotation angle + int tablerotation; private: void begin_layout(std::ostream & os, Layout const * const & l);