Add missing include, due to André LASSERT change
[lyx.git] / src / output_latex.h
blobb347f261bd820fb3c9dd2929b889717ec9d20023
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 OutputParams;
27 class TexRow;
28 class Text;
30 /// Export up to \p number optarg insets
31 int latexOptArgInsets(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 Text const & text,
42 odocstream & ofs,
43 TexRow & texrow,
44 OutputParams const &,
45 std::string const & everypar = std::string());
47 /// Switch the encoding of \p os from runparams.encoding 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 OutputParams const &, Encoding const & newEnc);
53 } // namespace lyx
55 #endif