LibreOffice Module sc (master) 1
|
#include <viewdata.hxx>
Classes | |
class | Comp |
Public Types | |
typedef SCCOLROW | index_type |
typedef std::pair< index_type, tools::Long > | value_type |
Public Member Functions | |
ScPositionHelper (const ScDocument *pDoc, bool bColumn) | |
void | setDocument (const ScDocument &rDoc, bool bColumn) |
void | insert (index_type nIndex, tools::Long nPos) |
void | removeByIndex (index_type nIndex) |
void | invalidateByIndex (index_type nIndex) |
void | invalidateByPosition (tools::Long nPos) |
const value_type & | getNearestByIndex (index_type nIndex) const |
const value_type & | getNearestByPosition (tools::Long nPos) const |
tools::Long | getPosition (index_type nIndex) const |
tools::Long | computePosition (index_type nIndex, const std::function< long(index_type)> &getSizePx) |
Private Attributes | |
index_type | MAX_INDEX |
std::set< value_type, Comp > | mData |
Static Private Attributes | |
static const index_type | null = std::numeric_limits<index_type>::min() |
Definition at line 119 of file viewdata.hxx.
typedef SCCOLROW ScPositionHelper::index_type |
Definition at line 122 of file viewdata.hxx.
typedef std::pair<index_type, tools::Long> ScPositionHelper::value_type |
Definition at line 123 of file viewdata.hxx.
ScPositionHelper::ScPositionHelper | ( | const ScDocument * | pDoc, |
bool | bColumn | ||
) |
Definition at line 127 of file viewdata.cxx.
References mData.
tools::Long ScPositionHelper::computePosition | ( | index_type | nIndex, |
const std::function< long(index_type)> & | getSizePx | ||
) |
Definition at line 262 of file viewdata.cxx.
References getNearestByIndex(), MAX_INDEX, and nIndex.
Referenced by ScModelObj::getDocumentSize(), ScViewData::SetMaxTiledCol(), and ScViewData::SetMaxTiledRow().
const ScPositionHelper::value_type & ScPositionHelper::getNearestByIndex | ( | index_type | nIndex | ) | const |
Definition at line 194 of file viewdata.cxx.
References mData, nIndex, and SAL_INFO.
Referenced by computePosition(), and ScViewData::GetScrPos().
const ScPositionHelper::value_type & ScPositionHelper::getNearestByPosition | ( | tools::Long | nPos | ) | const |
tools::Long ScPositionHelper::getPosition | ( | index_type | nIndex | ) | const |
Definition at line 255 of file viewdata.cxx.
Referenced by ScViewData::GetLOKDocHeightPixel(), and ScViewData::GetLOKDocWidthPixel().
void ScPositionHelper::insert | ( | index_type | nIndex, |
tools::Long | nPos | ||
) |
Definition at line 138 of file viewdata.cxx.
References mData, nIndex, nPos, and SAL_INFO.
Referenced by ScTabView::extendTiledAreaIfNeeded(), ScTabView::getRowColumnHeaders(), ScViewData::SetMaxTiledCol(), and ScViewData::SetMaxTiledRow().
void ScPositionHelper::invalidateByIndex | ( | index_type | nIndex | ) |
Definition at line 163 of file viewdata.cxx.
void ScPositionHelper::invalidateByPosition | ( | tools::Long | nPos | ) |
void ScPositionHelper::removeByIndex | ( | index_type | nIndex | ) |
Definition at line 150 of file viewdata.cxx.
References mData, nIndex, and SAL_INFO.
Referenced by ScTabView::extendTiledAreaIfNeeded(), ScTabView::getRowColumnHeaders(), ScViewData::SetMaxTiledCol(), and ScViewData::SetMaxTiledRow().
void ScPositionHelper::setDocument | ( | const ScDocument & | rDoc, |
bool | bColumn | ||
) |
Definition at line 133 of file viewdata.cxx.
References MAX_INDEX, ScDocument::MaxCol(), and MAXTILEDROW.
Referenced by ScViewDataTable::InitData().
|
private |
Definition at line 135 of file viewdata.hxx.
Referenced by computePosition(), and setDocument().
|
private |
Definition at line 136 of file viewdata.hxx.
Referenced by getNearestByIndex(), getNearestByPosition(), getPosition(), insert(), invalidateByIndex(), invalidateByPosition(), removeByIndex(), and ScPositionHelper().
|
staticprivate |
Definition at line 127 of file viewdata.hxx.
Referenced by getNearestByPosition(), invalidateByPosition(), and ScPositionHelper::Comp::operator()().