LibreOffice Module svx (master) 1
signaturelinehelper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef INCLUDED_SVX_SIGNATURELINEHELPER_HXX
11#define INCLUDED_SVX_SIGNATURELINEHELPER_HXX
12
13#include <sal/config.h>
14
15#include <string_view>
16
17#include <rtl/ustring.hxx>
18#include <svx/svxdllapi.h>
19
20#include <com/sun/star/graphic/XGraphic.hpp>
21#include <com/sun/star/security/XCertificate.hpp>
22
23namespace weld
24{
25class Window;
26}
27class SdrView;
28class SfxObjectShell;
29
31{
36SVX_DLLPUBLIC OUString getSignatureImage(const OUString& rType = OUString());
37
41SVX_DLLPUBLIC css::uno::Reference<css::security::XCertificate>
43
47SVX_DLLPUBLIC OUString
48getSignerName(const css::uno::Reference<css::security::XCertificate>& xCertificate);
49
54
58SVX_DLLPUBLIC css::uno::Reference<css::graphic::XGraphic> importSVG(std::u16string_view rSVG);
59
64setShapeCertificate(const SdrView* pView,
65 const css::uno::Reference<css::security::XCertificate>& xCertificate);
66}
67
68#endif
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString getSignerName(const css::uno::Reference< css::security::XCertificate > &xCertificate)
Get a signer name out of a certificate.
uno::Reference< graphic::XGraphic > importSVG(std::u16string_view rSVG)
Interprets rSVG as a graphic and gives back the resulting UNO wrapper.
uno::Reference< security::XCertificate > getSignatureCertificate(SfxObjectShell *pShell, weld::Window *pParent)
Choose a signature for signature line purposes.
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.
OUString getSignatureImage(const OUString &rType)
Returns an SVG template.
OUString getLocalizedDate()
Gets a localized date string.
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28