diff options
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/docpasswordrequest.hxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/include/comphelper/docpasswordrequest.hxx b/include/comphelper/docpasswordrequest.hxx index 54a32f522ae6..ffeaacba5d46 100644 --- a/include/comphelper/docpasswordrequest.hxx +++ b/include/comphelper/docpasswordrequest.hxx @@ -24,8 +24,6 @@ #include <com/sun/star/task/PasswordRequestMode.hpp> #include <com/sun/star/task/XInteractionRequest.hpp> #include <cppuhelper/implbase1.hxx> -#include <cppuhelper/weak.hxx> - namespace comphelper { @@ -44,18 +42,12 @@ enum DocPasswordRequestType // ============================================================================ class COMPHELPER_DLLPUBLIC SimplePasswordRequest : - public ::com::sun::star::task::XInteractionRequest, - public ::cppu::OWeakObject + public cppu::WeakImplHelper1<css::task::XInteractionRequest> { public: explicit SimplePasswordRequest( com::sun::star::task::PasswordRequestMode eMode ); virtual ~SimplePasswordRequest(); - // XInterface / OWeakObject - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL acquire( ) throw (); - virtual void SAL_CALL release( ) throw (); - sal_Bool isPassword() const; OUString getPassword() const; @@ -78,8 +70,7 @@ private: string for a document. */ class COMPHELPER_DLLPUBLIC DocPasswordRequest : - public ::com::sun::star::task::XInteractionRequest, - public ::cppu::OWeakObject + public cppu::WeakImplHelper1<css::task::XInteractionRequest> { public: explicit DocPasswordRequest( @@ -89,11 +80,6 @@ public: sal_Bool bPasswordToModify = sal_False ); virtual ~DocPasswordRequest(); - // XInterface / OWeakObject - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL acquire( ) throw (); - virtual void SAL_CALL release( ) throw (); - sal_Bool isPassword() const; OUString getPassword() const; |