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 VSpace const & getDefSkip() const { return defskip; }
120 void setDefSkip(VSpace const & vs) { defskip = vs; }
122 /** Wether paragraphs are separated by using a indent like in
123 articles or by using a little skip like in letters.
125 PARSEP paragraph_separation;
127 InsetQuotes::quote_language quotes_language;
129 InsetQuotes::quote_times quotes_times;
133 LyXTextClassList::size_type textclass;
135 /* this are for the PaperLayout */
136 /// the general papersize (papersize2 or paperpackage
137 char papersize; // add apprip. signedness
138 /// the selected Geometry papersize
139 char papersize2; // add approp. signedness
140 /// a special paperpackage .sty-file
141 char paperpackage; // add approp. signedness
143 PAPER_ORIENTATION orientation; // add approp. signedness
165 /* some LaTeX options */
166 /// The graphics driver
167 string graphicsDriver;
177 Language const * language;
185 string float_placement;
187 unsigned int columns;
189 LyXTextClass::PageSides sides;
193 boost::array<Bullet, 4> temp_bullets;
195 boost::array<Bullet, 4> user_defined_bullets;
197 void readPreamble(LyXLex &);
199 void readLanguage(LyXLex &);
201 void readGraphicsDriver(LyXLex &);
207 bool use_numerical_citations;
208 /// Time ago we agreed that this was a buffer property [ale990407]
213 /** This is the amount of space used for paragraph_separation "skip",
214 and for detached paragraphs in "indented" documents.