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

◆ index_type

Definition at line 155 of file viewdata.hxx.

◆ value_type

Definition at line 154 of file viewdata.hxx.

Constructor & Destructor Documentation

◆ ScBoundsProvider()

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

Definition at line 289 of file viewdata.cxx.

References MAX_INDEX.

Member Function Documentation

◆ Compute()

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

◆ EnlargeBy()

void ScBoundsProvider::EnlargeBy ( tools::Long  nOffset)
inline

Definition at line 184 of file viewdata.hxx.

References EnlargeEndBy(), and EnlargeStartBy().

◆ EnlargeEndBy()

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().

◆ EnlargeStartBy()

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().

◆ GeIndexBackwards()

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

Definition at line 436 of file viewdata.cxx.

References GetSize(), and nIndex.

Referenced by GetIndexAndPos().

◆ GetEndIndexAndPosition() [1/2]

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

Definition at line 309 of file viewdata.cxx.

References bColumnHeader, nIndex, nSecondIndex, and nSecondPositionPx.

◆ GetEndIndexAndPosition() [2/2]

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

Definition at line 323 of file viewdata.cxx.

References bColumnHeader, nIndex, nSecondIndex, and nSecondPositionPx.

◆ GetIndexAndPos()

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 336 of file viewdata.cxx.

References GeIndexBackwards(), and GetIndexTowards().

Referenced by Compute().

◆ GetIndexTowards()

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

Definition at line 460 of file viewdata.cxx.

References GetSize(), MAX_INDEX, and nIndex.

Referenced by GetIndexAndPos().

◆ GetSize()

tools::Long ScBoundsProvider::GetSize ( index_type  nIndex) const
private

◆ GetStartIndexAndPosition() [1/2]

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

Definition at line 302 of file viewdata.cxx.

References bColumnHeader, nFirstIndex, nFirstPositionPx, and nIndex.

◆ GetStartIndexAndPosition() [2/2]

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

Definition at line 316 of file viewdata.cxx.

References bColumnHeader, nFirstIndex, nFirstPositionPx, and nIndex.

Member Data Documentation

◆ bColumnHeader

const bool ScBoundsProvider::bColumnHeader
private

Definition at line 159 of file viewdata.hxx.

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

◆ MAX_INDEX

const index_type ScBoundsProvider::MAX_INDEX
private

Definition at line 160 of file viewdata.hxx.

Referenced by EnlargeEndBy(), and GetIndexTowards().

◆ mfPPTX

double ScBoundsProvider::mfPPTX
private

Definition at line 162 of file viewdata.hxx.

Referenced by GetSize().

◆ mfPPTY

double ScBoundsProvider::mfPPTY
private

Definition at line 163 of file viewdata.hxx.

Referenced by GetSize().

◆ nFirstIndex

index_type ScBoundsProvider::nFirstIndex
private

Definition at line 164 of file viewdata.hxx.

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

◆ nFirstPositionPx

tools::Long ScBoundsProvider::nFirstPositionPx
private

Definition at line 166 of file viewdata.hxx.

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

◆ nSecondIndex

index_type ScBoundsProvider::nSecondIndex
private

Definition at line 165 of file viewdata.hxx.

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

◆ nSecondPositionPx

tools::Long ScBoundsProvider::nSecondPositionPx
private

Definition at line 167 of file viewdata.hxx.

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

◆ nTab

const SCTAB ScBoundsProvider::nTab
private

Definition at line 158 of file viewdata.hxx.

Referenced by GetSize().

◆ rDoc

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: