]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPreview.h
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetPreview.h
index d6d693da756fad16be93aaa4adb5ee06f351b2ad..6a9d29043c4e9d678b498a39a8b83441cda33f11 100644 (file)
@@ -29,10 +29,10 @@ namespace graphics {
 
 /// An inset with an instant preview
 class InsetPreview : public InsetText {
-       
+
 public:
        ///
-       InsetPreview(Buffer *);
+       explicit InsetPreview(Buffer *);
        ///
        ~InsetPreview();
        ///
@@ -45,11 +45,13 @@ public:
        Inset * clone() const { return new InsetPreview(*this); }
 
        bool neverIndent() const { return true; }
-       
+
+       bool inheritFont() const { return false; }
+
        InsetCode lyxCode() const { return PREVIEW_CODE; }
-       
+
        docstring layoutName() const { return from_ascii("Preview"); }
-       
+
        bool descendable(BufferView const & /*bv*/) const { return true; }
 
        std::string contextMenuName() const
@@ -69,8 +71,10 @@ public:
        void write(std::ostream & os) const;
 
        void edit(Cursor & cur, bool front, EntryDirection entry_from);
+
+       bool canPaintChange(BufferView const &) const { return true; };
        //@}
-       
+
 protected:
        /// Retrieves the preview state. Returns true if preview
        /// is enabled and the preview image is availabled.