]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/context.h
* support/qstring_helpers.h: erase ucs4_to_qstring() method.
[lyx.git] / src / tex2lyx / context.h
index d1180a621d712f54d488723670c7cff1ef6afdac..fd71d6441b26e65231d651f47a782ae6633ab770 100644 (file)
@@ -17,6 +17,9 @@
 #include <iosfwd>
 
 
+namespace lyx {
+
+
 /*!
  * Small helper struct that holds font properties.
  * The names are in LyX language, not LaTeX.
@@ -56,7 +59,7 @@ inline bool operator!=(Font const & f1, Font const & f2)
 
 /// Output changed font parameters if \p oldfont and \p newfont differ
 void output_font_change(std::ostream & os, Font const & oldfont,
-                        Font const & newfont);
+                       Font const & newfont);
 
 
 /*!
@@ -77,7 +80,7 @@ public:
                LyXTextClass const & textclass_,
                LyXLayout_ptr layout_ = LyXLayout_ptr(),
                LyXLayout_ptr parent_layout_= LyXLayout_ptr(),
-               Font font_ = Font());
+               Font font_ = Font());
        ~Context();
 
        /// Output a \\begin_layout if requested
@@ -133,6 +136,8 @@ public:
         * would not work.
         */
        bool new_layout_allowed;
+       /// Did we output anything yet in any context?
+       static bool empty;
 
        /// The textclass of the document. Could actually be a global variable
        LyXTextClass const & textclass;
@@ -146,4 +151,7 @@ public:
        static Font normalfont;
 };
 
+
+} // namespace lyx
+
 #endif