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

#include <imivctl.hxx>

Collaboration diagram for SvxIconChoiceCtrl_Impl:
[legend]

Public Member Functions

 SvxIconChoiceCtrl_Impl (SvtIconChoiceCtrl *pView, WinBits nWinStyle)
 
 ~SvxIconChoiceCtrl_Impl ()
 
void SetSelectionMode (SelectionMode eMode)
 
void Clear (bool bInCtor)
 
void SetStyle (WinBits nWinStyle)
 
WinBits GetStyle () const
 
void InsertEntry (std::unique_ptr< SvxIconChoiceCtrlEntry >, size_t nPos)
 
void RemoveEntry (size_t nPos)
 
void FontModified ()
 
void SelectAll ()
 
void SelectEntry (SvxIconChoiceCtrlEntry *, bool bSelect, bool bAddToSelection=false)
 
void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
bool MouseButtonDown (const MouseEvent &)
 
bool MouseButtonUp (const MouseEvent &)
 
bool MouseMove (const MouseEvent &)
 
bool RequestHelp (const HelpEvent &rHEvt)
 
void SetCursor_Impl (SvxIconChoiceCtrlEntry *pOldCursor, SvxIconChoiceCtrlEntry *pNewCursor, bool bMod1, bool bShift)
 
bool KeyInput (const KeyEvent &)
 
void Resize ()
 
void GetFocus ()
 
void LoseFocus ()
 
void SetUpdateMode (bool bUpdate)
 
bool GetUpdateMode () const
 
void PaintEntry (SvxIconChoiceCtrlEntry *, const Point &, vcl::RenderContext &rRenderContext)
 
void SetEntryPos (SvxIconChoiceCtrlEntry *pEntry, const Point &rPos)
 
void InvalidateEntry (SvxIconChoiceCtrlEntry *)
 
void SetNoSelection ()
 
SvxIconChoiceCtrlEntryGetCurEntry () const
 
void SetCursor (SvxIconChoiceCtrlEntry *)
 
SvxIconChoiceCtrlEntryGetEntry (const Point &rDocPos, bool bHit=false)
 
void MakeEntryVisible (SvxIconChoiceCtrlEntry *pEntry, bool bBound=true)
 
void Arrange (bool bKeepPredecessors, tools::Long nSetMaxVirtWidth, tools::Long nSetMaxVirtHeight)
 
tools::Rectangle CalcFocusRect (SvxIconChoiceCtrlEntry *)
 
tools::Rectangle CalcBmpRect (SvxIconChoiceCtrlEntry *, const Point *pPos=nullptr)
 
tools::Rectangle CalcTextRect (SvxIconChoiceCtrlEntry *, const Point *pPos=nullptr, const OUString *pStr=nullptr)
 
tools::Long CalcBoundingWidth () const
 
tools::Long CalcBoundingHeight () const
 
Size CalcBoundingSize () const
 
void FindBoundingRect (SvxIconChoiceCtrlEntry *pEntry)
 
void SetBoundingRect_Impl (SvxIconChoiceCtrlEntry *pEntry, const Point &rPos, const Size &rBoundingSize)
 
void RecalcAllBoundingRectsSmart ()
 
const tools::RectangleGetEntryBoundRect (SvxIconChoiceCtrlEntry *)
 
void InvalidateBoundingRect (tools::Rectangle &rRect)
 
void PaintItem (const tools::Rectangle &rRect, IcnViewFieldType eItem, SvxIconChoiceCtrlEntry *pEntry, sal_uInt16 nPaintFlags, vcl::RenderContext &rRenderContext)
 
void CheckBoundingRects ()
 
void Command (const CommandEvent &rCEvt)
 
void ToTop (SvxIconChoiceCtrlEntry *)
 
sal_Int32 GetSelectionCount () const
 
void SetGrid (const Size &)
 
Size GetMinGrid () const
 
void Scroll (tools::Long nDeltaX, tools::Long nDeltaY)
 
const SizeGetItemSize (IcnViewFieldType) const
 
void HideDDIcon ()
 
void SelectRect (const tools::Rectangle &, bool bAdd, std::vector< tools::Rectangle > *pOtherRects)
 
void MakeVisible (const tools::Rectangle &rDocPos, bool bInScrollBarEvent=false)
 
void SetEntryTextMode (SvxIconChoiceCtrlTextMode, SvxIconChoiceCtrlEntry *pEntry)
 
size_t GetEntryCount () const
 
SvxIconChoiceCtrlEntryGetEntry (size_t nPos)
 
SvxIconChoiceCtrlEntryGetEntry (size_t nPos) const
 
SvxIconChoiceCtrlEntryGetFirstSelectedEntry () const
 
sal_Int32 GetEntryListPos (SvxIconChoiceCtrlEntry const *) const
 
void InitSettings ()
 
tools::Rectangle GetOutputRect () const
 
void SetEntryPredecessor (SvxIconChoiceCtrlEntry *pEntry, SvxIconChoiceCtrlEntry *pPredecessor)
 
SvxIconChoiceCtrlEntryFindEntryPredecessor (SvxIconChoiceCtrlEntry *pEntry, const Point &)
 
void SetPositionMode (SvxIconChoiceCtrlPositionMode)
 
void SetColumn (sal_uInt16 nIndex, const SvxIconChoiceCtrlColumnInfo &)
 
const SvxIconChoiceCtrlColumnInfoGetColumn (sal_uInt16 nIndex) const
 
void SetEntryHighlightFrame (SvxIconChoiceCtrlEntry *pEntry, bool bKeepHighlightFlags)
 
