LibreOffice Module fpicker (master) 1
|
#include <fileview.hxx>
Public Member Functions | |
SvtFileView (weld::Window *pTopLevel, std::unique_ptr< weld::TreeView > xTreeView, std::unique_ptr< weld::IconView > xIconView, bool bOnlyFolder, bool bMultiSelection, bool bShowType=true) | |
~SvtFileView () | |
void | SetViewMode (FileViewMode eMode) |
const OUString & | GetViewURL () const |
OUString | GetURL (const weld::TreeIter &rEntry) const |
OUString | GetCurrentURL () const |
bool | GetParentURL (OUString &_rParentURL) const |
void | CreatedFolder (const OUString &rUrl, const OUString &rNewFolder) |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | grab_focus () |
bool | has_focus () const |
OUString | get_selected_text () const |
weld::Widget * | identifier () const |
FileViewResult | Initialize (const OUString &rFolderURL, const OUString &rFilter, const FileViewAsyncAction *pAsyncDescriptor, const css::uno::Sequence< OUString > &rDenyList) |
initialize the view with the content of a folder given by URL, and apply an immediate filter More... | |
FileViewResult | ExecuteFilter (const OUString &rFilter, const FileViewAsyncAction *pAsyncDescriptor) |
reads the current content of the current folder again, and applies the given filter to it More... | |
void | CancelRunningAsyncAction () |
cancels a running async action (if any) More... | |
FileViewResult | PreviousLevel (const FileViewAsyncAction *pAsyncDescriptor) |
initializes the view with the parent folder of the current folder More... | |
void | SetNoSelection () |
void | SetSelectHdl (const Link< SvtFileView *, void > &rHdl) |
void | SetDoubleClickHdl (const Link< SvtFileView *, bool > &rHdl) |
void | SetOpenDoneHdl (const Link< SvtFileView *, void > &rHdl) |
sal_uInt32 | GetSelectionCount () const |
SvtContentEntry * | FirstSelected () const |
void | selected_foreach (const std::function< bool(weld::TreeIter &)> &func) |
void | EnableDelete (bool bEnable) |
OUString | GetConfigString () const |
void | SetConfigString (std::u16string_view rCfgStr) |
void | EndInplaceEditing () |
::std::vector< SvtContentEntry > | GetContent () |
Private Member Functions | |
DECL_LINK (HeaderSelect_Impl, int, void) | |
Private Attributes | |
std::unique_ptr< SvtFileView_Impl > | mpImpl |
css::uno::Sequence< OUString > | maDenyList |
Definition at line 61 of file fileview.hxx.
SvtFileView::SvtFileView | ( | weld::Window * | pTopLevel, |
std::unique_ptr< weld::TreeView > | xTreeView, | ||
std::unique_ptr< weld::IconView > | xIconView, | ||
bool | bOnlyFolder, | ||
bool | bMultiSelection, | ||
bool | bShowType = true |
||
) |
Definition at line 791 of file fileview.cxx.
References weld::TreeView::connect_column_clicked(), weld::Window::GetXWindow(), LINK, and mpImpl.
SvtFileView::~SvtFileView | ( | ) |
Definition at line 823 of file fileview.cxx.
void SvtFileView::CancelRunningAsyncAction | ( | ) |
cancels a running async action (if any)
@seealso Initialize @seealso ExecuteFilter @seealso FileViewAsyncAction
Definition at line 976 of file fileview.cxx.
References mpImpl.
Referenced by svt::AsyncPickerAction::cancel().
void SvtFileView::CreatedFolder | ( | const OUString & | rUrl, |
const OUString & | rNewFolder | ||
) |
Definition at line 865 of file fileview.cxx.
References mpImpl, sId, and weld::toId().
|
private |
void SvtFileView::EnableDelete | ( | bool | bEnable | ) |
Definition at line 1032 of file fileview.cxx.
References mpImpl.
void SvtFileView::EndInplaceEditing | ( | ) |
Definition at line 1037 of file fileview.cxx.
References mpImpl.
FileViewResult SvtFileView::ExecuteFilter | ( | const OUString & | rFilter, |
const FileViewAsyncAction * | pAsyncDescriptor | ||
) |
reads the current content of the current folder again, and applies the given filter to it
Note 1: The folder is really read a second time. This implies that any new elements (which were not present when you called Initialize the last time) are now displayed.
Note 2: This method must not be called when you previously initialized the view from a sequence of strings, or a UNO content object.
rFilter | the filter to be applied |
pAsyncDescriptor | If not <NULL>, this struct describes the parameters for doing the action asynchronously. |
Definition at line 966 of file fileview.cxx.
References eStillRunning, maDenyList, and mpImpl.
Referenced by svt::AsyncPickerAction::execute(), and Initialize().
SvtContentEntry * SvtFileView::FirstSelected | ( | ) | const |
Definition at line 1004 of file fileview.cxx.
References mpImpl.
OUString SvtFileView::get_help_id | ( | ) | const |
Definition at line 918 of file fileview.cxx.
References mpImpl.
Referenced by svt::OControlAccess::getHelpURL().
OUString SvtFileView::get_selected_text | ( | ) | const |
Definition at line 928 of file fileview.cxx.
References mpImpl.
OUString SvtFileView::GetConfigString | ( | ) | const |
Definition at line 1064 of file fileview.cxx.
References COLUMN_TITLE, weld::TreeView::get_column_width(), i, mpImpl, nCount, nId, comphelper::string::stripEnd(), and u.
std::vector< SvtContentEntry > SvtFileView::GetContent | ( | ) |
Definition at line 1090 of file fileview.cxx.
References mpImpl.
OUString SvtFileView::GetCurrentURL | ( | ) | const |
Definition at line 844 of file fileview.cxx.
References aURL, SvtContentEntry::maURL, and mpImpl.
bool SvtFileView::GetParentURL | ( | OUString & | _rParentURL | ) | const |
Definition at line 892 of file fileview.cxx.
References Exception, ucbhelper::Content::get(), comphelper::getProcessComponentContext(), and mpImpl.
Referenced by PreviousLevel().
sal_uInt32 SvtFileView::GetSelectionCount | ( | ) | const |
Definition at line 997 of file fileview.cxx.
References mpImpl.
OUString SvtFileView::GetURL | ( | const weld::TreeIter & | rEntry | ) | const |
Definition at line 832 of file fileview.cxx.
References SvtContentEntry::maURL, and mpImpl.
const OUString & SvtFileView::GetViewURL | ( | ) | const |
Definition at line 1022 of file fileview.cxx.
References mpImpl.
Referenced by SvtUpButton_Impl::FillURLMenu().
void SvtFileView::grab_focus | ( | ) |
Definition at line 813 of file fileview.cxx.
References mpImpl.
bool SvtFileView::has_focus | ( | ) | const |
Definition at line 818 of file fileview.cxx.
References mpImpl.
weld::Widget * SvtFileView::identifier | ( | ) | const |
Definition at line 1803 of file fileview.cxx.
References mpImpl.
Referenced by svt::OControlAccess::IsFileViewWidget().
FileViewResult SvtFileView::Initialize | ( | const OUString & | rFolderURL, |
const OUString & | rFilter, | ||
const FileViewAsyncAction * | pAsyncDescriptor, | ||
const css::uno::Sequence< OUString > & | rDenyList | ||
) |
initialize the view with the content of a folder given by URL, and apply an immediate filter
rFolderURL | the URL of the folder whose content is to be read |
rFilter | the initial filter to be applied |
pAsyncDescriptor | If not <NULL>, this struct describes the parameters for doing the action asynchronously. |
Definition at line 935 of file fileview.cxx.
References eFailure, eStillRunning, eSuccess, eTimeout, ExecuteFilter(), maDenyList, and mpImpl.
Referenced by svt::AsyncPickerAction::execute(), and PreviousLevel().
FileViewResult SvtFileView::PreviousLevel | ( | const FileViewAsyncAction * | pAsyncDescriptor | ) |
initializes the view with the parent folder of the current folder
rNewURL | the URL of the folder which we just navigated to |
pAsyncDescriptor | If not <NULL>, this struct describes the parameters for doing the action asynchronously. |
Definition at line 881 of file fileview.cxx.
References eFailure, GetParentURL(), Initialize(), maDenyList, and mpImpl.
Referenced by svt::AsyncPickerAction::execute().
void SvtFileView::selected_foreach | ( | const std::function< bool(weld::TreeIter &)> & | func | ) |
Definition at line 1795 of file fileview.cxx.
References mpImpl.
void SvtFileView::set_help_id | ( | const OUString & | rHelpId | ) |
Definition at line 923 of file fileview.cxx.
References mpImpl.
Referenced by svt::OControlAccess::setHelpURL().
void SvtFileView::SetConfigString | ( | std::u16string_view | rCfgStr | ) |
Definition at line 1103 of file fileview.cxx.
References COLUMN_TITLE, o3tl::getToken(), o3tl::make_unsigned(), mpImpl, weld::TreeView::set_column_fixed_widths(), weld::TreeView::set_sort_indicator(), o3tl::toInt32(), and TRISTATE_INDET.
void SvtFileView::SetDoubleClickHdl | ( | const Link< SvtFileView *, bool > & | rHdl | ) |
Definition at line 992 of file fileview.cxx.
References mpImpl.
void SvtFileView::SetNoSelection | ( | ) |
Definition at line 981 of file fileview.cxx.
References mpImpl.
void SvtFileView::SetOpenDoneHdl | ( | const Link< SvtFileView *, void > & | rHdl | ) |
Definition at line 1027 of file fileview.cxx.
References mpImpl.
void SvtFileView::SetSelectHdl | ( | const Link< SvtFileView *, void > & | rHdl | ) |
Definition at line 987 of file fileview.cxx.
References mpImpl.
void SvtFileView::SetViewMode | ( | FileViewMode | eMode | ) |
Definition at line 827 of file fileview.cxx.
|
private |
Definition at line 65 of file fileview.hxx.
Referenced by ExecuteFilter(), Initialize(), and PreviousLevel().
|
private |
Definition at line 64 of file fileview.hxx.
Referenced by CancelRunningAsyncAction(), CreatedFolder(), EnableDelete(), EndInplaceEditing(), ExecuteFilter(), FirstSelected(), get_help_id(), get_selected_text(), GetConfigString(), GetContent(), GetCurrentURL(), GetParentURL(), GetSelectionCount(), GetURL(), GetViewURL(), grab_focus(), has_focus(), identifier(), Initialize(), PreviousLevel(), selected_foreach(), set_help_id(), SetConfigString(), SetDoubleClickHdl(), SetNoSelection(), SetOpenDoneHdl(), SetSelectHdl(), SetViewMode(), and SvtFileView().