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 up to \p number optarg insets
29 int latexOptArgInsets(Buffer const & buf, Paragraph const & par,
30 odocstream & os, OutputParams const & runparams,
33 /** Export \p paragraphs of buffer \p buf to LaTeX.
34 Don't use a temporary stringstream for \p os if the final output is
35 supposed to go to a file.
36 \sa Buffer::writeLaTeXSource for the reason.
38 void latexParagraphs(Buffer const & buf,
39 ParagraphList const & paragraphs,
43 std::string const & everypar = std::string());
45 /// Switch the encoding of \p os from \p oldEnc to \p newEnc if needed.
46 /// \return the number of characters written to \p os.
47 int switchEncoding(odocstream & os, BufferParams const & bparams,
48 bool moving_arg, Encoding const & oldEnc,
49 Encoding const & newEnc);