LibreOffice Module fpicker (master) 1
|
ListBox to handle Places. More...
#include <PlacesListBox.hxx>
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< PlacePtr > | maPlaces |
SvtFileDialog * | mpDlg |
std::unique_ptr< weld::TreeView > | mxImpl |
std::unique_ptr< weld::Button > | mxAddBtn |
std::unique_ptr< weld::Button > | mxDelBtn |
sal_Int32 | mnNbEditables |
bool | mbUpdated |
ListBox to handle Places.
Definition at line 25 of file PlacesListBox.hxx.
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 | ( | ) |
Definition at line 35 of file PlacesListBox.cxx.
void PlacesListBox::AppendPlace | ( | const PlacePtr & | pPlace | ) |
Definition at line 39 of file PlacesListBox.cxx.
References getEntryIcon(), maPlaces, mbUpdated, mnNbEditables, and mxImpl.
|
private |
|
private |
|
private |
|
staticprivate |
Definition at line 91 of file PlacesListBox.cxx.
Referenced by AppendPlace().
|
inline |
Definition at line 46 of file PlacesListBox.hxx.
References mnNbEditables.
|
inline |
Definition at line 48 of file PlacesListBox.hxx.
References maPlaces.
bool PlacesListBox::IsUpdated | ( | ) |
Definition at line 51 of file PlacesListBox.cxx.
References mbUpdated.
void PlacesListBox::RemovePlace | ( | sal_uInt16 | nPos | ) |
Definition at line 59 of file PlacesListBox.cxx.
References maPlaces, mbUpdated, mnNbEditables, mxImpl, and nPos.
Referenced by RemoveSelectedPlace().
void PlacesListBox::RemoveSelectedPlace | ( | ) |
Definition at line 72 of file PlacesListBox.cxx.
References mxImpl, and RemovePlace().
|
inline |
Definition at line 55 of file PlacesListBox.hxx.
References mxImpl.
void PlacesListBox::SetAddHdl | ( | const Link< weld::Button &, void > & | rHdl | ) |
Definition at line 76 of file PlacesListBox.cxx.
References mxAddBtn.
void PlacesListBox::SetDelEnabled | ( | bool | enabled | ) |
Definition at line 86 of file PlacesListBox.cxx.
References mxDelBtn.
void PlacesListBox::SetDelHdl | ( | const Link< weld::Button &, void > & | rHdl | ) |
Definition at line 81 of file PlacesListBox.cxx.
References mxDelBtn.
void PlacesListBox::updateView | ( | ) |
Definition at line 151 of file PlacesListBox.cxx.
References maPlaces, mpDlg, mxImpl, and SvtFileDialog::OpenURL_Impl().
|
private |
Definition at line 28 of file PlacesListBox.hxx.
Referenced by AppendPlace(), GetPlaces(), RemovePlace(), and updateView().
|
private |
Definition at line 34 of file PlacesListBox.hxx.
Referenced by AppendPlace(), IsUpdated(), and RemovePlace().
|
private |
Definition at line 33 of file PlacesListBox.hxx.
Referenced by AppendPlace(), GetNbEditablePlaces(), and RemovePlace().
|
private |
Definition at line 29 of file PlacesListBox.hxx.
Referenced by updateView().
|
private |
Definition at line 31 of file PlacesListBox.hxx.
Referenced by SetAddHdl().
|
private |
Definition at line 32 of file PlacesListBox.hxx.
Referenced by SetDelEnabled(), and SetDelHdl().
|
private |
Definition at line 30 of file PlacesListBox.hxx.
Referenced by AppendPlace(), PlacesListBox(), RemovePlace(), RemoveSelectedPlace(), set_help_id(), and updateView().