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>


class  Comp

Public Types

typedef SCCOLROW index_type
typedef std::pair< index_type, tools::Longvalue_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_typegetNearestByIndex (index_type nIndex) const
const value_typegetNearestByPosition (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, CompmData

Static Private Attributes

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

Detailed Description

Definition at line 119 of file viewdata.hxx.

Member Typedef Documentation

Definition at line 122 of file viewdata.hxx.

Definition at line 123 of file viewdata.hxx.

Constructor & Destructor Documentation

ScPositionHelper::ScPositionHelper ( const ScDocument pDoc,
bool  bColumn 

Definition at line 124 of file viewdata.cxx.

References MAX_INDEX, and mData.

Member Function Documentation

tools::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 191 of file viewdata.cxx.

References mData, and SAL_INFO.

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

const ScPositionHelper::value_type & ScPositionHelper::getNearestByPosition ( tools::Long  nPos) const

Definition at line 221 of file viewdata.cxx.

References mData, null, and SAL_INFO.

tools::Long ScPositionHelper::getPosition ( index_type  nIndex) const

Definition at line 252 of file viewdata.cxx.

References mData.

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

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

Definition at line 175 of file viewdata.cxx.

References mData, null, and SAL_INFO.

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

Definition at line 130 of file viewdata.cxx.

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

Referenced by ScViewDataTable::InitData().

Member Data Documentation

index_type ScPositionHelper::MAX_INDEX

Definition at line 135 of file viewdata.hxx.

Referenced by computePosition(), and setDocument().

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

Definition at line 127 of file viewdata.hxx.

Referenced by getNearestByPosition(), and invalidateByPosition().

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