LibreOffice Module sc (master) 1
|
Keep track of spans in a single column only. More...
#include <columnspanset.hxx>
Public Types | |
typedef mdds::flat_segment_tree< SCROW, bool > | ColumnSpansType |
typedef std::vector< RowSpan > | SpansType |
Public Member Functions | |
SingleColumnSpanSet (ScSheetLimits const &) | |
void | scan (const ScColumn &rColumn) |
Scan an entire column and tag all non-empty cell positions. More... | |
void | scan (const ScColumn &rColumn, SCROW nStart, SCROW nEnd) |
Scan a column between specified range, and tag all non-empty cell positions. More... | |
void | scan (ColumnBlockConstPosition &rBlockPos, const ScColumn &rColumn, SCROW nStart, SCROW nEnd) |
void | scan (const ScMarkData &rMark, SCTAB nTab, SCCOL nCol) |
Scan all marked data and tag all marked segments in specified column. More... | |
void | scan (const ScRangeList &rRanges, SCTAB nTab, SCCOL nCol) |
void | set (SCROW nRow1, SCROW nRow2, bool bVal) |
void | getRows (std::vector< SCROW > &rRows) const |
void | getSpans (SpansType &rSpans) const |
void | swap (SingleColumnSpanSet &r) |
bool | empty () const |
Whether there isn't any row tagged. More... | |
Private Attributes | |
ScSheetLimits const & | mrSheetLimits |
ColumnSpansType | maSpans |
Keep track of spans in a single column only.
Definition at line 113 of file columnspanset.hxx.
typedef mdds::flat_segment_tree<SCROW, bool> sc::SingleColumnSpanSet::ColumnSpansType |
Definition at line 116 of file columnspanset.hxx.
typedef std::vector<RowSpan> sc::SingleColumnSpanSet::SpansType |
Definition at line 118 of file columnspanset.hxx.
sc::SingleColumnSpanSet::SingleColumnSpanSet | ( | ScSheetLimits const & | rSheetLimits | ) |
Definition at line 248 of file columnspanset.cxx.
bool sc::SingleColumnSpanSet::empty | ( | ) | const |
Whether there isn't any row tagged.
Definition at line 342 of file columnspanset.cxx.
References ScSheetLimits::GetMaxRowCount(), maSpans, and mrSheetLimits.
Referenced by ScColumn::UpdateSelectionFunction().
void sc::SingleColumnSpanSet::getRows | ( | std::vector< SCROW > & | rRows | ) | const |
Definition at line 316 of file columnspanset.cxx.
References getSpans().
Referenced by ScColumn::BroadcastRows().
void sc::SingleColumnSpanSet::getSpans | ( | SpansType & | rSpans | ) | const |
Definition at line 331 of file columnspanset.cxx.
References maSpans.
Referenced by ScColumn::CopyFromClip(), ScColumn::CopyUpdated(), ScColumn::DeleteBeforeCopyFromClip(), ScColumn::GetOptimalColWidth(), ScColumn::GetOptimalHeight(), getRows(), ScColumn::MoveTo(), sc::ColumnSpanSet::set(), and ScColumn::UpdateSelectionFunction().
void sc::SingleColumnSpanSet::scan | ( | ColumnBlockConstPosition & | rBlockPos, |
const ScColumn & | rColumn, | ||
SCROW | nStart, | ||
SCROW | nEnd | ||
) |
Definition at line 275 of file columnspanset.cxx.
References ScColumn::GetLastDataPos(), ScColumn::maCells, maSpans, sc::ColumnBlockConstPosition::miCellPos, and sc::ParseBlock().
void sc::SingleColumnSpanSet::scan | ( | const ScColumn & | rColumn | ) |
Scan an entire column and tag all non-empty cell positions.
Definition at line 252 of file columnspanset.cxx.
References sc::element_type_empty, ScColumn::maCells, and maSpans.
Referenced by ScColumn::BroadcastRows(), ScColumn::CopyFromClip(), ScColumn::CopyUpdated(), ScColumn::DeleteBeforeCopyFromClip(), ScColumn::DeleteRow(), ScColumn::GetOptimalColWidth(), ScColumn::GetOptimalHeight(), ScColumn::MoveTo(), scan(), and ScColumn::UpdateSelectionFunction().
Scan a column between specified range, and tag all non-empty cell positions.
Definition at line 266 of file columnspanset.cxx.
References ScColumn::GetLastDataPos(), ScColumn::maCells, maSpans, and sc::ParseBlock().
void sc::SingleColumnSpanSet::scan | ( | const ScMarkData & | rMark, |
SCTAB | nTab, | ||
SCCOL | nCol | ||
) |
Scan all marked data and tag all marked segments in specified column.
Definition at line 285 of file columnspanset.cxx.
References ScMarkData::GetMarkedRangesForTab(), ScMarkData::GetTableSelect(), and scan().
void sc::SingleColumnSpanSet::scan | ( | const ScRangeList & | rRanges, |
SCTAB | nTab, | ||
SCCOL | nCol | ||
) |
Definition at line 295 of file columnspanset.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), i, maSpans, n, ScAddress::Row(), ScRangeList::size(), and ScAddress::Tab().
Definition at line 311 of file columnspanset.cxx.
References maSpans.
Referenced by ScColumn::UpdateSelectionFunction().
void sc::SingleColumnSpanSet::swap | ( | SingleColumnSpanSet & | r | ) |
Definition at line 337 of file columnspanset.cxx.
References maSpans.
|
private |
Definition at line 156 of file columnspanset.hxx.
Referenced by empty(), getSpans(), scan(), set(), and swap().
|
private |
Definition at line 155 of file columnspanset.hxx.
Referenced by empty().