LibreOffice Module sc (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScBoundsProvider Class Reference

#include <viewdata.hxx>

Collaboration diagram for ScBoundsProvider:
[legend]

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

ScDocumentrDoc
 
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
 

Detailed Description

Definition at line 152 of file viewdata.hxx.

Member Typedef Documentation

Definition at line 155 of file viewdata.hxx.

Definition at line 154 of file viewdata.hxx.

Constructor & Destructor Documentation

ScBoundsProvider::ScBoundsProvider ( const ScViewData rView,
SCTAB  nT,
bool  bColumnHeader 
)

Definition at line 284 of file viewdata.cxx.

References MAX_INDEX.

Member Function Documentation

void ScBoundsProvider::Compute ( value_type  aFirstNearest,
value_type  aSecondNearest,
tools::Long  nFirstBound,
tools::Long  nSecondBound 
)
void ScBoundsProvider::EnlargeBy ( tools::Long  nOffset)
inline

Definition at line 184 of file viewdata.hxx.

References EnlargeEndBy(), and EnlargeStartBy().

void ScBoundsProvider::EnlargeEndBy ( tools::Long  nOffset)

Definition at line 418 of file viewdata.cxx.

References GetSize(), MAX_INDEX, nSecondIndex, nSecondPositionPx, and SAL_INFO.

Referenced by EnlargeBy().

void ScBoundsProvider::EnlargeStartBy ( tools::Long  nOffset)

Definition at line 403 of file viewdata.cxx.

References GetSize(), nFirstIndex, nFirstPositionPx, and SAL_INFO.

Referenced by EnlargeBy().

void ScBoundsProvider::GeIndexBackwards ( index_type  nNearestIndex,
tools::Long  nNearestPosition,
tools::Long  nBound,
index_type nFoundIndex,
tools::Long nPosition,
bool  bTowards 
)
private

Definition at line 431 of file viewdata.cxx.

References GetSize().

Referenced by GetIndexAndPos().

void ScBoundsProvider::GetEndIndexAndPosition ( SCCOL nIndex,
tools::Long nPosition 
) const

Definition at line 304 of file viewdata.cxx.

References assert(), bColumnHeader, nSecondIndex, and nSecondPositionPx.

void ScBoundsProvider::GetEndIndexAndPosition ( SCROW nIndex,
tools::Long nPosition 
) const

Definition at line 318 of file viewdata.cxx.

References assert(), bColumnHeader, nSecondIndex, and nSecondPositionPx.

void ScBoundsProvider::GetIndexAndPos ( index_type  nNearestIndex,
tools::Long  nNearestPosition,
tools::Long  nBound,
index_type nFoundIndex,
tools::Long nPosition,
bool  bTowards,
tools::Long  nDiff 
)
private

Definition at line 331 of file viewdata.cxx.

References GeIndexBackwards(), and GetIndexTowards().

Referenced by Compute().

void ScBoundsProvider::GetIndexTowards ( index_type  nNearestIndex,
tools::Long  nNearestPosition,
tools::Long  nBound,
index_type nFoundIndex,
tools::Long nPosition,
bool  bTowards 
)
private

Definition at line 455 of file viewdata.cxx.

References GetSize(), and MAX_INDEX.

Referenced by GetIndexAndPos().

tools::Long ScBoundsProvider::GetSize ( index_type  nIndex) const
private
void ScBoundsProvider::GetStartIndexAndPosition ( SCCOL nIndex,
tools::Long nPosition 
) const

Definition at line 297 of file viewdata.cxx.

References assert(), bColumnHeader, nFirstIndex, and nFirstPositionPx.

void ScBoundsProvider::GetStartIndexAndPosition ( SCROW nIndex,
tools::Long nPosition 
) const

Definition at line 311 of file viewdata.cxx.

References assert(), bColumnHeader, nFirstIndex, and nFirstPositionPx.

Member Data Documentation

const bool ScBoundsProvider::bColumnHeader
private

Definition at line 159 of file viewdata.hxx.

Referenced by GetEndIndexAndPosition(), GetSize(), and GetStartIndexAndPosition().

const index_type ScBoundsProvider::MAX_INDEX
private

Definition at line 160 of file viewdata.hxx.

Referenced by EnlargeEndBy(), and GetIndexTowards().

double ScBoundsProvider::mfPPTX
private

Definition at line 162 of file viewdata.hxx.

Referenced by GetSize().

double ScBoundsProvider::mfPPTY
private

Definition at line 163 of file viewdata.hxx.

Referenced by GetSize().

index_type ScBoundsProvider::nFirstIndex
private

Definition at line 164 of file viewdata.hxx.

Referenced by Compute(), EnlargeStartBy(), and GetStartIndexAndPosition().

tools::Long ScBoundsProvider::nFirstPositionPx
private

Definition at line 166 of file viewdata.hxx.

Referenced by Compute(), EnlargeStartBy(), and GetStartIndexAndPosition().

index_type ScBoundsProvider::nSecondIndex
private

Definition at line 165 of file viewdata.hxx.

Referenced by Compute(), EnlargeEndBy(), and GetEndIndexAndPosition().

tools::Long ScBoundsProvider::nSecondPositionPx
private

Definition at line 167 of file viewdata.hxx.

Referenced by Compute(), EnlargeEndBy(), and GetEndIndexAndPosition().

const SCTAB ScBoundsProvider::nTab
private

Definition at line 158 of file viewdata.hxx.

Referenced by GetSize().

ScDocument& ScBoundsProvider::rDoc
private

Definition at line 157 of file viewdata.hxx.

Referenced by GetSize().


The documentation for this class was generated from the following files: