]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/context.h
Add a Buffer::fully_loaded member function, returning true only when
[lyx.git] / src / tex2lyx / context.h
index e7bdbbcd66a3b894c52745391016b8f6dee73519..6bf72e066e564ddbaa171c3c44c755af6c27418a 100644 (file)
@@ -1,4 +1,14 @@
 // -*- C++ -*-
+/**
+ * \file context.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef CONTEXT_H
 #define CONTEXT_H
 
@@ -18,11 +28,11 @@ struct Context {
        void check_end_layout(std::ostream & os);
 
        // Output a \begin_deeper if needed
-       void check_deeper(ostream & os);
+       void check_deeper(std::ostream & os);
 
        // Output a \end_deeper if needed
-       void check_end_deeper(ostream & os);
-       
+       void check_end_deeper(std::ostream & os);
+
        // dump content on stream (for debugging purpose), with
        // description \c desc.
        void dump(std::ostream &, std::string const & desc = "context") const;
@@ -37,6 +47,13 @@ struct Context {
        // If there has been an \begin_deeper, we'll need a matching
        // \end_deeper
        bool need_end_deeper;
+       // If we are in an itemize-like environment, we need an \item
+       // for each paragraph, otherwise this has to be a deeper
+       // paragraph.
+       bool has_item;
+       // we are handling a standard paragraph in an itemize-like
+       // environment
+       bool deeper_paragraph;
 
        // The textclass of the document. Could actually be a global variable
        LyXTextClass const & textclass;
@@ -45,6 +62,6 @@ struct Context {
        // The layout of the outer paragraph (for environment layouts)
        LyXLayout_ptr parent_layout;
 };
-       
+
 
 #endif