From 3113ecb2fcb6d868a213c5dc978159e18f4e2efa Mon Sep 17 00:00:00 2001 From: Giuseppe Castagno Date: Thu, 31 Dec 2015 12:04:13 +0100 Subject: Related tdf#96833: hide user and password for WebDAV servers... ...because they are asked for and stored in a successive user interaction. Change-Id: I09a3a1e59fe3819a28d7565e83b0db968dfee74b Reviewed-on: https://gerrit.libreoffice.org/21040 Tested-by: Jenkins Reviewed-by: jan iversen Tested-by: jan iversen --- include/svtools/PlaceEditDialog.hxx | 1 + include/svtools/ServerDetailsControls.hxx | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include/svtools') diff --git a/include/svtools/PlaceEditDialog.hxx b/include/svtools/PlaceEditDialog.hxx index f6825808b6de..2c274c4b861f 100644 --- a/include/svtools/PlaceEditDialog.hxx +++ b/include/svtools/PlaceEditDialog.hxx @@ -34,6 +34,7 @@ private: std::shared_ptr< DetailsContainer > m_xCurrentDetails; VclPtr m_pEDUsername; + VclPtr m_pFTUsernameLabel; VclPtr m_pCBPassword; VclPtr m_pEDPassword; VclPtr m_pFTPasswordLabel; diff --git a/include/svtools/ServerDetailsControls.hxx b/include/svtools/ServerDetailsControls.hxx index 8a2289e4f59c..e9f4d4c488e3 100644 --- a/include/svtools/ServerDetailsControls.hxx +++ b/include/svtools/ServerDetailsControls.hxx @@ -57,6 +57,8 @@ class DetailsContainer virtual void setUsername( const OUString& /*rUsername*/ ) { }; virtual void setPassword( const OUString& ) { }; + virtual bool enableUserCredentials( ) { return true; }; + void setActive( bool bActive = true ); protected: @@ -98,6 +100,7 @@ class DavDetailsContainer : public HostDetailsContainer virtual ~DavDetailsContainer( ) { }; virtual void show( bool bShow = true ) override; + virtual bool enableUserCredentials( ) override { return false; }; protected: virtual bool verifyScheme( const OUString& rScheme ) override; -- cgit