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 : encoding(enc), exportdata(new ExportData)
24 // Note: in PreviewLoader::Impl::dumpPreamble
25 // OutputParams runparams(0);
26 if (enc && enc->package() == Encoding::japanese)
28 if (enc && enc->package() == Encoding::CJK)
33 OutputParams::~OutputParams()
37 bool OutputParams::isLaTeX() const
39 return flavor == LATEX || flavor == LUATEX || flavor == DVILUATEX
40 || flavor == PDFLATEX || flavor == XETEX;
44 bool OutputParams::isFullUnicode() const
46 return flavor == LUATEX || flavor == DVILUATEX || flavor == XETEX;
50 bool OutputParams::useBidiPackage() const
52 return use_polyglossia && flavor == XETEX;