LCOV - code coverage report
Current view: top level - libreoffice/sc/source/filter/xml - xmlcondformat.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 16 0.0 %
Date: 2012-12-27 Functions: 0 24 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             :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4             :  *
       5             :  * The contents of this file are subject to the Mozilla Public License Version
       6             :  * 1.1 (the "License"); you may not use this file except in compliance with
       7             :  * the License or as specified alternatively below. You may obtain a copy of
       8             :  * the License at http://www.mozilla.org/MPL/
       9             :  *
      10             :  * Software distributed under the License is distributed on an "AS IS" basis,
      11             :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12             :  * for the specific language governing rights and limitations under the
      13             :  * License.
      14             :  *
      15             :  * Major Contributor(s):
      16             :  * Copyright (C) 2012 Markus Mohrhard <markus.mohrhard@googlemail.com> (initial developer)
      17             :  *
      18             :  * All Rights Reserved.
      19             :  *
      20             :  * For minor contributions see the git repository.
      21             :  *
      22             :  * Alternatively, the contents of this file may be used under the terms of
      23             :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      24             :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      25             :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      26             :  * instead of those above.
      27             :  */
      28             : 
      29             : #include <xmloff/xmlictxt.hxx>
      30             : #include "xmlimprt.hxx"
      31             : #include "rangelst.hxx"
      32             : 
      33             : class ScColorScaleFormat;
      34             : class ScColorScaleEntry;
      35             : class ScDataBarFormat;
      36             : struct ScDataBarFormatData;
      37             : class ScConditionalFormat;
      38             : struct ScIconSetFormatData;
      39             : 
      40             : class ScXMLConditionalFormatsContext : public SvXMLImportContext
      41             : {
      42             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      43           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      44             : public:
      45             :     ScXMLConditionalFormatsContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      46             :                         const ::rtl::OUString& rLName );
      47             : 
      48           0 :     virtual ~ScXMLConditionalFormatsContext() {}
      49             : 
      50             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      51             :                                      const ::rtl::OUString& rLocalName,
      52             :                                      const ::com::sun::star::uno::Reference<
      53             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      54             : 
      55             :     virtual void EndElement();
      56             : };
      57             : 
      58             : class ScXMLConditionalFormatContext : public SvXMLImportContext
      59             : {
      60             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      61           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      62             : public:
      63             :     ScXMLConditionalFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      64             :                         const ::rtl::OUString& rLName,
      65             :                         const ::com::sun::star::uno::Reference<
      66             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList);
      67             : 
      68           0 :     virtual ~ScXMLConditionalFormatContext() {}
      69             : 
      70             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      71             :                                      const ::rtl::OUString& rLocalName,
      72             :                                      const ::com::sun::star::uno::Reference<
      73             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      74             : 
      75             :     virtual void EndElement();
      76             : private:
      77             : 
      78             :     ScConditionalFormat* mpFormat;
      79             :     ScRangeList maRange;
      80             : };
      81             : 
      82             : class ScXMLColorScaleFormatContext : public SvXMLImportContext
      83             : {
      84             : private:
      85             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      86           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      87             : 
      88             : public:
      89             :     ScXMLColorScaleFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      90             :                         const ::rtl::OUString& rLName, ScConditionalFormat* pFormat);
      91             : 
      92           0 :     virtual ~ScXMLColorScaleFormatContext() {}
      93             : 
      94             : 
      95             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      96             :                                      const ::rtl::OUString& rLocalName,
      97             :                                      const ::com::sun::star::uno::Reference<
      98             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      99             : private:
     100             : 
     101             :     ScColorScaleFormat* pColorScaleFormat;
     102             : };
     103             : 
     104             : class ScXMLDataBarFormatContext : public SvXMLImportContext
     105             : {
     106             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     107           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     108             : public:
     109             :     ScXMLDataBarFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     110             :                         const ::rtl::OUString& rLName,
     111             :                         const ::com::sun::star::uno::Reference<
     112             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     113             :                         ScConditionalFormat* pFormat);
     114             : 
     115           0 :     virtual ~ScXMLDataBarFormatContext() {}
     116             : 
     117             : 
     118             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
     119             :                                      const ::rtl::OUString& rLocalName,
     120             :                                      const ::com::sun::star::uno::Reference<
     121             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
     122             : private:
     123             : 
     124             :     ScDataBarFormat* mpDataBarFormat;
     125             :     ScDataBarFormatData* mpFormatData;
     126             : 
     127             : };
     128             : 
     129             : class ScXMLIconSetFormatContext : public SvXMLImportContext
     130             : {
     131             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     132           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     133             : 
     134             :     ScIconSetFormatData* mpFormatData;
     135             : public:
     136             : 
     137             :     ScXMLIconSetFormatContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     138             :                         const ::rtl::OUString& rLName,
     139             :                         const ::com::sun::star::uno::Reference<
     140             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     141             :                         ScConditionalFormat* pFormat);
     142             : 
     143           0 :     virtual ~ScXMLIconSetFormatContext() {}
     144             : 
     145             : 
     146             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
     147             :                                      const ::rtl::OUString& rLocalName,
     148             :                                      const ::com::sun::star::uno::Reference<
     149             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
     150             : };
     151             : 
     152             : class ScXMLColorScaleFormatEntryContext : public SvXMLImportContext
     153             : {
     154             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     155           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     156             : public:
     157             :     ScXMLColorScaleFormatEntryContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     158             :                         const ::rtl::OUString& rLName,
     159             :                         const ::com::sun::star::uno::Reference<
     160             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     161             :                         ScColorScaleFormat* pFormat);
     162             : 
     163           0 :     virtual ~ScXMLColorScaleFormatEntryContext() {}
     164             : private:
     165             : 
     166             :     ScColorScaleEntry* mpFormatEntry;
     167             : };
     168             : 
     169             : class ScXMLFormattingEntryContext : public SvXMLImportContext
     170             : {
     171             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     172           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     173             : public:
     174             :     ScXMLFormattingEntryContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     175             :                         const ::rtl::OUString& rLName,
     176             :                         const ::com::sun::star::uno::Reference<
     177             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     178             :                         ScColorScaleEntry*& pData);
     179             : 
     180           0 :     virtual ~ScXMLFormattingEntryContext() {}
     181             : };
     182             : 
     183             : class ScXMLCondContext : public SvXMLImportContext
     184             : {
     185             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
     186           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
     187             : public:
     188             :     ScXMLCondContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
     189             :                         const ::rtl::OUString& rLName,
     190             :                         const ::com::sun::star::uno::Reference<
     191             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
     192             :                         ScConditionalFormat* pFormat);
     193             : 
     194           0 :     virtual ~ScXMLCondContext() {}
     195             : };
     196             : 
     197             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10