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

#include <RemoteFilesDialog.hxx>

Inheritance diagram for RemoteFilesDialog:
[legend]
Collaboration diagram for RemoteFilesDialog:
[legend]

Public Member Functions

 RemoteFilesDialog (weld::Window *pParent, PickerFlags nBits)
 
virtual ~RemoteFilesDialog () override
 
virtual short run () override
 
virtual SvtFileViewGetView () 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::WidgetgetControl (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 OString &rID)
 
virtual bool PrepareExecute ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void InitSize ()
 
void FillServicesListbox ()
 
int GetSelectedServicePos ()
 
void OpenURL (OUString const &sURL)
 
void AddFileExtension ()
 
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 OString &, 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)
 

Private Attributes

Reference< XComponentContext > m_xContext
 
Reference< XPasswordContainer2 > m_xMasterPasswd
 
SvtRemoteDlgMode m_eMode
 
SvtRemoteDlgType m_eType
 
bool m_bIsUpdated
 
bool m_bIsConnected
 
bool m_bServiceChanged
 
OUString m_sIniKey
 
bool m_bIsInExecute
 
OUString m_sPath
 
OUString m_sStdDir
 
OUString m_sRootLabel
 
OUString m_sLastServiceUrl
 
int m_nCurrentFilter
 
::rtl::Reference< ::svt::AsyncPickerActionm_pCurrentAsyncAction
 
css::uno::Sequence< OUString > m_aDenyList
 
std::unique_ptr< weld::Buttonm_xOk_btn
 
std::unique_ptr< weld::Buttonm_xCancel_btn
 
std::unique_ptr< weld::MenuButtonm_xManageServices
 
std::unique_ptr< weld::ComboBoxm_xServices_lb
 
std::unique_ptr< weld::Containerm_xPathContainer
 
std::unique_ptr< Breadcrumbm_xPath
 
std::unique_ptr< weld::Buttonm_xNewFolder
 
std::unique_ptr< weld::ToggleButtonm_xListView_btn
 
std::unique_ptr< weld::ToggleButtonm_xIconView_btn
 
std::unique_ptr< FolderTreem_xTreeView
 
std::unique_ptr< SvtFileViewm_xFileView
 
std::unique_ptr< weld::Containerm_xContainer
 
std::unique_ptr< weld::ComboBoxm_xFilter_lb
 
std::unique_ptr< AutocompleteEditm_xName_ed
 
std::vector< ServicePtrm_aServices
 
std::vector< std::pair< OUString, OUString > > m_aFilters
 

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::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 51 of file RemoteFilesDialog.hxx.

Constructor & Destructor Documentation

RemoteFilesDialog::RemoteFilesDialog ( weld::Window pParent,
PickerFlags  nBits 
)
RemoteFilesDialog::~RemoteFilesDialog ( )
overridevirtual

Member Function Documentation

void RemoteFilesDialog::AddFileExtension ( )
private

Definition at line 383 of file RemoteFilesDialog.cxx.

References m_aFilters, m_nCurrentFilter, and m_xName_ed.

void RemoteFilesDialog::AddFilter ( const OUString &  rFilter,
const OUString &  rType 
)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 326 of file RemoteFilesDialog.cxx.

References m_aFilters, m_xFilter_lb, and sName.

Referenced by AddFilterGroup().

void RemoteFilesDialog::AddFilterGroup ( const OUString &  _rFilter,
const css::uno::Sequence< css::beans::StringPair > &  rFilters 
)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 984 of file RemoteFilesDialog.cxx.

References AddFilter().

void RemoteFilesDialog::AddService ( )
private
bool RemoteFilesDialog::ContentIsDocument ( const OUString &  rURL)
bool RemoteFilesDialog::ContentIsFolder ( const OUString &  rURL)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1143 of file RemoteFilesDialog.cxx.

References Exception, ucbhelper::Content::isFolder(), and m_xContext.

