]> git.lyx.org Git - lyx.git/blob - src/output_latex.h
Changed comment character from ';' to '#*
[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 "support/docstream.h"
16
17
18 namespace lyx {
19
20 class Buffer;
21 class BufferParams;
22 class Encoding;
23 class Paragraph;
24 class ParagraphList;
25 class OutputParams;
26 class TexRow;
27
28 /// Export up to \p number optarg insets
29 int latexOptArgInsets(Buffer const & buf, Paragraph const & par,
30                       odocstream & os, OutputParams const & runparams,
31                       int number);
32
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.
37  */
38 void latexParagraphs(Buffer const & buf,
39                      ParagraphList const & paragraphs,
40                      odocstream & ofs,
41                      TexRow & texrow,
42                      OutputParams const &,
43                      std::string const & everypar = std::string());
44
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);
50
51 } // namespace lyx
52
53 #endif