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
19 #include "lyxtextclass.h"
20 #include "LaTeXFeatures.h"
23 #include "insets/insetquotes.h"
25 #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 writeLaTeX(std::ostream &, LaTeXFeatures &, TexRow &) const;
118 void setPaperStuff();
121 void useClassDefaults();
124 bool hasClassDefaults() const;
127 VSpace const & getDefSkip() const { return defskip; }
130 void setDefSkip(VSpace const & vs) { defskip = vs; }
132 /** Wether paragraphs are separated by using a indent like in
133 articles or by using a little skip like in letters.
135 PARSEP paragraph_separation;
137 InsetQuotes::quote_language quotes_language;
139 InsetQuotes::quote_times quotes_times;
143 lyx::textclass_type textclass;
145 LyXTextClass const & getLyXTextClass() const;
147 /* this are for the PaperLayout */
148 /// the general papersize (papersize2 or paperpackage
149 char papersize; // add apprip. signedness
150 /// the selected Geometry papersize
151 char papersize2; // add approp. signedness
152 /// a special paperpackage .sty-file
153 char paperpackage; // add approp. signedness
155 PAPER_ORIENTATION orientation; // add approp. signedness
177 /* some LaTeX options */
178 /// The graphics driver
179 string graphicsDriver;
189 Language const * language;
197 string float_placement;
199 unsigned int columns;
201 LyXTextClass::PageSides sides;
205 boost::array<Bullet, 4> temp_bullets;
207 boost::array<Bullet, 4> user_defined_bullets;
209 void readPreamble(LyXLex &);
211 void readLanguage(LyXLex &);
213 void readGraphicsDriver(LyXLex &);
219 bool use_numerical_citations;
220 /// revision tracking for this buffer ?
221 bool tracking_changes;
222 /// Time ago we agreed that this was a buffer property [ale990407]
227 /** This is the amount of space used for paragraph_separation "skip",
228 and for detached paragraphs in "indented" documents.