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"
28 This class contains all the parameters for this a buffer uses. Some
29 work needs to be done on this class to make it nice. Now everything
34 //@Man: Constructors and Deconstructors
40 /// Dummy destructor to shut up gcc
41 virtual ~BufferParams() {}
44 void writeFile(FILE *);
48 void useClassDefaults();
51 VSpace getDefSkip() const { return defskip; }
54 void setDefSkip(VSpace vs) { defskip = vs; }
56 /** Wether paragraphs are separated by using a indent like in
57 articles or by using a little skip like in letters.
59 char paragraph_separation; // add approp. signedness
61 InsetQuotes::quote_language quotes_language;
63 InsetQuotes::quote_times quotes_times;
67 LyXTextClassList::ClassList::size_type textclass;
69 /* this are for the PaperLayout */
71 char papersize; /* the general papersize (papersize2 or paperpackage */ // add approp. signedness
73 char papersize2; /* the selected Geometry papersize */ // add approp. signedness
75 char paperpackage; /* a special paperpackage .sty-file */ // add approp. signedness
77 char orientation; // add approp. signedness
99 /* some LaTeX options */
100 /// The graphics driver
101 string graphicsDriver;
119 string float_placement;
121 unsigned int columns;
123 LyXTextClass::PageSides sides;
127 Bullet temp_bullets[4];
129 Bullet user_defined_bullets[4];
131 void Copy(BufferParams const &p);
133 virtual void readPreamble(LyXLex &);
135 virtual void readLanguage(LyXLex &);
137 virtual void readGraphicsDriver(LyXLex &);
138 /// do we allow accents on all chars in this buffer
142 /// Time ago we agreed that this was a buffer property [ale990407]
148 /** This is the amount of space used for paragraph_separation "skip",
149 and for detached paragraphs in "indented" documents. */