virtual bool notifyCursorLeaves(Cursor &);
/// Remove cell (starting from 0)
- void removeArgument(size_t pos);
+ void removeArgument(pos_type pos);
/// Insert empty cell (starting from 0)
- void insertArgument(size_t pos);
+ void insertArgument(pos_type pos);
///
void validate(LaTeXFeatures &) const;
///
- void MathMacro::write(WriteStream & os) const;
+ void write(WriteStream & os) const;
///
void maple(MapleStream &) const;
///
enum DisplayMode {
DISPLAY_INIT,
+ DISPLAY_NONGREEDY_INIT,
DISPLAY_UNFOLDED,
DISPLAY_NORMAL,
};
}
///
- int optionals() const { return optionals_; }
+ size_t optionals() const { return optionals_; }
///
void setOptionals(int n) {
if (n <= int(nargs()))
protected:
friend class MathData;
friend class ArgumentProxy;
+ friend class Cursor;
/// update the display mode (should only be called after detaching arguments)
void setDisplayMode(DisplayMode mode);
/// number of arguments that were really attached
size_t attachedArgsNum_;
/// cursor position during last draw
- int previousCurIdx_;
+ idx_type previousCurIdx_;
/// optional argument attached? (only in DISPLAY_NORMAL mode)
- int optionals_;
+ size_t optionals_;
/// fold mode to be set in next metrics call?
bool nextFoldMode_;
/// if macro_ == true, then here is a copy of the macro