LibreOffice Module svx (master) 1
|
Functions | |
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... | |
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().
SVX_DLLPUBLIC css::uno::Reference< css::security::XCertificate > svx::SignatureLineHelper::getSignatureCertificate | ( | SfxObjectShell * | pShell, |
weld::Window * | pParent | ||
) |
Choose a signature for signature line purposes.
Definition at line 60 of file signaturelinehelper.cxx.
References SfxMedium::GetFilter(), SfxObjectShell::GetMedium(), comphelper::OStorageHelper::GetODFVersionFromStorage(), comphelper::getProcessComponentContext(), SfxObjectShell::GetStorage(), and weld::Window::GetXWindow().
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().
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().
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().
SVX_DLLPUBLIC void svx::SignatureLineHelper::setShapeCertificate | ( | const SdrView * | pView, |
const css::uno::Reference< css::security::XCertificate > & | xCertificate | ||
) |
Sets xCertificate as the signing certificate of the selected shape on pView.
Definition at line 128 of file signaturelinehelper.cxx.
References aMap, getLocalizedDate(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), getSignatureImage(), getSignerName(), SdrObject::getUnoShape(), importSVG(), and SvxResId().