scramble email addresses
[lyx.git] / src / output_latex.h
blob008564ed7942aede56fc44e352ad99be6d46bb64
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.
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 <utility>
17 #include "support/docstream.h"
20 namespace lyx {
22 class Buffer;
23 class BufferParams;
24 class Encoding;
25 class Paragraph;
26 class ParagraphList;
27 class OutputParams;
28 class TexRow;
30 /// Export up to \p number optarg insets
31 int latexOptArgInsets(Buffer const & buf, Paragraph const & par,
32 odocstream & os, OutputParams const & runparams,
33 int number);
35 /** Export \p paragraphs of buffer \p buf to LaTeX.
36 Don't use a temporary stringstream for \p os if the final output is
37 supposed to go to a file.
38 \sa Buffer::writeLaTeXSource for the reason.
40 void latexParagraphs(Buffer const & buf,
41 ParagraphList const & paragraphs,
42 odocstream & ofs,
43 TexRow & texrow,
44 OutputParams const &,
45 std::string const & everypar = std::string());
47 /// Switch the encoding of \p os from \p oldEnc to \p newEnc if needed.
48 /// \return (did the encoding change?, number of characters written to \p os)
49 std::pair<bool, int> switchEncoding(odocstream & os,
50 BufferParams const & bparams,
51 bool moving_arg, Encoding const & oldEnc,
52 Encoding const & newEnc);
54 } // namespace lyx
56 #endif