// -*- 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
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;
// 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;
// The layout of the outer paragraph (for environment layouts)
LyXLayout_ptr parent_layout;
};
-
+
#endif