20#ifndef INCLUDED_COMPHELPER_DOCPASSWORDREQUEST_HXX
21#define INCLUDED_COMPHELPER_DOCPASSWORDREQUEST_HXX
24#include <com/sun/star/task/PasswordRequestMode.hpp>
25#include <com/sun/star/task/XInteractionRequest.hpp>
33class PasswordContinuation;
45 public cppu::WeakImplHelper<css::task::XInteractionRequest>
51 bool isPassword()
const;
60 virtual css::uno::Any SAL_CALL getRequest()
override;
61 virtual css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > SAL_CALL
getContinuations()
override;
65 css::uno::Reference<css::task::XInteractionAbort>
mxAbort;
74 public cppu::WeakImplHelper<css::task::XInteractionRequest>
79 css::task::PasswordRequestMode eMode,
80 const OUString& rDocumentUrl,
81 bool bPasswordToModify =
false );
84 bool isPassword()
const;
88 OUString getPasswordToModify()
const;
89 bool getRecommendReadOnly()
const;
96 virtual css::uno::Any SAL_CALL getRequest()
override;
97 virtual css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > SAL_CALL
getContinuations()
override;
101 css::uno::Reference<css::task::XInteractionAbort>
mxAbort;
Implements the task.XInteractionRequest interface for requesting a password string for a document.
css::uno::Reference< css::task::XInteractionAbort > mxAbort
DocPasswordRequest(DocPasswordRequestType eType, css::task::PasswordRequestMode eMode, const OUString &rDocumentUrl, bool bPasswordToModify=false)
rtl::Reference< PasswordContinuation > mxPassword
DocPasswordRequest & operator=(DocPasswordRequest const &)=delete
DocPasswordRequest(DocPasswordRequest const &)=delete
rtl::Reference< PasswordContinuation > mxPassword
SimplePasswordRequest & operator=(SimplePasswordRequest const &)=delete
css::uno::Reference< css::task::XInteractionAbort > mxAbort
SimplePasswordRequest(SimplePasswordRequest const &)=delete
#define COMPHELPER_DLLPUBLIC
void getContinuations(css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations, css::uno::Reference< t1 > *pContinuation1, css::uno::Reference< t2 > *pContinuation2)
DocPasswordRequestType
Selects which UNO document password request type to use.
bool getPassword(const css::uno::Reference< css::task::XInteractionHandler > &xHandler, OUString &rOutPwd, bool bFirstTry, const OUString &rDocName)