2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
12 #ifndef BUFFERPARAMS_H
13 #define BUFFERPARAMS_H
24 #include "insets/insetquotes.h"
26 #include "support/block.h"
29 This class contains all the parameters for this a buffer uses. Some
30 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
107 //@Man: Constructors and Deconstructors
114 void writeFile(std::ostream &) const;
117 void useClassDefaults();
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 */
140 char papersize; /* the general papersize (papersize2 or paperpackage */ // add approp. signedness
142 char papersize2; /* the selected Geometry papersize */ // add approp. signedness
144 char paperpackage; /* a special paperpackage .sty-file */ // add approp. signedness
146 PAPER_ORIENTATION orientation; // add approp. signedness
168 /* some LaTeX options */
169 /// The graphics driver
170 string graphicsDriver;
182 Language const * language_info;
190 string float_placement;
192 unsigned int columns;
194 LyXTextClass::PageSides sides;
198 block<Bullet, 4> temp_bullets;
200 block<Bullet, 4> user_defined_bullets;
202 void readPreamble(LyXLex &);
204 void readLanguage(LyXLex &);
206 void readGraphicsDriver(LyXLex &);
207 /// do we allow accents on all chars in this buffer
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. */