1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995 Matthias Ettrich
|
1999-10-02 16:21:10 +00:00
|
|
|
* Copyright (C) 1995-1999 the LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
*======================================================*/
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
#ifndef LATEXFEATURES_H
|
|
|
|
#define LATEXFEATURES_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
class BufferParams;
|
|
|
|
class LyXTextClass;
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/** The packages and commands that a buffer needs. This struct
|
|
|
|
contains an entry for each of the latex packages and
|
|
|
|
commands that a buffer might need. This struct is supposed to be
|
|
|
|
extended as the need arises. Remember to update the validate function
|
|
|
|
in buffer.C and paragraph.C when you do so. */
|
|
|
|
struct LaTeXFeatures {
|
|
|
|
///
|
|
|
|
LaTeXFeatures(int n) ;
|
|
|
|
///
|
|
|
|
~LaTeXFeatures() {
|
|
|
|
delete[] layout;
|
|
|
|
}
|
|
|
|
/// The packaes needed by the document
|
1999-10-02 16:21:10 +00:00
|
|
|
string getPackages(BufferParams const ¶ms);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// The macros definitions needed by the document
|
1999-10-02 16:21:10 +00:00
|
|
|
string getMacros(BufferParams const ¶ms);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// The definitions needed by the document's textclass
|
1999-10-02 16:21:10 +00:00
|
|
|
string getTClassPreamble(BufferParams const ¶ms);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
void showStruct(BufferParams ¶ms);
|
|
|
|
|
|
|
|
//@Man: Packages
|
|
|
|
//@{
|
|
|
|
///
|
|
|
|
bool color; // color.sty
|
|
|
|
///
|
|
|
|
bool graphics; // graphics.sty
|
|
|
|
///
|
|
|
|
bool setspace; // setspace.sty
|
|
|
|
///
|
|
|
|
bool makeidx; // makeind.sty
|
|
|
|
///
|
|
|
|
bool verbatim; // verbatim.sty
|
|
|
|
///
|
|
|
|
bool longtable; // longtable.sty
|
|
|
|
///
|
|
|
|
bool algorithm; // algorithm.sty
|
|
|
|
///
|
|
|
|
bool rotating; // rotating.sty
|
|
|
|
///
|
|
|
|
bool amssymb; // amssymb.sty
|
|
|
|
///
|
|
|
|
bool latexsym; // latexsym.sty
|
|
|
|
///
|
|
|
|
bool pifont; // pifont.sty
|
|
|
|
///
|
|
|
|
bool subfigure; // subfigure.sty
|
|
|
|
///
|
|
|
|
bool floatflt; // floatflt.sty
|
|
|
|
///
|
|
|
|
bool url; // url.sty
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
|
|
|
//@Man: Commands
|
|
|
|
//@{
|
|
|
|
///
|
|
|
|
bool lyx;
|
|
|
|
///
|
|
|
|
bool lyxline;
|
|
|
|
/// \noun
|
|
|
|
bool noun;
|
|
|
|
/// \lyxarrow
|
|
|
|
bool lyxarrow;
|
|
|
|
//@}
|
|
|
|
|
|
|
|
//@Man: Quotes
|
|
|
|
//@{
|
|
|
|
///
|
|
|
|
bool quotesinglbase;
|
|
|
|
///
|
|
|
|
bool quotedblbase;
|
|
|
|
///
|
|
|
|
bool guilsinglleft;
|
|
|
|
///
|
|
|
|
bool guilsinglright;
|
|
|
|
///
|
|
|
|
bool guillemotleft;
|
|
|
|
///
|
|
|
|
bool guillemotright;
|
|
|
|
//@}
|
|
|
|
|
|
|
|
//@Man: Math mode
|
|
|
|
//@{
|
|
|
|
///
|
|
|
|
bool amsstyle;
|
|
|
|
///
|
|
|
|
bool boldsymbol;
|
|
|
|
///
|
|
|
|
bool binom;
|
|
|
|
//@}
|
|
|
|
|
|
|
|
//@Man: Layouts
|
|
|
|
//@{
|
|
|
|
bool *layout;
|
|
|
|
//@}
|
|
|
|
|
|
|
|
//@Man: Special features
|
|
|
|
//@{
|
|
|
|
bool LyXParagraphIndent;
|
|
|
|
///
|
|
|
|
bool NeedLyXFootnoteCode;
|
|
|
|
///
|
|
|
|
bool NeedLyXMinipageIndent;
|
|
|
|
//@}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|