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

           Branch data     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 "excelhandlers.hxx"
      30                 :            : #include "worksheetfragment.hxx"
      31                 :            : 
      32                 :            : namespace oox {
      33                 :            : namespace xls {
      34                 :            : 
      35         [ #  # ]:          0 : class ExtCfRuleContext : public WorksheetContextBase
      36                 :            : {
      37                 :            : public:
      38                 :            :     explicit ExtCfRuleContext( WorksheetContextBase& rFragment, void* pDataBar );
      39                 :            : 
      40                 :            :     virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );
      41                 :            :     virtual void        onStartElement( const AttributeList& rAttribs );
      42                 :            : 
      43                 :            :     void finalizeImport();
      44                 :            : 
      45                 :            : private:
      46                 :            :     void importDataBar( const AttributeList& rAttribs );
      47                 :            :     void importNegativeFillColor( const AttributeList& rAttribs );
      48                 :            :     void importAxisColor( const AttributeList& rAttribs );
      49                 :            :     void importCfvo( const AttributeList& rAttribs );
      50                 :            :     void* mpTarget;
      51                 :            : 
      52                 :            :     bool mbFirstEntry;
      53                 :            : };
      54                 :            : 
      55                 :            : /**
      56                 :            :  * Handle ExtLst entries in xlsx. These entries are a way to extend the standard
      57                 :            :  * without actually changing it
      58                 :            :  *
      59                 :            :  * Needed right now for data bars
      60                 :            :  *
      61                 :            :  * ExtLstLocalContext is for the entry in the datastructure that needs to be extended
      62                 :            :  */
      63         [ #  # ]:          0 : class ExtLstLocalContext : public WorksheetContextBase
      64                 :            : {
      65                 :            : public:
      66                 :            :     explicit ExtLstLocalContext( WorksheetContextBase& rFragment, void* pTarget ); // until now a ExtLst always extends an existing entry
      67                 :            : 
      68                 :            : protected:
      69                 :            :     virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );
      70                 :            :     virtual void        onStartElement( const AttributeList& rAttribs );
      71                 :            :     virtual void        onCharacters( const ::rtl::OUString& rChars );
      72                 :            : 
      73                 :            : private:
      74                 :            :     void* mpTarget;
      75                 :            : };
      76                 :            : 
      77                 :            : /**
      78                 :            :  * A single ext entry. Will be skipped until the actual entry with the correct uri is found
      79                 :            :  */
      80         [ #  # ]:          0 : class ExtGlobalContext : public WorksheetContextBase
      81                 :            : {
      82                 :            : public:
      83                 :            :     explicit ExtGlobalContext( WorksheetContextBase& rFragment );
      84                 :            : 
      85                 :            : protected:
      86                 :            :     virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );
      87                 :            :     virtual void        onStartElement( const AttributeList& rAttribs );
      88                 :            : 
      89                 :            : private:
      90                 :            : };
      91                 :            : 
      92                 :            : /**
      93                 :            :  * Used for the actual ExtLst containing the new extended definition.
      94                 :            :  * Uses the saved data from the ExtLstLocalContext
      95                 :            :  */
      96         [ #  # ]:          0 : class ExtLstGlobalContext : public WorksheetContextBase
      97                 :            : {
      98                 :            : public:
      99                 :            :     explicit ExtLstGlobalContext( WorksheetFragment& rFragment );
     100                 :            : 
     101                 :            : protected:
     102                 :            :     virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );
     103                 :            : };
     104                 :            : 
     105                 :            : } //namespace xls
     106                 :            : } //namespace oox
     107                 :            : 
     108                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10