]> git.lyx.org Git - lyx.git/blob - src/output_latex.h
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / output_latex.h
1 // -*- C++ -*-
2 /**
3  * \file output_latex.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef OUTPUT_LATEX_H
13 #define OUTPUT_LATEX_H
14
15 #include "ParagraphList_fwd.h"
16
17 #include "support/docstream.h"
18
19
20 namespace lyx {
21
22 class Buffer;
23 class BufferParams;
24 class Encoding;
25 class OutputParams;
26 class TexRow;
27
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.
32  */
33 void latexParagraphs(Buffer const & buf,
34                      ParagraphList const & paragraphs,
35                      odocstream & ofs,
36                      TexRow & texrow,
37                      OutputParams const &,
38                      std::string const & everypar = std::string());
39
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);
44
45 } // namespace lyx
46
47 #endif