LibreOffice Module fpicker (master) 1
|
#include <RemoteFilesDialog.hxx>
Public Member Functions | |
RemoteFilesDialog (weld::Window *pParent, PickerFlags nBits) | |
virtual | ~RemoteFilesDialog () override |
virtual short | run () override |
virtual SvtFileView * | GetView () override |
virtual void | SetHasFilename (bool) override |
virtual void | SetDenyList (const css::uno::Sequence< OUString > &rDenyList) override |
virtual const css::uno::Sequence< OUString > & | GetDenyList () const override |
virtual void | SetStandardDir (const OUString &rStdDir) override |
virtual const OUString & | GetStandardDir () const override |
virtual void | SetPath (const OUString &rNewURL) override |
virtual const OUString & | GetPath () override |
virtual std::vector< OUString > | GetPathList () const override |
virtual bool | ContentIsFolder (const OUString &rURL) override |
bool | ContentIsDocument (const OUString &rURL) |
virtual OUString | getCurrentFileText () const override |
virtual void | setCurrentFileText (const OUString &rText, bool bSelectAll=false) override |
virtual void | AddFilter (const OUString &rFilter, const OUString &rType) override |
virtual void | AddFilterGroup (const OUString &_rFilter, const css::uno::Sequence< css::beans::StringPair > &rFilters) override |
virtual OUString | GetCurFilter () const override |
virtual void | SetCurFilter (const OUString &rFilter) override |
virtual void | FilterSelect () override |
virtual void | SetFileCallback (::svt::IFilePickerListener *pNotifier) override |
virtual void | onAsyncOperationStarted () override |
virtual void | onAsyncOperationFinished () override |
virtual void | UpdateControls (const OUString &rURL) override |
virtual void | EnableAutocompletion (bool=true) override |
virtual sal_Int32 | getAvailableWidth () override |
virtual sal_Int32 | getAvailableHeight () override |
virtual void | setImage (const css::uno::Any &rImage) override |
virtual bool | getShowState () override |
virtual weld::Widget * | getControl (sal_Int16 nControlId, bool bLabelControl=false) const override |
virtual void | enableControl (sal_Int16 nControlId, bool bEnable) override |
virtual OUString | getCurFilter () const override |
Public Member Functions inherited from SvtFileDialog_Base | |
SvtFileDialog_Base (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
virtual bool | PrepareExecute () |
virtual SvtFileView * | GetView ()=0 |
virtual void | SetHasFilename (bool bHasFilename)=0 |
virtual void | SetDenyList (const css::uno::Sequence< OUString > &rDenyList)=0 |
virtual const css::uno::Sequence< OUString > & | GetDenyList () const =0 |
virtual void | SetStandardDir (const OUString &rStdDir)=0 |
virtual const OUString & | GetStandardDir () const =0 |
virtual void | SetPath (const OUString &rNewURL)=0 |
virtual const OUString & | GetPath ()=0 |
virtual std::vector< OUString > | GetPathList () const =0 |
virtual bool | ContentIsFolder (const OUString &rURL)=0 |
virtual OUString | getCurrentFileText () const =0 |
virtual void | setCurrentFileText (const OUString &rText, bool bSelectAll=false)=0 |
virtual void | AddFilter (const OUString &rFilter, const OUString &rType)=0 |
virtual void | AddFilterGroup (const OUString &_rFilter, const css::uno::Sequence< css::beans::StringPair > &rFilters)=0 |
virtual OUString | GetCurFilter () const =0 |
virtual void | SetCurFilter (const OUString &rFilter)=0 |
virtual void | FilterSelect ()=0 |
virtual void | SetFileCallback (::svt::IFilePickerListener *pNotifier)=0 |
virtual void | onAsyncOperationStarted ()=0 |
virtual void | onAsyncOperationFinished ()=0 |
virtual void | UpdateControls (const OUString &rURL)=0 |
virtual void | EnableAutocompletion (bool _bEnable=true)=0 |
virtual sal_Int32 | getAvailableWidth ()=0 |
virtual sal_Int32 | getAvailableHeight ()=0 |
virtual void | setImage (const css::uno::Any &rImage)=0 |
virtual bool | getShowState ()=0 |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
virtual weld::Widget * | getControl (sal_Int16 nControlId, bool bLabelControl=false) const =0 |
virtual void | enableControl (sal_Int16 nControlId, bool bEnable)=0 |
virtual OUString | getCurFilter () const =0 |
Private Member Functions | |
void | InitSize () |
void | FillServicesListbox () |
int | GetSelectedServicePos () |
void | OpenURL (OUString const &sURL) |
OUString | AddFileExtension (const OUString &rFileName) |
void | EnableExtraMenuItems (bool bEnable) |
void | EnableControls () |
void | DisableControls () |
void | SavePassword (const OUString &rURL, const OUString &rUser, const OUString &rPassword, bool bPersistent) |
void | AddService () |
DECL_LINK (SelectServiceHdl, weld::ComboBox &, void) | |
DECL_LINK (EditServiceMenuHdl, const OUString &, void) | |
DECL_LINK (DoubleClickHdl, SvtFileView *, bool) | |
DECL_LINK (SelectHdl, SvtFileView *, void) | |
DECL_LINK (FileNameGetFocusHdl, weld::Widget &, void) | |
DECL_LINK (FileNameModifyHdl, weld::Entry &, void) | |
DECL_LINK (SelectFilterHdl, weld::ComboBox &, void) | |
DECL_LINK (TreeSelectHdl, weld::TreeView &, void) | |
DECL_LINK (SelectBreadcrumbHdl, Breadcrumb *, bool) | |
DECL_LINK (NewFolderHdl, weld::Button &, void) | |
DECL_LINK (IconViewHdl, weld::Button &, void) | |
DECL_LINK (ListViewHdl, weld::Button &, void) | |
DECL_LINK (OkHdl, weld::Button &, void) | |
DECL_LINK (CancelHdl, weld::Button &, void) | |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Member Functions inherited from svt::IFilePickerController | |
~IFilePickerController () | |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 50 of file RemoteFilesDialog.hxx.
RemoteFilesDialog::RemoteFilesDialog | ( | weld::Window * | pParent, |
PickerFlags | nBits | ||
) |
Definition at line 29 of file RemoteFilesDialog.cxx.
References ALL_VISITED, create(), FillServicesListbox(), FpsResId(), getProcessComponentContext(), InitSize(), LINK, m_bIsConnected, m_bIsUpdated, m_bServiceChanged, m_eMode, m_eType, m_nCurrentFilter, m_sIniKey, m_sRootLabel, weld::GenericDialogController::m_xBuilder, m_xCancel_btn, m_xContainer, m_xContext, weld::GenericDialogController::m_xDialog, m_xFileView, m_xFilter_lb, m_xIconView_btn, m_xListView_btn, m_xManageServices, m_xName_ed, m_xNewFolder, m_xOk_btn, m_xPath, m_xPathContainer, m_xServices_lb, m_xTreeView, MultiSelection, PathDialog, REMOTEDLG_MODE_OPEN, REMOTEDLG_MODE_SAVE, REMOTEDLG_TYPE_FILEDLG, REMOTEDLG_TYPE_PATHDLG, and SaveAs.
|
overridevirtual |
Definition at line 119 of file RemoteFilesDialog.cxx.
References vcl::All, Any, comphelper::ConfigurationChanges::create(), Size::Height(), i, m_aServices, m_bIsUpdated, m_sIniKey, m_sLastServiceUrl, weld::GenericDialogController::m_xDialog, m_xFileView, SvtViewOptions::SetUserItem(), SvtViewOptions::SetWindowState(), and Size::Width().
|
private |
Definition at line 383 of file RemoteFilesDialog.cxx.
References m_aFilters, and m_nCurrentFilter.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 326 of file RemoteFilesDialog.cxx.
References m_aFilters, m_xFilter_lb, and sName.
Referenced by AddFilterGroup().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 980 of file RemoteFilesDialog.cxx.
References AddFilter().
|
private |
Definition at line 512 of file RemoteFilesDialog.cxx.
References EnableControls(), EnableExtraMenuItems(), lcl_GetServiceType(), m_aServices, m_bIsUpdated, weld::GenericDialogController::m_xDialog, m_xServices_lb, RET_CANCEL, RET_OK, SavePassword(), and sPrefix.
bool RemoteFilesDialog::ContentIsDocument | ( | const OUString & | rURL | ) |
Definition at line 1154 of file RemoteFilesDialog.cxx.
References ucbhelper::Content::isDocument(), and m_xContext.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1139 of file RemoteFilesDialog.cxx.
References ucbhelper::Content::isFolder(), and m_xContext.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 458 of file RemoteFilesDialog.cxx.
References m_xCancel_btn, m_xContainer, m_xFilter_lb, m_xManageServices, m_xName_ed, m_xOk_btn, m_xPath, and m_xServices_lb.
Referenced by onAsyncOperationStarted(), and OpenURL().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1107 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements svt::IFilePickerController.
Definition at line 1197 of file RemoteFilesDialog.cxx.
|
private |
Definition at line 397 of file RemoteFilesDialog.cxx.
References Exception, GetSelectedServicePos(), m_aServices, m_bIsConnected, m_xContainer, m_xFilter_lb, m_xManageServices, m_xMasterPasswd, m_xName_ed, m_xNewFolder, m_xOk_btn, m_xPath, m_xServices_lb, and nPos.
Referenced by AddService(), FillServicesListbox(), onAsyncOperationFinished(), OpenURL(), and UpdateControls().
|
private |
Definition at line 166 of file RemoteFilesDialog.cxx.
References m_xManageServices.
Referenced by AddService(), FillServicesListbox(), and run().
|
private |
Definition at line 255 of file RemoteFilesDialog.cxx.
References EnableControls(), EnableExtraMenuItems(), i, lcl_GetServiceType(), m_aServices, m_sLastServiceUrl, m_xServices_lb, nPos, and sPrefix.
Referenced by RemoteFilesDialog().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1026 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1175 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1169 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements svt::IFilePickerController.
Definition at line 1192 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 991 of file RemoteFilesDialog.cxx.
References m_aFilters, and m_nCurrentFilter.
Referenced by getCurFilter().
|
overridevirtual |
Implements svt::IFilePickerController.
Definition at line 1003 of file RemoteFilesDialog.cxx.
References GetCurFilter().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 962 of file RemoteFilesDialog.cxx.
References m_xName_ed.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 934 of file RemoteFilesDialog.cxx.
References m_aDenyList.
Referenced by OpenURL().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1112 of file RemoteFilesDialog.cxx.
References m_sPath.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1117 of file RemoteFilesDialog.cxx.
References aURL, INetURLObject::GetUser(), m_sLastServiceUrl, m_sPath, m_xFileView, and INetURLObject::NONE.
|
private |
Definition at line 302 of file RemoteFilesDialog.cxx.
References i, m_aServices, m_xServices_lb, and nPos.
Referenced by EnableControls(), and UpdateControls().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1186 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 944 of file RemoteFilesDialog.cxx.
References m_sStdDir.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 919 of file RemoteFilesDialog.cxx.
References m_xFileView.
|
private |
Definition at line 228 of file RemoteFilesDialog.cxx.
References Any, SvtViewOptions::Exists(), SvtViewOptions::GetUserItem(), SvtViewOptions::GetWindowState(), m_sIniKey, weld::GenericDialogController::m_xDialog, and m_xFileView.
Referenced by RemoteFilesDialog().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1039 of file RemoteFilesDialog.cxx.
References EnableControls(), and m_pCurrentAsyncAction.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1034 of file RemoteFilesDialog.cxx.
References DisableControls().
|
private |
Definition at line 340 of file RemoteFilesDialog.cxx.
References DBG_ASSERT, DisableControls(), EnableControls(), ERRCODE_IO_NOTEXISTS, FILEDIALOG_FILTER_ALL, GetDenyList(), ErrorHandler::HandleError(), m_aFilters, m_eMode, m_nCurrentFilter, m_pCurrentAsyncAction, weld::GenericDialogController::m_xDialog, m_xFileView, m_xName_ed, and REMOTEDLG_MODE_SAVE.
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 174 of file RemoteFilesDialog.cxx.
References EnableExtraMenuItems(), m_bIsConnected, m_bIsInExecute, weld::GenericDialogController::m_xDialog, m_xServices_lb, and weld::DialogController::run().
|
private |
Definition at line 471 of file RemoteFilesDialog.cxx.
References Exception, m_xContext, and m_xMasterPasswd.
Referenced by AddService().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1008 of file RemoteFilesDialog.cxx.
References DBG_ASSERT, first, m_aFilters, m_bIsInExecute, m_nCurrentFilter, m_xFilter_lb, and nPos.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 970 of file RemoteFilesDialog.cxx.
References m_xName_ed.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 928 of file RemoteFilesDialog.cxx.
References m_aDenyList, and m_xTreeView.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1030 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 924 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1181 of file RemoteFilesDialog.cxx.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 949 of file RemoteFilesDialog.cxx.
References INetURLObject::GetLastName(), m_eMode, m_sPath, m_xName_ed, REMOTEDLG_MODE_SAVE, and INetURLObject::WithCharset.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 939 of file RemoteFilesDialog.cxx.
References m_sStdDir.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1045 of file RemoteFilesDialog.cxx.
References INetURLObject::decode(), EnableControls(), GetSelectedServicePos(), LINK, m_aServices, m_bIsConnected, m_bServiceChanged, m_sLastServiceUrl, m_sRootLabel, m_xFileView, m_xName_ed, m_xPath, m_xTreeView, nPos, and INetURLObject::WithCharset.
|
private |
Definition at line 123 of file RemoteFilesDialog.hxx.
Referenced by GetDenyList(), and SetDenyList().
|
private |
Definition at line 141 of file RemoteFilesDialog.hxx.
Referenced by AddFileExtension(), AddFilter(), GetCurFilter(), OpenURL(), and SetCurFilter().
|
private |
Definition at line 140 of file RemoteFilesDialog.hxx.
Referenced by AddService(), EnableControls(), FillServicesListbox(), GetSelectedServicePos(), UpdateControls(), and ~RemoteFilesDialog().
|
private |
Definition at line 108 of file RemoteFilesDialog.hxx.
Referenced by EnableControls(), RemoteFilesDialog(), run(), and UpdateControls().
|
private |
Definition at line 113 of file RemoteFilesDialog.hxx.
Referenced by run(), and SetCurFilter().
|
private |
Definition at line 107 of file RemoteFilesDialog.hxx.
Referenced by AddService(), RemoteFilesDialog(), and ~RemoteFilesDialog().
|
private |
Definition at line 109 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog(), and UpdateControls().
|
private |
Definition at line 105 of file RemoteFilesDialog.hxx.
Referenced by OpenURL(), RemoteFilesDialog(), and SetPath().
|
private |
Definition at line 106 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog().
|
private |
Definition at line 119 of file RemoteFilesDialog.hxx.
Referenced by AddFileExtension(), GetCurFilter(), OpenURL(), RemoteFilesDialog(), and SetCurFilter().
|
private |
Definition at line 121 of file RemoteFilesDialog.hxx.
Referenced by onAsyncOperationFinished(), and OpenURL().
|
private |
Definition at line 111 of file RemoteFilesDialog.hxx.
Referenced by InitSize(), RemoteFilesDialog(), and ~RemoteFilesDialog().
|
private |
Definition at line 118 of file RemoteFilesDialog.hxx.
Referenced by FillServicesListbox(), GetPathList(), UpdateControls(), and ~RemoteFilesDialog().
|
private |
Definition at line 115 of file RemoteFilesDialog.hxx.
Referenced by GetPath(), GetPathList(), and SetPath().
|
private |
Definition at line 117 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog(), and UpdateControls().
|
private |
Definition at line 116 of file RemoteFilesDialog.hxx.
Referenced by GetStandardDir(), and SetStandardDir().
|
private |
Definition at line 126 of file RemoteFilesDialog.hxx.
Referenced by DisableControls(), and RemoteFilesDialog().
|
private |
Definition at line 136 of file RemoteFilesDialog.hxx.
Referenced by DisableControls(), EnableControls(), and RemoteFilesDialog().
|
private |
Definition at line 102 of file RemoteFilesDialog.hxx.
Referenced by ContentIsDocument(), ContentIsFolder(), and SavePassword().
|
private |
Definition at line 135 of file RemoteFilesDialog.hxx.
Referenced by GetPathList(), GetView(), InitSize(), OpenURL(), RemoteFilesDialog(), UpdateControls(), and ~RemoteFilesDialog().
|
private |
Definition at line 137 of file RemoteFilesDialog.hxx.
Referenced by AddFilter(), DisableControls(), EnableControls(), RemoteFilesDialog(), and SetCurFilter().
|
private |
Definition at line 133 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog().
|
private |
Definition at line 132 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog().
|
private |
Definition at line 127 of file RemoteFilesDialog.hxx.
Referenced by DisableControls(), EnableControls(), EnableExtraMenuItems(), and RemoteFilesDialog().
|
private |
Definition at line 103 of file RemoteFilesDialog.hxx.
Referenced by EnableControls(), and SavePassword().
|
private |
Definition at line 138 of file RemoteFilesDialog.hxx.
Referenced by DisableControls(), EnableControls(), getCurrentFileText(), OpenURL(), RemoteFilesDialog(), setCurrentFileText(), SetPath(), and UpdateControls().
|
private |
Definition at line 131 of file RemoteFilesDialog.hxx.
Referenced by EnableControls(), and RemoteFilesDialog().
|
private |
Definition at line 125 of file RemoteFilesDialog.hxx.
Referenced by DisableControls(), EnableControls(), and RemoteFilesDialog().
|
private |
Definition at line 130 of file RemoteFilesDialog.hxx.
Referenced by DisableControls(), EnableControls(), RemoteFilesDialog(), and UpdateControls().
|
private |
Definition at line 129 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog().
|
private |
Definition at line 128 of file RemoteFilesDialog.hxx.
Referenced by AddService(), DisableControls(), EnableControls(), FillServicesListbox(), GetSelectedServicePos(), RemoteFilesDialog(), and run().
|
private |
Definition at line 134 of file RemoteFilesDialog.hxx.
Referenced by RemoteFilesDialog(), SetDenyList(), and UpdateControls().