LibreOffice Module vcl (master) 1
|
#include <imivctl.hxx>
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 |
Definition at line 468 of file imivctl.hxx.
|
explicit |
Definition at line 477 of file imivctl2.cxx.
IcnGridMap_Impl::~IcnGridMap_Impl | ( | ) |
Definition at line 482 of file imivctl2.cxx.
void IcnGridMap_Impl::Clear | ( | ) |
Definition at line 653 of file imivctl2.cxx.
References _aLastOccupiedGrid, _nGridCols, _nGridRows, _pGridMap, and tools::Rectangle::SetEmpty().
Referenced by OutputSizeChanged().
|
inlineprivate |
Definition at line 477 of file imivctl.hxx.
References _pGridMap, and Create_Impl().
Referenced by GetGrid(), GetGridCoord(), GetGridRect(), and GetUnoccupiedGrid().
|
private |
Definition at line 510 of file imivctl2.cxx.
References _nGridCols, _nGridRows, _pGridMap, _pView, DBG_ASSERT, GetMinMapSize(), SvxIconChoiceCtrl_Impl::maEntries, nCount, SvxIconChoiceCtrl_Impl::nWinBits, OccupyGrids(), and WB_ALIGN_TOP.
|
private |
Definition at line 486 of file imivctl2.cxx.
References _nGridCols, _nGridRows, _pGridMap, _pView, Create_Impl(), SvxIconChoiceCtrl_Impl::nWinBits, and WB_ALIGN_TOP.
Referenced by GetUnoccupiedGrid(), and OutputSizeChanged().
Definition at line 581 of file imivctl2.cxx.
References _nGridCols, _nGridRows, _pView, Create(), DBG_ASSERT, GetGrid(), LROFFS_WINBORDER, o3tl::make_unsigned(), SvxIconChoiceCtrl_Impl::nGridDX, SvxIconChoiceCtrl_Impl::nGridDY, nId, TBOFFS_WINBORDER, Point::X(), and Point::Y().
Referenced by GetGrid(), and OccupyGrids().
GridId IcnGridMap_Impl::GetGrid | ( | sal_uInt16 | nGridX, |
sal_uInt16 | nGridY | ||
) |
Definition at line 572 of file imivctl2.cxx.
References _nGridCols, _nGridRows, _pView, Create(), SvxIconChoiceCtrl_Impl::nWinBits, and WB_ALIGN_TOP.
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().
|
static |
Definition at line 664 of file imivctl2.cxx.
References Size::Height(), LROFFS_WINBORDER, TBOFFS_WINBORDER, and Size::Width().
Referenced by SvxIconChoiceCtrl_Impl::ResetVirtSize().
tools::Rectangle IcnGridMap_Impl::GetGridRect | ( | GridId | nId | ) |
Definition at line 604 of file imivctl2.cxx.
References _pView, Create(), GetGridCoord(), LROFFS_WINBORDER, SvxIconChoiceCtrl_Impl::nGridDX, SvxIconChoiceCtrl_Impl::nGridDY, nId, and TBOFFS_WINBORDER.
|
private |
Definition at line 530 of file imivctl2.cxx.
References _pView, Arranging, SvxIconChoiceCtrl_Impl::aVirtOutputSize, DEFAULT_MAX_VIRT_HEIGHT, DEFAULT_MAX_VIRT_WIDTH, vcl::Window::GetOutputSizePixel(), Size::Height(), SvxIconChoiceCtrl_Impl::nFlags, SvxIconChoiceCtrl_Impl::nGridDX, SvxIconChoiceCtrl_Impl::nGridDY, SvxIconChoiceCtrl_Impl::nHorSBarHeight, SvxIconChoiceCtrl_Impl::nMaxVirtHeight, SvxIconChoiceCtrl_Impl::nMaxVirtWidth, SvxIconChoiceCtrl_Impl::nVerSBarWidth, SvxIconChoiceCtrl_Impl::nWinBits, SvxIconChoiceCtrl_Impl::pView, WB_ALIGN_TOP, and Size::Width().
Referenced by Create_Impl(), and OutputSizeChanged().
GridId IcnGridMap_Impl::GetUnoccupiedGrid | ( | ) |
Definition at line 617 of file imivctl2.cxx.
References _nGridCols, _nGridRows, _pGridMap, Create(), DBG_ASSERT, Expand(), and nCount.
|
inline |
Definition at line 492 of file imivctl.hxx.
References _nGridCols, _nGridRows, _pGridMap, DBG_ASSERT, o3tl::make_unsigned(), and nId.
Referenced by OccupyGrids().
void IcnGridMap_Impl::OccupyGrids | ( | const SvxIconChoiceCtrlEntry * | pEntry | ) |
Definition at line 646 of file imivctl2.cxx.
References _pGridMap, SvxIconChoiceCtrlEntry::aRect, tools::Rectangle::Center(), GetGrid(), SvxIconChoiceCtrl_Impl::IsBoundingRectValid(), and OccupyGrid().
Referenced by Create_Impl().
void IcnGridMap_Impl::OutputSizeChanged | ( | ) |
Definition at line 673 of file imivctl2.cxx.
References _nGridCols, _nGridRows, _pGridMap, _pView, Clear(), Expand(), GetMinMapSize(), SvxIconChoiceCtrl_Impl::nWinBits, and WB_ALIGN_TOP.
|
private |
Definition at line 470 of file imivctl.hxx.
Referenced by Clear().
|
private |
Definition at line 473 of file imivctl.hxx.
Referenced by Clear(), Create_Impl(), Expand(), GetGrid(), GetGridCoord(), GetUnoccupiedGrid(), OccupyGrid(), and OutputSizeChanged().
|
private |
Definition at line 473 of file imivctl.hxx.
Referenced by Clear(), Create_Impl(), Expand(), GetGrid(), GetGridCoord(), GetUnoccupiedGrid(), OccupyGrid(), and OutputSizeChanged().
|
private |
Definition at line 472 of file imivctl.hxx.
Referenced by Clear(), Create(), Create_Impl(), Expand(), GetUnoccupiedGrid(), OccupyGrid(), OccupyGrids(), and OutputSizeChanged().
|
private |
Definition at line 471 of file imivctl.hxx.
Referenced by Create_Impl(), Expand(), GetGrid(), GetGridCoord(), GetGridRect(), GetMinMapSize(), and OutputSizeChanged().