]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlayout.h
Minimal fix needed to give Qt a label dialog again.
[lyx.git] / src / lyxlayout.h
index 2566ece2ede3d49a0c1d05e7bdd27e288f96cf37..1aafb4a11476ecbbe641f1d60faced8ab5b493c8 100644 (file)
 #ifndef LYX_LAYOUT_H
 #define LYX_LAYOUT_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "lyxfont.h"
 #include "layout.h"
 #include "Spacing.h"
@@ -181,6 +177,7 @@ public:
        ///
        bool isEnvironment() const {
                return (latextype == LATEX_ENVIRONMENT
+                       || latextype == LATEX_BIB_ENVIRONMENT
                        || latextype == LATEX_ITEM_ENVIRONMENT
                        || latextype == LATEX_LIST_ENVIRONMENT);
        }
@@ -188,6 +185,9 @@ public:
        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_;