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 OUString &rHelpId)
 

Private Member Functions

 DECL_LINK (Selection, weld::TreeView &, void)
 
 DECL_LINK (DoubleClick, weld::TreeView &, bool)
 
 DECL_LINK (QueryTooltipHdl, const weld::TreeIter &, OUString)
 

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 25 of file PlacesListBox.hxx.

Constructor & Destructor Documentation

◆ PlacesListBox()

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 15 of file PlacesListBox.cxx.

References Size::Height(), LINK, mxImpl, and Size::Width().

◆ ~PlacesListBox()

PlacesListBox::~PlacesListBox ( )

Definition at line 35 of file PlacesListBox.cxx.

Member Function Documentation

◆ AppendPlace()

void PlacesListBox::AppendPlace ( const PlacePtr pPlace)

Definition at line 39 of file PlacesListBox.cxx.

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

◆ DECL_LINK() [1/3]

PlacesListBox::DECL_LINK ( DoubleClick  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [2/3]

PlacesListBox::DECL_LINK ( QueryTooltipHdl  ,
const weld::TreeIter ,
OUString   
)
private

◆ DECL_LINK() [3/3]

PlacesListBox::DECL_LINK ( Selection  ,
weld::TreeView ,
void   
)
private

◆ getEntryIcon()

OUString PlacesListBox::getEntryIcon ( const PlacePtr pPlace)
staticprivate

Definition at line 91 of file PlacesListBox.cxx.

Referenced by AppendPlace().

◆ GetNbEditablePlaces()

sal_Int32 PlacesListBox::GetNbEditablePlaces ( ) const
inline

Definition at line 46 of file PlacesListBox.hxx.

References mnNbEditables.

◆ GetPlaces()

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

Definition at line 48 of file PlacesListBox.hxx.

References maPlaces.

◆ IsUpdated()

bool PlacesListBox::IsUpdated ( )

Definition at line 51 of file PlacesListBox.cxx.

References mbUpdated.

◆ RemovePlace()

void PlacesListBox::RemovePlace ( sal_uInt16  nPos)

Definition at line 59 of file PlacesListBox.cxx.

References maPlaces, mbUpdated, mnNbEditables, mxImpl, and nPos.

Referenced by RemoveSelectedPlace().

◆ RemoveSelectedPlace()

void PlacesListBox::RemoveSelectedPlace ( )

Definition at line 72 of file PlacesListBox.cxx.

References mxImpl, and RemovePlace().

◆ set_help_id()

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

Definition at line 55 of file PlacesListBox.hxx.

References mxImpl.

◆ SetAddHdl()

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

Definition at line 76 of file PlacesListBox.cxx.

References mxAddBtn.

◆ SetDelEnabled()

void PlacesListBox::SetDelEnabled ( bool  enabled)

Definition at line 86 of file PlacesListBox.cxx.

References mxDelBtn.

◆ SetDelHdl()

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

Definition at line 81 of file PlacesListBox.cxx.

References mxDelBtn.

◆ updateView()

void PlacesListBox::updateView ( )

Definition at line 151 of file PlacesListBox.cxx.

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

Member Data Documentation

◆ maPlaces

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

Definition at line 28 of file PlacesListBox.hxx.

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

◆ mbUpdated

bool PlacesListBox::mbUpdated
private

Definition at line 34 of file PlacesListBox.hxx.

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

◆ mnNbEditables

sal_Int32 PlacesListBox::mnNbEditables
private

Definition at line 33 of file PlacesListBox.hxx.

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

◆ mpDlg

SvtFileDialog* PlacesListBox::mpDlg
private

Definition at line 29 of file PlacesListBox.hxx.

Referenced by updateView().

◆ mxAddBtn

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

Definition at line 31 of file PlacesListBox.hxx.

Referenced by SetAddHdl().

◆ mxDelBtn

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

Definition at line 32 of file PlacesListBox.hxx.

Referenced by SetDelEnabled(), and SetDelHdl().

◆ mxImpl

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

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