diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/certificatechooser.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/certificatechooser.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index bf74d1b04292..4358b454776b 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -255,6 +255,12 @@ OUString CertificateChooser::GetDescription() return m_pDescriptionED->GetText(); } +OUString CertificateChooser::GetUsageText() +{ + uno::Reference<css::security::XCertificate> xCert = GetSelectedCertificate(); + return xCert.is() ? UsageInClearText(xCert->getCertificateUsage()) : OUString(); +} + IMPL_LINK_NOARG(CertificateChooser, CertificateHighlightHdl, SvTreeListBox*, void) { bool bEnable = GetSelectedCertificate().is(); |