]> git.lyx.org Git - features.git/blob - src/LaTeXFeatures.h
Initial revision
[features.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-1998 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 class LString;
21 class BufferParams; 
22 class LyXTextClass;
23
24 /** The packages and commands that a buffer needs. This struct
25   contains an entry for each of the latex packages and
26   commands that a buffer might need. This struct is supposed to be
27   extended as the need arises. Remember to update the validate function
28   in buffer.C and paragraph.C when you do so. */
29 struct LaTeXFeatures {
30         ///
31         LaTeXFeatures(int n) ;
32         ///
33         ~LaTeXFeatures() {
34                 delete[] layout;
35         }
36         /// The packaes needed by the document
37         LString getPackages(BufferParams const &params);
38         /// The macros definitions needed by the document
39         LString getMacros(BufferParams const &params);
40         /// The definitions needed by the document's textclass
41         LString 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         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