LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/filter/xml - xmlcondformat.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 14 18 77.8 %
Date: 2013-07-09 Functions: 21 27 77.8 %
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             : #include <xmloff/xmlictxt.hxx>
      11             : #include "xmlimprt.hxx"
      12             : #include "rangelst.hxx"
      13             : 
      14             : class ScColorScaleFormat;
      15             : class ScColorScaleEntry;
      16             : class ScDataBarFormat;
      17             : struct ScDataBarFormatData;
      18             : class ScConditionalFormat;
      19             : struct ScIconSetFormatData;
      20             : 
      21             : class ScXMLConditionalFormatsContext : public SvXMLImportContext
      22             : {
      23             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      24         144 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      25             : public:
      26             :     ScXMLConditionalFormatsContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      27             :                         const OUString& rLName );
      28             : 
      29          20 :     virtual ~ScXMLConditionalFormatsContext() {}
      30             : 
      31             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      32             :                                      const OUString& rLocalName,
      33             :                                      const ::com::sun::star::uno::Reference<
      34             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      35             : 
      36             :     virtual void EndElement();
      37             : };
      38             : 
      39             : class ScXMLConditionalFormatContext : public SvXMLImportContext
      40             : {
      41             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      42         376 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      43             : public:
      44             :     ScXMLConditionalFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      45             :                         const OUString& rLName,
      46             :                         const ::com::sun::star::uno::Reference<
      47             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList);
      48             : 
      49          94 :     virtual ~ScXMLConditionalFormatContext() {}
      50             : 
      51             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      52             :                                      const OUString& rLocalName,
      53             :                                      const ::com::sun::star::uno::Reference<
      54             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      55             : 
      56             :     virtual void EndElement();
      57             : private:
      58             : 
      59             :     ScConditionalFormat* mpFormat;
      60             :     ScRangeList maRange;
      61             : };
      62             : 
      63             : class ScXMLColorScaleFormatContext : public SvXMLImportContext
      64             : {
      65             : private:
      66             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      67         108 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      68             : 
      69             : public:
      70             :     ScXMLColorScaleFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      71             :                         const OUString& rLName, ScConditionalFormat* pFormat);
      72             : 
      73          36 :     virtual ~ScXMLColorScaleFormatContext() {}
      74             : 
      75             : 
      76             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      77             :                                      const OUString& rLocalName,
      78             :                                      const ::com::sun::star::uno::Reference<
      79             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      80             : private:
      81             : 
      82             :     ScColorScaleFormat* pColorScaleFormat;
      83             : };
      84             : 
      85             : class ScXMLDataBarFormatContext : public SvXMLImportContext
      86             : {
      87             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      88          41 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      89             : public:
      90             :     ScXMLDataBarFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      91             :                         const OUString& rLName,
      92             :                         const ::com::sun::star::uno::Reference<
      93             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
      94             :                         ScConditionalFormat* pFormat);
      95             : 
      96          10 :     virtual ~ScXMLDataBarFormatContext() {}
      97             : 
      98             : 
      99             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
     100             :                                      const OUString& rLocalName,
     101             :                                      const ::com::sun::star::uno::Reference<
     102             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
     103             : private:
     104             : 
     105             :     ScDataBarFormat* mpDataBarFormat;
     106             :     ScDataBarFormatData* mpFormatData;
     107             : 
     108             : };
     109             : 
     110             : class ScXMLIconSetFormatContext : public SvXMLImportContext
     111             : {
     112             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     113           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     114             : 
     115             :     ScIconSetFormatData* mpFormatData;
     116             : public:
     117             : 
     118             :     ScXMLIconSetFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     119             :                         const OUString& rLName,
     120             :                         const ::com::sun::star::uno::Reference<
     121             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     122             :                         ScConditionalFormat* pFormat);
     123             : 
     124           0 :     virtual ~ScXMLIconSetFormatContext() {}
     125             : 
     126             : 
     127             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
     128             :                                      const OUString& rLocalName,
     129             :                                      const ::com::sun::star::uno::Reference<
     130             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
     131             : };
     132             : 
     133             : class ScXMLColorScaleFormatEntryContext : public SvXMLImportContext
     134             : {
     135             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     136         225 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     137             : public:
     138             :     ScXMLColorScaleFormatEntryContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     139             :                         const OUString& rLName,
     140             :                         const ::com::sun::star::uno::Reference<
     141             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     142             :                         ScColorScaleFormat* pFormat);
     143             : 
     144          90 :     virtual ~ScXMLColorScaleFormatEntryContext() {}
     145             : private:
     146             : 
     147             :     ScColorScaleEntry* mpFormatEntry;
     148             : };
     149             : 
     150             : class ScXMLFormattingEntryContext : public SvXMLImportContext
     151             : {
     152             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     153          40 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     154             : public:
     155             :     ScXMLFormattingEntryContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     156             :                         const OUString& rLName,
     157             :                         const ::com::sun::star::uno::Reference<
     158             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     159             :                         ScColorScaleEntry*& pData);
     160             : 
     161          20 :     virtual ~ScXMLFormattingEntryContext() {}
     162             : };
     163             : 
     164             : class ScXMLCondContext : public SvXMLImportContext
     165             : {
     166             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     167         120 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     168             : public:
     169             :     ScXMLCondContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     170             :                         const OUString& rLName,
     171             :                         const ::com::sun::star::uno::Reference<
     172             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     173             :                         ScConditionalFormat* pFormat);
     174             : 
     175          48 :     virtual ~ScXMLCondContext() {}
     176             : };
     177             : 
     178             : class ScXMLDateContext : public SvXMLImportContext
     179             : {
     180             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     181           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     182             : public:
     183             :     ScXMLDateContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     184             :                         const OUString& rLName,
     185             :                         const ::com::sun::star::uno::Reference<
     186             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     187             :                         ScConditionalFormat* pFormat);
     188             : 
     189           0 :     virtual ~ScXMLDateContext() {}
     190             : };
     191             : 
     192             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10