LCOV - code coverage report
Current view: top level - cui/source/options - optchart.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 3 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _SVX_OPTCHART_HXX
      30                 :            : #define _SVX_OPTCHART_HXX
      31                 :            : 
      32                 :            : // header for SfxTabPage
      33                 :            : #include <sfx2/tabdlg.hxx>
      34                 :            : #include <vcl/fixed.hxx>
      35                 :            : // header for ValueSet
      36                 :            : #include <svtools/valueset.hxx>
      37                 :            : // header for ColorLB
      38                 :            : #include <svx/dlgctrl.hxx>
      39                 :            : // header for PushButton
      40                 :            : #include <vcl/button.hxx>
      41                 :            : // header for XColorList
      42                 :            : #include <svx/xtable.hxx>
      43                 :            : 
      44                 :            : #include "cfgchart.hxx"
      45                 :            : 
      46         [ #  # ]:          0 : class ChartColorLB : public ColorLB
      47                 :            : {
      48                 :            : public:
      49                 :          0 :     ChartColorLB( Window* pParent, ResId Id ) : ColorLB( pParent, Id ) {}
      50                 :            :     ChartColorLB( Window* pParent, WinBits aWB ) : ColorLB( pParent, aWB ) {}
      51                 :            : 
      52                 :            :     void FillBox( const SvxChartColorTable & rTab );
      53                 :            : };
      54                 :            : 
      55                 :            : 
      56                 :            : class SvxDefaultColorOptPage : public SfxTabPage
      57                 :            : {
      58                 :            : 
      59                 :            : private:
      60                 :            :     FixedLine                           aGbChartColors;
      61                 :            :     ChartColorLB                        aLbChartColors;
      62                 :            :     FixedLine                           aGbColorBox;
      63                 :            :     ValueSet                            aValSetColorBox;
      64                 :            :     PushButton                          aPBDefault;
      65                 :            :     PushButton                          aPBAdd;
      66                 :            :     PushButton                          aPBRemove;
      67                 :            : 
      68                 :            :     SvxChartOptions*        pChartOptions;
      69                 :            :     SvxChartColorTableItem* pColorConfig;
      70                 :            :     XColorListRef           pColorList;
      71                 :            : 
      72                 :            :     DECL_LINK( ResetToDefaults, void * );
      73                 :            :     DECL_LINK( AddChartColor, void * );
      74                 :            :     DECL_LINK( RemoveChartColor, PushButton * );
      75                 :            :     DECL_LINK( ListClickedHdl, ChartColorLB * );
      76                 :            :     DECL_LINK(BoxClickedHdl, void *);
      77                 :            : 
      78                 :            :     void FillColorBox();
      79                 :            :     long GetColorIndex( const Color& rCol );
      80                 :            : 
      81                 :            : public:
      82                 :            :     SvxDefaultColorOptPage( Window* pParent, const SfxItemSet& rInAttrs );
      83                 :            :     virtual ~SvxDefaultColorOptPage();
      84                 :            : 
      85                 :            :     void    Construct();
      86                 :            : 
      87                 :            :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rInAttrs );
      88                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& rOutAttrs );
      89                 :            :     virtual void        Reset( const SfxItemSet& rInAttrs );
      90                 :            : };
      91                 :            : 
      92                 :            : #endif  // _SVX_OPTCHART_HXX
      93                 :            : 
      94                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10