///
MathHullInset();
///
- explicit MathHullInset(string const & type);
+ explicit MathHullInset(std::string const & type);
///
virtual std::auto_ptr<InsetBase> clone() const;
///
///
void drawT(TextPainter &, int x, int y) const;
///
- string label(row_type row) const;
+ std::string label(row_type row) const;
///
- void label(row_type row, string const & label);
+ void label(row_type row, std::string const & label);
///
void numbered(row_type row, bool num);
///
bool display() const;
///
bool ams() const;
- /// local dispatcher
- dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
- ///
- void getLabelList(std::vector<string> &) const;
+ /// Appends \c list with all labels found within this inset.
+ void getLabelList(Buffer const &,
+ std::vector<std::string> & list) const;
///
void validate(LaTeXFeatures & features) const;
/// identifies MatrixInsets
void addRow(row_type row);
/// delete a row
void delRow(row_type row);
+ ///
+ void swapRow(row_type row);
/// add a column
void addCol(col_type col);
/// delete a column
void delCol(col_type col);
/// get type
- string const & getType() const;
+ std::string const & getType() const;
/// change type
- void mutate(string const &);
+ void mutate(std::string const &);
///
int defaultColSpace(col_type col);
///
char defaultColAlign(col_type col);
///
- bool idxFirst(idx_type &, pos_type &) const;
+ bool idxFirst(BufferView &) const;
///
- bool idxLast(idx_type &, pos_type &) const;
+ bool idxLast(BufferView &) const;
///
- string fileInsetLabel() const;
+ std::string fileInsetLabel() const;
///
void write(WriteStream & os) const;
///
protected:
///
- string eolString(row_type row, bool fragile) const;
+ virtual
+ DispatchResult
+ priv_dispatch(BufferView & bv, FuncRequest const & cmd);
+ ///
+ std::string eolString(row_type row, bool fragile) const;
private:
///
- void setType(string const & type);
+ void setType(std::string const & type);
///
void validate1(LaTeXFeatures & features);
///
///
void footer_write(WriteStream &) const;
///
- string nicelabel(row_type row) const;
+ std::string nicelabel(row_type row) const;
///
- void doExtern(FuncRequest const & func, idx_type & idx, pos_type & pos);
+ void doExtern(FuncRequest const & func, BufferView &);
///
void glueall();
///
bool colChangeOK() const;
/// "none", "simple", "display", "eqnarray",...
- string type_;
+ std::string type_;
///
std::vector<int> nonum_;
///
- std::vector<string> label_;
+ std::vector<std::string> label_;
};
#endif