]> git.lyx.org Git - lyx.git/blob - src/latexrunparams.h
The "I want this in now" patch.
[lyx.git] / src / latexrunparams.h
1 // -*- C++ -*-
2 /**
3  * \file latexrunparams.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  *  \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef LatexRunParams_H
13 #define LatexRunParams_H
14
15 struct LatexRunParams {
16         enum FLAVOR {
17                 LATEX,
18                 PDFLATEX
19         };
20
21         LatexRunParams() : flavor(LATEX), nice(false),
22                            fragile(false), use_babel(false) {}
23
24         /** The latex that we export depends occasionally on what is to
25             compile the file.
26         */
27         FLAVOR flavor;
28
29         /** Are we to write a 'nice' LaTeX file or not.
30             This esentially seems to mean whether InsetInclude, InsetGraphics
31             and InsetExternal should add the absolute path to any external
32             files or not.
33         */
34         bool nice;
35
36         /** fragile == true means that the inset should take care about
37             fragile commands by preceding the latex with \protect.
38         */
39         bool fragile;
40
41         /** This var is set by the return value from BufferParams::writeLaTeX
42          */
43         bool use_babel;
44 };
45
46 #endif // LATEXRUNPARAMS_H