LibreOffice Module sw (master) 1
|
#include <bookmark.hxx>
Public Member Functions | |
BookmarkTable (std::unique_ptr< weld::TreeView > xControl) | |
void | InsertBookmark (SwWrtShell &rSh, sw::mark::IMark *pMark) |
bool | SelectByName (const OUString &sName) |
sw::mark::IMark * | GetBookmarkByName (const OUString &sName) |
OUString | GetNameProposal () const |
void | unselect_all () |
bool | has_focus () const |
std::unique_ptr< weld::TreeIter > | get_selected () const |
void | clear () |
void | select (const weld::TreeIter &rIter) |
void | remove_selection () |
OUString | get_text (const weld::TreeIter &rIter) const |
OUString | get_id (const weld::TreeIter &rIter) const |
void | set_sort_indicator (TriState eState, int nColumn=-1) |
void | selected_foreach (const std::function< bool(weld::TreeIter &)> &func) |
void | connect_changed (const Link< weld::TreeView &, void > &rLink) |
void | connect_row_activated (const Link< weld::TreeView &, bool > &rLink) |
void | connect_column_clicked (const Link< int, void > &rLink) |
void | connect_editing (const Link< const weld::TreeIter &, bool > &rStartLink, const Link< const weld::TreeView::iter_string &, bool > &rEndLink) |
void | set_column_editables (::std::vector< bool > const &rEditables) |
void | start_editing (weld::TreeIter const &rIter) |
void | make_sorted () |
bool | get_sort_order () const |
void | set_sort_order (bool bAscending) |
int | get_sort_column () const |
void | set_sort_column (int nColumn) |
Static Public Attributes | |
static constexpr OUStringLiteral | aForbiddenChars = u"/\\@*?\",#" |
static const char | s_cSeparator |
Private Member Functions | |
std::unique_ptr< weld::TreeIter > | GetRowByBookmarkName (const OUString &sName) |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xControl |
Definition at line 29 of file uibase/inc/bookmark.hxx.
BookmarkTable::BookmarkTable | ( | std::unique_ptr< weld::TreeView > | xControl | ) |
Definition at line 481 of file ui/misc/bookmark.cxx.
References m_xControl, and m_xControl.
|
inline |
Definition at line 43 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 51 of file uibase/inc/bookmark.hxx.
References m_xControl.
Definition at line 53 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 54 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 52 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 47 of file uibase/inc/bookmark.hxx.
References m_xControl.
std::unique_ptr< weld::TreeIter > BookmarkTable::get_selected | ( | ) | const |
Definition at line 489 of file ui/misc/bookmark.cxx.
References m_xControl.
|
inline |
Definition at line 61 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 59 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 46 of file uibase/inc/bookmark.hxx.
References m_xControl.
sw::mark::IMark * BookmarkTable::GetBookmarkByName | ( | const OUString & | sName | ) |
Definition at line 556 of file ui/misc/bookmark.cxx.
References GetRowByBookmarkName(), m_xControl, and sName.
OUString BookmarkTable::GetNameProposal | ( | ) | const |
Definition at line 574 of file ui/misc/bookmark.cxx.
References sw::mark::IMark::GetName(), o3tl::getToken(), i, m_xControl, nCount, nIndex, sName, SwResId(), and o3tl::toInt32().
|
private |
Definition at line 541 of file ui/misc/bookmark.cxx.
References sw::mark::IMark::GetName(), m_xControl, and sName.
Referenced by GetBookmarkByName(), and SelectByName().
|
inline |
Definition at line 41 of file uibase/inc/bookmark.hxx.
References m_xControl.
void BookmarkTable::InsertBookmark | ( | SwWrtShell & | rSh, |
sw::mark::IMark * | pMark | ||
) |
Definition at line 497 of file ui/misc/bookmark.cxx.
References SwCursorShell::DeleteCurrent, sw::mark::IBookmark::GetHideCondition(), sw::mark::IMark::GetMarkStart(), sw::mark::IMark::GetName(), SwPaM::GetPageNum(), SwEditShell::GetSelectedText(), SwWrtShell::GotoMark(), sw::mark::IMark::IsExpanded(), sw::mark::IBookmark::IsHidden(), m_xControl, SwWrtShell::Pop(), SwCursorShell::Push(), sHidden, sName, SwResId(), ToBlank, weld::toId(), and u.
|
inline |
Definition at line 58 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 45 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 44 of file uibase/inc/bookmark.hxx.
References m_xControl.
Referenced by SelectByName().
bool BookmarkTable::SelectByName | ( | const OUString & | sName | ) |
Definition at line 565 of file ui/misc/bookmark.cxx.
References GetRowByBookmarkName(), select(), and sName.
|
inline |
Definition at line 49 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 56 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 62 of file uibase/inc/bookmark.hxx.
References m_xControl.
Definition at line 48 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 60 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 57 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
inline |
Definition at line 40 of file uibase/inc/bookmark.hxx.
References m_xControl.
|
staticconstexpr |
Definition at line 64 of file uibase/inc/bookmark.hxx.
Referenced by IMPL_LINK_NOARG(), and SwInsertBookmarkDlg::SwInsertBookmarkDlg().
|
private |
Definition at line 31 of file uibase/inc/bookmark.hxx.
Referenced by BookmarkTable(), clear(), connect_changed(), connect_column_clicked(), connect_editing(), connect_row_activated(), get_id(), get_selected(), get_sort_column(), get_sort_order(), get_text(), GetBookmarkByName(), GetNameProposal(), GetRowByBookmarkName(), has_focus(), InsertBookmark(), make_sorted(), remove_selection(), select(), selected_foreach(), set_column_editables(), set_sort_column(), set_sort_indicator(), set_sort_order(), start_editing(), and unselect_all().
|
static |
Definition at line 65 of file uibase/inc/bookmark.hxx.
Referenced by IMPL_LINK_NOARG().