void DrawHighlightFrame (vcl::RenderContext &rRenderContext, const tools::Rectangle &rBmpRect)
 
void CallEventListeners (VclEventId nEvent, void *pData)
 
::vcl::IAccessibleFactoryGetAccessibleFactory ()
 

Static Public Member Functions

static bool IsBoundingRectValid (const tools::Rectangle &rRect)
 
static void PaintEmphasis (const tools::Rectangle &rRect1, bool bSelected, vcl::RenderContext &rRenderContext)
 
static bool IsOver (std::vector< tools::Rectangle > *pSelectedRectList, const tools::Rectangle &rEntryBoundRect)
 

Public Attributes

tools::Long nGridDX
 
tools::Long nGridDY
 
tools::Long nHorSBarHeight
 
tools::Long nVerSBarWidth
 

Private Member Functions

void ShowCursor (bool bShow)
 
void ImpArrange (bool bKeepPredecessors)
 
void AdjustVirtSize (const tools::Rectangle &)
 
void ResetVirtSize ()
 
void CheckScrollBars ()
 
 DECL_LINK (ScrollUpDownHdl, ScrollBar *, void)
 
 DECL_LINK (ScrollLeftRightHdl, ScrollBar *, void)
 
 DECL_LINK (UserEventHdl, void *, void)
 
 DECL_LINK (AutoArrangeHdl, Timer *, void)
 
 DECL_LINK (DocRectChangedHdl, Timer *, void)
 
 DECL_LINK (VisRectChangedHdl, Timer *, void)
 
 DECL_LINK (CallSelectHdlHdl, Timer *, void)
 
void AdjustScrollBars ()
 
void PositionScrollBars (tools::Long nRealWidth, tools::Long nRealHeight)
 
tools::Long GetScrollBarLineSize () const
 
bool HandleScrollCommand (const CommandEvent &rCmd)
 
void ToDocPos (Point &rPosPixel)
 
void InitScrollBarBox ()
 
void ToggleSelection (SvxIconChoiceCtrlEntry *)
 
void DeselectAllBut (SvxIconChoiceCtrlEntry const *)
 
void Center (SvxIconChoiceCtrlEntry *pEntry) const
 
void CallSelectHandler ()
 
void SelectRect (SvxIconChoiceCtrlEntry *pEntry1, SvxIconChoiceCtrlEntry *pEntry2, bool bAdd, std::vector< tools::Rectangle > *pOtherRects)
 
void SelectRange (SvxIconChoiceCtrlEntry const *pStart, SvxIconChoiceCtrlEntry const *pEnd, bool bAdd)
 
void AddSelectedRect (const tools::Rectangle &)
 
void AddSelectedRect (SvxIconChoiceCtrlEntry *pEntry1, SvxIconChoiceCtrlEntry *pEntry2)
 
void ClearSelectedRectList ()
 
tools::Rectangle CalcMaxTextRect (const SvxIconChoiceCtrlEntry *pEntry) const
 
void ClipAtVirtOutRect (tools::Rectangle &rRect) const
 
GridId GetPredecessorGrid (const Point &rDocPos) const
 
void InitPredecessors ()
 
void ClearPredecessors ()
 
bool CheckVerScrollBar ()
 
bool CheckHorScrollBar ()
 
void CancelUserEvents ()
 
void EntrySelected (SvxIconChoiceCtrlEntry *pEntry, bool bSelect)
 
void RepaintSelectedEntries ()
 
void SetListPositions ()
 
void SetDefaultTextSize ()
 
bool IsAutoArrange () const
 
void DocRectChanged ()
 
void VisRectChanged ()
 
void SetOrigin (const Point &)
 
void ShowFocus (tools::Rectangle const &rRect)
 
void DrawFocusRect (vcl::RenderContext &rRenderContext)
 
bool IsMnemonicChar (sal_Unicode cChar, sal_uLong &rPos) const
 
 SvxIconChoiceCtrl_Impl (const SvxIconChoiceCtrl_Impl &)=delete
 
SvxIconChoiceCtrl_Imploperator= (const SvxIconChoiceCtrl_Impl &)=delete
 

Static Private Member Functions

static tools::Long GetScrollBarPageSize (tools::Long nVisibleRange)
 

Private Attributes

std::vector< std::unique_ptr< SvxIconChoiceCtrlEntry > > maEntries
 
VclPtr< ScrollBaraVerSBar
 
VclPtr< ScrollBaraHorSBar
 
VclPtr< ScrollBarBoxaScrBarBox
 
tools::Rectangle aCurSelectionRect
 
std::vector< tools::RectangleaSelectedRectList
 
Idle aAutoArrangeIdle
 
Idle aDocRectChangedIdle
 
Idle aVisRectChangedIdle
 
Idle aCallSelectHdlIdle
 
Size aVirtOutputSize
 
Size aImageSize
 
Size aDefaultTextSize
 
Size aOutputSize
 
VclPtr< SvtIconChoiceCtrlpView
 
std::unique_ptr< IcnCursor_ImplpImpCursor
 
std::unique_ptr< IcnGridMap_ImplpGridMap
 
tools::Long nMaxVirtWidth
 
tools::Long nMaxVirtHeight
 
std::vector< SvxIconChoiceCtrlEntry * > maZOrderList
 
std::unique_ptr< SvxIconChoiceCtrlColumnInfoMapm_pColumns
 
WinBits nWinBits
 
tools::Long nMaxBoundHeight
 
IconChoiceFlags nFlags
 
DrawTextFlags nCurTextDrawFlags
 
