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>

Collaboration diagram for BookmarkTable:
[legend]

Public Member Functions

 BookmarkTable (std::unique_ptr< weld::TreeView > xControl)
 
void InsertBookmark (sw::mark::IMark *pMark)
 
void 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 remove (const weld::TreeIter &rIter)
 
void select (const weld::TreeIter &rIter)
 
void remove_selection ()
 
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 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 const OUString aForbiddenChars
 
static const char 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 30 of file bookmark.hxx.

Constructor & Destructor Documentation

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

Definition at line 372 of file bookmark.cxx.

References m_xControl.

Member Function Documentation

void BookmarkTable::clear ( )
inline

Definition at line 44 of file bookmark.hxx.

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

Definition at line 52 of file bookmark.hxx.

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

Definition at line 54 of file bookmark.hxx.

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

Definition at line 53 of file bookmark.hxx.

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

Definition at line 48 of file bookmark.hxx.

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

Definition at line 385 of file bookmark.cxx.

References m_xControl.

int BookmarkTable::get_sort_column ( ) const
inline

Definition at line 58 of file bookmark.hxx.

bool BookmarkTable::get_sort_order ( ) const
inline

Definition at line 56 of file bookmark.hxx.

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

Definition at line 456 of file bookmark.cxx.

References GetRowByBookmarkName(), and m_xControl.

OUString BookmarkTable::GetNameProposal ( ) const

Definition at line 473 of file bookmark.cxx.

References sw::mark::IMark::GetName(), i, m_xControl, sName, and SwResId().

std::unique_ptr< weld::TreeIter > BookmarkTable::GetRowByBookmarkName ( const OUString &  sName)
private

Definition at line 441 of file bookmark.cxx.

References sw::mark::IMark::GetName(), and m_xControl.

Referenced by GetBookmarkByName(), and SelectByName().

bool BookmarkTable::has_focus ( ) const
inline

Definition at line 42 of file bookmark.hxx.

void BookmarkTable::InsertBookmark ( sw::mark::IMark pMark)
void BookmarkTable::make_sorted ( )
inline

Definition at line 55 of file bookmark.hxx.

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

Definition at line 45 of file bookmark.hxx.

void BookmarkTable::remove_selection ( )
inline

Definition at line 47 of file bookmark.hxx.

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

Definition at line 46 of file bookmark.hxx.

Referenced by SelectByName().

void BookmarkTable::SelectByName ( const OUString &  sName)

Definition at line 465 of file bookmark.cxx.

References GetRowByBookmarkName(), and select().

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

Definition at line 50 of file bookmark.hxx.

void BookmarkTable::set_sort_column ( int  nColumn)
inline

Definition at line 59 of file bookmark.hxx.

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

Definition at line 49 of file bookmark.hxx.

void BookmarkTable::set_sort_order ( bool  bAscending)
inline

Definition at line 57 of file bookmark.hxx.

void BookmarkTable::unselect_all ( )
inline

Definition at line 41 of file bookmark.hxx.

Member Data Documentation

const OUString BookmarkTable::aForbiddenChars
static

Definition at line 61 of file bookmark.hxx.

Referenced by IMPL_LINK_NOARG(), and SwInsertBookmarkDlg::SwInsertBookmarkDlg().

const char BookmarkTable::cSeparator
static

Definition at line 62 of file bookmark.hxx.

Referenced by IMPL_LINK_NOARG().

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

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