2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 The LyX Team.
10 * ====================================================== */
12 #ifndef BUFFERPARAMS_H
13 #define BUFFERPARAMS_H
24 #include "insets/insetquotes.h"
26 #include "support/block.h"
30 This class contains all the parameters for this a buffer uses. Some
31 work needs to be done on this class to make it nice. Now everything
67 enum VMARGIN_PAPER_TYPE {
99 enum PAPER_ORIENTATION {
101 ORIENTATION_PORTRAIT,
103 ORIENTATION_LANDSCAPE
105 //@Man: Constructors and Deconstructors
112 void writeFile(ostream &);
115 void useClassDefaults();
118 VSpace getDefSkip() const { return defskip; }
121 void setDefSkip(VSpace vs) { defskip = vs; }
123 /** Wether paragraphs are separated by using a indent like in
124 articles or by using a little skip like in letters.
126 PARSEP paragraph_separation;
128 InsetQuotes::quote_language quotes_language;
130 InsetQuotes::quote_times quotes_times;
134 LyXTextClassList::ClassList::size_type textclass;
136 /* this are for the PaperLayout */
138 char papersize; /* the general papersize (papersize2 or paperpackage */ // add approp. signedness
140 char papersize2; /* the selected Geometry papersize */ // add approp. signedness
142 char paperpackage; /* a special paperpackage .sty-file */ // add approp. signedness
144 PAPER_ORIENTATION orientation; // add approp. signedness
166 /* some LaTeX options */
167 /// The graphics driver
168 string graphicsDriver;
186 string float_placement;
188 unsigned int columns;
190 LyXTextClass::PageSides sides;
194 block<Bullet, 4> temp_bullets;
196 block<Bullet, 4> user_defined_bullets;
198 void readPreamble(LyXLex &);
200 void readLanguage(LyXLex &);
202 void readGraphicsDriver(LyXLex &);
203 /// do we allow accents on all chars in this buffer
207 /// 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. */