]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPreview.h
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetPreview.h
index f2bfdd535f6bb28f14bb54cbf877373a8ef07203..123d947c99b8428e354edbbfa541284b1bab0eef 100644 (file)
@@ -32,7 +32,7 @@ class InsetPreview : public InsetText {
 
 public:
        ///
-       InsetPreview(Buffer *);
+       explicit InsetPreview(Buffer *);
        ///
        ~InsetPreview();
        ///
@@ -46,6 +46,8 @@ public:
 
        bool neverIndent() const { return true; }
 
+       bool inheritFont() const { return false; }
+
        InsetCode lyxCode() const { return PREVIEW_CODE; }
 
        docstring layoutName() const { return from_ascii("Preview"); }
@@ -75,7 +77,7 @@ public:
 
 protected:
        /// Retrieves the preview state. Returns true if preview
-       /// is enabled and the preview image is availabled.
+       /// is enabled and the preview image is available.
        bool previewState(BufferView * bv) const;
        /// Recreates the preview if preview is enabled.
        void reloadPreview(DocIterator const & pos) const;