LCOV - code coverage report
Current view: top level - include/xmlscript - xmllib_imexp.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 5 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             :  * 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           0 : 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           0 :     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             :         SAL_THROW( (::com::sun::star::uno::Exception) );
      65             : 
      66             : XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
      67             :     ::com::sun::star::xml::sax::XDocumentHandler >
      68             : SAL_CALL importLibraryContainer( LibDescriptorArray* pLibArray )
      69             :         SAL_THROW( (::com::sun::star::uno::Exception) );
      70             : 
      71             : 
      72             : XMLSCRIPT_DLLPUBLIC void
      73             : SAL_CALL exportLibrary(
      74             :     ::com::sun::star::uno::Reference<
      75             :     ::com::sun::star::xml::sax::XWriter > const & xOut,
      76             :     const LibDescriptor& rLib )
      77             :         SAL_THROW( (::com::sun::star::uno::Exception) );
      78             : 
      79             : XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
      80             :     ::com::sun::star::xml::sax::XDocumentHandler >
      81             : SAL_CALL importLibrary( LibDescriptor& rLib )
      82             :         SAL_THROW( (::com::sun::star::uno::Exception) );
      83             : 
      84             : }
      85             : 
      86             : #endif
      87             : 
      88             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10