LibreOffice Module sw (master) 1
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
BookmarkTable Class Reference

#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::IMarkGetBookmarkByName (const OUString &sName)
 
OUString GetNameProposal () const
 
void unselect_all ()
 
bool has_focus () const
 
std::unique_ptr< weld::TreeIterget_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::TreeIterGetRowByBookmarkName (const OUString &sName)
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xControl
 

Detailed Description

Definition at line 29 of file uibase/inc/bookmark.hxx.

Constructor & Destructor Documentation

◆ BookmarkTable()

BookmarkTable::BookmarkTable ( std::unique_ptr< weld::TreeView xControl)

Definition at line 481 of file ui/misc/bookmark.cxx.

References m_xControl, and m_xControl.

Member Function Documentation

◆ clear()

void BookmarkTable::clear ( )
inline

Definition at line 43 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ connect_changed()

void BookmarkTable::connect_changed ( const Link< weld::TreeView &, void > &  rLink)
inline

Definition at line 51 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ connect_column_clicked()

void BookmarkTable::connect_column_clicked ( const Link< int, void > &  rLink)
inline

Definition at line 53 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ connect_editing()

void BookmarkTable::connect_editing ( const Link< const weld::TreeIter &, bool > &  rStartLink,
const Link< const weld::TreeView::iter_string &, bool > &  rEndLink 
)
inline

Definition at line 54 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ connect_row_activated()

void BookmarkTable::connect_row_activated ( const Link< weld::TreeView &, bool > &  rLink)
inline

Definition at line 52 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ get_id()

OUString BookmarkTable::get_id ( const weld::TreeIter rIter) const
inline

Definition at line 47 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ get_selected()

std::unique_ptr< weld::TreeIter > BookmarkTable::get_selected ( ) const

Definition at line 489 of file ui/misc/bookmark.cxx.

References m_xControl.

◆ get_sort_column()

int BookmarkTable::get_sort_column ( ) const
inline

Definition at line 61 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ get_sort_order()

bool BookmarkTable::get_sort_order ( ) const
inline

Definition at line 59 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ get_text()

OUString BookmarkTable::get_text ( const weld::TreeIter rIter) const
inline

Definition at line 46 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ GetBookmarkByName()

sw::mark::IMark * BookmarkTable::GetBookmarkByName ( const OUString &  sName)

Definition at line 556 of file ui/misc/bookmark.cxx.

References GetRowByBookmarkName(), m_xControl, and sName.

◆ GetNameProposal()

OUString BookmarkTable::GetNameProposal ( ) const

◆ GetRowByBookmarkName()

std::unique_ptr< weld::TreeIter > BookmarkTable::GetRowByBookmarkName ( const OUString &  sName)
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().

◆ has_focus()

bool BookmarkTable::has_focus ( ) const
inline

Definition at line 41 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ InsertBookmark()

void BookmarkTable::InsertBookmark ( SwWrtShell rSh,
sw::mark::IMark pMark 
)

◆ make_sorted()

void BookmarkTable::make_sorted ( )
inline

Definition at line 58 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ remove_selection()

void BookmarkTable::remove_selection ( )
inline

Definition at line 45 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ select()

void BookmarkTable::select ( const weld::TreeIter rIter)
inline

Definition at line 44 of file uibase/inc/bookmark.hxx.

References m_xControl.

Referenced by SelectByName().

◆ SelectByName()

bool BookmarkTable::SelectByName ( const OUString &  sName)

Definition at line 565 of file ui/misc/bookmark.cxx.

References GetRowByBookmarkName(), select(), and sName.

◆ selected_foreach()

void BookmarkTable::selected_foreach ( const std::function< bool(weld::TreeIter &)> &  func)
inline

Definition at line 49 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ set_column_editables()

void BookmarkTable::set_column_editables ( ::std::vector< bool > const &  rEditables)
inline

Definition at line 56 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ set_sort_column()

void BookmarkTable::set_sort_column ( int  nColumn)
inline

Definition at line 62 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ set_sort_indicator()

void BookmarkTable::set_sort_indicator ( TriState  eState,
int  nColumn = -1 
)
inline

Definition at line 48 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ set_sort_order()

void BookmarkTable::set_sort_order ( bool  bAscending)
inline

Definition at line 60 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ start_editing()

void BookmarkTable::start_editing ( weld::TreeIter const &  rIter)
inline

Definition at line 57 of file uibase/inc/bookmark.hxx.

References m_xControl.

◆ unselect_all()

void BookmarkTable::unselect_all ( )
inline

Definition at line 40 of file uibase/inc/bookmark.hxx.

References m_xControl.

Member Data Documentation

◆ aForbiddenChars

constexpr OUStringLiteral BookmarkTable::aForbiddenChars = u"/\\@*?\",#"
staticconstexpr

◆ m_xControl

std::unique_ptr<weld::TreeView> BookmarkTable::m_xControl
private

◆ s_cSeparator

const char BookmarkTable::s_cSeparator
static

Definition at line 65 of file uibase/inc/bookmark.hxx.

Referenced by IMPL_LINK_NOARG().


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