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:

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
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 ( SvxIconChoiceCtrl_Impl pView)

Definition at line 477 of file imivctl2.cxx.

IcnGridMap_Impl::~IcnGridMap_Impl ( )

Definition at line 482 of file imivctl2.cxx.

Member Function Documentation

void IcnGridMap_Impl::Clear ( )
void IcnGridMap_Impl::Create ( )

Definition at line 478 of file imivctl.hxx.

References Create_Impl().

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

void IcnGridMap_Impl::Create_Impl ( )
void IcnGridMap_Impl::Expand ( )
GridId IcnGridMap_Impl::GetGrid ( const Point rDocPos)
GridId IcnGridMap_Impl::GetGrid ( sal_uInt16  nGridX,
sal_uInt16  nGridY 
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(), SvxIconChoiceCtrl_Impl::nWinBits, and WB_ALIGN_TOP.

Referenced by GetGridRect().

sal_uLong IcnGridMap_Impl::GetGridCount ( const Size rSizePixel,
sal_uInt16  nGridWidth,
sal_uInt16  nGridHeight 
tools::Rectangle IcnGridMap_Impl::GetGridRect ( GridId  nId)
void IcnGridMap_Impl::GetMinMapSize ( sal_uInt16 &  rDX,
sal_uInt16 &  rDY 
) const
GridId IcnGridMap_Impl::GetUnoccupiedGrid ( )

Definition at line 617 of file imivctl2.cxx.

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

void IcnGridMap_Impl::OccupyGrid ( GridId  nId)

Definition at line 493 of file imivctl.hxx.

References DBG_ASSERT, and o3tl::make_unsigned().

Referenced by OccupyGrids().

void IcnGridMap_Impl::OccupyGrids ( const SvxIconChoiceCtrlEntry pEntry)
void IcnGridMap_Impl::OutputSizeChanged ( )

Member Data Documentation

tools::Rectangle IcnGridMap_Impl::_aLastOccupiedGrid

Definition at line 471 of file imivctl.hxx.

Referenced by Clear().

sal_uInt16 IcnGridMap_Impl::_nGridCols
sal_uInt16 IcnGridMap_Impl::_nGridRows
std::unique_ptr<bool[]> IcnGridMap_Impl::_pGridMap
SvxIconChoiceCtrl_Impl* IcnGridMap_Impl::_pView

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