LCOV - code coverage report
Current view: top level - libreoffice/sc/inc - xmlwrap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-12-27 Functions: 1 1 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             : 
      20             : #ifndef SC_XMLWRAP_HXX
      21             : #define SC_XMLWRAP_HXX
      22             : 
      23             : #include <tools/solar.h>
      24             : #include <com/sun/star/uno/Reference.hxx>
      25             : #include <com/sun/star/uno/Sequence.hxx>
      26             : 
      27             : class ScDocument;
      28             : class SfxMedium;
      29             : class ScMySharedData;
      30             : 
      31             : #include <tools/errcode.hxx>
      32             : 
      33             : namespace com { namespace sun { namespace star {
      34             :     namespace beans { struct PropertyValue; }
      35             :     namespace frame { class XModel; }
      36             :     namespace task { class XStatusIndicator; }
      37             :     namespace lang { class XMultiServiceFactory; }
      38             :     namespace uno { class XInterface; }
      39             :     namespace embed { class XStorage; }
      40             :     namespace xml {
      41             :         namespace sax { struct InputSource; class XParser; class XWriter; } }
      42             : } } }
      43             : 
      44          24 : class ScXMLImportWrapper
      45             : {
      46             :     ScDocument&     rDoc;
      47             :     SfxMedium*      pMedium;
      48             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > xStorage;
      49             : 
      50             :     com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator> GetStatusIndicator();
      51             : 
      52             :     sal_uInt32 ImportFromComponent(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>& xServiceFactory,
      53             :         com::sun::star::uno::Reference<com::sun::star::frame::XModel>& xModel,
      54             :         com::sun::star::uno::Reference<com::sun::star::xml::sax::XParser>& xParser,
      55             :         com::sun::star::xml::sax::InputSource& aParserInput,
      56             :         const rtl::OUString& sComponentName, const rtl::OUString& sDocName, const rtl::OUString& sOldDocName,
      57             :         com::sun::star::uno::Sequence<com::sun::star::uno::Any>& aArgs,
      58             :         sal_Bool bMustBeSuccessfull);
      59             : 
      60             :     sal_Bool ExportToComponent(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>& xServiceFactory,
      61             :         com::sun::star::uno::Reference<com::sun::star::frame::XModel>& xModel,
      62             :         com::sun::star::uno::Reference<com::sun::star::xml::sax::XWriter>& xWriter,
      63             :         com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aDescriptor,
      64             :         const rtl::OUString& sName, const rtl::OUString& sMediaType, const rtl::OUString& sComponentName,
      65             :         com::sun::star::uno::Sequence<com::sun::star::uno::Any>& aArgs,
      66             :         ScMySharedData*& pSharedData);
      67             : 
      68             : public:
      69             :     ScXMLImportWrapper(ScDocument& rD, SfxMedium* pM, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >&);
      70             :     sal_Bool Import(sal_Bool bStylesOnly, ErrCode& );
      71             :     sal_Bool Export(sal_Bool bStylesOnly);
      72             : };
      73             : 
      74             : #endif
      75             : 
      76             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10