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 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 LyXTextClassList::size_type textclass;
138 /* this are for the PaperLayout */
139 /// the general papersize (papersize2 or paperpackage
140 char papersize; // add apprip. signedness
141 /// the selected Geometry papersize
142 char papersize2; // add approp. signedness
143 /// a special paperpackage .sty-file
144 char paperpackage; // add approp. signedness
146 PAPER_ORIENTATION orientation; // add approp. signedness
168 /* some LaTeX options */
169 /// The graphics driver
170 string graphicsDriver;
180 Language const * language;
188 string float_placement;
190 unsigned int columns;
192 LyXTextClass::PageSides sides;
196 boost::array<Bullet, 4> temp_bullets;
198 boost::array<Bullet, 4> user_defined_bullets;
200 void readPreamble(LyXLex &);
202 void readLanguage(LyXLex &);
204 void readGraphicsDriver(LyXLex &);
210 bool use_numerical_citations;
211 /// Time ago we agreed that this was a buffer property [ale990407]
216 /** This is the amount of space used for paragraph_separation "skip",
217 and for detached paragraphs in "indented" documents.