2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
12 #ifndef BUFFERPARAMS_H
13 #define BUFFERPARAMS_H
19 #include "lyxtextclass.h"
21 #include "insets/insetquotes.h"
23 #include <boost/array.hpp>
28 /** Buffer parameters.
29 This class contains all the parameters for this a buffer uses. Some
30 work needs to be done on this class to make it nice. Now everything
66 enum VMARGIN_PAPER_TYPE {
98 enum PAPER_ORIENTATION {
100 ORIENTATION_PORTRAIT,
102 ORIENTATION_LANDSCAPE
108 void writeFile(std::ostream &) const;
111 void setPaperStuff();
114 void useClassDefaults();
117 bool hasClassDefaults() const;
120 VSpace const & getDefSkip() const { return defskip; }
123 void setDefSkip(VSpace const & vs) { defskip = vs; }
125 /** Wether paragraphs are separated by using a indent like in
126 articles or by using a little skip like in letters.
128 PARSEP paragraph_separation;
130 InsetQuotes::quote_language quotes_language;
132 InsetQuotes::quote_times quotes_times;
136 lyx::textclass_type textclass;
138 LyXTextClass const & getLyXTextClass() const;
140 /* this are for the PaperLayout */
141 /// the general papersize (papersize2 or paperpackage
142 char papersize; // add apprip. signedness
143 /// the selected Geometry papersize
144 char papersize2; // add approp. signedness
145 /// a special paperpackage .sty-file
146 char paperpackage; // add approp. signedness
148 PAPER_ORIENTATION orientation; // add approp. signedness
170 /* some LaTeX options */
171 /// The graphics driver
172 string graphicsDriver;
182 Language const * language;
190 string float_placement;
192 unsigned int columns;
194 LyXTextClass::PageSides sides;
198 boost::array<Bullet, 4> temp_bullets;
200 boost::array<Bullet, 4> user_defined_bullets;
202 void readPreamble(LyXLex &);
204 void readLanguage(LyXLex &);
206 void readGraphicsDriver(LyXLex &);
212 bool use_numerical_citations;
213 /// revision tracking for this buffer ?
214 bool tracking_changes;
215 /// Time ago we agreed that this was a buffer property [ale990407]
220 /** This is the amount of space used for paragraph_separation "skip",
221 and for detached paragraphs in "indented" documents.