LibreOffice Module sc (master) 1
|
#include <viewdata.hxx>
Public Member Functions | |
ScBoundsProvider (const ScViewData &rView, SCTAB nT, bool bColumnHeader) | |
void | GetStartIndexAndPosition (SCCOL &nIndex, tools::Long &nPosition) const |
void | GetEndIndexAndPosition (SCCOL &nIndex, tools::Long &nPosition) const |
void | GetStartIndexAndPosition (SCROW &nIndex, tools::Long &nPosition) const |
void | GetEndIndexAndPosition (SCROW &nIndex, tools::Long &nPosition) const |
void | Compute (value_type aFirstNearest, value_type aSecondNearest, tools::Long nFirstBound, tools::Long nSecondBound) |
void | EnlargeStartBy (tools::Long nOffset) |
void | EnlargeEndBy (tools::Long nOffset) |
void | EnlargeBy (tools::Long nOffset) |
Private Types | |
typedef ScPositionHelper::value_type | value_type |
typedef SCCOLROW | index_type |
Private Member Functions | |
tools::Long | GetSize (index_type nIndex) const |
void | GetIndexAndPos (index_type nNearestIndex, tools::Long nNearestPosition, tools::Long nBound, index_type &nFoundIndex, tools::Long &nPosition, bool bTowards, tools::Long nDiff) |
void | GeIndexBackwards (index_type nNearestIndex, tools::Long nNearestPosition, tools::Long nBound, index_type &nFoundIndex, tools::Long &nPosition, bool bTowards) |
void | GetIndexTowards (index_type nNearestIndex, tools::Long nNearestPosition, tools::Long nBound, index_type &nFoundIndex, tools::Long &nPosition, bool bTowards) |
Private Attributes | |
ScDocument & | rDoc |
const SCTAB | nTab |
const bool | bColumnHeader |
const index_type | MAX_INDEX |
double | mfPPTX |
double | mfPPTY |
index_type | nFirstIndex |
index_type | nSecondIndex |
tools::Long | nFirstPositionPx |
tools::Long | nSecondPositionPx |
Definition at line 152 of file viewdata.hxx.
|
private |
Definition at line 155 of file viewdata.hxx.
|
private |
Definition at line 154 of file viewdata.hxx.
ScBoundsProvider::ScBoundsProvider | ( | const ScViewData & | rView, |
SCTAB | nT, | ||
bool | bColumnHeader | ||
) |
Definition at line 289 of file viewdata.cxx.
References MAX_INDEX.
void ScBoundsProvider::Compute | ( | value_type | aFirstNearest, |
value_type | aSecondNearest, | ||
tools::Long | nFirstBound, | ||
tools::Long | nSecondBound | ||
) |
Definition at line 348 of file viewdata.cxx.
References GetIndexAndPos(), nFirstIndex, nFirstPositionPx, nSecondIndex, nSecondPositionPx, and SAL_INFO.
|
inline |
Definition at line 184 of file viewdata.hxx.
References EnlargeEndBy(), and EnlargeStartBy().
void ScBoundsProvider::EnlargeEndBy | ( | tools::Long | nOffset | ) |
Definition at line 423 of file viewdata.cxx.
References GetSize(), MAX_INDEX, nIndex, nSecondIndex, nSecondPositionPx, and SAL_INFO.
Referenced by EnlargeBy().
void ScBoundsProvider::EnlargeStartBy | ( | tools::Long | nOffset | ) |
Definition at line 408 of file viewdata.cxx.
References GetSize(), nFirstIndex, nFirstPositionPx, nIndex, and SAL_INFO.
Referenced by EnlargeBy().
|
private |
Definition at line 436 of file viewdata.cxx.
References GetSize(), and nIndex.
Referenced by GetIndexAndPos().
void ScBoundsProvider::GetEndIndexAndPosition | ( | SCCOL & | nIndex, |
tools::Long & | nPosition | ||
) | const |
Definition at line 309 of file viewdata.cxx.
References bColumnHeader, nIndex, nSecondIndex, and nSecondPositionPx.
void ScBoundsProvider::GetEndIndexAndPosition | ( | SCROW & | nIndex, |
tools::Long & | nPosition | ||
) | const |
Definition at line 323 of file viewdata.cxx.
References bColumnHeader, nIndex, nSecondIndex, and nSecondPositionPx.
|
private |
Definition at line 336 of file viewdata.cxx.
References GeIndexBackwards(), and GetIndexTowards().
Referenced by Compute().
|
private |
Definition at line 460 of file viewdata.cxx.
References GetSize(), MAX_INDEX, and nIndex.
Referenced by GetIndexAndPos().
|
private |
Definition at line 330 of file viewdata.cxx.
References bColumnHeader, ScDocument::GetColWidth(), ScDocument::GetRowHeight(), mfPPTX, mfPPTY, nIndex, nTab, rDoc, and ScViewData::ToPixel().
Referenced by EnlargeEndBy(), EnlargeStartBy(), GeIndexBackwards(), and GetIndexTowards().
void ScBoundsProvider::GetStartIndexAndPosition | ( | SCCOL & | nIndex, |
tools::Long & | nPosition | ||
) | const |
Definition at line 302 of file viewdata.cxx.
References bColumnHeader, nFirstIndex, nFirstPositionPx, and nIndex.
void ScBoundsProvider::GetStartIndexAndPosition | ( | SCROW & | nIndex, |
tools::Long & | nPosition | ||
) | const |
Definition at line 316 of file viewdata.cxx.
References bColumnHeader, nFirstIndex, nFirstPositionPx, and nIndex.
|
private |
Definition at line 159 of file viewdata.hxx.
Referenced by GetEndIndexAndPosition(), GetSize(), and GetStartIndexAndPosition().
|
private |
Definition at line 160 of file viewdata.hxx.
Referenced by EnlargeEndBy(), and GetIndexTowards().
|
private |
Definition at line 162 of file viewdata.hxx.
Referenced by GetSize().
|
private |
Definition at line 163 of file viewdata.hxx.
Referenced by GetSize().
|
private |
Definition at line 164 of file viewdata.hxx.
Referenced by Compute(), EnlargeStartBy(), and GetStartIndexAndPosition().
|
private |
Definition at line 166 of file viewdata.hxx.
Referenced by Compute(), EnlargeStartBy(), and GetStartIndexAndPosition().
|
private |
Definition at line 165 of file viewdata.hxx.
Referenced by Compute(), EnlargeEndBy(), and GetEndIndexAndPosition().
|
private |
Definition at line 167 of file viewdata.hxx.
Referenced by Compute(), EnlargeEndBy(), and GetEndIndexAndPosition().
|
private |
Definition at line 158 of file viewdata.hxx.
Referenced by GetSize().
|
private |
Definition at line 157 of file viewdata.hxx.
Referenced by GetSize().