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

#include <treelistentry.hxx>

Collaboration diagram for SvTreeListEntry:
[legend]

Public Member Functions

 SvTreeListEntry ()
 
virtual ~SvTreeListEntry ()
 
bool HasChildren () const
 
bool HasChildListPos () const
 
sal_uLong GetChildListPos () const
 
SvTreeListEntriesGetChildEntries ()
 
const SvTreeListEntriesGetChildEntries () const
 
void Clone (SvTreeListEntry *pSource)
 
size_t ItemCount () const
 
void AddItem (std::unique_ptr< SvLBoxItem > pItem)
 
void ReplaceItem (std::unique_ptr< SvLBoxItem > pNewItem, size_t nPos)
 
const SvLBoxItemGetItem (size_t nPos) const
 
SvLBoxItemGetItem (size_t nPos)
 
const SvLBoxItemGetFirstItem (SvLBoxItemType eType) const
 
SvLBoxItemGetFirstItem (SvLBoxItemType eType)
 
size_t GetPos (const SvLBoxItem *pItem) const
 
voidGetUserData () const
 
void SetUserData (void *pPtr)
 
void EnableChildrenOnDemand (bool bEnable=true)
 
bool HasChildrenOnDemand () const
 
SvTLEntryFlags GetFlags () const
 
void SetFlags (SvTLEntryFlags nFlags)
 
void SetBackColor (const Color &rColor)
 
const ColorGetBackColor () const
 
void SetTextColor (o3tl::optional< Color > xColor)
 
o3tl::optional< Color > const & GetTextColor () const
 
SvTreeListEntryGetParent () const
 
SvTreeListEntryNextSibling () const
 
SvTreeListEntryPrevSibling () const
 
SvTreeListEntryLastSibling () const
 

Static Public Attributes

static const size_t ITEM_NOT_FOUND = SAL_MAX_SIZE
 

Private Types

typedef std::vector< std::unique_ptr< SvLBoxItem > > ItemsType
 

Private Member Functions

void ClearChildren ()
 
void SetListPositions ()
 
void InvalidateChildrensListPositions ()
 
 SvTreeListEntry (const SvTreeListEntry &r)=delete
 
void operator= (SvTreeListEntry const &)=delete
 

Private Attributes

SvTreeListEntrypParent
 
SvTreeListEntries m_Children
 
sal_uLong nAbsPos
 
sal_uLong nListPos
 
ItemsType m_Items
 
voidpUserData
 
SvTLEntryFlags nEntryFlags
 
Color maBackColor
 
o3tl::optional< ColormxTextColor
 

Friends

class SvTreeList
 
class SvListView
 
class SvTreeListBox
 

Detailed Description

Definition at line 51 of file treelistentry.hxx.

Member Typedef Documentation

typedef std::vector<std::unique_ptr<SvLBoxItem> > SvTreeListEntry::ItemsType
private

Definition at line 57 of file treelistentry.hxx.

Constructor & Destructor Documentation

SvTreeListEntry::SvTreeListEntry ( const SvTreeListEntry r)
privatedelete
SvTreeListEntry::SvTreeListEntry ( )

Definition at line 50 of file treelistentry.cxx.

References NONE.

SvTreeListEntry::~SvTreeListEntry ( )
virtual

Definition at line 60 of file treelistentry.cxx.

References m_Children, m_Items, and pParent.

Member Function Documentation

void SvTreeListEntry::AddItem ( std::unique_ptr< SvLBoxItem pItem)
void SvTreeListEntry::ClearChildren ( )
private

Definition at line 26 of file treelistentry.cxx.

References m_Children.

void SvTreeListEntry::Clone ( SvTreeListEntry pSource)
void SvTreeListEntry::EnableChildrenOnDemand ( bool  bEnable = true)

Definition at line 116 of file treelistentry.cxx.

References CHILDREN_ON_DEMAND, and nEntryFlags.

Referenced by SvTreeListBox::CloneEntry(), and SvTreeListBox::InsertEntry().

const Color& SvTreeListEntry::GetBackColor ( ) const
inline

Definition at line 113 of file treelistentry.hxx.

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

SvTreeListEntries& SvTreeListEntry::GetChildEntries ( )
inline

Definition at line 87 of file treelistentry.hxx.

Referenced by SvListView::IsAllExpanded().

const SvTreeListEntries& SvTreeListEntry::GetChildEntries ( ) const
inline

Definition at line 88 of file treelistentry.hxx.

sal_uLong SvTreeListEntry::GetChildListPos ( ) const
const SvLBoxItem * SvTreeListEntry::GetFirstItem ( SvLBoxItemType  eType) const
SvLBoxItem * SvTreeListEntry::GetFirstItem ( SvLBoxItemType  eType)

Definition at line 180 of file treelistentry.cxx.

References m_Items.

SvTLEntryFlags SvTreeListEntry::GetFlags ( ) const
inline
const SvLBoxItem & SvTreeListEntry::GetItem ( size_t  nPos) const
SvLBoxItem & SvTreeListEntry::GetItem ( size_t  nPos)

Definition at line 143 of file treelistentry.cxx.

References m_Items.

SvTreeListEntry* SvTreeListEntry::GetParent ( ) const
inline

Definition at line 118 of file treelistentry.hxx.

size_t SvTreeListEntry::GetPos ( const SvLBoxItem pItem) const

Definition at line 186 of file treelistentry.cxx.

References ITEM_NOT_FOUND, and m_Items.

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

o3tl::optional<Color> const& SvTreeListEntry::GetTextColor ( ) const
inline

Definition at line 116 of file treelistentry.hxx.

Referenced by SvTreeListBox::PaintEntry1().

void* SvTreeListEntry::GetUserData ( ) const
inline
bool SvTreeListEntry::HasChildListPos ( ) const

Definition at line 75 of file treelistentry.cxx.

References nListPos, and pParent.

Referenced by SvTreeList::Remove().

bool SvTreeListEntry::HasChildren ( ) const
bool SvTreeListEntry::HasChildrenOnDemand ( ) const
void SvTreeListEntry::InvalidateChildrensListPositions ( )
private

Definition at line 45 of file treelistentry.cxx.

References nListPos.

Referenced by SvTreeList::SetListPositions().

size_t SvTreeListEntry::ItemCount ( ) const
SvTreeListEntry * SvTreeListEntry::LastSibling ( ) const

Definition at line 227 of file treelistentry.cxx.

References m_Children, and pParent.

Referenced by SvImpLBox::DrawNet().

SvTreeListEntry * SvTreeListEntry::NextSibling ( ) const
void SvTreeListEntry::operator= ( SvTreeListEntry const &  )
privatedelete
SvTreeListEntry * SvTreeListEntry::PrevSibling ( ) const

Definition at line 216 of file treelistentry.cxx.

References GetChildListPos(), m_Children, nPos, and pParent.

Referenced by SvImpLBox::MovingEntry().

void SvTreeListEntry::ReplaceItem ( std::unique_ptr< SvLBoxItem pNewItem,
size_t  nPos 
)

Definition at line 124 of file treelistentry.cxx.

References DBG_ASSERT, and m_Items.

void SvTreeListEntry::SetBackColor ( const Color rColor)
inline
void SvTreeListEntry::SetFlags ( SvTLEntryFlags  nFlags)
void SvTreeListEntry::SetListPositions ( )
private

Definition at line 31 of file treelistentry.cxx.

References m_Children, and nListPos.

Referenced by GetChildListPos().

void SvTreeListEntry::SetTextColor ( o3tl::optional< Color xColor)
inline

Definition at line 115 of file treelistentry.hxx.

Referenced by SalInstanceTreeView::set_font_color().

void SvTreeListEntry::SetUserData ( void pPtr)

Friends And Related Function Documentation

friend class SvListView
friend

Definition at line 54 of file treelistentry.hxx.

friend class SvTreeList
friend

Definition at line 53 of file treelistentry.hxx.

friend class SvTreeListBox
friend

Definition at line 55 of file treelistentry.hxx.

Member Data Documentation

const size_t SvTreeListEntry::ITEM_NOT_FOUND = SAL_MAX_SIZE
static

Definition at line 78 of file treelistentry.hxx.

Referenced by GetPos().

SvTreeListEntries SvTreeListEntry::m_Children
private
ItemsType SvTreeListEntry::m_Items
private
Color SvTreeListEntry::maBackColor
private

Definition at line 66 of file treelistentry.hxx.

o3tl::optional<Color> SvTreeListEntry::mxTextColor
private

Definition at line 67 of file treelistentry.hxx.

sal_uLong SvTreeListEntry::nAbsPos
private
SvTLEntryFlags SvTreeListEntry::nEntryFlags
private
sal_uLong SvTreeListEntry::nListPos
private
SvTreeListEntry* SvTreeListEntry::pParent
private
void* SvTreeListEntry::pUserData
private

Definition at line 64 of file treelistentry.hxx.

Referenced by Clone(), and SetUserData().


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