]> git.lyx.org Git - lyx.git/blob - src/OutputParams.cpp
0df7198f8757977e8af121284f028b5c22bcbad9
[lyx.git] / src / OutputParams.cpp
1 /**
2  * \file OutputParams.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  *  \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "OutputParams.h"
14 #include "Exporter.h"
15 #include "Encoding.h"
16
17
18 namespace lyx {
19
20
21 OutputParams::OutputParams(Encoding const * enc)
22         : flavor(LATEX), math_flavor(NotApplicable), nice(false), moving_arg(false), 
23           inulemcmd(false), inTitle(false), didTitle(false). local_font(0),
24           master_language(0), encoding(enc),
25           free_spacing(false), use_babel(false), use_polyglossia(false),
26           use_indices(false), use_japanese(false), linelen(0), depth(0),
27           exportdata(new ExportData),
28           inComment(false), inTableCell(NO), inFloat(NONFLOAT),
29           inIndexEntry(false), inDeletedInset(0),
30           changeOfDeletedInset(Change::UNCHANGED),
31           par_begin(0), par_end(0), isLastPar(false),
32           dryrun(false), pass_thru(false), 
33           html_disable_captions(false), html_in_par(false),
34           html_make_pars(true), for_toc(false), includeall(false)
35 {
36         // Note: in PreviewLoader::Impl::dumpPreamble
37         // OutputParams runparams(0); 
38         if (enc && enc->package() == Encoding::japanese)
39                 use_japanese = true;
40 }
41
42
43 OutputParams::~OutputParams()
44 {}
45
46
47 bool OutputParams::isLaTeX() const
48 {
49         return flavor == LATEX || flavor == LUATEX 
50                 || flavor == PDFLATEX || flavor == XETEX; 
51 }
52
53
54 bool OutputParams::isFullUnicode() const
55 {
56         return flavor == LUATEX || flavor == XETEX; 
57 }
58
59 } // namespace lyx