RemoteFilesDialog::DECL_LINK ( SelectServiceHdl  ,
weld::ComboBox ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( EditServiceMenuHdl  ,
const OString &  ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( DoubleClickHdl  ,
SvtFileView ,
bool   
)
private
RemoteFilesDialog::DECL_LINK ( SelectHdl  ,
SvtFileView ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( FileNameGetFocusHdl  ,
weld::Widget ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( FileNameModifyHdl  ,
weld::Entry ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( SelectFilterHdl  ,
weld::ComboBox ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( TreeSelectHdl  ,
weld::TreeView ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( SelectBreadcrumbHdl  ,
Breadcrumb ,
bool   
)
private
RemoteFilesDialog::DECL_LINK ( NewFolderHdl  ,
weld::Button ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( IconViewHdl  ,
weld::Button ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( ListViewHdl  ,
weld::Button ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( OkHdl  ,
weld::Button ,
void   
)
private
RemoteFilesDialog::DECL_LINK ( CancelHdl  ,
weld::Button ,
void   
)
private
void RemoteFilesDialog::DisableControls ( )
private
void RemoteFilesDialog::EnableAutocompletion ( bool  = true)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1111 of file RemoteFilesDialog.cxx.

void RemoteFilesDialog::enableControl ( sal_Int16  nControlId,
bool  bEnable 
)
overridevirtual

Implements svt::IFilePickerController.

Definition at line 1228 of file RemoteFilesDialog.cxx.

void RemoteFilesDialog::EnableControls ( )
private
void RemoteFilesDialog::EnableExtraMenuItems ( bool  bEnable)
private

Definition at line 166 of file RemoteFilesDialog.cxx.

References m_xManageServices.

Referenced by AddService(), FillServicesListbox(), and run().

void RemoteFilesDialog::FillServicesListbox ( )
private
void RemoteFilesDialog::FilterSelect ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1030 of file RemoteFilesDialog.cxx.

sal_Int32 RemoteFilesDialog::getAvailableHeight ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1206 of file RemoteFilesDialog.cxx.

sal_Int32 RemoteFilesDialog::getAvailableWidth ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1200 of file RemoteFilesDialog.cxx.

weld::Widget * RemoteFilesDialog::getControl ( sal_Int16  nControlId,
bool  bLabelControl = false 
) const
overridevirtual

Implements svt::IFilePickerController.

Definition at line 1223 of file RemoteFilesDialog.cxx.

OUString RemoteFilesDialog::GetCurFilter ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 995 of file RemoteFilesDialog.cxx.

References m_aFilters, and m_nCurrentFilter.

Referenced by getCurFilter().

OUString RemoteFilesDialog::getCurFilter ( ) const
overridevirtual

Implements svt::IFilePickerController.

Definition at line 1007 of file RemoteFilesDialog.cxx.

References GetCurFilter().

OUString RemoteFilesDialog::getCurrentFileText ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 966 of file RemoteFilesDialog.cxx.

References m_xName_ed.

const css::uno::Sequence< OUString > & RemoteFilesDialog::GetDenyList ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 938 of file RemoteFilesDialog.cxx.

References m_aDenyList.

Referenced by OpenURL().

const OUString & RemoteFilesDialog::GetPath ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1116 of file RemoteFilesDialog.cxx.

References m_sPath.

std::vector< OUString > RemoteFilesDialog::GetPathList ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1121 of file RemoteFilesDialog.cxx.

References aURL, m_sLastServiceUrl, m_sPath, m_xFileView, and INetURLObject::NONE.

int RemoteFilesDialog::GetSelectedServicePos ( )
private

Definition at line 302 of file RemoteFilesDialog.cxx.

References i, m_aServices, m_xServices_lb, and nPos.

Referenced by EnableControls(), and UpdateControls().

bool RemoteFilesDialog::getShowState ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1217 of file RemoteFilesDialog.cxx.

const OUString & RemoteFilesDialog::GetStandardDir ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 948 of file RemoteFilesDialog.cxx.

References m_sStdDir.

SvtFileView * RemoteFilesDialog::GetView ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 923 of file RemoteFilesDialog.cxx.

References m_xFileView.

void RemoteFilesDialog::InitSize ( )
private
void RemoteFilesDialog::onAsyncOperationFinished ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1043 of file RemoteFilesDialog.cxx.

References EnableControls(), and m_pCurrentAsyncAction.

void RemoteFilesDialog::onAsyncOperationStarted ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1038 of file RemoteFilesDialog.cxx.

References DisableControls().

void RemoteFilesDialog::OpenURL ( OUString const &  sURL)
private
short RemoteFilesDialog::run ( )
overridevirtual
void RemoteFilesDialog::SavePassword ( const OUString &  rURL,
const OUString &  rUser,
const OUString &  rPassword,
bool  bPersistent 
)
private

Definition at line 474 of file RemoteFilesDialog.cxx.

References Exception, m_xContext, and m_xMasterPasswd.

Referenced by AddService().

void RemoteFilesDialog::SetCurFilter ( const OUString &  rFilter)
overridevirtual
void RemoteFilesDialog::setCurrentFileText ( const OUString &  rText,
bool  bSelectAll = false 
)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 974 of file RemoteFilesDialog.cxx.

References m_xName_ed.

void RemoteFilesDialog::SetDenyList ( const css::uno::Sequence< OUString > &  rDenyList)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 932 of file RemoteFilesDialog.cxx.

References m_aDenyList, and m_xTreeView.

void RemoteFilesDialog::SetFileCallback ( ::svt::IFilePickerListener pNotifier)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1034 of file RemoteFilesDialog.cxx.

void RemoteFilesDialog::SetHasFilename ( bool  )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 928 of file RemoteFilesDialog.cxx.

void RemoteFilesDialog::setImage ( const css::uno::Any &  rImage)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1212 of file RemoteFilesDialog.cxx.

void RemoteFilesDialog::SetPath ( const OUString &  rNewURL)
overridevirtual
void RemoteFilesDialog::SetStandardDir ( const OUString &  rStdDir)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 943 of file RemoteFilesDialog.cxx.

References m_sStdDir.

void RemoteFilesDialog::UpdateControls ( const OUString &  rURL)
overridevirtual

Member Data Documentation

css::uno::Sequence< OUString > RemoteFilesDialog::m_aDenyList
private

Definition at line 124 of file RemoteFilesDialog.hxx.

Referenced by GetDenyList(), and SetDenyList().

std::vector< std::pair< OUString, OUString > > RemoteFilesDialog::m_aFilters
private
std::vector< ServicePtr > RemoteFilesDialog::m_aServices
private
bool RemoteFilesDialog::m_bIsConnected
private

Definition at line 109 of file RemoteFilesDialog.hxx.

Referenced by EnableControls(), RemoteFilesDialog(), run(), and UpdateControls().

bool RemoteFilesDialog::m_bIsInExecute
private

Definition at line 114 of file RemoteFilesDialog.hxx.

Referenced by run(), and SetCurFilter().

bool RemoteFilesDialog::m_bIsUpdated
private

Definition at line 108 of file RemoteFilesDialog.hxx.

Referenced by AddService(), RemoteFilesDialog(), and ~RemoteFilesDialog().

bool RemoteFilesDialog::m_bServiceChanged
private

Definition at line 110 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog(), and UpdateControls().

SvtRemoteDlgMode RemoteFilesDialog::m_eMode
private

Definition at line 106 of file RemoteFilesDialog.hxx.

Referenced by OpenURL(), RemoteFilesDialog(), and SetPath().

SvtRemoteDlgType RemoteFilesDialog::m_eType
private

Definition at line 107 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog().

int RemoteFilesDialog::m_nCurrentFilter
private
::rtl::Reference< ::svt::AsyncPickerAction > RemoteFilesDialog::m_pCurrentAsyncAction
private

Definition at line 122 of file RemoteFilesDialog.hxx.

Referenced by onAsyncOperationFinished(), and OpenURL().

OUString RemoteFilesDialog::m_sIniKey
private

Definition at line 112 of file RemoteFilesDialog.hxx.

Referenced by InitSize(), RemoteFilesDialog(), and ~RemoteFilesDialog().

OUString RemoteFilesDialog::m_sLastServiceUrl
private
OUString RemoteFilesDialog::m_sPath
private

Definition at line 116 of file RemoteFilesDialog.hxx.

Referenced by GetPath(), GetPathList(), and SetPath().

OUString RemoteFilesDialog::m_sRootLabel
private

Definition at line 118 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog(), and UpdateControls().

OUString RemoteFilesDialog::m_sStdDir
private

Definition at line 117 of file RemoteFilesDialog.hxx.

Referenced by GetStandardDir(), and SetStandardDir().

std::unique_ptr<weld::Button> RemoteFilesDialog::m_xCancel_btn
private

Definition at line 127 of file RemoteFilesDialog.hxx.

Referenced by DisableControls(), and RemoteFilesDialog().

std::unique_ptr<weld::Container> RemoteFilesDialog::m_xContainer
private

Definition at line 137 of file RemoteFilesDialog.hxx.

Referenced by DisableControls(), EnableControls(), and RemoteFilesDialog().

Reference< XComponentContext > RemoteFilesDialog::m_xContext
private
std::unique_ptr<SvtFileView> RemoteFilesDialog::m_xFileView
private
std::unique_ptr<weld::ComboBox> RemoteFilesDialog::m_xFilter_lb
private
std::unique_ptr<weld::ToggleButton> RemoteFilesDialog::m_xIconView_btn
private

Definition at line 134 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog().

std::unique_ptr<weld::ToggleButton> RemoteFilesDialog::m_xListView_btn
private

Definition at line 133 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog().

std::unique_ptr<weld::MenuButton> RemoteFilesDialog::m_xManageServices
private
Reference< XPasswordContainer2 > RemoteFilesDialog::m_xMasterPasswd
private

Definition at line 104 of file RemoteFilesDialog.hxx.

Referenced by EnableControls(), and SavePassword().

std::unique_ptr<AutocompleteEdit> RemoteFilesDialog::m_xName_ed
private
std::unique_ptr<weld::Button> RemoteFilesDialog::m_xNewFolder
private

Definition at line 132 of file RemoteFilesDialog.hxx.

Referenced by EnableControls(), and RemoteFilesDialog().

std::unique_ptr<weld::Button> RemoteFilesDialog::m_xOk_btn
private

Definition at line 126 of file RemoteFilesDialog.hxx.

Referenced by DisableControls(), EnableControls(), and RemoteFilesDialog().

std::unique_ptr<Breadcrumb> RemoteFilesDialog::m_xPath
private
std::unique_ptr<weld::Container> RemoteFilesDialog::m_xPathContainer
private

Definition at line 130 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog().

std::unique_ptr<weld::ComboBox> RemoteFilesDialog::m_xServices_lb
private
std::unique_ptr<FolderTree> RemoteFilesDialog::m_xTreeView
private

Definition at line 135 of file RemoteFilesDialog.hxx.

Referenced by RemoteFilesDialog(), SetDenyList(), and UpdateControls().


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