]> git.lyx.org Git - lyx.git/blob - src/LaTeXFeatures.h
a couple of name changes and new functionality in lyxvc and vc-backend
[lyx.git] / src / LaTeXFeatures.h
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright (C) 1995 Matthias Ettrich
8 *           Copyright (C) 1995-1999 the LyX Team.
9 *
10 *======================================================*/
11
12 #ifndef LATEXFEATURES_H
13 #define LATEXFEATURES_H
14
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include <vector>
21
22 #include "LString.h"
23
24 class BufferParams; 
25 class LyXTextClass;
26
27
28 /** The packages and commands that a buffer needs. This struct
29   contains an entry for each of the latex packages and
30   commands that a buffer might need. This struct is supposed to be
31   extended as the need arises. Remember to update the validate function
32   in buffer.C and paragraph.C when you do so. */
33 struct LaTeXFeatures {
34         ///
35         LaTeXFeatures(int n) ;
36         /// The packaes needed by the document
37         string getPackages(BufferParams const &params);
38         /// The macros definitions needed by the document
39         string getMacros(BufferParams const &params);
40         /// The definitions needed by the document's textclass
41         string getTClassPreamble(BufferParams const &params);
42
43         ///
44         void showStruct(BufferParams &params);
45
46         //@Man: Packages
47         //@{
48         ///
49         bool color;     // color.sty
50         ///
51         bool graphics;  // graphics.sty
52         ///
53         bool setspace;  // setspace.sty
54         ///
55         bool makeidx;   // makeind.sty
56         ///
57         bool verbatim;  // verbatim.sty
58         ///
59         bool longtable; // longtable.sty
60         ///
61         bool algorithm; // algorithm.sty
62         ///
63         bool rotating;  // rotating.sty
64         ///
65         bool amssymb;   // amssymb.sty
66         ///
67         bool latexsym;   // latexsym.sty
68         ///
69         bool pifont;    // pifont.sty
70         ///
71         bool subfigure; // subfigure.sty
72         ///
73         bool floatflt;  // floatflt.sty
74         ///
75         bool url;       // url.sty
76         //@}
77
78         
79         //@Man: Commands
80         //@{
81         ///
82         bool lyx;
83         ///
84         bool lyxline;
85         /// \noun
86         bool noun;
87         /// \lyxarrow
88         bool lyxarrow;
89         //@}
90         
91         //@Man: Quotes
92         //@{
93         ///
94         bool quotesinglbase;
95         ///
96         bool quotedblbase;
97         ///
98         bool guilsinglleft;
99         ///
100         bool guilsinglright;
101         ///
102         bool guillemotleft;
103         ///
104         bool guillemotright;
105         //@}
106         
107         //@Man: Math mode
108         //@{
109         ///
110         bool amsstyle;
111         ///
112         bool boldsymbol;
113         ///
114         bool binom;
115         //@}
116         
117         //@Man: Layouts
118         //@{
119         vector<bool> layout;
120         //@}
121         
122         //@Man: Special features
123         //@{
124         bool LyXParagraphIndent;
125         ///
126         bool NeedLyXFootnoteCode;
127         ///
128         bool NeedLyXMinipageIndent;
129         //@}
130 };
131
132 #endif