ImplSVEventnUserEventAdjustScrBars
 
SvxIconChoiceCtrlEntrypCurHighlightFrame
 
bool bHighlightFramePressed
 
SvxIconChoiceCtrlEntrypHead = nullptr
 
SvxIconChoiceCtrlEntrypCursor
 
SvxIconChoiceCtrlEntrypHdlEntry
 
SvxIconChoiceCtrlEntrypAnchor
 
LocalFocus aFocus
 
::vcl::AccessibleFactoryAccess aAccFactory
 
SvxIconChoiceCtrlTextMode eTextMode
 
SelectionMode eSelectionMode
 
sal_Int32 nSelectionCount
 
SvxIconChoiceCtrlPositionMode ePositionMode
 
bool bBoundRectsDirty
 
bool bUpdateMode
 

Friends

class IcnCursor_Impl
 
class IcnGridMap_Impl
 

Detailed Description

Definition at line 111 of file imivctl.hxx.

Constructor & Destructor Documentation

◆ SvxIconChoiceCtrl_Impl() [1/2]

SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl ( const SvxIconChoiceCtrl_Impl )
privatedelete

◆ SvxIconChoiceCtrl_Impl() [2/2]

SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl ( SvtIconChoiceCtrl pView,
WinBits  nWinStyle 
)

◆ ~SvxIconChoiceCtrl_Impl()

SvxIconChoiceCtrl_Impl::~SvxIconChoiceCtrl_Impl ( )

Member Function Documentation

◆ AddSelectedRect() [1/2]

void SvxIconChoiceCtrl_Impl::AddSelectedRect ( const tools::Rectangle rRect)
private

◆ AddSelectedRect() [2/2]

void SvxIconChoiceCtrl_Impl::AddSelectedRect ( SvxIconChoiceCtrlEntry pEntry1,
SvxIconChoiceCtrlEntry pEntry2 
)
private

◆ AdjustScrollBars()

void SvxIconChoiceCtrl_Impl::AdjustScrollBars ( )
private

◆ AdjustVirtSize()

void SvxIconChoiceCtrl_Impl::AdjustVirtSize ( const tools::Rectangle rRect)
private

◆ Arrange()

void SvxIconChoiceCtrl_Impl::Arrange ( bool  bKeepPredecessors,
tools::Long  nSetMaxVirtWidth,
tools::Long  nSetMaxVirtHeight 
)

◆ CalcBmpRect()

tools::Rectangle SvxIconChoiceCtrl_Impl::CalcBmpRect ( SvxIconChoiceCtrlEntry pEntry,
const Point pPos = nullptr 
)

◆ CalcBoundingHeight()

tools::Long SvxIconChoiceCtrl_Impl::CalcBoundingHeight ( ) const

◆ CalcBoundingSize()

Size SvxIconChoiceCtrl_Impl::CalcBoundingSize ( ) const

Definition at line 1689 of file imivctl1.cxx.

References CalcBoundingHeight(), and CalcBoundingWidth().

Referenced by Center(), and FindBoundingRect().

◆ CalcBoundingWidth()

tools::Long SvxIconChoiceCtrl_Impl::CalcBoundingWidth ( ) const

◆ CalcFocusRect()

tools::Rectangle SvxIconChoiceCtrl_Impl::CalcFocusRect ( SvxIconChoiceCtrlEntry pEntry)

◆ CalcMaxTextRect()

tools::Rectangle SvxIconChoiceCtrl_Impl::CalcMaxTextRect ( const SvxIconChoiceCtrlEntry pEntry) const
private

◆ CalcTextRect()

tools::Rectangle SvxIconChoiceCtrl_Impl::CalcTextRect ( SvxIconChoiceCtrlEntry pEntry,
const Point pPos = nullptr,
const OUString *  pStr = nullptr 
)

◆ CallEventListeners()

void SvxIconChoiceCtrl_Impl::CallEventListeners ( VclEventId  nEvent,
void *  pData 
)

Definition at line 2921 of file imivctl1.cxx.

References SvtIconChoiceCtrl::CallImplEventListeners(), pData, and pView.

Referenced by EntrySelected(), and SetCursor_Impl().

◆ CallSelectHandler()

void SvxIconChoiceCtrl_Impl::CallSelectHandler ( )
private

◆ CancelUserEvents()

void SvxIconChoiceCtrl_Impl::CancelUserEvents ( )
private

Definition at line 2521 of file imivctl1.cxx.

References nUserEventAdjustScrBars, and Application::RemoveUserEvent().

Referenced by Clear(), and ~SvxIconChoiceCtrl_Impl().

◆ Center()

void SvxIconChoiceCtrl_Impl::Center ( SvxIconChoiceCtrlEntry pEntry) const
private

◆ CheckBoundingRects()

void SvxIconChoiceCtrl_Impl::CheckBoundingRects ( )
inline

Definition at line 350 of file imivctl.hxx.

References bBoundRectsDirty, and RecalcAllBoundingRectsSmart().

Referenced by GetEntry(), IcnCursor_Impl::ImplCreate(), and SelectRect().

◆ CheckHorScrollBar()

bool SvxIconChoiceCtrl_Impl::CheckHorScrollBar ( )
private

◆ CheckScrollBars()

void SvxIconChoiceCtrl_Impl::CheckScrollBars ( )
private

◆ CheckVerScrollBar()

bool SvxIconChoiceCtrl_Impl::CheckVerScrollBar ( )
private

◆ Clear()

void SvxIconChoiceCtrl_Impl::Clear ( bool  bInCtor)

