LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
IcnGridMap_Impl Class Reference

#include <imivctl.hxx>

Collaboration diagram for IcnGridMap_Impl:
[legend]

Public Member Functions

 IcnGridMap_Impl (SvxIconChoiceCtrl_Impl *pView)
 
 ~IcnGridMap_Impl ()
 
void Clear ()
 
GridId GetGrid (const Point &rDocPos)
 
GridId GetGrid (sal_uInt16 nGridX, sal_uInt16 nGridY)
 
GridId GetUnoccupiedGrid ()
 
void OccupyGrids (const SvxIconChoiceCtrlEntry *)
 
void OccupyGrid (GridId nId)
 
tools::Rectangle GetGridRect (GridId)
 
void GetGridCoord (GridId, sal_uInt16 &rGridX, sal_uInt16 &rGridY)
 
void OutputSizeChanged ()
 

Static Public Member Functions

static sal_uLong GetGridCount (const Size &rSizePixel, sal_uInt16 nGridWidth, sal_uInt16 nGridHeight)
 

Private Member Functions

void Expand ()
 
void Create_Impl ()
 
void Create ()
 
void GetMinMapSize (sal_uInt16 &rDX, sal_uInt16 &rDY) const
 

Private Attributes

tools::Rectangle _aLastOccupiedGrid
 
SvxIconChoiceCtrl_Impl_pView
 
std::unique_ptr< bool[]> _pGridMap
 
sal_uInt16 _nGridCols
 
sal_uInt16 _nGridRows
 

Detailed Description

Definition at line 469 of file imivctl.hxx.

Constructor & Destructor Documentation

◆ IcnGridMap_Impl()

IcnGridMap_Impl::IcnGridMap_Impl ( SvxIconChoiceCtrl_Impl pView)
explicit

Definition at line 477 of file imivctl2.cxx.

◆ ~IcnGridMap_Impl()

IcnGridMap_Impl::~IcnGridMap_Impl ( )

Definition at line 482 of file imivctl2.cxx.

Member Function Documentation

◆ Clear()

void IcnGridMap_Impl::Clear ( )

◆ Create()

void IcnGridMap_Impl::Create ( )
inlineprivate

Definition at line 478 of file imivctl.hxx.

References _pGridMap, and Create_Impl().

Referenced by GetGrid(), GetGridCoord(), GetGridRect(), and GetUnoccupiedGrid().

◆ Create_Impl()

void IcnGridMap_Impl::Create_Impl ( )
private

◆ Expand()

void IcnGridMap_Impl::Expand ( )
private

◆ GetGrid() [1/2]

GridId IcnGridMap_Impl::GetGrid ( const Point rDocPos)

◆ GetGrid() [2/2]

GridId IcnGridMap_Impl::GetGrid ( sal_uInt16  nGridX,
sal_uInt16  nGridY 
)

◆ GetGridCoord()

void IcnGridMap_Impl::GetGridCoord ( GridId  nId,
sal_uInt16 &  rGridX,
sal_uInt16 &  rGridY 
)

Definition at line 699 of file imivctl2.cxx.

References _nGridCols, _nGridRows, _pView, Create(), nId, SvxIconChoiceCtrl_Impl::nWinBits, and WB_ALIGN_TOP.

Referenced by GetGridRect().

◆ GetGridCount()

sal_uLong IcnGridMap_Impl::GetGridCount ( const Size rSizePixel,
sal_uInt16  nGridWidth,
sal_uInt16  nGridHeight 
)
static

◆ GetGridRect()

tools::Rectangle IcnGridMap_Impl::GetGridRect ( GridId  nId)

◆ GetMinMapSize()

void IcnGridMap_Impl::GetMinMapSize ( sal_uInt16 &  rDX,
sal_uInt16 &  rDY 
) const
private

◆ GetUnoccupiedGrid()

GridId IcnGridMap_Impl::GetUnoccupiedGrid ( )

Definition at line 617 of file imivctl2.cxx.

References _nGridCols, _nGridRows, _pGridMap, Create(), DBG_ASSERT, Expand(), and nCount.

◆ OccupyGrid()

void IcnGridMap_Impl::OccupyGrid ( GridId  nId)
inline

Definition at line 493 of file imivctl.hxx.

References _nGridCols, _nGridRows, _pGridMap, DBG_ASSERT, o3tl::make_unsigned(), and nId.

Referenced by OccupyGrids().

◆ OccupyGrids()

void IcnGridMap_Impl::OccupyGrids ( const SvxIconChoiceCtrlEntry pEntry)

◆ OutputSizeChanged()

void IcnGridMap_Impl::OutputSizeChanged ( )

Member Data Documentation

◆ _aLastOccupiedGrid

tools::Rectangle IcnGridMap_Impl::_aLastOccupiedGrid
private

Definition at line 471 of file imivctl.hxx.

Referenced by Clear().

◆ _nGridCols

sal_uInt16 IcnGridMap_Impl::_nGridCols
private

◆ _nGridRows

sal_uInt16 IcnGridMap_Impl::_nGridRows
private

◆ _pGridMap

std::unique_ptr<bool[]> IcnGridMap_Impl::_pGridMap
private

◆ _pView

SvxIconChoiceCtrl_Impl* IcnGridMap_Impl::_pView
private

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