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

           Branch data     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_EXCEL_EXTLST_HXX
      11                 :            : #define SC_EXCEL_EXTLST_HXX
      12                 :            : 
      13                 :            : #include "xerecord.hxx"
      14                 :            : #include "xeroot.hxx"
      15                 :            : 
      16                 :            : #include "colorscale.hxx"
      17                 :            : 
      18                 :            : #include <boost/scoped_ptr.hpp>
      19                 :            : 
      20                 :            : enum XclExpExtType
      21                 :            : {
      22                 :            :     XclExpExtDataBarType
      23                 :            : };
      24                 :            : 
      25                 :            : /**
      26                 :            :  * Base class for ext entries. Extend this class to provide the needed functionality
      27                 :            :  *
      28                 :            :  * Right now the only supported subclass is XclExpExtCondFormat
      29                 :            :  */
      30 [ #  # ][ #  # ]:          0 : class XclExpExt : public XclExpRecordBase, public XclExpRoot
      31                 :            : {
      32                 :            : public:
      33                 :            :     explicit XclExpExt( const XclExpRoot& rRoot );
      34                 :            :     virtual XclExpExtType GetType() = 0;
      35                 :            : 
      36                 :            : protected:
      37                 :            :     rtl::OString maURI;
      38                 :            : };
      39                 :            : 
      40 [ #  # ][ #  # ]:          0 : class XclExpExtCfvo : public XclExpRecordBase, protected XclExpRoot
      41                 :            : {
      42                 :            : public:
      43                 :            :     XclExpExtCfvo( const XclExpRoot& rRoot, const ScColorScaleEntry& rEntry, const ScAddress& rPos );
      44                 :            :     virtual void SaveXml( XclExpXmlStream& rStrm );
      45                 :            : 
      46                 :            : private:
      47                 :            :     ScColorScaleEntryType meType;
      48                 :            :     rtl::OString maValue;
      49                 :            : };
      50                 :            : 
      51                 :            : class XclExpExtNegativeColor
      52                 :            : {
      53                 :            : public:
      54                 :            :     XclExpExtNegativeColor( const Color& rColor );
      55                 :            :     void SaveXml( XclExpXmlStream& rStrm);
      56                 :            : 
      57                 :            : private:
      58                 :            :     Color maColor;
      59                 :            : };
      60                 :            : 
      61                 :            : class XclExpExtAxisColor
      62                 :            : {
      63                 :            : public:
      64                 :            :     XclExpExtAxisColor( const Color& maColor );
      65                 :            :     void SaveXml( XclExpXmlStream& rStrm );
      66                 :            : 
      67                 :            : private:
      68                 :            :     Color maAxisColor;
      69                 :            : };
      70                 :            : 
      71 [ #  # ][ #  # ]:          0 : class XclExpExtDataBar : public XclExpRecordBase, protected XclExpRoot
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
      72                 :            : {
      73                 :            : public:
      74                 :            :     explicit XclExpExtDataBar( const XclExpRoot& rRoot, const ScDataBarFormat& rFormat, const ScAddress& rPos );
      75                 :            :     virtual void SaveXml( XclExpXmlStream& rStrm );
      76                 :            : 
      77                 :            : private:
      78                 :            :     databar::ScAxisPostion meAxisPosition;
      79                 :            : 
      80                 :            :     boost::scoped_ptr<XclExpExtCfvo> mpLowerLimit;
      81                 :            :     boost::scoped_ptr<XclExpExtCfvo> mpUpperLimit;
      82                 :            :     boost::scoped_ptr<XclExpExtNegativeColor> mpNegativeColor;
      83                 :            :     boost::scoped_ptr<XclExpExtAxisColor> mpAxisColor;
      84                 :            : 
      85                 :            : };
      86                 :            : 
      87                 :            : typedef boost::shared_ptr<XclExpExtDataBar> XclExpExtDataBarRef;
      88                 :            : 
      89 [ #  # ][ #  # ]:          0 : class XclExpExtCfRule : public XclExpRecordBase, protected XclExpRoot
                 [ #  # ]
      90                 :            : {
      91                 :            : public:
      92                 :            :     XclExpExtCfRule( const XclExpRoot& rRoot, const ScDataBarFormat& rFormat, const ScAddress& rPos, const rtl::OString& rId );
      93                 :            :     virtual void SaveXml( XclExpXmlStream& rStrm );
      94                 :            : 
      95                 :            : private:
      96                 :            :     XclExpExtDataBarRef maDataBar;
      97                 :            :     rtl::OString maId;
      98                 :            : };
      99                 :            : 
     100                 :            : typedef boost::shared_ptr<XclExpExt> XclExpExtRef;
     101                 :            : typedef boost::shared_ptr<XclExpExtCfRule> XclExpExtCfRuleRef;
     102                 :            : 
     103 [ #  # ][ #  # ]:          0 : class XclExpExtConditionalFormatting : public XclExpRecordBase, protected XclExpRoot
         [ #  # ][ #  # ]
     104                 :            : {
     105                 :            : public:
     106                 :            :     explicit XclExpExtConditionalFormatting( const XclExpRoot& rRoot, const ScDataBarFormat& rFormat, const ScAddress& rPos, const rtl::OString& rId );
     107                 :            :     virtual void SaveXml( XclExpXmlStream& rStrm );
     108                 :            : 
     109                 :            : private:
     110                 :            :     XclExpExtCfRuleRef maCfRule;
     111                 :            :     ScRangeList maRange;
     112                 :            : };
     113                 :            : 
     114                 :            : typedef boost::shared_ptr<XclExpExtConditionalFormatting> XclExpExtConditionalFormattingRef;
     115                 :            : 
     116 [ #  # ][ #  # ]:          0 : class XclExpExtCondFormat : public XclExpExt
     117                 :            : {
     118                 :            : public:
     119                 :            :     XclExpExtCondFormat( const XclExpRoot& rRoot );
     120                 :            :     virtual void SaveXml( XclExpXmlStream& rStrm );
     121                 :            : 
     122                 :          0 :     virtual XclExpExtType GetType() { return XclExpExtDataBarType; }
     123                 :            : 
     124                 :            :     void AddRecord( XclExpExtConditionalFormattingRef aFormat );
     125                 :            : 
     126                 :            : private:
     127                 :            :     XclExpRecordList< XclExpExtConditionalFormatting > maCF;
     128                 :            : };
     129                 :            : 
     130 [ #  # ][ #  # ]:          0 : class XclExtLst : public XclExpRecordBase, public XclExpRoot
                 [ #  # ]
     131                 :            : {
     132                 :            : public:
     133                 :            :     explicit XclExtLst( const XclExpRoot& rRoot);
     134                 :            :     virtual void SaveXml( XclExpXmlStream& rStrm );
     135                 :            : 
     136                 :            :     void AddRecord( XclExpExtRef aEntry );
     137                 :            : 
     138                 :            :     XclExpExtRef GetItem( XclExpExtType eType );
     139                 :            : 
     140                 :            : private:
     141                 :            :     XclExpRecordList< XclExpExt > maExtEntries;
     142                 :            : };
     143                 :            : 
     144                 :            : typedef boost::shared_ptr< XclExtLst > XclExtLstRef;
     145                 :            : 
     146                 :            : #endif
     147                 :            : 
     148                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10