]> git.lyx.org Git - lyx.git/blob - src/latexrunparams.h
remove mention of lyxrc from the splash
[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                            moving_arg(false), free_spacing(false),
23                            use_babel(false) {}
24
25         /** The latex that we export depends occasionally on what is to
26             compile the file.
27         */
28         FLAVOR flavor;
29
30         /** Are we to write a 'nice' LaTeX file or not.
31             This esentially seems to mean whether InsetInclude, InsetGraphics
32             and InsetExternal should add the absolute path to any external
33             files or not.
34         */
35         bool nice;
36
37         /** moving_arg == true means that the environment in which the inset
38             is typeset is a moving argument. The inset should take care about
39             fragile commands by preceding the latex with \protect.
40         */
41         bool moving_arg;
42
43         /** free_spacing == true means that the inset is in a free-spacing
44             paragraph.
45         */
46         bool free_spacing;
47         
48         /** This var is set by the return value from BufferParams::writeLaTeX
49          */
50         bool use_babel;
51 };
52
53 #endif // LATEXRUNPARAMS_H