]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.h
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / mathed / InsetMathHull.h
index d5fc0f69df5d5792476c76e2cdf317d2a860b7c9..db4d2ff89cca83f0e7cd911559c139b0ff06ad80 100644 (file)
@@ -28,15 +28,15 @@ class RenderPreview;
 class InsetMathHull : public InsetMathGrid {
 public:
        ///
-       InsetMathHull();
+       InsetMathHull(Buffer * buf);
        ///
-       explicit InsetMathHull(HullType type);
+       InsetMathHull(Buffer * buf, HullType type);
        ///
        ~InsetMathHull();
        ///
        void setBuffer(Buffer &);
        ///
-       void updateLabels(ParIterator const &);
+       void updateLabels(ParIterator const &, bool);
        ///
        void addToToc(DocIterator const &);
        ///
@@ -58,7 +58,7 @@ public:
        ///
        void label(row_type row, docstring const & label);
        ///
-       ColorCode backgroundColor() const { return Color_mathbg; }
+       ColorCode backgroundColor(PainterInfo const &) const;
        ///
        void numbered(row_type row, bool num);
        ///
@@ -122,6 +122,8 @@ public:
        int plaintext(odocstream &, OutputParams const &) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
+       ///
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        /// the string that is passed to the TOC
        void tocString(odocstream &) const;
 
@@ -130,7 +132,12 @@ public:
        ///
        //bool insetAllowed(InsetCode code) const;
        ///
-       void addPreview(graphics::PreviewLoader &) const;
+       void addPreview(DocIterator const & inset_pos,
+               graphics::PreviewLoader &) const;
+       /// Prepare the preview if preview is enabled.
+       void preparePreview(DocIterator const & pos) const;
+       /// Recreates the preview if preview is enabled.
+       void reloadPreview(DocIterator const & pos) const;
        ///
        void initUnicodeMath() const;
 
@@ -142,6 +149,8 @@ public:
 
        ///
        virtual docstring contextMenu(BufferView const &, int, int) const;
+       ///
+       InsetCode lyxCode() const { return MATH_HULL_CODE; }
 
 protected:
        InsetMathHull(InsetMathHull const &);
@@ -152,7 +161,7 @@ protected:
        bool getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & status) const;
        ///
-       docstring eolString(row_type row, bool emptyline, bool fragile) const;
+       docstring eolString(row_type row, bool fragile) const;
 
 private:
        virtual Inset * clone() const;
@@ -205,8 +214,6 @@ private:
 // Incorporate me
 //
 public:
-       /// what appears in the minibuffer when opening
-       docstring editMessage() const;
        ///
        virtual void mutateToText();
        ///
@@ -220,8 +227,6 @@ public:
        Inset * editXY(Cursor & cur, int x, int y);
        ///
        DisplayType display() const;
-       ///
-       InsetCode lyxCode() const;
 
 protected:
        ///