Row::Row()
: separator(0), label_hfill(0), x(0),
- sel_beg(-1), sel_end(-1), changed_(false), crc_(0),
- pos_(0), end_(0), left_margin_sel(false), right_margin_sel(false)
-{}
-
-
-Row::Row(pos_type pos)
- : separator(0), label_hfill(0), x(0),
- sel_beg(-1), sel_end(-1), changed_(false), crc_(0),
- pos_(0), end_(0), left_margin_sel(false), right_margin_sel(false)
+ sel_beg(-1), sel_end(-1),
+ left_margin_sel(false), right_margin_sel(false),
+ changed_(false), crc_(0), pos_(0), end_(0)
{}
}
-bool Row::isMarginSelected(bool margin_begin, DocIterator const & beg,
- DocIterator const & end) const
+bool Row::isMarginSelected(bool left_margin, DocIterator const & beg,
+ DocIterator const & end) const
{
- pos_type const sel_pos = margin_begin ? sel_beg : sel_end;
- pos_type const margin_pos = margin_begin ? pos_ : end_;
+ pos_type const sel_pos = left_margin ? sel_beg : sel_end;
+ pos_type const margin_pos = left_margin ? pos_ : end_;
// Is the chosen margin selected ?
if (sel_pos == margin_pos) {
void Row::setSelectionAndMargins(DocIterator const & beg,
- DocIterator const & end) const
+ DocIterator const & end) const
{
setSelection(beg.pos(), end.pos());