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

ListBox to handle Places. More...

#include <PlacesListBox.hxx>

Collaboration diagram for PlacesListBox:
[legend]

Public Member Functions

 PlacesListBox (std::unique_ptr< weld::TreeView > xTreeView, std::unique_ptr< weld::Button > xAddBtn, std::unique_ptr< weld::Button > xDelBtn, SvtFileDialog *pFileDlg)
 
 ~PlacesListBox ()
 
void AppendPlace (const PlacePtr &pPlace)
 
void RemovePlace (sal_uInt16 nPos)
 
void RemoveSelectedPlace ()
 
sal_Int32 GetNbEditablePlaces () const
 
bool IsUpdated ()
 
const std::vector< PlacePtr > & GetPlaces () const
 
void SetAddHdl (const Link< weld::Button &, void > &rHdl)
 
void SetDelHdl (const Link< weld::Button &, void > &rHdl)
 
void SetDelEnabled (bool enabled)
 
void updateView ()
 
void set_help_id (const OString &rHelpId)
 

Private Member Functions

 DECL_LINK (Selection, weld::TreeView &, void)
 
 DECL_LINK (DoubleClick, weld::TreeView &, bool)
 

Static Private Member Functions

static OUString getEntryIcon (const PlacePtr &pPlace)
 

Private Attributes

std::vector< PlacePtrmaPlaces
 
SvtFileDialogmpDlg
 
std::unique_ptr< weld::TreeViewmxImpl
 
std::unique_ptr< weld::ButtonmxAddBtn
 
std::unique_ptr< weld::ButtonmxDelBtn
 
sal_Int32 mnNbEditables
 
bool mbUpdated
 

Detailed Description

ListBox to handle Places.

Definition at line 26 of file PlacesListBox.hxx.

Constructor & Destructor Documentation

PlacesListBox::PlacesListBox ( std::unique_ptr< weld::TreeView xTreeView,
std::unique_ptr< weld::Button xAddBtn,
std::unique_ptr< weld::Button xDelBtn,
SvtFileDialog pFileDlg 
)

Definition at line 16 of file PlacesListBox.cxx.

References LINK, and mxImpl.

PlacesListBox::~PlacesListBox ( )

Definition at line 36 of file PlacesListBox.cxx.

Member Function Documentation

void PlacesListBox::AppendPlace ( const PlacePtr pPlace)

Definition at line 40 of file PlacesListBox.cxx.

References getEntryIcon(), maPlaces, mbUpdated, mnNbEditables, and mxImpl.

PlacesListBox::DECL_LINK ( Selection  ,
weld::TreeView ,
void   
)
private
PlacesListBox::DECL_LINK ( DoubleClick  ,
weld::TreeView ,
bool   
)
private
OUString PlacesListBox::getEntryIcon ( const PlacePtr pPlace)
staticprivate

Definition at line 92 of file PlacesListBox.cxx.

Referenced by AppendPlace().

sal_Int32 PlacesListBox::GetNbEditablePlaces ( ) const
inline

Definition at line 47 of file PlacesListBox.hxx.

References mnNbEditables.

const std::vector<PlacePtr>& PlacesListBox::GetPlaces ( ) const
inline

Definition at line 49 of file PlacesListBox.hxx.

References maPlaces.

bool PlacesListBox::IsUpdated ( )

Definition at line 52 of file PlacesListBox.cxx.

References mbUpdated.

void PlacesListBox::RemovePlace ( sal_uInt16  nPos)

Definition at line 60 of file PlacesListBox.cxx.

References maPlaces, mbUpdated, mnNbEditables, and mxImpl.

Referenced by RemoveSelectedPlace().

void PlacesListBox::RemoveSelectedPlace ( )

Definition at line 73 of file PlacesListBox.cxx.

References mxImpl, and RemovePlace().

void PlacesListBox::set_help_id ( const OString &  rHelpId)
inline

Definition at line 56 of file PlacesListBox.hxx.

void PlacesListBox::SetAddHdl ( const Link< weld::Button &, void > &  rHdl)

Definition at line 77 of file PlacesListBox.cxx.

References mxAddBtn.

void PlacesListBox::SetDelEnabled ( bool  enabled)

Definition at line 87 of file PlacesListBox.cxx.

References mxDelBtn.

void PlacesListBox::SetDelHdl ( const Link< weld::Button &, void > &  rHdl)

Definition at line 82 of file PlacesListBox.cxx.

References mxDelBtn.

void PlacesListBox::updateView ( )

Definition at line 142 of file PlacesListBox.cxx.

References maPlaces, mpDlg, mxImpl, and SvtFileDialog::OpenURL_Impl().

Member Data Documentation

std::vector<PlacePtr> PlacesListBox::maPlaces
private

Definition at line 29 of file PlacesListBox.hxx.

Referenced by AppendPlace(), GetPlaces(), RemovePlace(), and updateView().

bool PlacesListBox::mbUpdated
private

Definition at line 35 of file PlacesListBox.hxx.

Referenced by AppendPlace(), IsUpdated(), and RemovePlace().

sal_Int32 PlacesListBox::mnNbEditables
private

Definition at line 34 of file PlacesListBox.hxx.

Referenced by AppendPlace(), GetNbEditablePlaces(), and RemovePlace().

SvtFileDialog* PlacesListBox::mpDlg
private

Definition at line 30 of file PlacesListBox.hxx.

Referenced by updateView().

std::unique_ptr<weld::Button> PlacesListBox::mxAddBtn
private

Definition at line 32 of file PlacesListBox.hxx.

Referenced by SetAddHdl().

std::unique_ptr<weld::Button> PlacesListBox::mxDelBtn
private

Definition at line 33 of file PlacesListBox.hxx.

Referenced by SetDelEnabled(), and SetDelHdl().

std::unique_ptr<weld::TreeView> PlacesListBox::mxImpl
private

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