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

#include <viewdata.hxx>

Classes

class  Comp
 

Public Types

typedef SCCOLROW index_type
 
typedef std::pair< index_type, long > value_type
 

Public Member Functions

 ScPositionHelper (ScDocument *pDoc, bool bColumn)
 
void setDocument (ScDocument *pDoc, bool bColumn)
 
void insert (index_type nIndex, long nPos)
 
void removeByIndex (index_type nIndex)
 
void invalidateByIndex (index_type nIndex)
 
void invalidateByPosition (long nPos)
 
const value_typegetNearestByIndex (index_type nIndex) const
 
const value_typegetNearestByPosition (long nPos) const
 
long getPosition (index_type nIndex) const
 
long computePosition (index_type nIndex, const std::function< long(index_type)> &getSizePx)
 

Private Attributes

index_type MAX_INDEX
 
std::set< value_type, CompmData
 

Static Private Attributes

static const index_type null = std::numeric_limits<index_type>::min()
 

Detailed Description

Definition at line 120 of file viewdata.hxx.

Member Typedef Documentation

Definition at line 123 of file viewdata.hxx.

typedef std::pair<index_type, long> ScPositionHelper::value_type

Definition at line 124 of file viewdata.hxx.

Constructor & Destructor Documentation

ScPositionHelper::ScPositionHelper ( ScDocument pDoc,
bool  bColumn 
)

Definition at line 121 of file viewdata.cxx.

References MAX_INDEX, and mData.

Member Function Documentation

long ScPositionHelper::computePosition ( index_type  nIndex,
const std::function< long(index_type)> &  getSizePx 
)
const ScPositionHelper::value_type & ScPositionHelper::getNearestByIndex ( index_type  nIndex) const

Definition at line 188 of file viewdata.cxx.

References mData, and SAL_INFO.

Referenced by computePosition(), and ScViewData::GetScrPos().

const ScPositionHelper::value_type & ScPositionHelper::getNearestByPosition ( long  nPos) const

Definition at line 218 of file viewdata.cxx.

References mData, null, and SAL_INFO.

Referenced by ScTabView::getRowColumnHeaders().

long ScPositionHelper::getPosition ( index_type  nIndex) const

Definition at line 249 of file viewdata.cxx.

References mData.

Referenced by ScViewData::GetLOKDocHeightPixel(), and ScViewData::GetLOKDocWidthPixel().

void ScPositionHelper::insert ( index_type  nIndex,
long  nPos 
)
void ScPositionHelper::invalidateByIndex ( index_type  nIndex)
void ScPositionHelper::invalidateByPosition ( long  nPos)

Definition at line 172 of file viewdata.cxx.

References mData, null, and SAL_INFO.

Referenced by ScViewData::CalcPPT().

void ScPositionHelper::removeByIndex ( index_type  nIndex)
void ScPositionHelper::setDocument ( ScDocument pDoc,
bool  bColumn 
)

Definition at line 127 of file viewdata.cxx.

References MAX_INDEX, ScDocument::MaxCol(), and MAXTILEDROW.

Referenced by ScViewDataTable::InitData().

Member Data Documentation

index_type ScPositionHelper::MAX_INDEX
private

Definition at line 136 of file viewdata.hxx.

Referenced by computePosition(), and setDocument().

std::set<value_type, Comp> ScPositionHelper::mData
private
const ScPositionHelper::index_type ScPositionHelper::null = std::numeric_limits<index_type>::min()
staticprivate

Definition at line 128 of file viewdata.hxx.

Referenced by getNearestByPosition(), and invalidateByPosition().


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