LibreOffice Module sc (master) 1
|
Iterator to traverse the addresses in a range if the range is one dimensional. More...
#include <SparklineRenderer.hxx>
Public Member Functions | |
RangeTraverser (ScRange const &rRange) | |
ScAddress const & | first () |
bool | hasNext () |
void | next () |
Private Types | |
enum class | Direction { UNKNOWN , ROW , COLUMN } |
Private Attributes | |
ScAddress | m_aCurrent |
ScRange | m_aRange |
Direction | m_eDirection |
Iterator to traverse the addresses in a range if the range is one dimensional.
The direction to traverse is detected automatically or hasNext returns false if it is not possible to detect.
Definition at line 173 of file SparklineRenderer.hxx.
|
strongprivate |
Enumerator | |
---|---|
UNKNOWN | |
ROW | |
COLUMN |
Definition at line 175 of file SparklineRenderer.hxx.
|
inline |
Definition at line 187 of file SparklineRenderer.hxx.
References UNKNOWN.
|
inline |
Definition at line 195 of file SparklineRenderer.hxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), COLUMN, m_aCurrent, m_aRange, m_eDirection, ScAddress::Row(), ROW, and ScAddress::SetInvalid().
Referenced by sc::SparklineRenderer::render().
|
inline |
Definition at line 213 of file SparklineRenderer.hxx.
References ScRange::aEnd, ScAddress::Col(), COLUMN, m_aCurrent, m_aRange, m_eDirection, ScAddress::Row(), and ROW.
Referenced by next(), and sc::SparklineRenderer::render().
|
inline |
Definition at line 223 of file SparklineRenderer.hxx.
References COLUMN, hasNext(), ScAddress::IncCol(), ScAddress::IncRow(), m_aCurrent, m_eDirection, and ROW.
Referenced by sc::SparklineRenderer::render().
|
private |
Definition at line 182 of file SparklineRenderer.hxx.
|
private |
Definition at line 183 of file SparklineRenderer.hxx.
|
private |
Definition at line 184 of file SparklineRenderer.hxx.