#ifndef LYX_LAYOUT_H
#define LYX_LAYOUT_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "lyxfont.h"
#include "layout.h"
#include "Spacing.h"
///
string const & obsoleted_by() const;
///
+ string const & depends_on() const;
+ ///
string const & latexname() const { return latexname_; }
///
string const & labelstring() const { return labelstring_; }
///
bool isEnvironment() const {
return (latextype == LATEX_ENVIRONMENT
+ || latextype == LATEX_BIB_ENVIRONMENT
|| latextype == LATEX_ITEM_ENVIRONMENT
|| latextype == LATEX_LIST_ENVIRONMENT);
}
LYX_LATEX_TYPES latextype;
/// Does this object belong in the title part of the document?
bool intitle;
+ /// Does this layout allow for an optional parameter?
+ int optionalargs;
+
private:
/// Name of the layout/paragraph environment
string name_;
*/
string obsoleted_by_;
+ /** Name of an layout which preamble must come before this one
+ This is used when the preamble snippet uses macros defined in
+ another preamble
+ */
+ string depends_on_;
+
/// LaTeX name for environment
string latexname_;