LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/xmlscript - xmllib_imexp.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-08-25 Functions: 5 5 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 5 10 50.0 %

           Branch data     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 _XMLSCRIPT_XMLLIB_IMEXP_HXX_
      20                 :            : #define _XMLSCRIPT_XMLLIB_IMEXP_HXX_
      21                 :            : 
      22                 :            : #include <com/sun/star/xml/sax/XExtendedDocumentHandler.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   [ +  -  +  - ]:      12926 : struct XMLSCRIPT_DLLPUBLIC LibDescriptor
         [ +  - ][ +  - ]
                 [ +  - ]
      37                 :            : {
      38                 :            :     ::rtl::OUString aName;
      39                 :            :     ::rtl::OUString aStorageURL;
      40                 :            :     sal_Bool bLink;
      41                 :            :     sal_Bool bReadOnly;
      42                 :            :     sal_Bool bPasswordProtected;
      43                 :            :     ::com::sun::star::uno::Sequence< ::rtl::OUString > aElementNames;
      44                 :            :     sal_Bool bPreload;
      45                 :            : };
      46                 :            : 
      47                 :            : struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray
      48                 :            : {
      49                 :            :     LibDescriptor* mpLibs;
      50                 :            :     sal_Int32 mnLibCount;
      51                 :            : 
      52                 :        254 :     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::XExtendedDocumentHandler > 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::XExtendedDocumentHandler > 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