LibreOffice Module sfx2 (master) 1
|
#include <listview.hxx>
Public Member Functions | |
ListView (std::unique_ptr< weld::TreeView > xTreeView) | |
~ListView () | |
void | AppendItem (const OUString &rId, const OUString &rTitle, const OUString &rSubtitle, const OUString &rPath, bool bDefault) |
void | AppendRow (const OUString &rImage, const OUString &rTitle, const OUString &rSubtitle, const OUString &rApplication, const OUString &rModify, const OUString &rSize, const OUString &rId) |
void | UpdateRow (int nIndex, const OUString &rImage, const OUString &rTitle, const OUString &rSubtitle, const OUString &rApplication, const OUString &rModify, const OUString &rSize, const OUString &rId) |
void | ReloadRows () |
bool | UpdateRows () |
void | sortColumn (const int col) |
void | sort () |
void | clearListView () |
void | ShowListView () |
void | HideListView () |
void | unselect_all () |
void | grab_focus () |
void | rename (const OUString &rId, const OUString &rTitle) |
void | refreshDefaultColumn () |
Protected Member Functions | |
sal_uInt16 | get_nId (int pos) const |
void | select_id (const OUString &sId) |
int | get_selected_index () const |
std::vector< int > | get_selected_rows () const |
bool | IsListViewVisible () const |
OUString | get_id (int pos) const |
void | set_cursor (int pos) |
int | get_cursor_index () const |
sal_uInt16 | get_cursor_nId () const |
void | select (int pos) |
int | get_index (sal_uInt16 nId) const |
DECL_LINK (ColumnClickedHdl, const int, void) | |
DECL_LINK (QueryTooltipHdl, const weld::TreeIter &, OUString) | |
Protected Attributes | |
std::unique_ptr< weld::TreeView > | mxTreeView |
std::vector< std::unique_ptr< ListViewItem > > | mListViewItems |
int | mnSortColumn |
Definition at line 23 of file listview.hxx.
ListView::ListView | ( | std::unique_ptr< weld::TreeView > | xTreeView | ) |
Definition at line 47 of file listview.cxx.
References LINK, mxTreeView, TEMPLATE_ITEM_MAX_HEIGHT_SUB, and TEMPLATE_ITEM_MAX_WIDTH.
ListView::~ListView | ( | ) |
Definition at line 67 of file listview.cxx.
void ListView::AppendItem | ( | const OUString & | rId, |
const OUString & | rTitle, | ||
const OUString & | rSubtitle, | ||
const OUString & | rPath, | ||
bool | bDefault | ||
) |
Definition at line 69 of file listview.cxx.
References AppendRow(), getApplication(), getDisplayFileModifyTime(), getDisplayFileSize(), getFileModifyTime(), getFileSize(), INetURLObject::getFSysPath(), and mListViewItems.
Referenced by TemplateDlgLocalView::insertFilteredItems().
void ListView::AppendRow | ( | const OUString & | rImage, |
const OUString & | rTitle, | ||
const OUString & | rSubtitle, | ||
const OUString & | rApplication, | ||
const OUString & | rModify, | ||
const OUString & | rSize, | ||
const OUString & | rId | ||
) |
Definition at line 98 of file listview.cxx.
References COLUMN_APPLICATION, COLUMN_CATEGORY, COLUMN_IMG_ISDEFAULT, COLUMN_MODIFIED, COLUMN_NAME, COLUMN_SIZE, and mxTreeView.
Referenced by AppendItem(), and ReloadRows().
void ListView::clearListView | ( | ) |
Definition at line 283 of file listview.cxx.
References mListViewItems, and mxTreeView.
Referenced by TemplateDlgLocalView::insertFilteredItems().
|
protected |
|
protected |
|
inlineprotected |
Definition at line 77 of file listview.hxx.
References mxTreeView.
Referenced by ReloadRows(), and UpdateRows().
|
inlineprotected |
Definition at line 79 of file listview.hxx.
References get_nId(), and mxTreeView.
Referenced by TemplateDlgLocalView::syncCursor(), and TemplateDlgLocalView::updateSelection().
|
inlineprotected |
Definition at line 73 of file listview.hxx.
References mxTreeView, and pos.
Referenced by ReloadRows(), and UpdateRows().
|
inlineprotected |
Definition at line 83 of file listview.hxx.
References mxTreeView, and nId.
Referenced by TemplateDlgLocalView::syncCursor().
|
protected |
Definition at line 300 of file listview.cxx.
References mxTreeView, and pos.
Referenced by get_cursor_nId(), and TemplateDlgLocalView::updateSelection().
|
inlineprotected |
Definition at line 67 of file listview.hxx.
References mxTreeView.
Referenced by ReloadRows(), and UpdateRows().
|
inlineprotected |
Definition at line 69 of file listview.hxx.
References mxTreeView.
Referenced by IMPL_LINK(), TemplateDlgLocalView::syncCursor(), and TemplateDlgLocalView::updateSelection().
|
inline |
Definition at line 56 of file listview.hxx.
References mxTreeView.
|
inline |
Definition at line 52 of file listview.hxx.
References mxTreeView.
Referenced by TemplateDlgLocalView::Hide(), and TemplateDlgLocalView::Show().
|
inlineprotected |
Definition at line 71 of file listview.hxx.
References mxTreeView.
Referenced by TemplateDlgLocalView::IsVisible().
void ListView::refreshDefaultColumn | ( | ) |
Definition at line 256 of file listview.cxx.
References COLUMN_IMG_ISDEFAULT, TemplateLocalView::IsDefaultTemplate(), mListViewItems, and mxTreeView.
Referenced by TemplateDlgLocalView::ContextMenuSelectHdl().
void ListView::ReloadRows | ( | ) |
Definition at line 126 of file listview.cxx.
References AppendRow(), get_cursor_index(), get_id(), get_selected_index(), mListViewItems, mxTreeView, select_id(), set_cursor(), and unselect_all().
Referenced by sortColumn().
void ListView::rename | ( | const OUString & | rId, |
const OUString & | rTitle | ||
) |
Definition at line 272 of file listview.cxx.
References COLUMN_NAME, mListViewItems, and mxTreeView.
Referenced by TemplateDlgLocalView::ContextMenuSelectHdl().
|
inlineprotected |
Definition at line 81 of file listview.hxx.
References mxTreeView, and pos.
Referenced by TemplateDlgLocalView::syncCursor().
|
inlineprotected |
Definition at line 65 of file listview.hxx.
References mxTreeView, and sId.
Referenced by ReloadRows(), and UpdateRows().
|
inlineprotected |
Definition at line 75 of file listview.hxx.
References mxTreeView, and pos.
Referenced by ReloadRows(), TemplateDlgLocalView::syncCursor(), and UpdateRows().
|
inline |
Definition at line 50 of file listview.hxx.
References mxTreeView.
Referenced by TemplateDlgLocalView::Show().
void ListView::sort | ( | ) |
Definition at line 254 of file listview.cxx.
References mnSortColumn, and sortColumn().
Referenced by TemplateDlgLocalView::insertFilteredItems().
void ListView::sortColumn | ( | const int | col | ) |
Definition at line 185 of file listview.cxx.
References col, COLUMN_APPLICATION, COLUMN_CATEGORY, COLUMN_MODIFIED, COLUMN_NAME, COLUMN_SIZE, comp, CollatorWrapper::compareString(), IntlWrapper::getCollator(), mListViewItems, mnSortColumn, mxTreeView, NUMBER_OF_COLUMNS, pCollatorWrapper, ReloadRows(), and UpdateRows().
Referenced by sort().
|
inline |
Definition at line 54 of file listview.hxx.
References mxTreeView.
Referenced by TemplateDlgLocalView::reload(), ReloadRows(), TemplateDlgLocalView::syncCursor(), and UpdateRows().
void ListView::UpdateRow | ( | int | nIndex, |
const OUString & | rImage, | ||
const OUString & | rTitle, | ||
const OUString & | rSubtitle, | ||
const OUString & | rApplication, | ||
const OUString & | rModify, | ||
const OUString & | rSize, | ||
const OUString & | rId | ||
) |
Definition at line 113 of file listview.cxx.
References COLUMN_APPLICATION, COLUMN_CATEGORY, COLUMN_IMG_ISDEFAULT, COLUMN_MODIFIED, COLUMN_NAME, COLUMN_SIZE, mxTreeView, and nIndex.
Referenced by UpdateRows().
bool ListView::UpdateRows | ( | ) |
Definition at line 146 of file listview.cxx.
References get_cursor_index(), get_id(), get_selected_index(), mListViewItems, mxTreeView, nIndex, select_id(), set_cursor(), unselect_all(), and UpdateRow().
Referenced by sortColumn().
|
protected |
Definition at line 91 of file listview.hxx.
Referenced by AppendItem(), clearListView(), refreshDefaultColumn(), ReloadRows(), rename(), sortColumn(), and UpdateRows().
|
protected |
Definition at line 92 of file listview.hxx.
Referenced by sort(), and sortColumn().
|
protected |
Definition at line 90 of file listview.hxx.
Referenced by AppendRow(), clearListView(), TemplateDlgLocalView::createContextMenu(), get_cursor_index(), get_cursor_nId(), get_id(), get_index(), get_nId(), get_selected_index(), get_selected_rows(), grab_focus(), HideListView(), IsListViewVisible(), ListView(), refreshDefaultColumn(), ReloadRows(), rename(), select(), select_id(), set_cursor(), ShowListView(), sortColumn(), TemplateDlgLocalView::TemplateDlgLocalView(), unselect_all(), UpdateRow(), and UpdateRows().