LibreOffice Module svx (master) 1
svx::SignatureLineHelper Namespace Reference


OUString getSignatureImage (const OUString &rType=OUString())
 Returns an SVG template. More...
uno::Reference< security::XCertificate > getSignatureCertificate (SfxObjectShell *pShell, weld::Window *pParent)
 Choose a signature for signature line purposes. More...
OUString getSignerName (const css::uno::Reference< css::security::XCertificate > &xCertificate)
 Get a signer name out of a certificate. More...
OUString getLocalizedDate ()
 Gets a localized date string. More...
uno::Reference< graphic::XGraphic > importSVG (std::u16string_view rSVG)
 Interprets rSVG as a graphic and gives back the resulting UNO wrapper. More...
void setShapeCertificate (const SdrView *pView, const css::uno::Reference< css::security::XCertificate > &xCertificate)
 Sets xCertificate as the signing certificate of the selected shape on pView. More...

Function Documentation

◆ getLocalizedDate()

SVX_DLLPUBLIC OUString svx::SignatureLineHelper::getLocalizedDate ( )

Gets a localized date string.

Definition at line 105 of file signaturelinehelper.cxx.

References LocaleDataWrapper::getDate(), SvtSysLocale::GetLocaleData(), and Date::SYSTEM.

Referenced by setShapeCertificate().

◆ getSignatureCertificate()

SVX_DLLPUBLIC css::uno::Reference< css::security::XCertificate > svx::SignatureLineHelper::getSignatureCertificate ( SfxObjectShell pShell,
weld::Window pParent 

◆ getSignatureImage()

SVX_DLLPUBLIC OUString svx::SignatureLineHelper::getSignatureImage ( const OUString &  rType = OUString())

Returns an SVG template.

Once placeholders are replaced with real content, the result can be used as the graphic of a signature line shape.

Definition at line 41 of file signaturelinehelper.cxx.

References ERRCODE_NONE, SvStream::GetError(), read_uInt8s_ToOString(), SvStream::remainingSize(), and SAL_WARN.

Referenced by setShapeCertificate().

◆ getSignerName()

SVX_DLLPUBLIC OUString svx::SignatureLineHelper::getSignerName ( const css::uno::Reference< css::security::XCertificate > &  xCertificate)

Get a signer name out of a certificate.

Definition at line 99 of file signaturelinehelper.cxx.

References comphelper::xmlsec::GetContentPart().

Referenced by setShapeCertificate().

◆ importSVG()

SVX_DLLPUBLIC css::uno::Reference< css::graphic::XGraphic > svx::SignatureLineHelper::importSVG ( std::u16string_view  rSVG)

Interprets rSVG as a graphic and gives back the resulting UNO wrapper.

Definition at line 113 of file signaturelinehelper.cxx.

References comphelper::getProcessComponentContext(), comphelper::makePropertyValue(), OUStringToOString(), and SvStream::WriteOString().

Referenced by setShapeCertificate().

◆ setShapeCertificate()

SVX_DLLPUBLIC void svx::SignatureLineHelper::setShapeCertificate ( const SdrView pView,
const css::uno::Reference< css::security::XCertificate > &  xCertificate