2003-11-05 12:06:20 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file output_latex.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef OUTPUT_LATEX_H
|
|
|
|
|
#define OUTPUT_LATEX_H
|
|
|
|
|
|
2006-03-23 20:11:06 +00:00
|
|
|
|
#include "ParagraphList_fwd.h"
|
|
|
|
|
|
2006-10-19 16:51:30 +00:00
|
|
|
|
#include "support/docstream.h"
|
2003-11-05 12:06:20 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2003-11-05 12:06:20 +00:00
|
|
|
|
class Buffer;
|
2007-01-09 19:25:40 +00:00
|
|
|
|
class BufferParams;
|
|
|
|
|
class Encoding;
|
2003-11-05 12:06:20 +00:00
|
|
|
|
class OutputParams;
|
|
|
|
|
class TexRow;
|
|
|
|
|
|
2007-01-30 13:23:21 +00:00
|
|
|
|
/// Export up to \p number optarg insets
|
|
|
|
|
int latexOptArgInsets(Buffer const & buf, Paragraph const & par,
|
|
|
|
|
odocstream & os, OutputParams const & runparams,
|
|
|
|
|
int number);
|
|
|
|
|
|
2007-01-09 19:25:40 +00:00
|
|
|
|
/** Export \p paragraphs of buffer \p buf to LaTeX.
|
|
|
|
|
Don't use a temporary stringstream for \p os if the final output is
|
|
|
|
|
supposed to go to a file.
|
|
|
|
|
\sa Buffer::writeLaTeXSource for the reason.
|
|
|
|
|
*/
|
2003-11-05 12:06:20 +00:00
|
|
|
|
void latexParagraphs(Buffer const & buf,
|
|
|
|
|
ParagraphList const & paragraphs,
|
2006-10-21 00:16:43 +00:00
|
|
|
|
odocstream & ofs,
|
2003-11-05 12:06:20 +00:00
|
|
|
|
TexRow & texrow,
|
|
|
|
|
OutputParams const &,
|
|
|
|
|
std::string const & everypar = std::string());
|
|
|
|
|
|
2007-01-09 19:25:40 +00:00
|
|
|
|
/// Switch the encoding of \p os from \p oldEnc to \p newEnc if needed.
|
|
|
|
|
/// \return the number of characters written to \p os.
|
|
|
|
|
int switchEncoding(odocstream & os, BufferParams const & bparams,
|
|
|
|
|
Encoding const & oldEnc, Encoding const & newEnc);
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2003-11-05 12:06:20 +00:00
|
|
|
|
#endif
|