]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.h
Fix bug #12795
[lyx.git] / src / insets / InsetInclude.h
index a2542543e3be87ba7602749481e8018ccc790b17..d62c751abe785bd57754cd89f2e69cf770f36ebf 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Lars Gullik Bjønnes
- * \author Richard Heck (conversion to InsetCommand)
+ * \author Richard Kimberly Heck (conversion to InsetCommand)
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -15,8 +15,6 @@
 
 #include "InsetCommand.h"
 
-#include "RenderButton.h"
-
 #include "support/unique_ptr.h"
 
 
@@ -70,12 +68,14 @@ public:
        void setBuffer(Buffer & buffer) override;
        ///
        bool isLabeled() const override { return true; }
+       ///
+       bool inheritFont() const override;
        /// Override these InsetButton methods if Previewing
        void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
        void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       RowFlags rowFlags() const override;
+       int rowFlags() const override;
        ///
        InsetCode lyxCode() const override { return INCLUDE_CODE; }
        ///
@@ -168,8 +168,6 @@ private:
        ///
        mutable bool failedtoload_;
        /// cache
-       mutable bool set_label_;
-       mutable RenderButton button_;
        mutable docstring listings_label_;
        InsetLabel * label_;
        mutable Buffer * child_buffer_;