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), intitle(false), inbranch(false), inulemcmd(0),
24 local_font(nullptr),master_language(nullptr), encoding(enc), free_spacing(false),
25 use_babel(false), use_polyglossia(false), use_hyperref(false), use_CJK(false),
26 use_indices(false), use_japanese(false), linelen(0), depth(0),
27 exportdata(new ExportData), postpone_fragile_stuff(false), inDisplayMath(false),
28 wasDisplayMath(false), inComment(false), openbtUnit(false), only_childbibs(false),
29 inTableCell(NO), inFloat(NONFLOAT),
30 inIndexEntry(false), inIPA(false), inDeletedInset(0),
31 changeOfDeletedInset(Change::UNCHANGED), ctObject(CT_NORMAL),
32 par_begin(0), par_end(0), lastid(-1), lastpos(0), isLastPar(false),
33 dryrun(false), silent(false), pass_thru(false),
34 html_disable_captions(false), html_in_par(false),
35 html_make_pars(true), for_toc(false), for_tooltip(false),
36 for_search(false), for_preview(false), includeall(false)
38 // Note: in PreviewLoader::Impl::dumpPreamble
39 // OutputParams runparams(0);
40 if (enc && enc->package() == Encoding::japanese)
42 if (enc && enc->package() == Encoding::CJK)
47 OutputParams::~OutputParams()
51 bool OutputParams::isLaTeX() const
53 return flavor == LATEX || flavor == LUATEX || flavor == DVILUATEX
54 || flavor == PDFLATEX || flavor == XETEX;
58 bool OutputParams::isFullUnicode() const
60 return flavor == LUATEX || flavor == DVILUATEX || flavor == XETEX;
64 bool OutputParams::useBidiPackage() const
66 return use_polyglossia && flavor == XETEX;