LCOV - code coverage report
Current view: top level - include/oox/crypto - DocumentEncryption.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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             :  *
       9             :  */
      10             : 
      11             : #ifndef INCLUDED_OOX_CRYPTO_DOCUMENTENCRYPTION_HXX
      12             : #define INCLUDED_OOX_CRYPTO_DOCUMENTENCRYPTION_HXX
      13             : 
      14             : #include <oox/dllapi.h>
      15             : 
      16             : #include <oox/ole/olestorage.hxx>
      17             : 
      18             : #include <com/sun/star/io/XStream.hpp>
      19             : #include <com/sun/star/beans/NamedValue.hpp>
      20             : #include <com/sun/star/uno/Sequence.hxx>
      21             : 
      22             : #include <oox/crypto/CryptTools.hxx>
      23             : #include <oox/crypto/Standard2007Engine.hxx>
      24             : 
      25             : #include <vector>
      26             : 
      27             : 
      28             : namespace oox {
      29             : namespace core {
      30             : 
      31           0 : class OOX_DLLPUBLIC DocumentEncryption
      32             : {
      33             : private:
      34             :     com::sun::star::uno::Reference< com::sun::star::io::XStream > mxDocumentStream;
      35             :     oox::ole::OleStorage& mrOleStorage;
      36             :     OUString maPassword;
      37             : 
      38             :     Standard2007Engine mEngine;
      39             : 
      40             : public:
      41             :     DocumentEncryption(
      42             :         com::sun::star::uno::Reference< com::sun::star::io::XStream > xDocumentStream,
      43             :         oox::ole::OleStorage& rOleStorage,
      44             :         const OUString& aPassword);
      45             : 
      46             :     bool encrypt();
      47             : 
      48             : };
      49             : 
      50             : } // namespace core
      51             : } // namespace oox
      52             : 
      53             : #endif
      54             : 
      55             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10