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 473 of file imivctl.hxx.

Constructor & Destructor Documentation

IcnGridMap_Impl::IcnGridMap_Impl ( SvxIconChoiceCtrl_Impl pView)
explicit

Definition at line 477 of file imivctl2.cxx.

References _nGridCols, _nGridRows, and _pView.

IcnGridMap_Impl::~IcnGridMap_Impl ( )

Definition at line 484 of file imivctl2.cxx.

Member Function Documentation

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

Definition at line 482 of file imivctl.hxx.

References Create_Impl().

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

void IcnGridMap_Impl::Create_Impl ( )
private
void IcnGridMap_Impl::Expand ( )
private
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 701 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 
)
static
tools::Rectangle IcnGridMap_Impl::GetGridRect ( GridId  nId)
void IcnGridMap_Impl::GetMinMapSize ( sal_uInt16 &  rDX,
sal_uInt16 &  rDY 
) const
private
GridId IcnGridMap_Impl::GetUnoccupiedGrid ( )

Definition at line 619 of file imivctl2.cxx.

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

void IcnGridMap_Impl::OccupyGrid ( GridId  nId)
inline

Definition at line 497 of file imivctl.hxx.

References DBG_ASSERT.

Referenced by OccupyGrids().

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

Member Data Documentation

tools::Rectangle IcnGridMap_Impl::_aLastOccupiedGrid
private

Definition at line 475 of file imivctl.hxx.

Referenced by Clear().

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

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