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

SVX_DLLPUBLIC OUString svx::SignatureLineHelper::getLocalizedDate ( )

Gets a localized date string.

Definition at line 103 of file signaturelinehelper.cxx.

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

Referenced by setShapeCertificate().

SVX_DLLPUBLIC css::uno::Reference< css::security::XCertificate > svx::SignatureLineHelper::getSignatureCertificate ( SfxObjectShell pShell,
weld::Window pParent 
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 39 of file signaturelinehelper.cxx.

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

Referenced by setShapeCertificate().

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 97 of file signaturelinehelper.cxx.

References comphelper::xmlsec::GetContentPart().

Referenced by setShapeCertificate().

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 111 of file signaturelinehelper.cxx.

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

Referenced by setShapeCertificate().

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