namespace lyx {
class Buffer;
-class BufferParams;
class BufferView;
class CompletionList;
class CursorSlice;
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();
///
void drawSelection(PainterInfo & pi, int x, int y) const;
///
- docstring editMessage() const;
- ///
bool editable() const { return true; }
///
bool hasSettings() const { return true; }
///
int docbook(odocstream &, OutputParams const &) const;
///
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ ///
void validate(LaTeXFeatures & features) const;
///
InsetCode lyxCode() const { return TABULAR_CODE; }
/// set the change for the entire inset
void setChange(Change const & change);
/// accept the changes within the inset
- void acceptChanges(BufferParams const & bparams);
+ void acceptChanges();
/// reject the changes within the inset
- void rejectChanges(BufferParams const & bparams);
+ void rejectChanges();
// this should return true if we have a "normal" cell, otherwise false.
// "normal" means without width set!
///
virtual bool forcePlainLayout(idx_type cell = 0) const;
///
- virtual bool usePlainLayout() { return true; }
- ///
- 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() 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;