X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetScript.h;h=cd61117a3f47c6fdf04a53d574ffd32c66ae11a4;hb=23abb5aaa36af07aadfa5e565869104778ba0d6d;hp=c4b9445b2a0c04f0d6dac6ff27b276aa8b4eb480;hpb=33022ebb5a3b926601be5216a0cc9524e4c32cc3;p=lyx.git diff --git a/src/insets/InsetScript.h b/src/insets/InsetScript.h index c4b9445b2a..cd61117a3f 100644 --- a/src/insets/InsetScript.h +++ b/src/insets/InsetScript.h @@ -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; /// @@ -80,13 +90,16 @@ public: /// void read(Lexer & lex); /// - bool neverIndent() const { return true; } - /// bool forcePlainLayout(idx_type = 0) const { return true; } /// bool allowParagraphCustomization(idx_type = 0) const { return false; } /// - int plaintext(odocstream &, OutputParams const &) const; + bool neverIndent() const { return true; } + /// + bool inheritFont() const { return true; } + /// + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; /// @@ -126,6 +139,8 @@ private: friend class InsetScriptParams; /// InsetScriptParams params_; + /// The font of containing inset; this is necessary to compute shift + mutable FontInfo outer_font_; };