2 * \file OutputParams.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "OutputParams.h"
21 OutputParams::OutputParams(Encoding const * enc)
22 : flavor(LATEX), math_flavor(NotApplicable), nice(false), is_child(false),
23 moving_arg(false), inulemcmd(false), local_font(0), master_language(0),
24 encoding(enc), free_spacing(false), use_babel(false), use_polyglossia(false),
25 use_indices(false), use_japanese(false), linelen(0), depth(0),
26 exportdata(new ExportData),
27 inComment(false), inTableCell(NO), inFloat(NONFLOAT),
28 inIndexEntry(false), inIPA(false), inDeletedInset(0),
29 changeOfDeletedInset(Change::UNCHANGED),
30 par_begin(0), par_end(0), lastid(-1), lastpos(-1), isLastPar(false),
31 dryrun(false), pass_thru(false),
32 html_disable_captions(false), html_in_par(false),
33 html_make_pars(true), for_toc(false), includeall(false)
35 // Note: in PreviewLoader::Impl::dumpPreamble
36 // OutputParams runparams(0);
37 if (enc && enc->package() == Encoding::japanese)
42 OutputParams::~OutputParams()
46 bool OutputParams::isLaTeX() const
48 return flavor == LATEX || flavor == LUATEX || flavor == DVILUATEX
49 || flavor == PDFLATEX || flavor == XETEX;
53 bool OutputParams::isFullUnicode() const
55 return flavor == LUATEX|| flavor == DVILUATEX || flavor == XETEX;