Bump version to 6.4-15
[LibreOffice.git] / include / svx / signaturelinehelper.hxx
blob0906d88ef095609744130547887b15a77b6cfd84
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/awt/XWindow.hpp>
17 #include <com/sun/star/graphic/XGraphic.hpp>
18 #include <com/sun/star/security/XCertificate.hpp>
20 namespace weld
22 class Window;
24 class SdrView;
25 class SfxObjectShell;
27 namespace svx::SignatureLineHelper
29 /**
30 * Returns an SVG template. Once placeholders are replaced with real content, the result can be used
31 * as the graphic of a signature line shape.
33 SVX_DLLPUBLIC OUString getSignatureImage(const OUString& rType = OUString());
35 /**
36 * Choose a signature for signature line purposes.
38 SVX_DLLPUBLIC css::uno::Reference<css::security::XCertificate>
39 getSignatureCertificate(SfxObjectShell* pShell, weld::Window* pParent);
41 /**
42 * Get a signer name out of a certificate.
44 SVX_DLLPUBLIC OUString
45 getSignerName(const css::uno::Reference<css::security::XCertificate>& xCertificate);
47 /**
48 * Gets a localized date string.
50 SVX_DLLPUBLIC OUString getLocalizedDate();
52 /**
53 * Interprets rSVG as a graphic and gives back the resuling UNO wrapper.
55 SVX_DLLPUBLIC css::uno::Reference<css::graphic::XGraphic> importSVG(const OUString& rSVG);
57 /**
58 * Sets xCertificate as the signing certificate of the selected shape on pView.
60 SVX_DLLPUBLIC void
61 setShapeCertificate(SdrView* pView,
62 const css::uno::Reference<css::security::XCertificate>& xCertificate);
65 #endif
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */