]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
some more changes
[lyx.git] / src / buffer.h
index 4da4b29a3aca63ad493ee75496e1d8bc1fa5687e..b3af29f343f38c4911de6937e4432d7c5365c5f1 100644 (file)
 #include "LString.h"
 #include "undo.h"
 #include "support/limited_stack.h"
+
 #include "lyxvc.h"
 #include "bufferparams.h"
 #include "texrow.h"
 #include "paragraph.h"
 
 #include <boost/shared_ptr.hpp>
+
 class BufferView;
 class LyXRC;
 class TeXErrors;
@@ -157,10 +157,18 @@ public:
        ///
        string const asciiParagraph(Paragraph const *, unsigned int linelen,
                                    bool noparbreak = false) const;
-       ///
+       /// Just a wrapper for the method below, first creating the ofstream.
        void makeLaTeXFile(string const & filename,
                           string const & original_path,
-                          bool nice, bool only_body = false);
+                          bool nice,
+                          bool only_body = false,
+                          bool only_preamble = false);
+       ///
+       void makeLaTeXFile(std::ostream & os,
+                          string const & original_path,
+                          bool nice,
+                          bool only_body = false,
+                          bool only_preamble = false);
        /** LaTeX all paragraphs from par to endpar.
            \param \a endpar if == 0 then to the end
        */
@@ -180,10 +188,10 @@ public:
        void makeDocBookFile(string const & filename,
                             bool nice, bool only_body = false);
        /// Open SGML/XML tag.
-       void sgmlOpenTag(std::ostream & os, Paragraph::depth_type depth,
+       int sgmlOpenTag(std::ostream & os, Paragraph::depth_type depth, bool mixcont,
                string const & latexname) const;
        /// Closes SGML/XML tag.
-       void sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth,
+       int sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth, bool mixcont,
                string const & latexname) const;
        ///
        void sgmlError(Paragraph * par, int pos, string const & message) const;
@@ -302,10 +310,10 @@ public:
 
        /// Does this mean that this is buffer local?
        limited_stack<boost::shared_ptr<Undo> > undostack;
-       
-       /// Does this mean that this is buffer local? 
+
+       /// Does this mean that this is buffer local?
        limited_stack<boost::shared_ptr<Undo> > redostack;
-       
+
        ///
        BufferParams params;