LCOV - code coverage report
Current view: top level - include/xmlscript - xmllib_imexp.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 5 5 100.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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_XMLSCRIPT_XMLLIB_IMEXP_HXX
      20             : #define INCLUDED_XMLSCRIPT_XMLLIB_IMEXP_HXX
      21             : 
      22             : #include <com/sun/star/xml/sax/XWriter.hpp>
      23             : #include <com/sun/star/uno/Sequence.hxx>
      24             : 
      25             : #include <xmlscript/xmlns.h>
      26             : #include <xmlscript/xmlscriptdllapi.h>
      27             : 
      28             : namespace xmlscript
      29             : {
      30             : 
      31             : 
      32             : // Library container export
      33             : // HACK C++ struct to transport info. Later the container
      34             : // itself should do the export/import and use exportet XML
      35             : // functionality from xmlscript
      36       38360 : struct XMLSCRIPT_DLLPUBLIC LibDescriptor
      37             : {
      38             :     OUString aName;
      39             :     OUString aStorageURL;
      40             :     bool bLink;
      41             :     bool bReadOnly;
      42             :     bool bPasswordProtected;
      43             :     ::com::sun::star::uno::Sequence< OUString > aElementNames;
      44             :     bool bPreload;
      45             : };
      46             : 
      47             : struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray
      48             : {
      49             :     LibDescriptor* mpLibs;
      50             :     sal_Int32 mnLibCount;
      51             : 
      52         470 :     LibDescriptorArray( void ) { mpLibs = NULL; mnLibCount = 0; }
      53             :     LibDescriptorArray( sal_Int32 nLibCount );
      54             : 
      55             :     ~LibDescriptorArray();
      56             : 
      57             : };
      58             : 
      59             : XMLSCRIPT_DLLPUBLIC void
      60             : SAL_CALL exportLibraryContainer(
      61             :     ::com::sun::star::uno::Reference<
      62             :     ::com::sun::star::xml::sax::XWriter > const & xOut,
      63             :     const LibDescriptorArray* pLibArray );
      64             : 
      65             : XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
      66             :     ::com::sun::star::xml::sax::XDocumentHandler >
      67             : SAL_CALL importLibraryContainer( LibDescriptorArray* pLibArray );
      68             : 
      69             : 
      70             : XMLSCRIPT_DLLPUBLIC void
      71             : SAL_CALL exportLibrary(
      72             :     ::com::sun::star::uno::Reference<
      73             :     ::com::sun::star::xml::sax::XWriter > const & xOut,
      74             :     const LibDescriptor& rLib );
      75             : 
      76             : XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
      77             :     ::com::sun::star::xml::sax::XDocumentHandler >
      78             : SAL_CALL importLibrary( LibDescriptor& rLib );
      79             : 
      80             : }
      81             : 
      82             : #endif
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10