4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
12 #ifndef OUTPUT_LATEX_H
13 #define OUTPUT_LATEX_H
15 #include "ParagraphList_fwd.h"
17 #include "support/docstream.h"
28 /** Export \p paragraphs of buffer \p buf to LaTeX.
29 Don't use a temporary stringstream for \p os if the final output is
30 supposed to go to a file.
31 \sa Buffer::writeLaTeXSource for the reason.
33 void latexParagraphs(Buffer const & buf,
34 ParagraphList const & paragraphs,
38 std::string const & everypar = std::string());
40 /// Switch the encoding of \p os from \p oldEnc to \p newEnc if needed.
41 /// \return the number of characters written to \p os.
42 int switchEncoding(odocstream & os, BufferParams const & bparams,
43 Encoding const & oldEnc, Encoding const & newEnc);