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

View-dependent data for a tree list entry created in the virtual function SvTreeListBox::CreateViewData(). More...

#include <viewdataentry.hxx>

Public Member Functions

 SvViewDataEntry ()
 
 SvViewDataEntry (const SvViewDataEntry &)
 
 ~SvViewDataEntry ()
 
bool IsSelected () const
 
bool IsHighlighted () const
 
bool IsExpanded () const
 
bool HasFocus () const
 
bool IsSelectable () const
 
bool IsDragTarget () const
 
void SetFocus (bool bFocus)
 
void SetSelected (bool bSelected)
 
void SetExpanded (bool bExpanded)
 
void SetSelectable (bool bSelectable)
 
void SetDragTarget (bool bDragTarget)
 
void Init (size_t nSize)
 
const SvViewDataItemGetItem (size_t nPos) const
 
SvViewDataItemGetItem (size_t nPos)
 

Private Attributes

std::vector< SvViewDataItemmaItems
 
sal_uInt32 nVisPos
 
bool mbSelected:1
 
bool mbHighlighted:1
 
bool mbExpanded:1
 
bool mbFocused:1
 
bool mbSelectable:1
 
bool mbDragTarget:1
 

Friends

class SvTreeList
 

Detailed Description

View-dependent data for a tree list entry created in the virtual function SvTreeListBox::CreateViewData().

The item array contains the same number of items as that of the items in its corresponding tree list entry.

When an entry is selected, it is logically selected and visually highlighted. When an entry is only highlighted, it looks visually highlighted, but not logically selected.

Definition at line 46 of file viewdataentry.hxx.

Constructor & Destructor Documentation

◆ SvViewDataEntry() [1/2]

SvViewDataEntry::SvViewDataEntry ( )

Definition at line 22 of file viewdataentry.cxx.

◆ SvViewDataEntry() [2/2]

SvViewDataEntry::SvViewDataEntry ( const SvViewDataEntry rData)

Definition at line 33 of file viewdataentry.cxx.

◆ ~SvViewDataEntry()

SvViewDataEntry::~SvViewDataEntry ( )

Definition at line 44 of file viewdataentry.cxx.

References nVisPos.

Member Function Documentation

◆ GetItem() [1/2]

SvViewDataItem & SvViewDataEntry::GetItem ( size_t  nPos)

Definition at line 82 of file viewdataentry.cxx.

References maItems, and nPos.

◆ GetItem() [2/2]

const SvViewDataItem & SvViewDataEntry::GetItem ( size_t  nPos) const

Definition at line 77 of file viewdataentry.cxx.

References maItems, and nPos.

Referenced by SvTreeListBox::GetViewDataItem(), and SvTreeListBox::InitViewData().

◆ HasFocus()

bool SvViewDataEntry::HasFocus ( ) const
inline

Definition at line 67 of file viewdataentry.hxx.

References mbFocused.

Referenced by SvTreeListBox::FillAccessibleEntryStateSet(), and SvImpLBox::SetCursor().

◆ Init()

void SvViewDataEntry::Init ( size_t  nSize)

Definition at line 72 of file viewdataentry.cxx.

References maItems.

Referenced by SvTreeListBox::InitViewData().

◆ IsDragTarget()

bool SvViewDataEntry::IsDragTarget ( ) const
inline

Definition at line 69 of file viewdataentry.hxx.

References mbDragTarget.

Referenced by SvTreeListBox::PaintEntry1().

◆ IsExpanded()

bool SvViewDataEntry::IsExpanded ( ) const
inline

Definition at line 66 of file viewdataentry.hxx.

References mbExpanded.

Referenced by SvLBoxContextBmp::Paint().

◆ IsHighlighted()

bool SvViewDataEntry::IsHighlighted ( ) const
inline

Definition at line 65 of file viewdataentry.hxx.

References mbHighlighted.

Referenced by IconView::PaintEntry(), and SvTreeListBox::PaintEntry1().

◆ IsSelectable()

bool SvViewDataEntry::IsSelectable ( ) const
inline

◆ IsSelected()

bool SvViewDataEntry::IsSelected ( ) const
inline

◆ SetDragTarget()

void SvViewDataEntry::SetDragTarget ( bool  bDragTarget)
inline

Definition at line 74 of file viewdataentry.hxx.

References mbDragTarget.

Referenced by SvImpLBox::PaintDDCursor().

◆ SetExpanded()

void SvViewDataEntry::SetExpanded ( bool  bExpanded)

◆ SetFocus()

void SvViewDataEntry::SetFocus ( bool  bFocus)

Definition at line 51 of file viewdataentry.cxx.

References mbFocused.

Referenced by SvImpLBox::SetCursor().

◆ SetSelectable()

void SvViewDataEntry::SetSelectable ( bool  bSelectable)

◆ SetSelected()

void SvViewDataEntry::SetSelected ( bool  bSelected)

Definition at line 56 of file viewdataentry.cxx.

References mbHighlighted, and mbSelected.

Referenced by SvListView::SelectListEntry().

Friends And Related Function Documentation

◆ SvTreeList

friend class SvTreeList
friend

Definition at line 48 of file viewdataentry.hxx.

Member Data Documentation

◆ maItems

std::vector<SvViewDataItem> SvViewDataEntry::maItems
private

Definition at line 50 of file viewdataentry.hxx.

Referenced by GetItem(), and Init().

◆ mbDragTarget

bool SvViewDataEntry::mbDragTarget
private

Definition at line 57 of file viewdataentry.hxx.

Referenced by IsDragTarget(), and SetDragTarget().

◆ mbExpanded

bool SvViewDataEntry::mbExpanded
private

Definition at line 54 of file viewdataentry.hxx.

Referenced by IsExpanded(), and SetExpanded().

◆ mbFocused

bool SvViewDataEntry::mbFocused
private

Definition at line 55 of file viewdataentry.hxx.

Referenced by HasFocus(), and SetFocus().

◆ mbHighlighted

bool SvViewDataEntry::mbHighlighted
private

Definition at line 53 of file viewdataentry.hxx.

Referenced by IsHighlighted(), and SetSelected().

◆ mbSelectable

bool SvViewDataEntry::mbSelectable
private

Definition at line 56 of file viewdataentry.hxx.

Referenced by IsSelectable(), and SetSelectable().

◆ mbSelected

bool SvViewDataEntry::mbSelected
private

Definition at line 52 of file viewdataentry.hxx.

Referenced by IsSelected(), and SetSelected().

◆ nVisPos

sal_uInt32 SvViewDataEntry::nVisPos
private

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