LCOV - code coverage report
Current view: top level - sc/source/ui/inc - tpview.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 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 SC_TPVIEW_HXX
      30                 :            : #define SC_TPVIEW_HXX
      31                 :            : 
      32                 :            : #include <sfx2/tabdlg.hxx>
      33                 :            : #include <vcl/field.hxx>
      34                 :            : #include <vcl/fixed.hxx>
      35                 :            : #include <vcl/group.hxx>
      36                 :            : #include <svtools/ctrlbox.hxx>
      37                 :            : #include <svx/strarray.hxx>
      38                 :            : 
      39                 :            : //========================================================================
      40                 :            : 
      41                 :            : class ScViewOptions;
      42                 :            : 
      43                 :            : //========================================================================
      44                 :            : 
      45                 :            : class ScTpContentOptions : public SfxTabPage
      46                 :            : {
      47                 :            :     FixedLine       aLinesGB;
      48                 :            :     FixedText       aGridFT;
      49                 :            :     ListBox         aGridLB;
      50                 :            :     FixedText       aColorFT;
      51                 :            :     ColorListBox    aColorLB;
      52                 :            :     CheckBox        aBreakCB;
      53                 :            :     CheckBox        aGuideLineCB;
      54                 :            : 
      55                 :            :     FixedLine       aSeparator1FL;
      56                 :            : 
      57                 :            :     FixedLine       aDisplayGB;
      58                 :            :     CheckBox        aFormulaCB;
      59                 :            :     CheckBox        aNilCB;
      60                 :            :     CheckBox        aAnnotCB;
      61                 :            :     CheckBox        aValueCB;
      62                 :            :     CheckBox        aAnchorCB;
      63                 :            :     CheckBox        aClipMarkCB;
      64                 :            :     CheckBox        aRangeFindCB;
      65                 :            : 
      66                 :            :     FixedLine       aObjectGB;
      67                 :            :     FixedText       aObjGrfFT;
      68                 :            :     ListBox         aObjGrfLB;
      69                 :            :     FixedText       aDiagramFT;
      70                 :            :     ListBox         aDiagramLB;
      71                 :            :     FixedText       aDrawFT;
      72                 :            :     ListBox         aDrawLB;
      73                 :            : 
      74                 :            :     FixedLine       aZoomGB;
      75                 :            :     CheckBox        aSyncZoomCB;
      76                 :            : 
      77                 :            :     FixedLine       aSeparator2FL;
      78                 :            : 
      79                 :            :     FixedLine       aWindowGB;
      80                 :            :     CheckBox        aRowColHeaderCB;
      81                 :            :     CheckBox        aHScrollCB;
      82                 :            :     CheckBox        aVScrollCB;
      83                 :            :     CheckBox        aTblRegCB;
      84                 :            :     CheckBox        aOutlineCB;
      85                 :            : 
      86                 :            :     ScViewOptions*  pLocalOptions;
      87                 :            : 
      88                 :            :     void    InitGridOpt();
      89                 :            :     DECL_LINK( GridHdl, ListBox* );
      90                 :            :     DECL_LINK( SelLbObjHdl, ListBox* );
      91                 :            :     DECL_LINK( CBHdl, CheckBox* );
      92                 :            : 
      93                 :            :             ScTpContentOptions( Window*         pParent,
      94                 :            :                              const SfxItemSet&  rArgSet );
      95                 :            :             ~ScTpContentOptions();
      96                 :            : 
      97                 :            : public:
      98                 :            :     static  SfxTabPage* Create          ( Window*               pParent,
      99                 :            :                                           const SfxItemSet&     rCoreSet );
     100                 :            :     virtual sal_Bool        FillItemSet     ( SfxItemSet& rCoreSet );
     101                 :            :     virtual void        Reset           ( const SfxItemSet& rCoreSet );
     102                 :            :     using SfxTabPage::ActivatePage;
     103                 :            :     using SfxTabPage::DeactivatePage;
     104                 :            :     virtual void        ActivatePage( const SfxItemSet& );
     105                 :            :     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
     106                 :            : 
     107                 :            : 
     108                 :            : };
     109                 :            : 
     110                 :            : //========================================================================
     111                 :            : 
     112                 :            : class ScDocument;
     113                 :            : class ScTpLayoutOptions : public SfxTabPage
     114                 :            : {
     115                 :            :     FixedLine       aUnitGB;
     116                 :            :     FixedText       aUnitFT;
     117                 :            :     ListBox         aUnitLB;
     118                 :            :     FixedText       aTabFT;
     119                 :            :     MetricField     aTabMF;
     120                 :            : 
     121                 :            :     FixedLine       aSeparatorFL;
     122                 :            :     FixedLine       aLinkGB;
     123                 :            :     FixedText       aLinkFT;
     124                 :            :     RadioButton     aAlwaysRB;
     125                 :            :     RadioButton     aRequestRB;
     126                 :            :     RadioButton     aNeverRB;
     127                 :            : 
     128                 :            :     FixedLine       aOptionsGB;
     129                 :            :     CheckBox        aAlignCB;
     130                 :            :     ListBox         aAlignLB;
     131                 :            :     CheckBox        aEditModeCB;
     132                 :            :     CheckBox        aFormatCB;
     133                 :            :     CheckBox        aExpRefCB;
     134                 :            :     CheckBox        aMarkHdrCB;
     135                 :            :     CheckBox        aTextFmtCB;
     136                 :            :     CheckBox        aReplWarnCB;
     137                 :            : 
     138                 :            :     SvxStringArray  aUnitArr;
     139                 :            : 
     140                 :            :     DECL_LINK( CBHdl, CheckBox* );
     141                 :            : 
     142                 :            :     DECL_LINK(MetricHdl, void *);
     143                 :            :     DECL_LINK( AlignHdl, CheckBox* );
     144                 :            : 
     145                 :            :     ScDocument *pDoc;
     146                 :            : 
     147                 :            :     DECL_LINK(  UpdateHdl, CheckBox* );
     148                 :            : 
     149                 :            :             ScTpLayoutOptions( Window*          pParent,
     150                 :            :                              const SfxItemSet&  rArgSet );
     151                 :            :             ~ScTpLayoutOptions();
     152                 :            : 
     153                 :            : public:
     154                 :            :     static  SfxTabPage* Create          ( Window*               pParent,
     155                 :            :                                           const SfxItemSet&     rCoreSet );
     156                 :            :     virtual sal_Bool        FillItemSet     ( SfxItemSet& rCoreSet );
     157                 :            :     virtual void        Reset           ( const SfxItemSet& rCoreSet );
     158                 :            :     using SfxTabPage::ActivatePage;
     159                 :            :     using SfxTabPage::DeactivatePage;
     160                 :            :     virtual void        ActivatePage( const SfxItemSet& );
     161                 :            :     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
     162                 :            : 
     163                 :          0 :     void                SetDocument(ScDocument* pPtr){pDoc = pPtr;}
     164                 :            : 
     165                 :            : };
     166                 :            : //========================================================================
     167                 :            : 
     168                 :            : #endif // SC_TPUSRLST_HXX
     169                 :            : 
     170                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10