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:

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 (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

SvTreeListEntries m_Children
sal_uLong nAbsPos
sal_uLong nListPos
sal_uInt32 mnExtraIndent
ItemsType m_Items
SvTLEntryFlags nEntryFlags
Color maBackColor
std::optional< ColormxTextColor


class SvTreeList
class SvListView
class SvTreeListBox

Detailed Description

Definition at line 56 of file treelistentry.hxx.

Member Typedef Documentation

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

Definition at line 62 of file treelistentry.hxx.

Constructor & Destructor Documentation

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

Definition at line 50 of file treelistentry.cxx.

References NONE.

SvTreeListEntry::~SvTreeListEntry ( )

Definition at line 61 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 ( )

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 118 of file treelistentry.cxx.

References CHILDREN_ON_DEMAND, and nEntryFlags.

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

const Color& SvTreeListEntry::GetBackColor ( ) const

Definition at line 119 of file treelistentry.hxx.

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

SvTreeListEntries& SvTreeListEntry::GetChildEntries ( )

Definition at line 93 of file treelistentry.hxx.

Referenced by SvListView::IsAllExpanded().

const SvTreeListEntries& SvTreeListEntry::GetChildEntries ( ) const

Definition at line 94 of file treelistentry.hxx.

sal_uLong SvTreeListEntry::GetChildListPos ( ) const
sal_uInt32 SvTreeListEntry::GetExtraIndent ( ) const

Definition at line 125 of file treelistentry.hxx.

Referenced by SvTreeListBox::GetTabPos().

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

Definition at line 182 of file treelistentry.cxx.

References m_Items.

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

Definition at line 145 of file treelistentry.cxx.

References m_Items.

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().

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

Definition at line 122 of file treelistentry.hxx.

Referenced by SvTreeListBox::PaintEntry1().

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

Definition at line 76 of file treelistentry.cxx.

References nListPos, and pParent.

Referenced by SvTreeList::Remove().

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

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 229 of file treelistentry.cxx.

References m_Children, and pParent.

Referenced by SvImpLBox::DrawNet().

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

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

References DBG_ASSERT, and m_Items.

Referenced by SalInstanceTreeView::do_set_toggle().

void SvTreeListEntry::SetBackColor ( const Color rColor)
void SvTreeListEntry::SetExtraIndent ( sal_uInt32  nExtraIndent)

Definition at line 124 of file treelistentry.hxx.

void SvTreeListEntry::SetFlags ( SvTLEntryFlags  nFlags)
void SvTreeListEntry::SetListPositions ( )

Definition at line 31 of file treelistentry.cxx.

References m_Children, and nListPos.

Referenced by GetChildListPos().

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

Definition at line 121 of file treelistentry.hxx.

Referenced by SalInstanceTreeView::set_font_color().

void SvTreeListEntry::SetUserData ( void pPtr)

Friends And Related Function Documentation

friend class SvListView

Definition at line 59 of file treelistentry.hxx.

friend class SvTreeList

Definition at line 58 of file treelistentry.hxx.

friend class SvTreeListBox

Definition at line 60 of file treelistentry.hxx.

Member Data Documentation

const size_t SvTreeListEntry::ITEM_NOT_FOUND = SAL_MAX_SIZE

Definition at line 84 of file treelistentry.hxx.

Referenced by GetPos().

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

Definition at line 72 of file treelistentry.hxx.

sal_uInt32 SvTreeListEntry::mnExtraIndent

Definition at line 68 of file treelistentry.hxx.

Referenced by Clone().

std::optional<Color> SvTreeListEntry::mxTextColor

Definition at line 73 of file treelistentry.hxx.

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

Definition at line 70 of file treelistentry.hxx.

Referenced by Clone(), and SetUserData().

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