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
24 #include "lyxtextclass.h"
26 #include "insets/insetquotes.h"
28 #include <boost/array.hpp>
33 /** Buffer parameters.
34 This class contains all the parameters for this a buffer uses. Some
35 work needs to be done on this class to make it nice. Now everything
71 enum VMARGIN_PAPER_TYPE {
103 enum PAPER_ORIENTATION {
105 ORIENTATION_PORTRAIT,
107 ORIENTATION_LANDSCAPE
113 void writeFile(std::ostream &) const;
116 void setPaperStuff();
119 void useClassDefaults();
122 bool hasClassDefaults() const;
125 VSpace const & getDefSkip() const { return defskip; }
128 void setDefSkip(VSpace const & vs) { defskip = vs; }
130 /** Wether paragraphs are separated by using a indent like in
131 articles or by using a little skip like in letters.
133 PARSEP paragraph_separation;
135 InsetQuotes::quote_language quotes_language;
137 InsetQuotes::quote_times quotes_times;
141 lyx::textclass_type textclass;
143 /* this are for the PaperLayout */
144 /// the general papersize (papersize2 or paperpackage
145 char papersize; // add apprip. signedness
146 /// the selected Geometry papersize
147 char papersize2; // add approp. signedness
148 /// a special paperpackage .sty-file
149 char paperpackage; // add approp. signedness
151 PAPER_ORIENTATION orientation; // add approp. signedness
173 /* some LaTeX options */
174 /// The graphics driver
175 string graphicsDriver;
185 Language const * language;
193 string float_placement;
195 unsigned int columns;
197 LyXTextClass::PageSides sides;
201 boost::array<Bullet, 4> temp_bullets;
203 boost::array<Bullet, 4> user_defined_bullets;
205 void readPreamble(LyXLex &);
207 void readLanguage(LyXLex &);
209 void readGraphicsDriver(LyXLex &);
215 bool use_numerical_citations;
216 /// Time ago we agreed that this was a buffer property [ale990407]
221 /** This is the amount of space used for paragraph_separation "skip",
222 and for detached paragraphs in "indented" documents.