1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-11-04 01:40:20 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-1999 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-04 01:40:20 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
#ifndef BUFFERPARAMS_H
|
|
|
|
#define BUFFERPARAMS_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
#include "lyxlex.h"
|
|
|
|
#include "vspace.h"
|
|
|
|
#include "Spacing.h"
|
|
|
|
#include "Bullet.h"
|
|
|
|
#include "insets/insetquotes.h"
|
1999-11-04 01:40:20 +00:00
|
|
|
#include "layout.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
This class contains all the parameters for this a buffer uses. Some
|
|
|
|
work needs to be done on this class to make it nice. Now everything
|
|
|
|
is in public.
|
|
|
|
*/
|
|
|
|
class BufferParams {
|
|
|
|
public:
|
|
|
|
//@Man: Constructors and Deconstructors
|
|
|
|
//@{
|
|
|
|
///
|
|
|
|
BufferParams();
|
|
|
|
//@}
|
|
|
|
|
|
|
|
/// Dummy destructor to shut up gcc
|
|
|
|
virtual ~BufferParams() {}
|
|
|
|
|
|
|
|
///
|
|
|
|
void writeFile(FILE *);
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
void useClassDefaults();
|
|
|
|
|
|
|
|
///
|
|
|
|
VSpace getDefSkip() const { return defskip; }
|
|
|
|
|
|
|
|
///
|
|
|
|
void setDefSkip(VSpace vs) { defskip = vs; }
|
|
|
|
|
|
|
|
/** Wether paragraphs are separated by using a indent like in
|
|
|
|
articles or by using a little skip like in letters.
|
|
|
|
*/
|
|
|
|
char paragraph_separation; // add approp. signedness
|
|
|
|
///
|
|
|
|
InsetQuotes::quote_language quotes_language;
|
|
|
|
///
|
|
|
|
InsetQuotes::quote_times quotes_times;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string fontsize;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXTextClassList::ClassList::size_type textclass;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/* this are for the PaperLayout */
|
|
|
|
///
|
|
|
|
char papersize; /* the general papersize (papersize2 or paperpackage */ // add approp. signedness
|
|
|
|
///
|
|
|
|
char papersize2; /* the selected Geometry papersize */ // add approp. signedness
|
|
|
|
///
|
|
|
|
char paperpackage; /* a special paperpackage .sty-file */ // add approp. signedness
|
|
|
|
///
|
|
|
|
char orientation; // add approp. signedness
|
|
|
|
///
|
|
|
|
bool use_geometry;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string paperwidth;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string paperheight;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string leftmargin;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string topmargin;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string rightmargin;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string bottommargin;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string headheight;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string headsep;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string footskip;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/* some LaTeX options */
|
|
|
|
/// The graphics driver
|
1999-10-02 16:21:10 +00:00
|
|
|
string graphicsDriver;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string fonts;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
Spacing spacing;
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
int secnumdepth;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
int tocdepth;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string language;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string inputenc;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string preamble;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string options;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string float_placement;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
unsigned int columns;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXTextClass::PageSides sides;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string pagestyle;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
Bullet temp_bullets[4];
|
|
|
|
///
|
|
|
|
Bullet user_defined_bullets[4];
|
|
|
|
///
|
|
|
|
void Copy(BufferParams const &p);
|
|
|
|
///
|
|
|
|
virtual void readPreamble(LyXLex &);
|
|
|
|
///
|
|
|
|
virtual void readLanguage(LyXLex &);
|
|
|
|
///
|
|
|
|
virtual void readGraphicsDriver(LyXLex &);
|
|
|
|
/// do we allow accents on all chars in this buffer
|
|
|
|
bool allowAccents;
|
|
|
|
///
|
|
|
|
bool use_amsmath;
|
|
|
|
/// Time ago we agreed that this was a buffer property [ale990407]
|
1999-10-02 16:21:10 +00:00
|
|
|
string parentname;
|
1999-09-27 18:44:28 +00:00
|
|
|
protected:
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
friend class Buffer;
|
|
|
|
/** This is the amount of space used for paragraph_separation "skip",
|
|
|
|
and for detached paragraphs in "indented" documents. */
|
|
|
|
VSpace defskip;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|