#include <digitalsignaturesdialog.hxx>
|
| DECL_LINK (AdESCompliantCheckBoxHdl, weld::Toggleable &, void) |
|
| DECL_LINK (ViewButtonHdl, weld::Button &, void) |
|
| DECL_LINK (AddButtonHdl, weld::Button &, void) |
|
| DECL_LINK (RemoveButtonHdl, weld::Button &, void) |
|
| DECL_LINK (SignatureHighlightHdl, weld::TreeView &, void) |
|
| DECL_LINK (SignatureSelectHdl, weld::TreeView &, bool) |
|
| DECL_LINK (StartVerifySignatureHdl, LinkParamNone *, bool) |
|
| DECL_LINK (OKButtonHdl, weld::Button &, void) |
|
| DECL_LINK (CertMgrButtonHdl, weld::Button &, void) |
|
void | ImplGetSignatureInformations (bool bUseTempStream, bool bCacheLastSignature) |
|
void | ImplFillSignaturesBox () |
|
void | ImplShowSignaturesDetails () |
|
bool | IsThereCertificateMgr () |
|
void | GetCertificateManager (OUString &aPath, OUString &sExecutable, OUString &sFoundGUIServer) |
|
bool | GetPathAllOS (OUString &aPath) |
|
css::uno::Reference< css::security::XCertificate > | getCertificate (const SignatureInformation &rInfo) |
|
css::uno::Reference< css::xml::crypto::XSecurityEnvironment > | getSecurityEnvironmentForCertificate (const css::uno::Reference< css::security::XCertificate > &xCert) |
|
bool | canAdd () |
|
bool | canRemove () |
|
bool | canAddRemove () |
|
Definition at line 42 of file digitalsignaturesdialog.hxx.
◆ DigitalSignaturesDialog()
DigitalSignaturesDialog::DigitalSignaturesDialog |
( |
weld::Window * |
pParent, |
|
|
const css::uno::Reference< css::uno::XComponentContext > & |
rxCtx, |
|
|
DocumentSignatureMode |
eMode, |
|
|
bool |
bReadOnly, |
|
|
OUString |
sODFVersion, |
|
|
bool |
bHasDocumentSignature |
|
) |
| |
Definition at line 138 of file digitalsignaturesdialog.cxx.
References bReadOnly, Content, eMode, DocumentSignatureManager::getSignatureMode(), comphelper::LibreOfficeKit::isActive(), DocumentSignatureHelper::isODFPre_1_2(), IsThereCertificateMgr(), LINK, m_bAdESCompliant, m_sODFVersion, m_xAddBtn, m_xAdESCompliantCB, m_xCloseBtn, m_xHintBasicFT, m_xHintDocFT, m_xHintPackageFT, m_xRemoveBtn, m_xSignaturesLB, m_xStartCertMgrBtn, m_xViewBtn, Macros, maSignatureManager, mbSignaturesChanged, mbVerifySignatures, and Package.
◆ ~DigitalSignaturesDialog()
DigitalSignaturesDialog::~DigitalSignaturesDialog |
( |
| ) |
|
|
overridevirtual |
◆ beforeRun()
void DigitalSignaturesDialog::beforeRun |
( |
| ) |
|
◆ canAdd()
bool DigitalSignaturesDialog::canAdd |
( |
| ) |
|
|
private |
◆ canAddRemove()
bool DigitalSignaturesDialog::canAddRemove |
( |
| ) |
|
|
private |
Definition at line 271 of file digitalsignaturesdialog.cxx.
References Application::CreateMessageDialog(), DocumentSignatureManager::getSignatureMode(), DocumentSignatureManager::getStore(), DocumentSignatureHelper::isODFPre_1_2(), m_bHasDocumentSignature, m_bWarningShowSignMacro, m_sODFVersion, weld::GenericDialogController::m_xDialog, Macros, maSignatureManager, RET_NO, and XsResId().
Referenced by canAdd(), and canRemove().
◆ canRemove()
bool DigitalSignaturesDialog::canRemove |
( |
| ) |
|
|
private |
◆ DECL_LINK() [1/9]
DigitalSignaturesDialog::DECL_LINK |
( |
AddButtonHdl |
, |
|
|
weld::Button & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ DECL_LINK() [2/9]
DigitalSignaturesDialog::DECL_LINK |
( |
AdESCompliantCheckBoxHdl |
, |
|
|
weld::Toggleable & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ DECL_LINK() [3/9]
DigitalSignaturesDialog::DECL_LINK |
( |
CertMgrButtonHdl |
, |
|
|
weld::Button & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ DECL_LINK() [4/9]
DigitalSignaturesDialog::DECL_LINK |
( |
OKButtonHdl |
, |
|
|
weld::Button & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ DECL_LINK() [5/9]
DigitalSignaturesDialog::DECL_LINK |
( |
RemoveButtonHdl |
, |
|
|
weld::Button & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ DECL_LINK() [6/9]
DigitalSignaturesDialog::DECL_LINK |
( |
SignatureHighlightHdl |
, |
|
|
weld::TreeView & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ DECL_LINK() [7/9]
DigitalSignaturesDialog::DECL_LINK |
( |
SignatureSelectHdl |
, |
|
|
weld::TreeView & |
, |
|
|
bool |
|
|
) |
| |
|
private |
◆ DECL_LINK() [8/9]
DigitalSignaturesDialog::DECL_LINK |
( |
StartVerifySignatureHdl |
, |
|
|
LinkParamNone * |
, |
|
|
bool |
|
|
) |
| |
|
private |
◆ DECL_LINK() [9/9]
DigitalSignaturesDialog::DECL_LINK |
( |
ViewButtonHdl |
, |
|
|
weld::Button & |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ getCertificate()
uno::Reference< security::XCertificate > DigitalSignaturesDialog::getCertificate |
( |
const SignatureInformation & |
rInfo | ) |
|
|
private |
Definition at line 773 of file digitalsignaturesdialog.cxx.
References DocumentSignatureManager::getGpgSecurityEnvironment(), DocumentSignatureManager::getSecurityEnvironment(), SignatureInformation::GetSigningCertificate(), maSignatureManager, xmlsecurity::numericStringToBigInteger(), SignatureInformation::ouGpgKeyID, SAL_WARN, SAL_WARN_IF, u, SignatureInformation::X509CertInfo::X509Certificate, SignatureInformation::X509CertInfo::X509IssuerName, and SignatureInformation::X509CertInfo::X509SerialNumber.
Referenced by ImplFillSignaturesBox(), and ImplShowSignaturesDetails().
◆ GetCertificateManager()
void DigitalSignaturesDialog::GetCertificateManager |
( |
OUString & |
aPath, |
|
|
OUString & |
sExecutable, |
|
|
OUString & |
sFoundGUIServer |
|
) |
| |
|
private |
◆ GetPathAllOS()
bool DigitalSignaturesDialog::GetPathAllOS |
( |
OUString & |
aPath | ) |
|
|
private |
◆ getSecurityEnvironmentForCertificate()
uno::Reference< xml::crypto::XSecurityEnvironment > DigitalSignaturesDialog::getSecurityEnvironmentForCertificate |
( |
const css::uno::Reference< css::security::XCertificate > & |
xCert | ) |
|
|
private |
◆ ImplFillSignaturesBox()
void DigitalSignaturesDialog::ImplFillSignaturesBox |
( |
| ) |
|
|
private |
Definition at line 604 of file digitalsignaturesdialog.cxx.
References SignatureInformation::bHasSigningCertificate, SignatureInformation::bPartialDocumentSignature, SignatureInformation::X509CertInfo::CertDigest, DocumentSignatureHelper::checkIfAllFilesAreSigned(), Content, DocumentSignatureHelper::CreateElementList(), getCertificate(), DocumentSignatureManager::getCurrentSignatureInformations(), utl::GetDateTimeString(), DocumentSignatureHelper::getDocumentAlgorithm(), getSecurityEnvironmentForCertificate(), DocumentSignatureManager::getSignatureMode(), SignatureInformation::GetSigningCertificate(), DocumentSignatureManager::getStore(), DocumentSignatureHelper::isOOo3_2_Signature(), m_sODFVersion, m_xSignaturesLB, m_xSigsInvalidFI, m_xSigsInvalidImg, m_xSigsNotvalidatedFI, m_xSigsNotvalidatedImg, m_xSigsOldSignatureFI, m_xSigsOldSignatureImg, m_xSigsValidFI, m_xSigsValidImg, Macros, maSignatureManager, mode, n, SignatureInformation::nStatus, SignatureInformation::ouDescription, SignatureInformation::ouGpgCertificate, SignatureInformation::ouGpgOwner, Sequence, and SignatureInformation::stDateTime.
Referenced by beforeRun().
◆ ImplGetSignatureInformations()
void DigitalSignaturesDialog::ImplGetSignatureInformations |
( |
bool |
bUseTempStream, |
|
|
bool |
bCacheLastSignature |
|
) |
| |
|
private |
◆ ImplShowSignaturesDetails()
void DigitalSignaturesDialog::ImplShowSignaturesDetails |
( |
| ) |
|
|
private |
Definition at line 824 of file digitalsignaturesdialog.cxx.
References Application::CreateMessageDialog(), getCertificate(), DocumentSignatureManager::getCurrentSignatureInformations(), getSecurityEnvironmentForCertificate(), weld::GenericDialogController::m_xDialog, m_xInfoBox, m_xSignaturesLB, m_xViewer, maSignatureManager, RET_OK, weld::DialogController::runAsync(), and XsResId().
◆ Init()
bool DigitalSignaturesDialog::Init |
( |
void |
| ) |
|
◆ IsThereCertificateMgr()
bool DigitalSignaturesDialog::IsThereCertificateMgr |
( |
| ) |
|
|
private |
◆ run()
short DigitalSignaturesDialog::run |
( |
| ) |
|
|
overridevirtual |
◆ SetSignatureStream()
void DigitalSignaturesDialog::SetSignatureStream |
( |
const css::uno::Reference< css::io::XStream > & |
rxStream | ) |
|
◆ SetStorage()
void DigitalSignaturesDialog::SetStorage |
( |
const css::uno::Reference< css::embed::XStorage > & |
rxStore | ) |
|
◆ SignaturesChanged()
bool DigitalSignaturesDialog::SignaturesChanged |
( |
| ) |
const |
|
inline |
◆ m_bAdESCompliant
bool DigitalSignaturesDialog::m_bAdESCompliant |
|
private |
◆ m_bHasDocumentSignature
bool const DigitalSignaturesDialog::m_bHasDocumentSignature |
|
private |
◆ m_bWarningShowSignMacro
bool DigitalSignaturesDialog::m_bWarningShowSignMacro |
|
private |
◆ m_sODFVersion
OUString const DigitalSignaturesDialog::m_sODFVersion |
|
private |
◆ m_xAddBtn
std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xAddBtn |
|
private |
◆ m_xAdESCompliantCB
◆ m_xCloseBtn
std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xCloseBtn |
|
private |
◆ m_xHintBasicFT
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xHintBasicFT |
|
private |
◆ m_xHintDocFT
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xHintDocFT |
|
private |
◆ m_xHintPackageFT
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xHintPackageFT |
|
private |
◆ m_xInfoBox
◆ m_xRemoveBtn
std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xRemoveBtn |
|
private |
◆ m_xSignaturesLB
std::unique_ptr<weld::TreeView> DigitalSignaturesDialog::m_xSignaturesLB |
|
private |
◆ m_xSigsInvalidFI
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsInvalidFI |
|
private |
◆ m_xSigsInvalidImg
std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsInvalidImg |
|
private |
◆ m_xSigsNotvalidatedFI
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsNotvalidatedFI |
|
private |
◆ m_xSigsNotvalidatedImg
std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsNotvalidatedImg |
|
private |
◆ m_xSigsOldSignatureFI
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsOldSignatureFI |
|
private |
◆ m_xSigsOldSignatureImg
std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsOldSignatureImg |
|
private |
◆ m_xSigsValidFI
std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsValidFI |
|
private |
◆ m_xSigsValidImg
std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsValidImg |
|
private |
◆ m_xStartCertMgrBtn
std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xStartCertMgrBtn |
|
private |
◆ m_xViewBtn
std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xViewBtn |
|
private |
◆ m_xViewer
◆ maSignatureManager
Definition at line 45 of file digitalsignaturesdialog.hxx.
Referenced by beforeRun(), canAddRemove(), canRemove(), DigitalSignaturesDialog(), getCertificate(), getSecurityEnvironmentForCertificate(), ImplFillSignaturesBox(), ImplGetSignatureInformations(), ImplShowSignaturesDetails(), Init(), SetSignatureStream(), and SetStorage().
◆ mbSignaturesChanged
bool DigitalSignaturesDialog::mbSignaturesChanged |
|
private |
◆ mbVerifySignatures
bool DigitalSignaturesDialog::mbVerifySignatures |
|
private |
The documentation for this class was generated from the following files: