]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.h
New DocBook support
[lyx.git] / src / insets / InsetScript.h
index eaec3c97c981a3f74f8e21531ddf112840ffce9b..45e766f943a9fc6388f941f2d3aa3d2231c830fc 100644 (file)
@@ -66,8 +66,16 @@ public:
        InsetCode lyxCode() const { return SCRIPT_CODE; }
        ///
        docstring layoutName() const;
+
+       ///
+       int topOffset(BufferView const *) const { return 0; }
+       ///
+       int bottomOffset(BufferView const *) const { return 0; }
        ///
-       DisplayType display() const;
+       int leftOffset(BufferView const *) const { return 0; }
+       ///
+       int rightOffset(BufferView const *) const { return 0; }
+
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -80,21 +88,18 @@ 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; }
        ///
-       virtual void validate(LaTeXFeatures &) const;
-       ///
-       void latex(otexstream &, OutputParams const &) const;
+       bool neverIndent() const { return true; }
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       bool inheritFont() const { return true; }
        ///
-       int docbook(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       void docbook(XMLStream &, OutputParams const &) const;
        ///
        void edit(Cursor & cur, bool front,
                  EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
@@ -132,6 +137,8 @@ private:
        friend class InsetScriptParams;
        ///
        InsetScriptParams params_;
+       /// The font of containing inset; this is necessary to compute shift
+       mutable FontInfo outer_font_;
 };