BOX_MINIPAGE = 2
};
+ enum CaptionType {
+ ///
+ CAPTION_FIRSTHEAD,
+ ///
+ CAPTION_HEAD,
+ ///
+ CAPTION_FOOT,
+ ///
+ CAPTION_LASTFOOT,
+ ///
+ CAPTION_ANY
+ };
+
class ltType {
public:
// constructor
///
bool isMultiColumn(idx_type cell) const;
///
- idx_type setMultiColumn(idx_type cell, idx_type number);
+ idx_type setMultiColumn(idx_type cell, idx_type number,
+ bool const right_border);
///
void unsetMultiColumn(idx_type cell);
///
///
bool isMultiRow(idx_type cell) const;
///
- idx_type setMultiRow(idx_type cell, idx_type number);
+ idx_type setMultiRow(idx_type cell, idx_type number,
+ bool const bottom_border);
///
void unsetMultiRow(idx_type cell);
///
//
// Long Tabular Options support functions
///
- bool checkLTType(row_type row, ltType const &) const;
- ///
void setLTHead(row_type row, bool flag, ltType const &, bool first);
///
bool getRowOfLTHead(row_type row, ltType &) const;
///
bool ltCaption(row_type row) const;
///
- bool haveLTHead() const;
+ bool haveLTHead(bool withcaptions = true) const;
///
- bool haveLTFirstHead() const;
+ bool haveLTFirstHead(bool withcaptions = true) const;
///
- bool haveLTFoot() const;
+ bool haveLTFoot(bool withcaptions = true) const;
///
- bool haveLTLastFoot() const;
+ bool haveLTLastFoot(bool withcaptions = true) const;
///
- bool haveLTCaption() const;
+ bool haveLTCaption(CaptionType captiontype = CAPTION_ANY) const;
///
// end longtable support
///
bool allowSpellCheck() const { return true; }
///
bool canTrackChanges() const { return true; }
- /** returns true if, when outputing LaTeX, font changes should
+ /** returns false if, when outputing LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
- bool noFontChange() const { return true; }
+ bool inheritFont() const { return false; }
///
DisplayType display() const;
///
///
InsetCode lyxCode() const { return TABULAR_CODE; }
///
- docstring contextMenu(BufferView const &, int, int) const;
+ std::string contextMenu(BufferView const &, int, int) const;
///
- docstring contextMenuName() const;
+ std::string contextMenuName() const;
/// get offset of this cursor slice relative to our upper left corner
void cursorPos(BufferView const & bv, CursorSlice const & sl,
bool boundary, int & x, int & y) const;