Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / sfx2 / digitalsignatures.hxx
blobb46cdd52e9d9b6320ff8cac7e611ae07ae5c5458
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 #pragma once
12 #include <com/sun/star/embed/XStorage.hpp>
13 #include <com/sun/star/frame/XModel.hpp>
14 #include <com/sun/star/io/XStream.hpp>
15 #include <com/sun/star/security/XCertificate.hpp>
17 #include <sal/types.h>
19 namespace sfx2
21 /// Extension of css::security::XDocumentDigitalSignatures for internal purposes.
22 class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE("crosscast") DigitalSignatures
24 public:
25 /// Same as signDocumentWithCertificate(), but passes the xModel as well.
26 virtual bool
27 SignModelWithCertificate(const css::uno::Reference<css::frame::XModel>& xModel,
28 const css::uno::Reference<css::security::XCertificate>& xCertificate,
29 const css::uno::Reference<css::embed::XStorage>& xStorage,
30 const css::uno::Reference<css::io::XStream>& xStream)
31 = 0;
33 protected:
34 ~DigitalSignatures() noexcept = default;
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */