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
66 enum VMARGIN_PAPER_TYPE {
98 enum PAPER_ORIENTATION {
100 ORIENTATION_PORTRAIT,
102 ORIENTATION_LANDSCAPE
104 //@Man: Constructors and Deconstructors
111 void writeFile(ostream &) const;
114 void useClassDefaults();
117 VSpace const & getDefSkip() const { return defskip; }
120 void setDefSkip(VSpace const & vs) { defskip = vs; }
123 LyXDirection getDocumentDirection() const;
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::ClassList::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;
188 string float_placement;
190 unsigned int columns;
192 LyXTextClass::PageSides sides;
196 block<Bullet, 4> temp_bullets;
198 block<Bullet, 4> user_defined_bullets;
200 void readPreamble(LyXLex &);
202 void readLanguage(LyXLex &);
204 void readGraphicsDriver(LyXLex &);
205 /// do we allow accents on all chars in this buffer
209 /// Time ago we agreed that this was a buffer property [ale990407]
214 /** This is the amount of space used for paragraph_separation "skip",
215 and for detached paragraphs in "indented" documents. */