class FuncStatus;
class Lexer;
class Paragraph;
+class XHTMLStream;
namespace frontend { class Painter; }
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;
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;
class CellData {
public:
///
- CellData(Buffer &);
+ CellData(Buffer *);
///
CellData(CellData const &);
///
ltType endlastfoot;
///
- void init(Buffer &, row_type rows_arg,
+ void init(Buffer *, row_type rows_arg,
col_type columns_arg);
///
void updateIndexes();
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);
{
public:
///
- InsetTableCell(Buffer & buf);
+ InsetTableCell(Buffer * buf);
///
InsetCode lyxCode() const { return CELL_CODE; }
///
/// 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();
{
public:
///
- InsetTabular(Buffer &, row_type rows = 1,
+ InsetTabular(Buffer *, row_type rows = 1,
col_type columns = 1);
///
~InsetTabular();
///
int docbook(odocstream &, OutputParams const &) const;
///
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ ///
void validate(LaTeXFeatures & features) const;
///
InsetCode lyxCode() const { return TABULAR_CODE; }
///
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);
///
Inset * editXY(Cursor & cur, int x, int y);
/// can we go further down on mouse click?
- bool descendable(BufferView const & ) 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;