LCOV - code coverage report
Current view: top level - libreoffice/sc/inc - orcusfilters.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 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             : 
      10             : #ifndef __SC_ORCUSFILTERS_HXX__
      11             : #define __SC_ORCUSFILTERS_HXX__
      12             : 
      13             : #include "rtl/ustring.hxx"
      14             : 
      15             : class ScDocument;
      16             : class SvTreeListBox;
      17             : struct ScOrcusXMLTreeParam;
      18             : struct ScOrcusImportXMLParam;
      19             : class ScOrcusXMLContext;
      20             : 
      21             : /**
      22             :  * Collection of orcus filter wrappers.
      23             :  */
      24             : class ScOrcusFilters
      25             : {
      26             : public:
      27           0 :     virtual ~ScOrcusFilters() {}
      28             : 
      29             :     virtual bool importCSV(ScDocument& rDoc, const rtl::OUString& rPath) const = 0;
      30             : 
      31             :     virtual bool importGnumeric(ScDocument& rDoc, const rtl::OUString& rPath) const = 0;
      32             : 
      33             :     /**
      34             :      * Create a context for XML file.  The context object stores session
      35             :      * information for each unique XML file.  You must create a new context
      36             :      * for each XML file, and never to re-use the same context for multiple
      37             :      * XML files.
      38             :      *
      39             :      * The caller is responsible for deleting the instance returned from this
      40             :      * method when it's done.
      41             :      */
      42             :     virtual ScOrcusXMLContext* createXMLContext(ScDocument& rDoc, const rtl::OUString& rPath) const = 0;
      43             : };
      44             : 
      45           0 : class ScOrcusXMLContext
      46             : {
      47             : public:
      48           0 :     virtual ~ScOrcusXMLContext() {}
      49             : 
      50             :     virtual bool loadXMLStructure(SvTreeListBox& rTreeCtrl, ScOrcusXMLTreeParam& rParam) = 0;
      51             : 
      52             :     virtual bool importXML(const ScOrcusImportXMLParam& rParam) = 0;
      53             : };
      54             : 
      55             : #endif
      56             : 
      57             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10