// -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxlayout.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ * \author André Pönitz
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
#ifndef LYX_LAYOUT_H
#define LYX_LAYOUT_H
/// Text that dictates how wide the left margin is on the screen
string leftmargin;
-
/// Text that dictates how wide the right margin is on the screen
string rightmargin;
-
/// Text that dictates how much space to leave after a potential label
string labelsep;
-
/// Text that dictates how much space to leave before a potential label
string labelindent;
-
- /** Text that dictates the width of the indentation of
- indented paragraphs.
- */
+ /// Text that dictates the width of the indentation of indented pars
string parindent;
-
///
float parskip;
-
///
float itemsep;
-
///
float topsep;
-
///
float bottomsep;
-
///
float labelbottomsep;
-
///
float parsep;
-
///
Spacing spacing;
-
///
LyXAlignment align;
-
///
LyXAlignment alignpossible;
-
///
- char labeltype; // add approp. type
-
+ LYX_LABEL_TYPES labeltype;
///
LYX_END_LABEL_TYPES endlabeltype;
-
///
LYX_MARGIN_TYPE margintype;
-
///
bool fill_top;
-
///
bool fill_bottom;
-
///
bool newline_allowed;
-
///
bool nextnoindent;
-
///
bool free_spacing;
-
///
bool pass_thru;
+ ///
+ bool is_environment;
+ /// for new environment insets
+ string latexheader;
+ /// for new environment insets
+ string latexfooter;
+ /// for new environment insets
+ string latexparagraph;
/** true when the fragile commands in the paragraph need to be
\protect'ed. */
///
bool isEnvironment() const {
return (latextype == LATEX_ENVIRONMENT
+ || latextype == LATEX_BIB_ENVIRONMENT
|| latextype == LATEX_ITEM_ENVIRONMENT
|| latextype == LATEX_LIST_ENVIRONMENT);
}
/// LaTeX name for environment
string latexname_;
-
/// Label string. "Abstract", "Reference", "Caption"...
string labelstring_;
-
///
string endlabelstring_;
-
/// Label string inside appendix. "Appendix", ...
string labelstring_appendix_;
-
/// LaTeX parameter for environment
string latexparam_;
-
/// Macro definitions needed for this layout
string preamble_;
};