◆ ClearPredecessors()

void SvxIconChoiceCtrl_Impl::ClearPredecessors ( )
private

Definition at line 418 of file imivctl1.cxx.

References maEntries, nCount, SvxIconChoiceCtrlEntry::pblink, SvxIconChoiceCtrlEntry::pflink, and pHead.

Referenced by ImpArrange().

◆ ClearSelectedRectList()

void SvxIconChoiceCtrl_Impl::ClearSelectedRectList ( )
private

Definition at line 2410 of file imivctl1.cxx.

References aSelectedRectList.

Referenced by DeselectAllBut(), KeyInput(), MouseButtonDown(), and ~SvxIconChoiceCtrl_Impl().

◆ ClipAtVirtOutRect()

void SvxIconChoiceCtrl_Impl::ClipAtVirtOutRect ( tools::Rectangle rRect) const
private

◆ Command()

void SvxIconChoiceCtrl_Impl::Command ( const CommandEvent rCEvt)

◆ DECL_LINK() [1/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( AutoArrangeHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [2/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( CallSelectHdlHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [3/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( DocRectChangedHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [4/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( ScrollLeftRightHdl  ,
ScrollBar ,
void   
)
private

◆ DECL_LINK() [5/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( ScrollUpDownHdl  ,
ScrollBar ,
void   
)
private

◆ DECL_LINK() [6/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( UserEventHdl  ,
void *  ,
void   
)
private

◆ DECL_LINK() [7/7]

SvxIconChoiceCtrl_Impl::DECL_LINK ( VisRectChangedHdl  ,
Timer ,
void   
)
private

◆ DeselectAllBut()

void SvxIconChoiceCtrl_Impl::DeselectAllBut ( SvxIconChoiceCtrlEntry const *  pThisEntryNot)
private

◆ DocRectChanged()

void SvxIconChoiceCtrl_Impl::DocRectChanged ( )
inlineprivate

Definition at line 235 of file imivctl.hxx.

References aDocRectChangedIdle, and Idle::Start().

Referenced by AdjustVirtSize(), and Clear().

◆ DrawFocusRect()

void SvxIconChoiceCtrl_Impl::DrawFocusRect ( vcl::RenderContext rRenderContext)
private

◆ DrawHighlightFrame()

void SvxIconChoiceCtrl_Impl::DrawHighlightFrame ( vcl::RenderContext rRenderContext,
const tools::Rectangle rBmpRect 
)

◆ EntrySelected()

void SvxIconChoiceCtrl_Impl::EntrySelected ( SvxIconChoiceCtrlEntry pEntry,
bool  bSelect 
)
private

◆ FindBoundingRect()

void SvxIconChoiceCtrl_Impl::FindBoundingRect ( SvxIconChoiceCtrlEntry pEntry)

◆ FindEntryPredecessor()

SvxIconChoiceCtrlEntry * SvxIconChoiceCtrl_Impl::FindEntryPredecessor ( SvxIconChoiceCtrlEntry pEntry,
const Point rPosTopLeft 
)

◆ FontModified()

void SvxIconChoiceCtrl_Impl::FontModified ( )

Definition at line 179 of file imivctl1.cxx.

References SetDefaultTextSize(), and ShowCursor().

◆ GetAccessibleFactory()

::vcl::IAccessibleFactory & SvxIconChoiceCtrl_Impl::GetAccessibleFactory ( )
inline

Definition at line 415 of file imivctl.hxx.

References aAccFactory.

◆ GetColumn()

const SvxIconChoiceCtrlColumnInfo * SvxIconChoiceCtrl_Impl::GetColumn ( sal_uInt16  nIndex) const

Definition at line 2831 of file imivctl1.cxx.

References m_pColumns, and nIndex.

Referenced by SetGrid().

◆ GetCurEntry()

SvxIconChoiceCtrlEntry * SvxIconChoiceCtrl_Impl::GetCurEntry ( ) const
inline

Definition at line 303 of file imivctl.hxx.

References pCursor.

Referenced by KeyInput().

◆ GetEntry() [1/3]

SvxIconChoiceCtrlEntry * SvxIconChoiceCtrl_Impl::GetEntry ( const Point rDocPos,
bool  bHit = false 
)

◆ GetEntry() [2/3]

SvxIconChoiceCtrlEntry * SvxIconChoiceCtrl_Impl::GetEntry ( size_t  nPos)
inline

Definition at line 385 of file imivctl.hxx.

References maEntries, and nPos.

◆ GetEntry() [3/3]

SvxIconChoiceCtrlEntry * SvxIconChoiceCtrl_Impl::GetEntry ( size_t  nPos) const
inline

Definition at line 389 of file imivctl.hxx.

References maEntries, and nPos.

◆ GetEntryBoundRect()

const tools::Rectangle & SvxIconChoiceCtrl_Impl::GetEntryBoundRect ( SvxIconChoiceCtrlEntry pEntry)

◆ GetEntryCount()

size_t SvxIconChoiceCtrl_Impl::GetEntryCount ( ) const
inline

Definition at line 384 of file imivctl.hxx.

References maEntries.

Referenced by IsMnemonicChar(), and SelectRange().

◆ GetEntryListPos()

sal_Int32 SvxIconChoiceCtrl_Impl::GetEntryListPos ( SvxIconChoiceCtrlEntry const *  pEntry) const

◆ GetFirstSelectedEntry()

SvxIconChoiceCtrlEntry * SvxIconChoiceCtrl_Impl::GetFirstSelectedEntry ( ) const

◆ GetFocus()

void SvxIconChoiceCtrl_Impl::GetFocus ( )

◆ GetItemSize()

const Size & SvxIconChoiceCtrl_Impl::GetItemSize ( IcnViewFieldType  eItem) const

Definition at line 2199 of file imivctl1.cxx.

References aDefaultTextSize, aImageSize, and Text.

Referenced by CalcBoundingHeight(), and CalcBoundingWidth().

◆ GetMinGrid()

Size SvxIconChoiceCtrl_Impl::GetMinGrid ( ) const

◆ GetOutputRect()

tools::Rectangle SvxIconChoiceCtrl_Impl::GetOutputRect ( ) const

◆ GetPredecessorGrid()

GridId SvxIconChoiceCtrl_Impl::GetPredecessorGrid ( const Point rDocPos) const
private

◆ GetScrollBarLineSize()

tools::Long SvxIconChoiceCtrl_Impl::GetScrollBarLineSize ( ) const
inlineprivate

Definition at line 179 of file imivctl.hxx.

References nMaxBoundHeight.

Referenced by CalcBoundingHeight(), and HandleScrollCommand().

◆ GetScrollBarPageSize()

static tools::Long SvxIconChoiceCtrl_Impl::GetScrollBarPageSize ( tools::Long  nVisibleRange)
inlinestaticprivate

Definition at line 175 of file imivctl.hxx.

Referenced by AdjustScrollBars(), and HandleScrollCommand().

◆ GetSelectionCount()

sal_Int32 SvxIconChoiceCtrl_Impl::GetSelectionCount ( ) const

Definition at line 2023 of file imivctl1.cxx.

References nSelectionCount, nWinBits, pCurHighlightFrame, and WB_HIGHLIGHTFRAME.

Referenced by GetFirstSelectedEntry().

◆ GetStyle()

WinBits SvxIconChoiceCtrl_Impl::GetStyle ( ) const
inline

Definition at line 265 of file imivctl.hxx.

References nWinBits.

◆ GetUpdateMode()

bool SvxIconChoiceCtrl_Impl::GetUpdateMode ( ) const
inline

Definition at line 291 of file imivctl.hxx.

References bUpdateMode.

Referenced by MakeVisible(), and SetColumn().

◆ HandleScrollCommand()

bool SvxIconChoiceCtrl_Impl::HandleScrollCommand ( const CommandEvent rCmd)
private

◆ HideDDIcon()

void SvxIconChoiceCtrl_Impl::HideDDIcon ( )

Definition at line 1806 of file imivctl1.cxx.

References vcl::Window::PaintImmediately(), and pView.

Referenced by MakeVisible().

◆ ImpArrange()

void SvxIconChoiceCtrl_Impl::ImpArrange ( bool  bKeepPredecessors)
private

◆ InitPredecessors()

void SvxIconChoiceCtrl_Impl::InitPredecessors ( )
private

◆ InitScrollBarBox()

void SvxIconChoiceCtrl_Impl::InitScrollBarBox ( )
private

◆ InitSettings()

void SvxIconChoiceCtrl_Impl::InitSettings ( )

◆ InsertEntry()

void SvxIconChoiceCtrl_Impl::InsertEntry ( std::unique_ptr< SvxIconChoiceCtrlEntry pEntry1,
size_t  nPos 
)

◆ InvalidateBoundingRect()

void SvxIconChoiceCtrl_Impl::InvalidateBoundingRect ( tools::Rectangle rRect)
inline

Definition at line 336 of file imivctl.hxx.

References bBoundRectsDirty, LONG_MAX, and tools::Rectangle::SetRight().

Referenced by InsertEntry(), and ResetVirtSize().

◆ InvalidateEntry()

void SvxIconChoiceCtrl_Impl::InvalidateEntry ( SvxIconChoiceCtrlEntry pEntry)

◆ IsAutoArrange()

bool SvxIconChoiceCtrl_Impl::IsAutoArrange ( ) const
inlineprivate

◆ IsBoundingRectValid()

static bool SvxIconChoiceCtrl_Impl::IsBoundingRectValid ( const tools::Rectangle rRect)
inlinestatic

◆ IsMnemonicChar()

bool SvxIconChoiceCtrl_Impl::IsMnemonicChar ( sal_Unicode  cChar,
sal_uLong rPos 
) const
private

◆ IsOver()

bool SvxIconChoiceCtrl_Impl::IsOver ( std::vector< tools::Rectangle > *  pSelectedRectList,
const tools::Rectangle rEntryBoundRect 
)
static

Definition at line 2382 of file imivctl1.cxx.

References nCount, and tools::Rectangle::Overlaps().

Referenced by SelectRect().

◆ KeyInput()

bool SvxIconChoiceCtrl_Impl::KeyInput ( const KeyEvent rKEvt)

◆ LoseFocus()

void SvxIconChoiceCtrl_Impl::LoseFocus ( )

◆ MakeEntryVisible()

void SvxIconChoiceCtrl_Impl::MakeEntryVisible ( SvxIconChoiceCtrlEntry pEntry,
bool  bBound = true 
)

◆ MakeVisible()

void SvxIconChoiceCtrl_Impl::MakeVisible ( const tools::Rectangle rDocPos,
bool  bInScrollBarEvent = false 
)

◆ MouseButtonDown()

bool SvxIconChoiceCtrl_Impl::MouseButtonDown ( const MouseEvent rMEvt)

◆ MouseButtonUp()

bool SvxIconChoiceCtrl_Impl::MouseButtonUp ( const MouseEvent rMEvt)

◆ MouseMove()

bool SvxIconChoiceCtrl_Impl::MouseMove ( const MouseEvent rMEvt)

◆ operator=()

SvxIconChoiceCtrl_Impl & SvxIconChoiceCtrl_Impl::operator= ( const SvxIconChoiceCtrl_Impl )
privatedelete

◆ Paint()

void SvxIconChoiceCtrl_Impl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)

◆ PaintEmphasis()

void SvxIconChoiceCtrl_Impl::PaintEmphasis ( const tools::Rectangle rRect1,
bool  bSelected,
vcl::RenderContext rRenderContext 
)
static

◆ PaintEntry()

void SvxIconChoiceCtrl_Impl::PaintEntry ( SvxIconChoiceCtrlEntry pEntry,
const Point rPos,
vcl::RenderContext rRenderContext 
)

◆ PaintItem()

void SvxIconChoiceCtrl_Impl::PaintItem ( const tools::Rectangle rRect,
IcnViewFieldType  eItem,
SvxIconChoiceCtrlEntry pEntry,
sal_uInt16  nPaintFlags,
vcl::RenderContext rRenderContext 
)

◆ PositionScrollBars()

void SvxIconChoiceCtrl_Impl::PositionScrollBars ( tools::Long  nRealWidth,
tools::Long  nRealHeight 
)
private

◆ RecalcAllBoundingRectsSmart()

void SvxIconChoiceCtrl_Impl::RecalcAllBoundingRectsSmart ( )

◆ RemoveEntry()

void SvxIconChoiceCtrl_Impl::RemoveEntry ( size_t  nPos)

Definition at line 224 of file imivctl1.cxx.

References maEntries, nPos, pImpCursor, and RecalcAllBoundingRectsSmart().

◆ RepaintSelectedEntries()

void SvxIconChoiceCtrl_Impl::RepaintSelectedEntries ( )
private

◆ RequestHelp()

bool SvxIconChoiceCtrl_Impl::RequestHelp ( const HelpEvent rHEvt)

◆ ResetVirtSize()

void SvxIconChoiceCtrl_Impl::ResetVirtSize ( )
private

◆ Resize()

void SvxIconChoiceCtrl_Impl::Resize ( )

◆ Scroll()

void SvxIconChoiceCtrl_Impl::Scroll ( tools::Long  nDeltaX,
tools::Long  nDeltaY 
)

◆ SelectAll()

void SvxIconChoiceCtrl_Impl::SelectAll ( )

Definition at line 2583 of file imivctl1.cxx.

References AddMode, maEntries, nCount, nFlags, pAnchor, and SelectEntry().

Referenced by KeyInput().

◆ SelectEntry()

void SvxIconChoiceCtrl_Impl::SelectEntry ( SvxIconChoiceCtrlEntry pEntry,
bool  bSelect,
bool  bAddToSelection = false 
)

◆ SelectRange()

void SvxIconChoiceCtrl_Impl::SelectRange ( SvxIconChoiceCtrlEntry const *  pStart,
SvxIconChoiceCtrlEntry const *  pEnd,
bool  bAdd 
)
private

◆ SelectRect() [1/2]

void SvxIconChoiceCtrl_Impl::SelectRect ( const tools::Rectangle rRect,
bool  bAdd,
std::vector< tools::Rectangle > *  pOtherRects 
)

◆ SelectRect() [2/2]

void SvxIconChoiceCtrl_Impl::SelectRect ( SvxIconChoiceCtrlEntry pEntry1,
SvxIconChoiceCtrlEntry pEntry2,
bool  bAdd,
std::vector< tools::Rectangle > *  pOtherRects 
)
private

◆ SetBoundingRect_Impl()

void SvxIconChoiceCtrl_Impl::SetBoundingRect_Impl ( SvxIconChoiceCtrlEntry pEntry,
const Point rPos,
const Size rBoundingSize 
)

◆ SetColumn()

void SvxIconChoiceCtrl_Impl::SetColumn ( sal_uInt16  nIndex,
const SvxIconChoiceCtrlColumnInfo rInfo 
)

◆ SetCursor()

void SvxIconChoiceCtrl_Impl::SetCursor ( SvxIconChoiceCtrlEntry pEntry)

◆ SetCursor_Impl()

void SvxIconChoiceCtrl_Impl::SetCursor_Impl ( SvxIconChoiceCtrlEntry pOldCursor,
SvxIconChoiceCtrlEntry pNewCursor,
bool  bMod1,
bool  bShift 
)

◆ SetDefaultTextSize()

void SvxIconChoiceCtrl_Impl::SetDefaultTextSize ( )
private

◆ SetEntryHighlightFrame()

void SvxIconChoiceCtrl_Impl::SetEntryHighlightFrame ( SvxIconChoiceCtrlEntry pEntry,
bool  bKeepHighlightFlags 
)

◆ SetEntryPos()

void SvxIconChoiceCtrl_Impl::SetEntryPos ( SvxIconChoiceCtrlEntry pEntry,
const Point rPos 
)

◆ SetEntryPredecessor()

void SvxIconChoiceCtrl_Impl::SetEntryPredecessor ( SvxIconChoiceCtrlEntry pEntry,
SvxIconChoiceCtrlEntry pPredecessor 
)

◆ SetEntryTextMode()

void SvxIconChoiceCtrl_Impl::SetEntryTextMode ( SvxIconChoiceCtrlTextMode  eMode,
SvxIconChoiceCtrlEntry pEntry 
)

◆ SetGrid()

void SvxIconChoiceCtrl_Impl::SetGrid ( const Size rSize)

◆ SetListPositions()

void SvxIconChoiceCtrl_Impl::SetListPositions ( )
private

Definition at line 238 of file imivctl1.cxx.

References EntryListPosValid, maEntries, nCount, and nFlags.

Referenced by GetEntryListPos().

◆ SetNoSelection()

void SvxIconChoiceCtrl_Impl::SetNoSelection ( )

Definition at line 1505 of file imivctl1.cxx.

References ClearingSelection, DeselectAllBut(), and nFlags.

Referenced by KeyInput(), and MouseButtonDown().

◆ SetOrigin()

void SvxIconChoiceCtrl_Impl::SetOrigin ( const Point rPos)
private

◆ SetPositionMode()

void SvxIconChoiceCtrl_Impl::SetPositionMode ( SvxIconChoiceCtrlPositionMode  eMode)

◆ SetSelectionMode()

void SvxIconChoiceCtrl_Impl::SetSelectionMode ( SelectionMode  eMode)
inline

Definition at line 258 of file imivctl.hxx.

References eMode, and eSelectionMode.

◆ SetStyle()

void SvxIconChoiceCtrl_Impl::SetStyle ( WinBits  nWinStyle)

◆ SetUpdateMode()

void SvxIconChoiceCtrl_Impl::SetUpdateMode ( bool  bUpdate)

◆ ShowCursor()

void SvxIconChoiceCtrl_Impl::ShowCursor ( bool  bShow)
private

◆ ShowFocus()

void SvxIconChoiceCtrl_Impl::ShowFocus ( tools::Rectangle const &  rRect)
private

◆ ToDocPos()

void SvxIconChoiceCtrl_Impl::ToDocPos ( Point rPosPixel)
inlineprivate

Definition at line 184 of file imivctl.hxx.

References vcl::Window::GetMapMode(), MapMode::GetOrigin(), and pView.

Referenced by MouseButtonDown(), and MouseButtonUp().

◆ ToggleSelection()

void SvxIconChoiceCtrl_Impl::ToggleSelection ( SvxIconChoiceCtrlEntry pEntry)
private

Definition at line 2030 of file imivctl1.cxx.

References SvxIconChoiceCtrlEntry::IsSelected(), and SelectEntry().

Referenced by KeyInput(), and MouseButtonUp().

◆ ToTop()

void SvxIconChoiceCtrl_Impl::ToTop ( SvxIconChoiceCtrlEntry pEntry)

Definition at line 1902 of file imivctl1.cxx.

References maZOrderList.

Referenced by EntrySelected(), SetCursor(), and SetEntryPos().

◆ VisRectChanged()

void SvxIconChoiceCtrl_Impl::VisRectChanged ( )
inlineprivate

Definition at line 236 of file imivctl.hxx.

References aVisRectChangedIdle, and Idle::Start().

Referenced by Clear(), ImpArrange(), MakeVisible(), ResetVirtSize(), and Resize().

Friends And Related Function Documentation

◆ IcnCursor_Impl

friend class IcnCursor_Impl
friend

Definition at line 113 of file imivctl.hxx.

Referenced by SvxIconChoiceCtrl_Impl().

◆ IcnGridMap_Impl

friend class IcnGridMap_Impl
friend

Definition at line 114 of file imivctl.hxx.

Referenced by SvxIconChoiceCtrl_Impl().

Member Data Documentation

◆ aAccFactory

::vcl::AccessibleFactoryAccess SvxIconChoiceCtrl_Impl::aAccFactory
private

Definition at line 149 of file imivctl.hxx.

Referenced by GetAccessibleFactory().

◆ aAutoArrangeIdle

Idle SvxIconChoiceCtrl_Impl::aAutoArrangeIdle
private

◆ aCallSelectHdlIdle

Idle SvxIconChoiceCtrl_Impl::aCallSelectHdlIdle
private

Definition at line 125 of file imivctl.hxx.

Referenced by CallSelectHandler(), and SvxIconChoiceCtrl_Impl().

◆ aCurSelectionRect

tools::Rectangle SvxIconChoiceCtrl_Impl::aCurSelectionRect
private

Definition at line 120 of file imivctl.hxx.

Referenced by MouseButtonDown(), SelectRect(), and SetCursor_Impl().

◆ aDefaultTextSize

Size SvxIconChoiceCtrl_Impl::aDefaultTextSize
private

Definition at line 128 of file imivctl.hxx.

Referenced by CalcMaxTextRect(), GetItemSize(), and SetDefaultTextSize().

◆ aDocRectChangedIdle

Idle SvxIconChoiceCtrl_Impl::aDocRectChangedIdle
private

Definition at line 123 of file imivctl.hxx.

Referenced by DocRectChanged(), and SvxIconChoiceCtrl_Impl().

◆ aFocus

LocalFocus SvxIconChoiceCtrl_Impl::aFocus
private

Definition at line 148 of file imivctl.hxx.

Referenced by DrawFocusRect(), and ShowFocus().

◆ aHorSBar

VclPtr<ScrollBar> SvxIconChoiceCtrl_Impl::aHorSBar
private

◆ aImageSize

Size SvxIconChoiceCtrl_Impl::aImageSize
private

◆ aOutputSize

Size SvxIconChoiceCtrl_Impl::aOutputSize
private

◆ aScrBarBox

VclPtr<ScrollBarBox> SvxIconChoiceCtrl_Impl::aScrBarBox
private

◆ aSelectedRectList

std::vector<tools::Rectangle> SvxIconChoiceCtrl_Impl::aSelectedRectList
private

◆ aVerSBar

VclPtr<ScrollBar> SvxIconChoiceCtrl_Impl::aVerSBar
private

◆ aVirtOutputSize

Size SvxIconChoiceCtrl_Impl::aVirtOutputSize
private

◆ aVisRectChangedIdle

Idle SvxIconChoiceCtrl_Impl::aVisRectChangedIdle
private

Definition at line 124 of file imivctl.hxx.

Referenced by SvxIconChoiceCtrl_Impl(), and VisRectChanged().

◆ bBoundRectsDirty

bool SvxIconChoiceCtrl_Impl::bBoundRectsDirty
private

Definition at line 155 of file imivctl.hxx.

Referenced by CheckBoundingRects(), Clear(), ImpArrange(), and InvalidateBoundingRect().

◆ bHighlightFramePressed

bool SvxIconChoiceCtrl_Impl::bHighlightFramePressed
private

◆ bUpdateMode

bool SvxIconChoiceCtrl_Impl::bUpdateMode
private

Definition at line 156 of file imivctl.hxx.

Referenced by Clear(), EntrySelected(), GetUpdateMode(), ImpArrange(), InsertEntry(), and SetUpdateMode().

◆ ePositionMode

SvxIconChoiceCtrlPositionMode SvxIconChoiceCtrl_Impl::ePositionMode
private

Definition at line 154 of file imivctl.hxx.

Referenced by IsAutoArrange(), and SetPositionMode().

◆ eSelectionMode

SelectionMode SvxIconChoiceCtrl_Impl::eSelectionMode
private

◆ eTextMode

SvxIconChoiceCtrlTextMode SvxIconChoiceCtrl_Impl::eTextMode
private

Definition at line 151 of file imivctl.hxx.

Referenced by SetEntryTextMode().

◆ m_pColumns

std::unique_ptr<SvxIconChoiceCtrlColumnInfoMap> SvxIconChoiceCtrl_Impl::m_pColumns
private

Definition at line 136 of file imivctl.hxx.

Referenced by GetColumn(), SetColumn(), SetStyle(), and ~SvxIconChoiceCtrl_Impl().

◆ maEntries

std::vector< std::unique_ptr<SvxIconChoiceCtrlEntry> > SvxIconChoiceCtrl_Impl::maEntries
private

◆ maZOrderList

std::vector< SvxIconChoiceCtrlEntry* > SvxIconChoiceCtrl_Impl::maZOrderList
private

◆ nCurTextDrawFlags

DrawTextFlags SvxIconChoiceCtrl_Impl::nCurTextDrawFlags
private

Definition at line 140 of file imivctl.hxx.

Referenced by CalcTextRect(), PaintItem(), RequestHelp(), and SetStyle().

◆ nFlags

IconChoiceFlags SvxIconChoiceCtrl_Impl::nFlags
private

◆ nGridDX

tools::Long SvxIconChoiceCtrl_Impl::nGridDX

◆ nGridDY

tools::Long SvxIconChoiceCtrl_Impl::nGridDY

◆ nHorSBarHeight

tools::Long SvxIconChoiceCtrl_Impl::nHorSBarHeight

◆ nMaxBoundHeight

tools::Long SvxIconChoiceCtrl_Impl::nMaxBoundHeight
private

◆ nMaxVirtHeight

tools::Long SvxIconChoiceCtrl_Impl::nMaxVirtHeight
private

Definition at line 134 of file imivctl.hxx.

Referenced by Arrange(), Clear(), IcnGridMap_Impl::GetMinMapSize(), and ResetVirtSize().

◆ nMaxVirtWidth

tools::Long SvxIconChoiceCtrl_Impl::nMaxVirtWidth
private

Definition at line 133 of file imivctl.hxx.

Referenced by Arrange(), Clear(), IcnGridMap_Impl::GetMinMapSize(), and ResetVirtSize().

◆ nSelectionCount

sal_Int32 SvxIconChoiceCtrl_Impl::nSelectionCount
private

Definition at line 153 of file imivctl.hxx.

Referenced by Clear(), GetSelectionCount(), and SelectEntry().

◆ nUserEventAdjustScrBars

ImplSVEvent* SvxIconChoiceCtrl_Impl::nUserEventAdjustScrBars
private

Definition at line 141 of file imivctl.hxx.

Referenced by CancelUserEvents(), and Resize().

◆ nVerSBarWidth

tools::Long SvxIconChoiceCtrl_Impl::nVerSBarWidth

◆ nWinBits

WinBits SvxIconChoiceCtrl_Impl::nWinBits
private

◆ pAnchor

SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::pAnchor
private

Definition at line 147 of file imivctl.hxx.

Referenced by DeselectAllBut(), MouseButtonDown(), SelectAll(), and SetCursor_Impl().

◆ pCurHighlightFrame

SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::pCurHighlightFrame
private

◆ pCursor

SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::pCursor
private

◆ pGridMap

std::unique_ptr<IcnGridMap_Impl> SvxIconChoiceCtrl_Impl::pGridMap
private

◆ pHdlEntry

SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::pHdlEntry
private

Definition at line 146 of file imivctl.hxx.

Referenced by CallSelectHandler(), KeyInput(), MouseButtonDown(), MouseButtonUp(), and SelectEntry().

◆ pHead

SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::pHead = nullptr
private

◆ pImpCursor

std::unique_ptr<IcnCursor_Impl> SvxIconChoiceCtrl_Impl::pImpCursor
private

◆ pView

VclPtr<SvtIconChoiceCtrl> SvxIconChoiceCtrl_Impl::pView
private

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