]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.h
Fix bug #12795
[lyx.git] / src / insets / InsetInclude.h
index 5a9958cec8962d58231c8baffe5bb8b798e4a0a4..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.
  */
 
 #include "InsetCommand.h"
 
-#include "RenderButton.h"
-
 #include "support/unique_ptr.h"
 
 
 namespace lyx {
 
-class BiblioInfo;
 class Buffer;
 class Dimension;
 class InsetCommandParams;
@@ -71,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; }
        ///
@@ -169,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_;