#include <iosfwd>
#include <vector>
+
+namespace lyx {
+
class InsetTabular;
class LCursor;
class OutputParams;
///
DELETE_COLUMN,
///
+ COPY_ROW,
+ ///
+ COPY_COLUMN,
+ ///
TOGGLE_LINE_TOP,
///
TOGGLE_LINE_BOTTOM,
row_type rows_arg);
/// Returns true if there is a topline, returns false if not
- bool topLine(idx_type cell, bool onlycolumn = false) const;
+ bool topLine(idx_type cell, bool wholerow = false) const;
/// Returns true if there is a topline, returns false if not
- bool bottomLine(idx_type cell, bool onlycolumn = false) const;
+ bool bottomLine(idx_type cell, bool wholerow = false) const;
/// Returns true if there is a topline, returns false if not
- bool leftLine(idx_type cell, bool onlycolumn = false) const;
+ bool leftLine(idx_type cell, bool wholecolumn = false) const;
/// Returns true if there is a topline, returns false if not
- bool rightLine(idx_type cell, bool onlycolumn = false) const;
+ bool rightLine(idx_type cell, bool wholecolumn = false) const;
///
bool topAlreadyDrawn(idx_type cell) const;
///
void setAllLines(idx_type cell, bool line);
///
- void setTopLine(idx_type cell, bool line, bool onlycolumn = false);
+ void setTopLine(idx_type cell, bool line, bool wholerow = false);
///
- void setBottomLine(idx_type cell, bool line, bool onlycolumn = false);
+ void setBottomLine(idx_type cell, bool line, bool wholerow = false);
///
- void setLeftLine(idx_type cell, bool line, bool onlycolumn = false);
+ void setLeftLine(idx_type cell, bool line, bool wholecolumn = false);
///
- void setRightLine(idx_type cell, bool line, bool onlycolumn = false);
+ void setRightLine(idx_type cell, bool line, bool wholecolumn = false);
///
void setAlignment(idx_type cell, LyXAlignment align,
bool onlycolumn = false);
///
void deleteRow(row_type row);
///
+ void copyRow(BufferParams const &, row_type);
+ ///
void appendColumn(BufferParams const &, idx_type cell);
///
void deleteColumn(col_type column);
///
+ void copyColumn(BufferParams const &, col_type);
+ ///
bool isFirstCellInRow(idx_type cell) const;
///
idx_type getFirstCellInRow(row_type row) const;
///
void read(Buffer const &, LyXLex &);
///
- int latex(Buffer const &, std::ostream &,
- OutputParams const &) const;
+ int latex(Buffer const &, odocstream &, OutputParams const &) const;
//
- int docbook(Buffer const & buf, std::ostream & os,
- OutputParams const &) const;
+ int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
///
- int plaintext(Buffer const &, std::ostream &,
+ int plaintext(Buffer const &, odocstream &,
OutputParams const & runparams,
int const depth,
bool onlydata, unsigned char delim) const;
///
// helper function for Latex returns number of newlines
///
- int TeXTopHLine(std::ostream &, row_type row) const;
+ int TeXTopHLine(odocstream &, row_type row) const;
///
- int TeXBottomHLine(std::ostream &, row_type row) const;
+ int TeXBottomHLine(odocstream &, row_type row) const;
///
- int TeXCellPreamble(std::ostream &, idx_type cell) const;
+ int TeXCellPreamble(odocstream &, idx_type cell) const;
///
- int TeXCellPostamble(std::ostream &, idx_type cell) const;
+ int TeXCellPostamble(odocstream &, idx_type cell) const;
///
- int TeXLongtableHeaderFooter(std::ostream &, Buffer const & buf,
+ int TeXLongtableHeaderFooter(odocstream &, Buffer const & buf,
OutputParams const &) const;
///
bool isValidRow(row_type const row) const;
///
- int TeXRow(std::ostream &, row_type const row, Buffer const & buf,
+ int TeXRow(odocstream &, row_type const row, Buffer const & buf,
OutputParams const &) const;
///
// helper function for ASCII returns number of newlines
///
- int asciiTopHLine(std::ostream &, row_type row,
+ int asciiTopHLine(odocstream &, row_type row,
std::vector<unsigned int> const &) const;
///
- int asciiBottomHLine(std::ostream &, row_type row,
+ int asciiBottomHLine(odocstream &, row_type row,
std::vector<unsigned int> const &) const;
///
- int asciiPrintCell(Buffer const &, std::ostream &,
+ int asciiPrintCell(Buffer const &, odocstream &,
OutputParams const &,
idx_type cell, row_type row, col_type column,
std::vector<unsigned int> const &,
bool onlydata) const;
/// auxiliary function for docbook
- int docbookRow(Buffer const & buf, std::ostream & os, row_type,
+ int docbookRow(Buffer const & buf, odocstream & os, row_type,
OutputParams const &) const;
private:
void fixCellNums();
};
+
+} // namespace lyx
+
#endif