dbaccess: Fix --without-java build
[LibreOffice.git] / include / svx / signaturelinehelper.hxx
blob9a10a09a29ce8ce69a6840cf15431123ab26b1ba
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 <sal/config.h>
15 #include <string_view>
17 #include <rtl/ustring.hxx>
18 #include <svx/svxdllapi.h>
20 #include <com/sun/star/graphic/XGraphic.hpp>
21 #include <com/sun/star/security/XCertificate.hpp>
23 namespace weld
25 class Window;
27 class SdrView;
28 class SfxObjectShell;
30 namespace svx::SignatureLineHelper
32 /**
33 * Returns an SVG template. Once placeholders are replaced with real content, the result can be used
34 * as the graphic of a signature line shape.
36 SVX_DLLPUBLIC OUString getSignatureImage(const OUString& rType = OUString());
38 /**
39 * Choose a signature for signature line purposes.
41 SVX_DLLPUBLIC css::uno::Reference<css::security::XCertificate>
42 getSignatureCertificate(SfxObjectShell* pShell, weld::Window* pParent);
44 /**
45 * Get a signer name out of a certificate.
47 SVX_DLLPUBLIC OUString
48 getSignerName(const css::uno::Reference<css::security::XCertificate>& xCertificate);
50 /**
51 * Gets a localized date string.
53 SVX_DLLPUBLIC OUString getLocalizedDate();
55 /**
56 * Interprets rSVG as a graphic and gives back the resulting UNO wrapper.
58 SVX_DLLPUBLIC css::uno::Reference<css::graphic::XGraphic> importSVG(std::u16string_view rSVG);
60 /**
61 * Sets xCertificate as the signing certificate of the selected shape on pView.
63 SVX_DLLPUBLIC void
64 setShapeCertificate(const SdrView* pView,
65 const css::uno::Reference<css::security::XCertificate>& xCertificate);
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */