Kaydet (Commit) 27fc89cc authored tarafından Miklos Vajna's avatar Miklos Vajna

xmlsecurity: extract OOXML export code into its own class

It was odd that import code had its own OOXMLSecParser, but export code
was buried in the controller.

Change-Id: Ie1964bf9c54a8b779981e8d72bf4810090cf960c
üst 6c11778e
...@@ -56,6 +56,7 @@ $(eval $(call gb_Library_add_exception_objects,xmlsecurity,\ ...@@ -56,6 +56,7 @@ $(eval $(call gb_Library_add_exception_objects,xmlsecurity,\
xmlsecurity/source/helper/documentsignaturehelper \ xmlsecurity/source/helper/documentsignaturehelper \
xmlsecurity/source/helper/documentsignaturemanager \ xmlsecurity/source/helper/documentsignaturemanager \
xmlsecurity/source/helper/ooxmlsecparser \ xmlsecurity/source/helper/ooxmlsecparser \
xmlsecurity/source/helper/ooxmlsecexporter \
xmlsecurity/source/helper/xmlsignaturehelper2 \ xmlsecurity/source/helper/xmlsignaturehelper2 \
xmlsecurity/source/helper/xmlsignaturehelper \ xmlsecurity/source/helper/xmlsignaturehelper \
xmlsecurity/source/helper/xsecctl \ xmlsecurity/source/helper/xsecctl \
......
This diff is collapsed.
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_XMLSECURITY_SOURCE_HELPER_OOXMLSECEXPORTER_HXX
#define INCLUDED_XMLSECURITY_SOURCE_HELPER_OOXMLSECEXPORTER_HXX
#include <memory>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <xmlsecurity/sigstruct.hxx>
/// Writes a single OOXML digital signature.
class OOXMLSecExporter
{
struct Impl;
std::unique_ptr<Impl> m_pImpl;
public:
OOXMLSecExporter(const css::uno::Reference<css::uno::XComponentContext>& xComponentContext,
const css::uno::Reference<css::embed::XStorage>& xRootStorage,
const css::uno::Reference<css::xml::sax::XDocumentHandler>& xDocumentHandler,
const SignatureInformation& rInformation);
~OOXMLSecExporter();
void writeSignature();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment