LibreOffice Module vcl (master) 1
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | List of all members
IconViewImpl Class Reference

#include <iconviewimpl.hxx>

Inheritance diagram for IconViewImpl:
[legend]
Collaboration diagram for IconViewImpl:
[legend]

Classes

struct  EntryAreaInfo
 

Public Member Functions

 IconViewImpl (SvTreeListBox *pTreeListBox, SvTreeList *pTreeList, WinBits nWinStyle)
 
void KeyDown (bool bPageDown) override
 
void KeyUp (bool bPageUp) override
 
Point GetEntryPosition (const SvTreeListEntry *pEntry) const override
 
SvTreeListEntryGetClickedEntry (const Point &rPoint) const override
 
bool IsEntryInView (SvTreeListEntry *pEntry) const override
 
void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
SvTreeListEntryGetEntry (const Point &rPoint) const override
 
void UpdateAll () override
 
bool KeyInput (const KeyEvent &) override
 
void InvalidateEntry (tools::Long nId) const override
 
- Public Member Functions inherited from SvImpLBox
 SvImpLBox (SvTreeListBox *pView, SvTreeList *, WinBits nWinStyle)
 
virtual ~SvImpLBox ()
 
void Clear ()
 
void SetStyle (WinBits i_nWinStyle)
 
void SetNoAutoCurEntry (bool b)
 
void SetModel (SvTreeList *pModel)
 
void EntryInserted (SvTreeListEntry *)
 
void RemovingEntry (SvTreeListEntry *pEntry)
 
void EntryRemoved ()
 
void MovingEntry (SvTreeListEntry *pEntry)
 
void EntryMoved (SvTreeListEntry *pEntry)
 
void TreeInserted (SvTreeListEntry *pEntry)
 
void EntryExpanded (SvTreeListEntry *pEntry)
 
void EntryCollapsed (SvTreeListEntry *pEntry)
 
void CollapsingEntry (SvTreeListEntry *pEntry)
 
void EntrySelected (SvTreeListEntry *pEntry, bool bSelect)
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
void MouseButtonDown (const MouseEvent &)
 
void MouseButtonUp (const MouseEvent &)
 
void MouseMove (const MouseEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
void Resize ()
 
void GetFocus ()
 
void LoseFocus ()
 
virtual void UpdateAll ()
 
void SetEntryHeight ()
 
void InvalidateEntry (SvTreeListEntry *)
 
void RecalcFocusRect ()
 
void SelectEntry (SvTreeListEntry *pEntry, bool bSelect)
 
void SetDragDropMode (DragDropMode eDDMode)
 
void SetSelectionMode (SelectionMode eSelMode)
 
virtual bool IsEntryInView (SvTreeListEntry *pEntry) const
 
virtual SvTreeListEntryGetEntry (const Point &rPos) const
 
virtual SvTreeListEntryGetClickedEntry (const Point &) const
 
SvTreeListEntryGetCurEntry () const
 
void SetCurEntry (SvTreeListEntry *)
 
virtual Point GetEntryPosition (const SvTreeListEntry *) const
 
void MakeVisible (SvTreeListEntry *pEntry, bool bMoveToTop=false)
 
void ScrollToAbsPos (tools::Long nPos)
 
void PaintDDCursor (SvTreeListEntry *pEntry, bool bShow)
 
ImageimplGetImageLocation (const ImageType _eType)
 
void SetExpandedNodeBmp (const Image &_rImg)
 
void SetCollapsedNodeBmp (const Image &_rImg)
 
const ImageGetExpandedNodeBmp ()
 
const ImageGetCollapsedNodeBmp ()
 
void SetDefaultEntryExpBmp (const Image &_rImg)
 
void SetDefaultEntryColBmp (const Image &_rImg)
 
const ImageGetDefaultEntryExpBmp ()
 
const ImageGetDefaultEntryColBmp ()
 
const SizeGetOutputSize () const
 
virtual void KeyUp (bool bPageUp)
 
virtual void KeyDown (bool bPageDown)
 
void Command (const CommandEvent &rCEvt)
 
void Invalidate ()
 
void DestroyAnchor ()
 
void SelAllDestrAnch (bool bSelect, bool bDestroyAnchor=true, bool bSingleSelToo=false)
 
void ShowCursor (bool bShow)
 
bool RequestHelp (const HelpEvent &rHEvt)
 
bool IsNodeButton (const Point &rPosPixel, const SvTreeListEntry *pEntry) const
 
void SetUpdateMode (bool bMode)
 
bool GetUpdateMode () const
 
tools::Rectangle GetClipRegionRect () const
 
bool HasHorScrollBar () const
 
void CallEventListeners (VclEventId nEvent, void *pData=nullptr)
 
bool IsSelectable (const SvTreeListEntry *pEntry) const
 
void SetForceMakeVisible (bool bEnable)
 
bool IsCaptureOnButtonActive () const
 

Protected Member Functions

tools::Long GetEntryLine (const SvTreeListEntry *pEntry) const override
 
void CursorUp () override
 
void CursorDown () override
 
void PageDown (sal_uInt16 nDelta) override
 
void PageUp (sal_uInt16 nDelta) override
 
void SyncVerThumb () override
 
void AdjustScrollBars (Size &rSize) override
 
- Protected Member Functions inherited from SvImpLBox
virtual tools::Long GetEntryLine (const SvTreeListEntry *pEntry) const
 
virtual void CursorDown ()
 
virtual void CursorUp ()
 
virtual void PageDown (sal_uInt16 nDelta)
 
virtual void PageUp (sal_uInt16 nDelta)
 
virtual void SyncVerThumb ()
 
virtual void AdjustScrollBars (Size &rSize)
 
virtual void InvalidateEntry (tools::Long nY) const
 
tools::Rectangle GetVisibleArea () const
 
void SetCursor (SvTreeListEntry *pEntry, bool bForceNoSelect=false)
 
void PositionScrollBars (Size &rOSize, sal_uInt16 nMask)
 
void FindMostRight ()
 
void FillView ()
 
void ShowVerSBar ()
 
void StopUserEvent ()
 
 DECL_LINK (MyUserEvent, void *, void)
 

Private Types

enum class  CallbackResult {
  Continue ,
  Stop
}
 
using IterateEntriesFunc = std::function< CallbackResult(const EntryAreaInfo &)>
 

Private Member Functions

void IterateVisibleEntryAreas (const IterateEntriesFunc &f, bool fromStartEntry=false) const
 
Size GetEntrySize (const SvTreeListEntry &entry) const
 
SvTreeListEntryGoToPrevRow (SvTreeListEntry *pEntry, int n) const
 
SvTreeListEntryGoToNextRow (SvTreeListEntry *pEntry, int n) const
 
tools::Long GetEntryRow (const SvTreeListEntry *entry) const
 
void SetStartEntry (SvTreeListEntry *entry)
 
void ScrollTo (SvTreeListEntry *entry)
 

Additional Inherited Members

- Static Public Member Functions inherited from SvImpLBox
static const ImageGetDefaultExpandedNodeImage ()
 
static const ImageGetDefaultCollapsedNodeImage ()
 
- Protected Attributes inherited from SvImpLBox
VclPtr< SvTreeListBoxm_pView
 
VclPtr< ScrollBarm_aHorSBar
 
VclPtr< ScrollBarm_aVerSBar
 
SvTreeListEntrym_pCursor
 
SvTreeListEntrym_pCursorOld
 
SvTreeListEntrym_pStartEntry
 
ImplSVEventm_nCurUserEvent
 
Size m_aOutputSize
 
LBoxFlags m_nFlags
 
WinBits m_nStyle
 
bool mbNoAutoCurEntry
 
SelectionEngine m_aSelEng
 
sal_uLong m_nVisibleCount
 
bool m_bInVScrollHdl: 1
 
bool m_bSimpleTravel: 1
 
tools::Long m_nNextVerVisSize
 
tools::Long m_nNodeBmpTabDistance
 

Detailed Description

Definition at line 27 of file iconviewimpl.hxx.

Member Typedef Documentation

◆ IterateEntriesFunc

using IconViewImpl::IterateEntriesFunc = std::function<CallbackResult(const EntryAreaInfo&)>
private

Definition at line 76 of file iconviewimpl.hxx.

Member Enumeration Documentation

◆ CallbackResult

enum class IconViewImpl::CallbackResult
strongprivate
Enumerator
Continue 
Stop 

Definition at line 65 of file iconviewimpl.hxx.

Constructor & Destructor Documentation

◆ IconViewImpl()

IconViewImpl::IconViewImpl ( SvTreeListBox pTreeListBox,
SvTreeList pTreeList,
WinBits  nWinStyle 
)

Definition at line 26 of file iconviewimpl.cxx.

Member Function Documentation

◆ AdjustScrollBars()

void IconViewImpl::AdjustScrollBars ( Size rSize)
overrideprotectedvirtual

◆ CursorDown()

void IconViewImpl::CursorDown ( )
overrideprotectedvirtual

◆ CursorUp()

void IconViewImpl::CursorUp ( )
overrideprotectedvirtual

◆ GetClickedEntry()

SvTreeListEntry * IconViewImpl::GetClickedEntry ( const Point rPoint) const
overridevirtual

◆ GetEntry()

SvTreeListEntry * IconViewImpl::GetEntry ( const Point rPoint) const
overridevirtual

◆ GetEntryLine()

tools::Long IconViewImpl::GetEntryLine ( const SvTreeListEntry pEntry) const
overrideprotectedvirtual

Reimplemented from SvImpLBox.

Definition at line 283 of file iconviewimpl.cxx.

References GetEntryPosition(), SvImpLBox::m_pStartEntry, and Point::Y().

Referenced by IsEntryInView().

◆ GetEntryPosition()

Point IconViewImpl::GetEntryPosition ( const SvTreeListEntry pEntry) const
overridevirtual

◆ GetEntryRow()

tools::Long IconViewImpl::GetEntryRow ( const SvTreeListEntry entry) const
private

Definition at line 67 of file iconviewimpl.cxx.

References Continue, IsSeparator(), IterateVisibleEntryAreas(), and Stop.

Referenced by ScrollTo(), and SyncVerThumb().

◆ GetEntrySize()

Size IconViewImpl::GetEntrySize ( const SvTreeListEntry entry) const
private

◆ GoToNextRow()

SvTreeListEntry * IconViewImpl::GoToNextRow ( SvTreeListEntry pEntry,
int  n 
) const
private

Definition at line 153 of file iconviewimpl.cxx.

References Continue, IsSeparator(), IterateVisibleEntryAreas(), and Stop.

Referenced by CursorDown(), KeyInput(), PageDown(), and ScrollTo().

◆ GoToPrevRow()

SvTreeListEntry * IconViewImpl::GoToPrevRow ( SvTreeListEntry pEntry,
int  n 
) const
private

◆ InvalidateEntry()

void IconViewImpl::InvalidateEntry ( tools::Long  nId) const
overridevirtual

◆ IsEntryInView()

bool IconViewImpl::IsEntryInView ( SvTreeListEntry pEntry) const
overridevirtual

◆ IterateVisibleEntryAreas()

void IconViewImpl::IterateVisibleEntryAreas ( const IterateEntriesFunc f,
bool  fromStartEntry = false 
) const
private

◆ KeyDown()

void IconViewImpl::KeyDown ( bool  bPageDown)
overridevirtual

◆ KeyInput()

bool IconViewImpl::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ KeyUp()

void IconViewImpl::KeyUp ( bool  bPageUp)
overridevirtual

◆ PageDown()

void IconViewImpl::PageDown ( sal_uInt16  nDelta)
overrideprotectedvirtual

Reimplemented from SvImpLBox.

Definition at line 206 of file iconviewimpl.cxx.

References Filling, GoToNextRow(), SvImpLBox::m_nFlags, SvImpLBox::m_pStartEntry, SetStartEntry(), and SvImpLBox::ShowCursor().

Referenced by KeyDown().

◆ PageUp()

void IconViewImpl::PageUp ( sal_uInt16  nDelta)
overrideprotectedvirtual

Reimplemented from SvImpLBox.

Definition at line 224 of file iconviewimpl.cxx.

References Filling, GoToPrevRow(), SvImpLBox::m_nFlags, SvImpLBox::m_pStartEntry, SetStartEntry(), and SvImpLBox::ShowCursor().

Referenced by KeyUp().

◆ Paint()

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

◆ ScrollTo()

void IconViewImpl::ScrollTo ( SvTreeListEntry entry)
private

◆ SetStartEntry()

void IconViewImpl::SetStartEntry ( SvTreeListEntry entry)
private

◆ SyncVerThumb()

void IconViewImpl::SyncVerThumb ( )
overrideprotectedvirtual

Reimplemented from SvImpLBox.

Definition at line 462 of file iconviewimpl.cxx.

References GetEntryRow(), SvImpLBox::m_aVerSBar, SvImpLBox::m_pStartEntry, and ScrollBar::SetThumbPos().

Referenced by UpdateAll().

◆ UpdateAll()

void IconViewImpl::UpdateAll ( )
overridevirtual

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