]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.h
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetScript.h
index 84ed50e1b12a09c94749556d8a98004b44fecc49..cd61117a3f47c6fdf04a53d574ffd32c66ae11a4 100644 (file)
@@ -68,6 +68,16 @@ public:
        docstring layoutName() const;
        ///
        DisplayType display() const;
+
+       ///
+       int topOffset(BufferView const *) const { return 0; }
+       ///
+       int bottomOffset(BufferView const *) const { return 0; }
+       ///
+       int leftOffset(BufferView const *) const { return 0; }
+       ///
+       int rightOffset(BufferView const *) const { return 0; }
+
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -82,8 +92,12 @@ public:
        ///
        bool forcePlainLayout(idx_type = 0) const { return true; }
        ///
+       bool allowParagraphCustomization(idx_type = 0) const { return false; }
+       ///
        bool neverIndent() const { return true; }
        ///
+       bool inheritFont() const { return true; }
+       ///
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
@@ -125,6 +139,8 @@ private:
        friend class InsetScriptParams;
        ///
        InsetScriptParams params_;
+       /// The font of containing inset; this is necessary to compute shift
+       mutable FontInfo outer_font_;
 };