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"
31 This class contains all the parameters for this a buffer uses. Some
32 work needs to be done on this class to make it nice. Now everything
71 enum VMARGIN_PAPER_TYPE {
103 enum PAPER_ORIENTATION {
105 ORIENTATION_PORTRAIT,
107 ORIENTATION_LANDSCAPE
109 //@Man: Constructors and Deconstructors
116 void writeFile(ostream &) const;
119 void useClassDefaults();
122 VSpace const & getDefSkip() const { return defskip; }
125 void setDefSkip(VSpace const & vs) { defskip = vs; }
127 /** Wether paragraphs are separated by using a indent like in
128 articles or by using a little skip like in letters.
130 PARSEP paragraph_separation;
132 InsetQuotes::quote_language quotes_language;
134 InsetQuotes::quote_times quotes_times;
138 LyXTextClassList::ClassList::size_type textclass;
140 /* this are for the PaperLayout */
142 char papersize; /* the general papersize (papersize2 or paperpackage */ // add approp. signedness
144 char papersize2; /* the selected Geometry papersize */ // add approp. signedness
146 char paperpackage; /* a special paperpackage .sty-file */ // add approp. signedness
148 PAPER_ORIENTATION orientation; // add approp. signedness
170 /* some LaTeX options */
171 /// The graphics driver
172 string graphicsDriver;
184 Language const * language_info;
192 string float_placement;
194 unsigned int columns;
196 LyXTextClass::PageSides sides;
200 block<Bullet, 4> temp_bullets;
202 block<Bullet, 4> user_defined_bullets;
204 void readPreamble(LyXLex &);
206 void readLanguage(LyXLex &);
208 void readGraphicsDriver(LyXLex &);
209 /// do we allow accents on all chars in this buffer
213 /// Time ago we agreed that this was a buffer property [ale990407]
218 /** This is the amount of space used for paragraph_separation "skip",
219 and for detached paragraphs in "indented" documents. */