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_uInt32 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
 
void * GetUserData () const
 
void SetUserData (void *pPtr)
 
void EnableChildrenOnDemand (bool bEnable=true)
 
bool HasChildrenOnDemand () const
 
SvTLEntryFlags GetFlags () const
 
void SetFlags (SvTLEntryFlags nFlags)
 
void SetTextColor (std::optional< Color > xColor)
 
std::optional< Color > const & GetTextColor () const
 
void SetExtraIndent (sal_uInt32 nExtraIndent)
 
sal_uInt32 GetExtraIndent () 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_uInt32 nAbsPos
 
sal_uInt32 nListPos
 
sal_uInt32 mnExtraIndent
 
ItemsType m_Items
 
void * pUserData
 
SvTLEntryFlags nEntryFlags
 
std::optional< ColormxTextColor
 

Friends

class SvTreeList
 
class SvListView
 
class SvTreeListBox
 

Detailed Description

Definition at line 55 of file treelistentry.hxx.

Member Typedef Documentation

◆ ItemsType

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

Definition at line 61 of file treelistentry.hxx.

Constructor & Destructor Documentation

◆ SvTreeListEntry() [1/2]

SvTreeListEntry::SvTreeListEntry ( const SvTreeListEntry r)
privatedelete

◆ SvTreeListEntry() [2/2]

SvTreeListEntry::SvTreeListEntry ( )

Definition at line 50 of file treelistentry.cxx.

References NONE.

◆ ~SvTreeListEntry()

SvTreeListEntry::~SvTreeListEntry ( )
virtual

Definition at line 60 of file treelistentry.cxx.

References m_Children, m_Items, and pParent.

Member Function Documentation

◆ AddItem()

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

◆ ClearChildren()

void SvTreeListEntry::ClearChildren ( )
private

Definition at line 26 of file treelistentry.cxx.

References m_Children.

◆ Clone()

void SvTreeListEntry::Clone ( SvTreeListEntry pSource)

◆ EnableChildrenOnDemand()

void SvTreeListEntry::EnableChildrenOnDemand ( bool  bEnable = true)

Definition at line 117 of file treelistentry.cxx.

References CHILDREN_ON_DEMAND, and nEntryFlags.

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

◆ GetChildEntries() [1/2]

SvTreeListEntries & SvTreeListEntry::GetChildEntries ( )
inline

Definition at line 91 of file treelistentry.hxx.

Referenced by SvListView::IsAllExpanded(), and lcl_DumpEntryAndSiblings().

◆ GetChildEntries() [2/2]

const SvTreeListEntries & SvTreeListEntry::GetChildEntries ( ) const
inline

Definition at line 92 of file treelistentry.hxx.

◆ GetChildListPos()

sal_uInt32 SvTreeListEntry::GetChildListPos ( ) const

◆ GetExtraIndent()

sal_uInt32 SvTreeListEntry::GetExtraIndent ( ) const
inline

Definition at line 120 of file treelistentry.hxx.

Referenced by SvTreeListBox::GetTabPos().

◆ GetFirstItem() [1/2]

SvLBoxItem * SvTreeListEntry::GetFirstItem ( SvLBoxItemType  eType)

Definition at line 181 of file treelistentry.cxx.

References eType, and m_Items.

◆ GetFirstItem() [2/2]

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

◆ GetFlags()

SvTLEntryFlags SvTreeListEntry::GetFlags ( ) const
inline

◆ GetItem() [1/2]

SvLBoxItem & SvTreeListEntry::GetItem ( size_t  nPos)

Definition at line 144 of file treelistentry.cxx.

References m_Items, and nPos.

◆ GetItem() [2/2]

const SvLBoxItem & SvTreeListEntry::GetItem ( size_t  nPos) const

◆ GetPos()

size_t SvTreeListEntry::GetPos ( const SvLBoxItem pItem) const

Definition at line 187 of file treelistentry.cxx.

References ITEM_NOT_FOUND, and m_Items.

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

◆ GetTextColor()

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

Definition at line 117 of file treelistentry.hxx.

Referenced by SvTreeListBox::PaintEntry1().

◆ GetUserData()

void * SvTreeListEntry::GetUserData ( ) const
inline

◆ HasChildListPos()

bool SvTreeListEntry::HasChildListPos ( ) const

Definition at line 75 of file treelistentry.cxx.

References nListPos, and pParent.

Referenced by SvTreeList::Remove().

◆ HasChildren()

bool SvTreeListEntry::HasChildren ( ) const

◆ HasChildrenOnDemand()

bool SvTreeListEntry::HasChildrenOnDemand ( ) const

◆ InvalidateChildrensListPositions()

void SvTreeListEntry::InvalidateChildrensListPositions ( )
private

Definition at line 45 of file treelistentry.cxx.

References nListPos.

Referenced by SvTreeList::SetListPositions().

◆ ItemCount()

size_t SvTreeListEntry::ItemCount ( ) const

◆ LastSibling()

SvTreeListEntry * SvTreeListEntry::LastSibling ( ) const

Definition at line 228 of file treelistentry.cxx.

References m_Children, and pParent.

Referenced by SvImpLBox::DrawNet().

◆ NextSibling()

SvTreeListEntry * SvTreeListEntry::NextSibling ( ) const

◆ operator=()

void SvTreeListEntry::operator= ( SvTreeListEntry const &  )
privatedelete

◆ PrevSibling()

SvTreeListEntry * SvTreeListEntry::PrevSibling ( ) const

◆ ReplaceItem()

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

Definition at line 125 of file treelistentry.cxx.

References DBG_ASSERT, m_Items, and nPos.

Referenced by SalInstanceTreeView::do_set_toggle().

◆ SetExtraIndent()

void SvTreeListEntry::SetExtraIndent ( sal_uInt32  nExtraIndent)
inline

Definition at line 119 of file treelistentry.hxx.

Referenced by SalInstanceTreeView::set_extra_row_indent().

◆ SetFlags()

void SvTreeListEntry::SetFlags ( SvTLEntryFlags  nFlags)

◆ SetListPositions()

void SvTreeListEntry::SetListPositions ( )
private

Definition at line 31 of file treelistentry.cxx.

References m_Children, and nListPos.

Referenced by GetChildListPos().

◆ SetTextColor()

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

Definition at line 116 of file treelistentry.hxx.

Referenced by SalInstanceTreeView::set_font_color().

◆ SetUserData()

void SvTreeListEntry::SetUserData ( void *  pPtr)

Friends And Related Function Documentation

◆ SvListView

friend class SvListView
friend

Definition at line 58 of file treelistentry.hxx.

◆ SvTreeList

friend class SvTreeList
friend

Definition at line 57 of file treelistentry.hxx.

◆ SvTreeListBox

friend class SvTreeListBox
friend

Definition at line 59 of file treelistentry.hxx.

Member Data Documentation

◆ ITEM_NOT_FOUND

const size_t SvTreeListEntry::ITEM_NOT_FOUND = SAL_MAX_SIZE
static

Definition at line 82 of file treelistentry.hxx.

Referenced by GetPos().

◆ m_Children

SvTreeListEntries SvTreeListEntry::m_Children
private

◆ m_Items

ItemsType SvTreeListEntry::m_Items
private

◆ mnExtraIndent

sal_uInt32 SvTreeListEntry::mnExtraIndent
private

Definition at line 67 of file treelistentry.hxx.

Referenced by Clone().

◆ mxTextColor

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

Definition at line 71 of file treelistentry.hxx.

◆ nAbsPos

sal_uInt32 SvTreeListEntry::nAbsPos
private

◆ nEntryFlags

SvTLEntryFlags SvTreeListEntry::nEntryFlags
private

◆ nListPos

sal_uInt32 SvTreeListEntry::nListPos
private

◆ pParent

SvTreeListEntry* SvTreeListEntry::pParent
private

◆ pUserData

void* SvTreeListEntry::pUserData
private

Definition at line 69 of file treelistentry.hxx.

Referenced by Clone(), and SetUserData().


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