]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.h
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetTabular.h
index 9ac05fa489cbaac663ff102dad1779e5f54516b3..922e13ae3191b11b154239c8fdb2d6a8ec2e03d8 100644 (file)
@@ -55,6 +55,7 @@ class InsetTableCell;
 class FuncStatus;
 class Lexer;
 class Paragraph;
+class XHTMLStream;
 
 namespace frontend { class Painter; }
 
@@ -256,7 +257,7 @@ public:
        static const idx_type npos = static_cast<idx_type>(-1);
 
        /// constructor
-       Tabular(Buffer &, col_type columns_arg, row_type rows_arg);
+       Tabular(Buffer * buf, col_type columns_arg, row_type rows_arg);
 
        /// Returns true if there is a topline, returns false if not
        bool topLine(idx_type cell) const;
@@ -368,9 +369,11 @@ public:
        void read(Lexer &);
        ///
        int latex(odocstream &, OutputParams const &) const;
-       //
+       ///
        int docbook(odocstream & os, OutputParams const &) const;
        ///
+       docstring xhtml(XHTMLStream & os, OutputParams const &) const;
+       ///
        void plaintext(odocstream &,
                       OutputParams const & runparams, int const depth,
                       bool onlydata, char_type delim) const;
@@ -465,7 +468,7 @@ public:
        class CellData {
        public:
                ///
-               CellData(Buffer &);
+               CellData(Buffer *);
                ///
                CellData(CellData const &);
                ///
@@ -598,7 +601,7 @@ public:
        ltType endlastfoot;
 
        ///
-       void init(Buffer &, row_type rows_arg,
+       void init(Buffer *, row_type rows_arg,
                  col_type columns_arg);
        ///
        void updateIndexes();
@@ -645,6 +648,8 @@ public:
                                bool onlydata) const;
        /// auxiliary function for docbook
        int docbookRow(odocstream & os, row_type, OutputParams const &) const;
+       ///
+       docstring xhtmlRow(XHTMLStream & xs, row_type, OutputParams const &) const;
 
        /// change associated Buffer
        void setBuffer(Buffer & buffer);
@@ -662,7 +667,7 @@ class InsetTableCell : public InsetText
 {
 public:
        ///
-       InsetTableCell(Buffer & buf);
+       InsetTableCell(Buffer * buf);
        ///
        InsetCode lyxCode() const { return CELL_CODE; }
        ///
@@ -677,6 +682,8 @@ public:
        /// writes the contents of the cell as a string, optionally
        /// descending into insets
        docstring asString(bool intoInsets = true);
+       ///
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
 private:
        /// unimplemented
        InsetTableCell();
@@ -729,7 +736,7 @@ class InsetTabular : public Inset
 {
 public:
        ///
-       InsetTabular(Buffer &, row_type rows = 1,
+       InsetTabular(Buffer *, row_type rows = 1,
                     col_type columns = 1);
        ///
        ~InsetTabular();
@@ -773,6 +780,8 @@ public:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
        ///
        InsetCode lyxCode() const { return TABULAR_CODE; }
@@ -813,7 +822,8 @@ public:
        ///
        virtual bool forcePlainLayout(idx_type cell = 0) const;
        ///
-       void addPreview(graphics::PreviewLoader &) const;
+       void addPreview(DocIterator const & inset_pos,
+               graphics::PreviewLoader &) const;
 
        /// lock cell with given index
        void edit(Cursor & cur, bool front, EntryDirection entry_from);
@@ -824,9 +834,9 @@ public:
        ///
        Inset * editXY(Cursor & cur, int x, int y);
        /// can we go further down on mouse click?
-       bool descendable() const { return true; }
+       bool descendable(BufferView const &) const { return true; }
        // Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &);
+       void updateLabels(ParIterator const &, bool);
 
        ///
        bool completionSupported(Cursor const &) const;