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 "insets/insetquotes.h"
26 #include <boost/array.hpp>
31 /** Buffer parameters.
32 This class contains all the parameters for this a buffer uses. Some
33 work needs to be done on this class to make it nice. Now everything
69 enum VMARGIN_PAPER_TYPE {
101 enum PAPER_ORIENTATION {
103 ORIENTATION_PORTRAIT,
105 ORIENTATION_LANDSCAPE
111 void writeFile(std::ostream &) const;
114 void setPaperStuff();
117 void useClassDefaults();
120 bool hasClassDefaults() const;
123 VSpace const & getDefSkip() const { return defskip; }
126 void setDefSkip(VSpace const & vs) { defskip = vs; }
128 /** Wether paragraphs are separated by using a indent like in
129 articles or by using a little skip like in letters.
131 PARSEP paragraph_separation;
133 InsetQuotes::quote_language quotes_language;
135 InsetQuotes::quote_times quotes_times;
139 LyXTextClassList::size_type textclass;
141 /* this are for the PaperLayout */
142 /// the general papersize (papersize2 or paperpackage
143 char papersize; // add apprip. signedness
144 /// the selected Geometry papersize
145 char papersize2; // add approp. signedness
146 /// a special paperpackage .sty-file
147 char paperpackage; // add approp. signedness
149 PAPER_ORIENTATION orientation; // add approp. signedness
171 /* some LaTeX options */
172 /// The graphics driver
173 string graphicsDriver;
183 Language const * language;
191 string float_placement;
193 unsigned int columns;
195 LyXTextClass::PageSides sides;
199 boost::array<Bullet, 4> temp_bullets;
201 boost::array<Bullet, 4> user_defined_bullets;
203 void readPreamble(LyXLex &);
205 void readLanguage(LyXLex &);
207 void readGraphicsDriver(LyXLex &);
213 bool use_numerical_citations;
214 /// Time ago we agreed that this was a buffer property [ale990407]
219 /** This is the amount of space used for paragraph_separation "skip",
220 and for detached paragraphs in "indented" documents.