Get the style color and number just once
[LibreOffice.git] / xmlsecurity / source / helper / ooxmlsecexporter.hxx
blob77ea7c484947db243119a60256b4eb03b00da5c5
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 <memory>
14 #include <svl/sigstruct.hxx>
16 namespace com::sun::star
18 namespace embed
20 class XStorage;
22 namespace uno
24 class XComponentContext;
26 namespace xml::sax
28 class XDocumentHandler;
32 /// Writes a single OOXML digital signature.
33 class OOXMLSecExporter
35 struct Impl;
36 std::unique_ptr<Impl> m_pImpl;
38 public:
39 OOXMLSecExporter(const css::uno::Reference<css::uno::XComponentContext>& xComponentContext,
40 const css::uno::Reference<css::embed::XStorage>& xRootStorage,
41 const css::uno::Reference<css::xml::sax::XDocumentHandler>& xDocumentHandler,
42 const SignatureInformation& rInformation);
43 ~OOXMLSecExporter();
44 void writeSignature();
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */