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 SetBackColor (const Color &rColor)
 
const ColorGetBackColor () const
 
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
 
Color maBackColor
 
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 61 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 118 of file treelistentry.cxx.

References CHILDREN_ON_DEMAND, and nEntryFlags.

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

◆ GetBackColor()

const Color & SvTreeListEntry::GetBackColor ( ) const
inline

Definition at line 118 of file treelistentry.hxx.

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

◆ GetChildEntries() [1/2]

SvTreeListEntries & SvTreeListEntry::GetChildEntries ( )
inline

Definition at line 92 of file treelistentry.hxx.

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

◆ GetChildEntries() [2/2]

const SvTreeListEntries & SvTreeListEntry::GetChildEntries ( ) const
inline

Definition at line 93 of file treelistentry.hxx.

◆ GetChildListPos()

sal_uInt32 SvTreeListEntry::GetChildListPos ( ) const

◆ GetExtraIndent()

sal_uInt32 SvTreeListEntry::GetExtraIndent ( ) const
inline

Definition at line 124 of file treelistentry.hxx.

Referenced by SvTreeListBox::GetTabPos().

◆ GetFirstItem() [1/2]

SvLBoxItem * SvTreeListEntry::GetFirstItem ( SvLBoxItemType  eType)

Definition at line 182 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 145 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 188 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 121 of file treelistentry.hxx.

Referenced by SvTreeListBox::PaintEntry1().

◆ GetUserData()

void * SvTreeListEntry::GetUserData ( ) const
inline

◆ HasChildListPos()

bool SvTreeListEntry::HasChildListPos ( ) const

Definition at line 76 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 229 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 126 of file treelistentry.cxx.

References DBG_ASSERT, m_Items, and nPos.

Referenced by SalInstanceTreeView::do_set_toggle().

◆ SetBackColor()

void SvTreeListEntry::SetBackColor ( const Color rColor)
inline

◆ SetExtraIndent()

void SvTreeListEntry::SetExtraIndent ( sal_uInt32  nExtraIndent)
inline

Definition at line 123 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 120 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 83 of file treelistentry.hxx.

Referenced by GetPos().

◆ m_Children

SvTreeListEntries SvTreeListEntry::m_Children
private

◆ m_Items

ItemsType SvTreeListEntry::m_Items
private

◆ maBackColor

Color SvTreeListEntry::maBackColor
private

Definition at line 71 of file treelistentry.hxx.

◆ 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 72 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: