]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.h
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetBox.h
index 877dd603f5aab23bd3c7dbc1f54c7a016a720243..6dd671c9a4deaad01b8e0c1d7dc685a4b9e03c5f 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef INSETBOX_H
 #define INSETBOX_H
 
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
 #include "Length.h"
 
 
@@ -24,7 +24,7 @@ class InsetBoxParams
 {
 public:
        ///
-       InsetBoxParams(std::string const &);
+       explicit InsetBoxParams(std::string const &);
        ///
        void write(std::ostream & os) const;
        ///
@@ -74,7 +74,7 @@ public:
 ///////////////////////////////////////////////////////////////////////
 
 
-class InsetBox : public InsetCollapsable
+class InsetBox : public InsetCollapsible
 {
 public:
        ///
@@ -115,12 +115,17 @@ public:
        ///
        ColorCode backgroundColor(PainterInfo const &) const;
        ///
+       LyXAlignment contentAlignment() const;
+       ///
        bool allowParagraphCustomization(idx_type = 0) const { return !forcePlainLayout(); }
        ///
        bool allowMultiPar() const;
        ///
        bool forcePlainLayout(idx_type = 0) const;
        ///
+       bool needsCProtection(bool const maintext = false,
+                             bool const fragile = false) const;
+       ///
        bool neverIndent() const { return true; }
        ///
        bool inheritFont() const { return false; }
@@ -141,7 +146,7 @@ public:
        std::string contextMenuName() const;
        //@}
 
-       /// \name Public functions inherited from InsetCollapsable class
+       /// \name Public functions inherited from InsetCollapsible class
        //@{
        ///
        void setButtonLabel();