LCOV - code coverage report
Current view: top level - filter/source/xsltdialog - xmlfiltercommon.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _XMLFILTERCOMMON_HXX_
      29                 :            : #define _XMLFILTERCOMMON_HXX_
      30                 :            : 
      31                 :            : #include <com/sun/star/lang/XComponent.hpp>
      32                 :            : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      33                 :            : #include <com/sun/star/container/XHierarchicalName.hpp>
      34                 :            : #include <com/sun/star/container/XNameContainer.hpp>
      35                 :            : #include <com/sun/star/io/XInputStream.hpp>
      36                 :            : #include <com/sun/star/io/XOutputStream.hpp>
      37                 :            : 
      38                 :            : #include <vector>
      39                 :            : 
      40                 :            : // --------------------------------------------------------------------
      41                 :            : 
      42                 :            : extern ::rtl::OUString string_encode( const ::rtl::OUString & rText );
      43                 :            : extern ::rtl::OUString string_decode( const ::rtl::OUString & rText );
      44                 :            : 
      45                 :            : // --------------------------------------------------------------------
      46                 :            : 
      47                 :            : extern bool isFileURL( const ::rtl::OUString & rURL );
      48                 :            : 
      49                 :            : // --------------------------------------------------------------------
      50                 :            : 
      51                 :            : bool copyStreams( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xIS, ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > xOS );
      52                 :            : bool createDirectory( ::rtl::OUString& rURL );
      53                 :            : 
      54                 :            : // --------------------------------------------------------------------
      55                 :            : 
      56                 :          0 : class filter_info_impl
      57                 :            : {
      58                 :            : public:
      59                 :            :     rtl::OUString   maFilterName;
      60                 :            :     rtl::OUString   maType;
      61                 :            :     rtl::OUString   maDocumentService;
      62                 :            :     rtl::OUString   maFilterService;
      63                 :            :     rtl::OUString   maInterfaceName;
      64                 :            :     rtl::OUString   maComment;
      65                 :            :     rtl::OUString   maExtension;
      66                 :            :     rtl::OUString   maDTD;
      67                 :            :     rtl::OUString   maExportXSLT;
      68                 :            :     rtl::OUString   maImportXSLT;
      69                 :            :     rtl::OUString   maImportTemplate;
      70                 :            :     rtl::OUString   maDocType;
      71                 :            :     rtl::OUString   maImportService;
      72                 :            :     rtl::OUString   maExportService;
      73                 :            : 
      74                 :            :     sal_Int32       maFlags;
      75                 :            :     sal_Int32       maFileFormatVersion;
      76                 :            :     sal_Int32       mnDocumentIconID;
      77                 :            : 
      78                 :            :     sal_Bool        mbReadonly;
      79                 :            : 
      80                 :            :     rtl::OUString   maXSLTTransformerImpl;
      81                 :            : 
      82                 :            :     filter_info_impl();
      83                 :            :     filter_info_impl( const filter_info_impl& rInfo );
      84                 :            :     int operator==( const filter_info_impl& ) const;
      85                 :            : 
      86                 :            :     com::sun::star::uno::Sequence< rtl::OUString > getFilterUserData() const;
      87                 :            : };
      88                 :            : 
      89                 :            : // --------------------------------------------------------------------
      90                 :            : 
      91                 :            : struct application_info_impl
      92                 :            : {
      93                 :            :     rtl::OUString   maDocumentService;
      94                 :            :     rtl::OUString   maDocumentUIName;
      95                 :            :     rtl::OUString   maXMLImporter;
      96                 :            :     rtl::OUString   maXMLExporter;
      97                 :            : 
      98                 :            :     application_info_impl( const sal_Char * pDocumentService, ResId& rUINameRes, const sal_Char * mpXMLImporter, const sal_Char * mpXMLExporter );
      99                 :            : };
     100                 :            : 
     101                 :            : // --------------------------------------------------------------------
     102                 :            : 
     103                 :            : extern std::vector< application_info_impl* >& getApplicationInfos();
     104                 :            : extern rtl::OUString getApplicationUIName( const rtl::OUString& rServiceName );
     105                 :            : extern const application_info_impl* getApplicationInfo( const rtl::OUString& rServiceName );
     106                 :            : 
     107                 :            : extern ResMgr* getXSLTDialogResMgr();
     108                 :            : 
     109                 :            : #define RESID(x) ResId(x, *getXSLTDialogResMgr() )
     110                 :            : 
     111                 :            : #endif
     112                 :            : 
     113                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10