LibreOffice Module uui (master) 1
|
#include <secmacrowarnings.hxx>
Public Member Functions | |
MacroWarning (weld::Window *pParent, bool _bShowSignatures) | |
void | SetDocumentURL (const OUString &rDocURL) |
void | SetStorage (const css::uno::Reference< css::embed::XStorage > &rxStore, const OUString &aODFVersion, const css::uno::Sequence< css::security::DocumentSignatureInformation > &_rInfos) |
void | SetCertificate (const css::uno::Reference< css::security::XCertificate > &_rxCert) |
Public Member Functions inherited from weld::MessageDialogController | |
MessageDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, const OUString &rRelocateId={}) | |
virtual Dialog * | getDialog () override |
virtual | ~MessageDialogController () override |
void | set_primary_text (const OUString &rText) |
OUString | get_primary_text () const |
void | set_secondary_text (const OUString &rText) |
OUString | get_secondary_text () const |
void | set_default_response (int nResponse) |
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 |
Private Member Functions | |
DECL_LINK (ViewSignsBtnHdl, weld::Button &, void) | |
DECL_LINK (EnableBtnHdl, weld::Button &, void) | |
DECL_LINK (DisableBtnHdl, weld::Button &, void) | |
DECL_LINK (AlwaysTrustCheckHdl, weld::Toggleable &, void) | |
DECL_STATIC_LINK (MacroWarning, InstallLOKNotifierHdl, void *, vcl::ILibreOfficeKitNotifier *) | |
void | InitControls () |
Private Attributes | |
std::unique_ptr< weld::Widget > | mxGrid |
std::unique_ptr< weld::Label > | mxSignsFI |
std::unique_ptr< weld::Button > | mxViewSignsBtn |
std::unique_ptr< weld::CheckButton > | mxAlwaysTrustCB |
std::unique_ptr< weld::Button > | mxEnableBtn |
std::unique_ptr< weld::Button > | mxDisableBtn |
css::uno::Reference< css::security::XCertificate > | mxCert |
css::uno::Reference< css::embed::XStorage > | mxStore |
OUString | maODFVersion |
const css::uno::Sequence< css::security::DocumentSignatureInformation > * | mpInfos |
const bool | mbShowSignatures |
sal_Int32 | mnActSecLevel |
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 Attributes inherited from weld::MessageDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::MessageDialog > | m_xDialog |
std::unique_ptr< weld::Container > | m_xContentArea |
std::unique_ptr< weld::Widget > | m_xRelocate |
std::unique_ptr< weld::Container > | m_xOrigParent |
Definition at line 30 of file secmacrowarnings.hxx.
MacroWarning::MacroWarning | ( | weld::Window * | pParent, |
bool | _bShowSignatures | ||
) |
Definition at line 63 of file secmacrowarnings.cxx.
References InitControls(), LINK, weld::MessageDialogController::m_xDialog, mxDisableBtn, and mxEnableBtn.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 146 of file secmacrowarnings.cxx.
References SvtSecurityOptions::GetMacroSecurityLevel(), SvtSecurityOptions::IsReadOnly(), LINK, SvtSecurityOptions::MacroTrustedAuthors, mbShowSignatures, mnActSecLevel, mxAlwaysTrustCB, mxEnableBtn, mxGrid, and mxViewSignsBtn.
Referenced by MacroWarning().
void MacroWarning::SetCertificate | ( | const css::uno::Reference< css::security::XCertificate > & | _rxCert | ) |
Definition at line 193 of file secmacrowarnings.cxx.
References GetContentPart(), mxCert, mxSignsFI, mxViewSignsBtn, and u.
Referenced by UUIInteractionHelper::handleMacroConfirmRequest().
void MacroWarning::SetDocumentURL | ( | const OUString & | rDocURL | ) |
Definition at line 88 of file secmacrowarnings.cxx.
References INetURLObject::GetLastName(), weld::MessageDialogController::m_xDialog, and INetURLObject::Unambiguous.
Referenced by UUIInteractionHelper::handleMacroConfirmRequest().
void MacroWarning::SetStorage | ( | const css::uno::Reference< css::embed::XStorage > & | rxStore, |
const OUString & | aODFVersion, | ||
const css::uno::Sequence< css::security::DocumentSignatureInformation > & | _rInfos | ||
) |
Definition at line 169 of file secmacrowarnings.cxx.
References GetContentPart(), i, maODFVersion, mpInfos, mxSignsFI, mxStore, and mxViewSignsBtn.
Referenced by UUIInteractionHelper::handleMacroConfirmRequest().
|
private |
Definition at line 42 of file secmacrowarnings.hxx.
Referenced by SetStorage().
|
private |
Definition at line 45 of file secmacrowarnings.hxx.
Referenced by InitControls().
|
private |
Definition at line 46 of file secmacrowarnings.hxx.
Referenced by InitControls().
|
private |
Definition at line 43 of file secmacrowarnings.hxx.
Referenced by SetStorage().
|
private |
Definition at line 36 of file secmacrowarnings.hxx.
Referenced by InitControls().
|
private |
Definition at line 40 of file secmacrowarnings.hxx.
Referenced by SetCertificate().
|
private |
Definition at line 38 of file secmacrowarnings.hxx.
Referenced by MacroWarning().
|
private |
Definition at line 37 of file secmacrowarnings.hxx.
Referenced by InitControls(), and MacroWarning().
|
private |
Definition at line 33 of file secmacrowarnings.hxx.
Referenced by InitControls().
|
private |
Definition at line 34 of file secmacrowarnings.hxx.
Referenced by SetCertificate(), and SetStorage().
|
private |
Definition at line 41 of file secmacrowarnings.hxx.
Referenced by SetStorage().
|
private |
Definition at line 35 of file secmacrowarnings.hxx.
Referenced by InitControls(), SetCertificate(), and SetStorage().