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>

Collaboration diagram for SvViewDataEntry:
[legend]

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)
 
void SetPaintRectangle (tools::Rectangle aRectangle)
 
const tools::RectangleGetPaintRectangle () const
 

Private Attributes

std::vector< SvViewDataItemmaItems
 
sal_uLong nVisPos
 
bool mbSelected:1
 
bool mbHighlighted:1
 
bool mbExpanded:1
 
bool mbFocused:1
 
bool mbSelectable:1
 
bool mbDragTarget:1
 
tools::Rectangle maPaintRectangle
 

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::SvViewDataEntry ( )

Definition at line 22 of file viewdataentry.cxx.

SvViewDataEntry::SvViewDataEntry ( const SvViewDataEntry rData)

Definition at line 34 of file viewdataentry.cxx.

SvViewDataEntry::~SvViewDataEntry ( )

Definition at line 46 of file viewdataentry.cxx.

References nVisPos.

Member Function Documentation

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

Definition at line 84 of file viewdataentry.cxx.

References maItems.

const tools::Rectangle & SvViewDataEntry::GetPaintRectangle ( ) const

Definition at line 94 of file viewdataentry.cxx.

References maPaintRectangle.

bool SvViewDataEntry::HasFocus ( ) const
inline
void SvViewDataEntry::Init ( size_t  nSize)

Definition at line 74 of file viewdataentry.cxx.

References maItems.

Referenced by SvTreeListBox::InitViewData().

bool SvViewDataEntry::IsDragTarget ( ) const
inline

Definition at line 71 of file viewdataentry.hxx.

Referenced by SvTreeListBox::PaintEntry1().

bool SvViewDataEntry::IsExpanded ( ) const
inline

Definition at line 68 of file viewdataentry.hxx.

Referenced by SvLBoxContextBmp::Paint().

bool SvViewDataEntry::IsHighlighted ( ) const
inline

Definition at line 67 of file viewdataentry.hxx.

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

bool SvViewDataEntry::IsSelectable ( ) const
inline
bool SvViewDataEntry::IsSelected ( ) const
inline
void SvViewDataEntry::SetDragTarget ( bool  bDragTarget)
inline

Definition at line 76 of file viewdataentry.hxx.

Referenced by SvImpLBox::PaintDDCursor().

void SvViewDataEntry::SetExpanded ( bool  bExpanded)

Definition at line 64 of file viewdataentry.cxx.

References mbExpanded.

Referenced by SvListView::Impl::ActionMoving(), and SvListView::Impl::ActionRemoving().

void SvViewDataEntry::SetFocus ( bool  bFocus)

Definition at line 53 of file viewdataentry.cxx.

References mbFocused.

Referenced by SvImpLBox::SetCursor().

void SvViewDataEntry::SetPaintRectangle ( tools::Rectangle  aRectangle)

Definition at line 89 of file viewdataentry.cxx.

References maPaintRectangle.

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

void SvViewDataEntry::SetSelectable ( bool  bSelectable)

Definition at line 69 of file viewdataentry.cxx.

References mbSelectable.

void SvViewDataEntry::SetSelected ( bool  bSelected)

Definition at line 58 of file viewdataentry.cxx.

References mbHighlighted, and mbSelected.

Referenced by SvListView::SelectListEntry().

Friends And Related Function Documentation

friend class SvTreeList
friend

Definition at line 48 of file viewdataentry.hxx.

Member Data Documentation

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

Definition at line 50 of file viewdataentry.hxx.

Referenced by GetItem(), and Init().

tools::Rectangle SvViewDataEntry::maPaintRectangle
private

Definition at line 59 of file viewdataentry.hxx.

Referenced by GetPaintRectangle(), and SetPaintRectangle().

bool SvViewDataEntry::mbDragTarget
private

Definition at line 57 of file viewdataentry.hxx.

bool SvViewDataEntry::mbExpanded
private

Definition at line 54 of file viewdataentry.hxx.

Referenced by SetExpanded().

bool SvViewDataEntry::mbFocused
private

Definition at line 55 of file viewdataentry.hxx.

Referenced by SetFocus().

bool SvViewDataEntry::mbHighlighted
private

Definition at line 53 of file viewdataentry.hxx.

Referenced by SetSelected().

bool SvViewDataEntry::mbSelectable
private

Definition at line 56 of file viewdataentry.hxx.

Referenced by SetSelectable().

bool SvViewDataEntry::mbSelected
private

Definition at line 52 of file viewdataentry.hxx.

Referenced by SetSelected().

sal_uLong SvViewDataEntry::nVisPos
private

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