Bump version to 21.06.18.1
[LibreOffice.git] / include / svx / signaturelinehelper.hxx
blobb31e4c2e84837c86d80066c3900d5c727b53a291
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SVX_SIGNATURELINEHELPER_HXX
11 #define INCLUDED_SVX_SIGNATURELINEHELPER_HXX
13 #include <rtl/ustring.hxx>
14 #include <svx/svxdllapi.h>
16 #include <com/sun/star/graphic/XGraphic.hpp>
17 #include <com/sun/star/security/XCertificate.hpp>
19 namespace weld
21 class Window;
23 class SdrView;
24 class SfxObjectShell;
26 namespace svx::SignatureLineHelper
28 /**
29 * Returns an SVG template. Once placeholders are replaced with real content, the result can be used
30 * as the graphic of a signature line shape.
32 SVX_DLLPUBLIC OUString getSignatureImage(const OUString& rType = OUString());
34 /**
35 * Choose a signature for signature line purposes.
37 SVX_DLLPUBLIC css::uno::Reference<css::security::XCertificate>
38 getSignatureCertificate(SfxObjectShell* pShell, weld::Window* pParent);
40 /**
41 * Get a signer name out of a certificate.
43 SVX_DLLPUBLIC OUString
44 getSignerName(const css::uno::Reference<css::security::XCertificate>& xCertificate);
46 /**
47 * Gets a localized date string.
49 SVX_DLLPUBLIC OUString getLocalizedDate();
51 /**
52 * Interprets rSVG as a graphic and gives back the resulting UNO wrapper.
54 SVX_DLLPUBLIC css::uno::Reference<css::graphic::XGraphic> importSVG(const OUString& rSVG);
56 /**
57 * Sets xCertificate as the signing certificate of the selected shape on pView.
59 SVX_DLLPUBLIC void
60 setShapeCertificate(const SdrView* pView,
61 const css::uno::Reference<css::security::XCertificate>& xCertificate);
64 #endif
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */