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
23 #include "lyxtextclass.h"
25 #include "insets/insetquotes.h"
27 #include <boost/array.hpp>
32 /** Buffer parameters.
33 This class contains all the parameters for this a buffer uses. Some
34 work needs to be done on this class to make it nice. Now everything
70 enum VMARGIN_PAPER_TYPE {
102 enum PAPER_ORIENTATION {
104 ORIENTATION_PORTRAIT,
106 ORIENTATION_LANDSCAPE
112 void writeFile(std::ostream &) const;
115 void setPaperStuff();
118 void useClassDefaults();
121 bool hasClassDefaults() const;
124 VSpace const & getDefSkip() const { return defskip; }
127 void setDefSkip(VSpace const & vs) { defskip = vs; }
129 /** Wether paragraphs are separated by using a indent like in
130 articles or by using a little skip like in letters.
132 PARSEP paragraph_separation;
134 InsetQuotes::quote_language quotes_language;
136 InsetQuotes::quote_times quotes_times;
140 lyx::textclass_type textclass;
142 LyXTextClass const & getLyXTextClass() const;
144 /* this are for the PaperLayout */
145 /// the general papersize (papersize2 or paperpackage
146 char papersize; // add apprip. signedness
147 /// the selected Geometry papersize
148 char papersize2; // add approp. signedness
149 /// a special paperpackage .sty-file
150 char paperpackage; // add approp. signedness
152 PAPER_ORIENTATION orientation; // add approp. signedness
174 /* some LaTeX options */
175 /// The graphics driver
176 string graphicsDriver;
186 Language const * language;
194 string float_placement;
196 unsigned int columns;
198 LyXTextClass::PageSides sides;
202 boost::array<Bullet, 4> temp_bullets;
204 boost::array<Bullet, 4> user_defined_bullets;
206 void readPreamble(LyXLex &);
208 void readLanguage(LyXLex &);
210 void readGraphicsDriver(LyXLex &);
216 bool use_numerical_citations;
217 /// Time ago we agreed that this was a buffer property [ale990407]
222 /** This is the amount of space used for paragraph_separation "skip",
223 and for detached paragraphs in "indented" documents.