LibreOffice Module vcl (master) 1
|
#include <treelistentry.hxx>
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 | |
SvTreeListEntry * | pParent |
SvTreeListEntries | m_Children |
sal_uInt32 | nAbsPos |
sal_uInt32 | nListPos |
sal_uInt32 | mnExtraIndent |
ItemsType | m_Items |
void * | pUserData |
SvTLEntryFlags | nEntryFlags |
std::optional< Color > | mxTextColor |
Friends | |
class | SvTreeList |
class | SvListView |
class | SvTreeListBox |
Definition at line 55 of file treelistentry.hxx.
|
private |
Definition at line 61 of file treelistentry.hxx.
|
privatedelete |
SvTreeListEntry::SvTreeListEntry | ( | ) |
Definition at line 50 of file treelistentry.cxx.
References NONE.
|
virtual |
Definition at line 60 of file treelistentry.cxx.
References m_Children, m_Items, and pParent.
void SvTreeListEntry::AddItem | ( | std::unique_ptr< SvLBoxItem > | pItem | ) |
Definition at line 112 of file treelistentry.cxx.
References m_Items.
Referenced by SalInstanceTreeView::AddStringItem(), SalInstanceTreeView::bulk_insert_for_each(), SalInstanceTreeView::do_insert(), SvTreeListBox::InitEntry(), SvTabListBox::InitEntry(), SalInstanceIconView::insert(), SalInstanceIconView::insert_separator(), SalInstanceTreeView::set_image(), and SalInstanceTreeView::set_toggle().
|
private |
Definition at line 26 of file treelistentry.cxx.
References m_Children.
void SvTreeListEntry::Clone | ( | SvTreeListEntry * | pSource | ) |
Definition at line 88 of file treelistentry.cxx.
References SvLBoxItem::Clone(), GetUserData(), m_Items, mnExtraIndent, nAbsPos, nEntryFlags, nListPos, and pUserData.
Referenced by SvTreeList::CloneEntry().
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().
|
inline |
Definition at line 91 of file treelistentry.hxx.
Referenced by SvListView::IsAllExpanded(), and lcl_DumpEntryAndSiblings().
|
inline |
Definition at line 92 of file treelistentry.hxx.
sal_uInt32 SvTreeListEntry::GetChildListPos | ( | ) | const |
Definition at line 80 of file treelistentry.cxx.
References nListPos, pParent, and SetListPositions().
Referenced by SvTreeList::GetRelPos(), SvTreeList::Move(), SvTreeList::Next(), NextSibling(), SvTreeList::NextVisible(), SvTreeList::Prev(), PrevSibling(), SvTreeList::PrevVisible(), and SvTreeList::Remove().
|
inline |
Definition at line 120 of file treelistentry.hxx.
Referenced by SvTreeListBox::GetTabPos().
SvLBoxItem * SvTreeListEntry::GetFirstItem | ( | SvLBoxItemType | eType | ) |
Definition at line 181 of file treelistentry.cxx.
const SvLBoxItem * SvTreeListEntry::GetFirstItem | ( | SvLBoxItemType | eType | ) | const |
Definition at line 175 of file treelistentry.cxx.
References eType, and m_Items.
Referenced by SvTreeListBox::CheckBoxInserted(), SvTreeListBox::CloneEntry(), IconView::DumpEntryAndSiblings(), SvImpLBox::EntryReallyHit(), TreeListEntryUIObject::execute(), TreeListEntryUIObject::get_state(), SvTreeListBox::GetCheckButtonState(), SvTreeListBox::GetCollapsedEntryBmp(), SvTreeListBox::GetEntryText(), SvTreeListBox::GetExpandedEntryBmp(), IMPL_LINK(), lcl_DumpEntryAndSiblings(), SvTreeListBox::ModelNotification(), SvTreeListBox::MouseButtonUp(), SvTreeListBox::SetCheckButtonState(), SvTreeListBox::SetCollapsedEntryBmp(), SvTreeListBox::SetEntryText(), SvTreeListBox::SetExpandedEntryBmp(), and SvImpLBox::UpdateContextBmpWidthVectorFromMovedEntry().
|
inline |
Definition at line 113 of file treelistentry.hxx.
Referenced by SalInstanceTreeView::do_insert(), IconView::DumpEntryAndSiblings(), SvTreeListBox::Expand(), TreeListEntryUIObject::get_state(), IconView::GetEntrySize(), SvTreeListBox::ImpEntryInserted(), SvLBoxString::InitViewData(), SalInstanceIconView::insert_separator(), IsSeparator(), SvLBoxString::Paint(), SvLBoxContextBmp::Paint(), SvTreeListBox::PaintEntry1(), SvImpLBox::RemovingEntry(), and SalInstanceTreeView::set_sensitive().
SvLBoxItem & SvTreeListEntry::GetItem | ( | size_t | nPos | ) |
Definition at line 144 of file treelistentry.cxx.
const SvLBoxItem & SvTreeListEntry::GetItem | ( | size_t | nPos | ) | const |
Definition at line 139 of file treelistentry.cxx.
Referenced by SalInstanceTreeView::bulk_insert_for_each(), IconView::CalcEntryHeight(), SalInstanceTreeView::do_get_sensitive(), SalInstanceTreeView::do_get_toggle(), SalInstanceTreeView::do_set_toggle(), SalInstanceTreeView::get_text(), SalInstanceTreeView::get_text_emphasis(), SvTabListBox::GetCellText(), SvTreeListBox::GetEntryAccessibleDescription(), SvTabListBox::GetEntryText(), SvTreeListBox::GetFocusRect(), SvTreeListBox::GetItem_Impl(), SvTreeListBox::GetItemPos(), SvTreeListBox::getPreferredDimensions(), SvTabListBox::GetTabEntryText(), IMPL_LINK(), SvTreeListBox::ImplEditEntry(), SvTreeListBox::InitViewData(), SvHeaderTabListBox::IsCellCheckBox(), SvHeaderTabListBox::IsItemChecked(), lcl_DumpEntryAndSiblings(), SvTreeListBox::ModelHasEntryInvalidated(), IconView::PaintEntry(), SvTreeListBox::PaintEntry1(), SvTreeListBox::RecalcViewData(), SvTreeListBox::SearchEntryTextWithHeadTitle(), SalInstanceTreeView::set_image(), SalInstanceTreeView::set_sensitive(), SalInstanceTreeView::set_text(), SalInstanceTreeView::set_text_align(), SalInstanceTreeView::set_text_emphasis(), and SvImpLBox::SetMostRight().
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().
|
inline |
Definition at line 117 of file treelistentry.hxx.
Referenced by SvTreeListBox::PaintEntry1().
|
inline |
Definition at line 108 of file treelistentry.hxx.
Referenced by Clone(), SvTreeListBox::CloneEntry(), SalInstanceTreeView::get_id(), SalInstanceIconView::get_id(), IconViewUIObject::get_state(), SalInstanceTreeView::getEntryData(), and IMPL_LINK().
bool SvTreeListEntry::HasChildListPos | ( | ) | const |
Definition at line 75 of file treelistentry.cxx.
References nListPos, and pParent.
Referenced by SvTreeList::Remove().
bool SvTreeListEntry::HasChildren | ( | ) | const |
Definition at line 70 of file treelistentry.cxx.
References m_Children.
Referenced by SvImpLBox::CollapseTo(), SvImpLBox::DrawNet(), SvTreeListBox::Expand(), SvImpLBox::ExpandAll(), SvTreeListBox::FillAccessibleEntryStateSet(), SvImpLBox::FindMostRight_Impl(), SalInstanceTreeView::GetPlaceHolderChild(), SvTabListBox::GetTab(), SvImpLBox::IsExpandable(), SvImpLBox::IsNodeButton(), SvImpLBox::MouseButtonDown(), SvImpLBox::MovingEntry(), SvTreeListBox::PaintEntry1(), SvTreeListBox::RemoveSelection(), SvListView::Impl::RemoveViewData(), SvImpLBox::RemovingEntry(), SvTreeListBox::RequestingChildren(), SvTreeListBox::SelectChildren(), and SvImpLBox::UpdateContextBmpWidthVectorFromMovedEntry().
bool SvTreeListEntry::HasChildrenOnDemand | ( | ) | const |
Definition at line 199 of file treelistentry.cxx.
References CHILDREN_ON_DEMAND, and nEntryFlags.
Referenced by SvTreeListBox::CloneEntry(), SvImpLBox::DrawNet(), SvTreeListBox::Expand(), SvTreeListBox::FillAccessibleEntryStateSet(), SvTabListBox::GetTab(), SvImpLBox::IsExpandable(), SvImpLBox::IsNodeButton(), SvImpLBox::MouseButtonDown(), SvTreeListBox::NextEntry(), and SvTreeListBox::PaintEntry1().
|
private |
Definition at line 45 of file treelistentry.cxx.
References nListPos.
Referenced by SvTreeList::SetListPositions().
size_t SvTreeListEntry::ItemCount | ( | ) | const |
Definition at line 107 of file treelistentry.cxx.
References m_Items.
Referenced by SalInstanceTreeView::bulk_insert_for_each(), SvTreeListBox::CalcEntryHeight(), IconView::CalcEntryHeight(), SalInstanceTreeView::do_get_sensitive(), SalInstanceTreeView::do_get_toggle(), SalInstanceTreeView::do_insert(), SalInstanceTreeView::do_set_toggle(), SvImpLBox::EntryReallyHit(), SalInstanceTreeView::get_text(), SalInstanceTreeView::get_text_emphasis(), SvTabListBox::GetCellText(), SvTreeListBox::GetEntryAccessibleDescription(), SvTabListBox::GetEntryText(), SvTreeListBox::GetItem_Impl(), SvTreeListBox::GetItemPos(), SvTreeListBox::getPreferredDimensions(), SvTabListBox::GetTabEntryText(), IMPL_LINK(), SvTreeListBox::ImplEditEntry(), SvTreeListBox::InitViewData(), SvHeaderTabListBox::IsCellCheckBox(), lcl_DumpEntryAndSiblings(), SvTreeListBox::ModelHasEntryInvalidated(), IconView::PaintEntry(), SvTreeListBox::PaintEntry1(), SvTreeListBox::RecalcViewData(), SvTreeListBox::SearchEntryTextWithHeadTitle(), SalInstanceTreeView::set_image(), SalInstanceTreeView::set_sensitive(), SalInstanceTreeView::set_text(), SalInstanceTreeView::set_text_align(), SalInstanceTreeView::set_text_emphasis(), SalInstanceTreeView::set_toggle(), and SvImpLBox::SetMostRight().
SvTreeListEntry * SvTreeListEntry::LastSibling | ( | ) | const |
Definition at line 228 of file treelistentry.cxx.
References m_Children, and pParent.
Referenced by SvImpLBox::DrawNet().
SvTreeListEntry * SvTreeListEntry::NextSibling | ( | ) | const |
Definition at line 209 of file treelistentry.cxx.
References GetChildListPos(), m_Children, nPos, and pParent.
Referenced by IconView::DumpEntryAndSiblings(), SalInstanceTreeView::iter_next_sibling(), lcl_DumpEntryAndSiblings(), SvImpLBox::MovingEntry(), SvTreeListBox::NextEntry(), and SvImpLBox::RemovingEntry().
|
privatedelete |
SvTreeListEntry * SvTreeListEntry::PrevSibling | ( | ) | const |
Definition at line 217 of file treelistentry.cxx.
References GetChildListPos(), m_Children, nPos, and pParent.
Referenced by SalInstanceTreeView::iter_previous_sibling(), and SvImpLBox::MovingEntry().
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().
|
inline |
Definition at line 119 of file treelistentry.hxx.
Referenced by SalInstanceTreeView::set_extra_row_indent().
void SvTreeListEntry::SetFlags | ( | SvTLEntryFlags | nFlags | ) |
Definition at line 204 of file treelistentry.cxx.
References nEntryFlags.
Referenced by SalInstanceTreeView::do_insert(), SvTreeListBox::Expand(), SvTreeListBox::ImpEntryInserted(), SalInstanceIconView::insert_separator(), SvImpLBox::RemovingEntry(), and SalInstanceTreeView::set_sensitive().
|
private |
Definition at line 31 of file treelistentry.cxx.
References m_Children, and nListPos.
Referenced by GetChildListPos().
|
inline |
Definition at line 116 of file treelistentry.hxx.
Referenced by SalInstanceTreeView::set_font_color().
void SvTreeListEntry::SetUserData | ( | void * | pPtr | ) |
Definition at line 194 of file treelistentry.cxx.
References pUserData.
Referenced by SvTreeListBox::CloneEntry(), SalInstanceTreeView::do_insert(), SalInstanceIconView::insert(), SalInstanceIconView::insert_separator(), SvTreeListBox::InsertEntry(), and SalInstanceTreeView::set_id().
|
friend |
Definition at line 58 of file treelistentry.hxx.
|
friend |
Definition at line 57 of file treelistentry.hxx.
|
friend |
Definition at line 59 of file treelistentry.hxx.
|
static |
Definition at line 82 of file treelistentry.hxx.
Referenced by GetPos().
|
private |
Definition at line 64 of file treelistentry.hxx.
Referenced by SvListView::Impl::ActionMoving(), SvListView::Impl::ActionRemoving(), ClearChildren(), SvTreeList::Clone(), SvTreeList::CloneChildren(), SvListView::CollapseListEntry(), SvTreeList::Copy(), SvListView::ExpandListEntry(), SvTreeList::FirstChild(), SvTreeList::GetChildCount(), SvTreeList::GetChildList(), SvTreeList::GetChildSelectionCount(), SvTreeList::GetEntry(), SvTreeListBox::GetLevelChildCount(), SvTreeList::GetVisibleChildCount(), HasChildren(), SvTreeList::Insert(), SvTreeList::InsertTree(), SvTreeList::IsChild(), SvTreeList::Last(), LastSibling(), SvTreeList::Move(), SvTreeList::Next(), NextSibling(), SvTreeList::NextVisible(), SvTreeList::Prev(), PrevSibling(), SvTreeList::PrevVisible(), SvTreeList::Remove(), SvListView::Impl::RemoveViewData(), SvTreeList::ResortChildren(), SetListPositions(), and ~SvTreeListEntry().
|
private |
Definition at line 68 of file treelistentry.hxx.
Referenced by AddItem(), Clone(), GetFirstItem(), GetItem(), GetPos(), ItemCount(), SvTreeListBox::MouseButtonUp(), ReplaceItem(), and ~SvTreeListEntry().
|
private |
Definition at line 67 of file treelistentry.hxx.
Referenced by Clone().
|
private |
Definition at line 71 of file treelistentry.hxx.
|
private |
Definition at line 65 of file treelistentry.hxx.
Referenced by Clone(), SvTreeList::GetAbsPos(), and SvTreeList::SetAbsolutePositions().
|
private |
Definition at line 70 of file treelistentry.hxx.
Referenced by SvTreeListBox::AcceptDrop(), Clone(), EnableChildrenOnDemand(), SvTreeListBox::EnableSelectionAsDropTarget(), HasChildrenOnDemand(), and SetFlags().
|
private |
Definition at line 66 of file treelistentry.hxx.
Referenced by Clone(), GetChildListPos(), HasChildListPos(), SvTreeList::Insert(), InvalidateChildrensListPositions(), and SetListPositions().
|
private |
Definition at line 63 of file treelistentry.hxx.
Referenced by SvListView::Impl::ActionMoving(), SvListView::Impl::ActionRemoving(), SvListView::CollapseListEntry(), SvTreeList::Copy(), SvListView::ExpandListEntry(), GetChildListPos(), SvTreeList::GetDepth(), SvTreeListBox::GetLevelChildCount(), SvTreeList::GetParent(), HasChildListPos(), SvTreeList::Insert(), SvTreeList::InsertTree(), SvTreeList::IsAtRootDepth(), SvTreeList::IsEntryVisible(), LastSibling(), SvTreeList::Move(), SvTreeList::Next(), NextSibling(), SvTreeList::NextVisible(), SvTreeList::Prev(), PrevSibling(), SvTreeList::PrevVisible(), SvTreeList::Remove(), SvTreeList::SetListPositions(), and ~SvTreeListEntry().
|
private |
Definition at line 69 of file treelistentry.hxx.
Referenced by Clone(), and SetUserData().