2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 1996 Matthias Ettrich
10 *======================================================*/
12 #ifndef _BUFFERPARAMS_H
13 #define _BUFFERPARAMS_H
24 #include "insets/insetquotes.h"
27 This class contains all the parameters for this a buffer uses. Some
28 work needs to be done on this class to make it nice. Now everything
33 //@Man: Constructors and Deconstructors
38 //BufferParams(const BufferParams&);
41 /// Dummy destructor to shut up gcc
42 virtual ~BufferParams() {}
45 void writeFile(FILE *);
49 void useClassDefaults();
52 VSpace getDefSkip() const { return defskip; }
55 void setDefSkip(VSpace vs) { defskip = vs; }
57 /** Wether paragraphs are separated by using a indent like in
58 articles or by using a little skip like in letters.
60 char paragraph_separation; // add approp. signedness
62 InsetQuotes::quote_language quotes_language;
64 InsetQuotes::quote_times quotes_times;
68 signed char textclass;
70 /* this are for the PaperLayout */
72 char papersize; /* the general papersize (papersize2 or paperpackage */ // add approp. signedness
74 char papersize2; /* the selected Geometry papersize */ // add approp. signedness
76 char paperpackage; /* a special paperpackage .sty-file */ // add approp. signedness
78 char orientation; // add approp. signedness
100 /* some LaTeX options */
101 /// The graphics driver
102 string graphicsDriver;
108 signed char secnumdepth;
110 signed char tocdepth;
120 string float_placement;
122 char columns; // add approp. signedness
124 char sides; // add approp. signedness
128 Bullet temp_bullets[4];
130 Bullet user_defined_bullets[4];
132 void Copy(BufferParams const &p);
134 virtual void readPreamble(LyXLex &);
136 virtual void readLanguage(LyXLex &);
138 virtual void readGraphicsDriver(LyXLex &);
139 /// do we allow accents on all chars in this buffer
143 /// Time ago we agreed that this was a buffer property [ale990407]
149 /** This is the amount of space used for paragraph_separation "skip",
150 and for detached paragraphs in "indented" documents. */