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 
23 namespace weld
24 {
25 class Window;
26 }
27 class SdrView;
28 class SfxObjectShell;
29 
31 {
36 SVX_DLLPUBLIC OUString getSignatureImage(const OUString& rType = OUString());
37 
41 SVX_DLLPUBLIC css::uno::Reference<css::security::XCertificate>
43 
47 SVX_DLLPUBLIC OUString
48 getSignerName(const css::uno::Reference<css::security::XCertificate>& xCertificate);
49 
54 
58 SVX_DLLPUBLIC css::uno::Reference<css::graphic::XGraphic> importSVG(std::u16string_view rSVG);
59 
63 SVX_DLLPUBLIC void
64 setShapeCertificate(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 getSignatureImage(const OUString &rType)
Returns an SVG template.
OUString getSignerName(const css::uno::Reference< css::security::XCertificate > &xCertificate)
Get a signer name out of a certificate.
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
OUString getLocalizedDate()
Gets a localized date string.
uno::Reference< security::XCertificate > getSignatureCertificate(SfxObjectShell *pShell, weld::Window *pParent)
Choose a signature for signature line purposes.
uno::Reference< graphic::XGraphic > importSVG(std::u16string_view rSVG)
Interprets rSVG as a graphic and gives back the resulting UNO wrapper.
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.