LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/ui/inc - tpview.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2013-07-09 Functions: 0 1 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             :  * 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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef SC_TPVIEW_HXX
      21             : #define SC_TPVIEW_HXX
      22             : 
      23             : #include <sfx2/tabdlg.hxx>
      24             : #include <vcl/field.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/group.hxx>
      27             : #include <svtools/ctrlbox.hxx>
      28             : #include <svx/strarray.hxx>
      29             : 
      30             : //========================================================================
      31             : 
      32             : class ScViewOptions;
      33             : 
      34             : //========================================================================
      35             : 
      36             : class ScTpContentOptions : public SfxTabPage
      37             : {
      38             :     FixedLine       aLinesGB;
      39             :     FixedText       aGridFT;
      40             :     ListBox         aGridLB;
      41             :     FixedText       aColorFT;
      42             :     ColorListBox    aColorLB;
      43             :     CheckBox        aBreakCB;
      44             :     CheckBox        aGuideLineCB;
      45             : 
      46             :     FixedLine       aSeparator1FL;
      47             : 
      48             :     FixedLine       aDisplayGB;
      49             :     CheckBox        aFormulaCB;
      50             :     CheckBox        aNilCB;
      51             :     CheckBox        aAnnotCB;
      52             :     CheckBox        aValueCB;
      53             :     CheckBox        aAnchorCB;
      54             :     CheckBox        aClipMarkCB;
      55             :     CheckBox        aRangeFindCB;
      56             : 
      57             :     FixedLine       aObjectGB;
      58             :     FixedText       aObjGrfFT;
      59             :     ListBox         aObjGrfLB;
      60             :     FixedText       aDiagramFT;
      61             :     ListBox         aDiagramLB;
      62             :     FixedText       aDrawFT;
      63             :     ListBox         aDrawLB;
      64             : 
      65             :     FixedLine       aZoomGB;
      66             :     CheckBox        aSyncZoomCB;
      67             : 
      68             :     FixedLine       aSeparator2FL;
      69             : 
      70             :     FixedLine       aWindowGB;
      71             :     CheckBox        aRowColHeaderCB;
      72             :     CheckBox        aHScrollCB;
      73             :     CheckBox        aVScrollCB;
      74             :     CheckBox        aTblRegCB;
      75             :     CheckBox        aOutlineCB;
      76             : 
      77             :     ScViewOptions*  pLocalOptions;
      78             : 
      79             :     void    InitGridOpt();
      80             :     DECL_LINK( GridHdl, ListBox* );
      81             :     DECL_LINK( SelLbObjHdl, ListBox* );
      82             :     DECL_LINK( CBHdl, CheckBox* );
      83             : 
      84             :             ScTpContentOptions( Window*         pParent,
      85             :                              const SfxItemSet&  rArgSet );
      86             :             ~ScTpContentOptions();
      87             : 
      88             : public:
      89             :     static  SfxTabPage* Create          ( Window*               pParent,
      90             :                                           const SfxItemSet&     rCoreSet );
      91             :     virtual sal_Bool        FillItemSet     ( SfxItemSet& rCoreSet );
      92             :     virtual void        Reset           ( const SfxItemSet& rCoreSet );
      93             :     using SfxTabPage::ActivatePage;
      94             :     using SfxTabPage::DeactivatePage;
      95             :     virtual void        ActivatePage( const SfxItemSet& );
      96             :     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
      97             : 
      98             : 
      99             : };
     100             : 
     101             : //========================================================================
     102             : 
     103             : class ScDocument;
     104             : class ScTpLayoutOptions : public SfxTabPage
     105             : {
     106             :     ListBox*        m_pUnitLB;
     107             :     MetricField*    m_pTabMF;
     108             : 
     109             :     RadioButton*    m_pAlwaysRB;
     110             :     RadioButton*    m_pRequestRB;
     111             :     RadioButton*    m_pNeverRB;
     112             : 
     113             :     CheckBox*       m_pAlignCB;
     114             :     ListBox*        m_pAlignLB;
     115             :     CheckBox*       m_pEditModeCB;
     116             :     CheckBox*       m_pFormatCB;
     117             :     CheckBox*       m_pExpRefCB;
     118             :     CheckBox*       m_pMarkHdrCB;
     119             :     CheckBox*       m_pTextFmtCB;
     120             :     CheckBox*       m_pReplWarnCB;
     121             : 
     122             :     SvxStringArray  aUnitArr;
     123             : 
     124             :     DECL_LINK( CBHdl, CheckBox* );
     125             : 
     126             :     DECL_LINK(MetricHdl, void *);
     127             :     DECL_LINK( AlignHdl, CheckBox* );
     128             : 
     129             :     ScDocument *pDoc;
     130             : 
     131             :     DECL_LINK(  UpdateHdl, CheckBox* );
     132             : 
     133             :             ScTpLayoutOptions( Window*          pParent,
     134             :                              const SfxItemSet&  rArgSet );
     135             :             ~ScTpLayoutOptions();
     136             : 
     137             : public:
     138             :     static  SfxTabPage* Create          ( Window*               pParent,
     139             :                                           const SfxItemSet&     rCoreSet );
     140             :     virtual sal_Bool        FillItemSet     ( SfxItemSet& rCoreSet );
     141             :     virtual void        Reset           ( const SfxItemSet& rCoreSet );
     142             :     using SfxTabPage::ActivatePage;
     143             :     using SfxTabPage::DeactivatePage;
     144             :     virtual void        ActivatePage( const SfxItemSet& );
     145             :     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
     146             : 
     147           0 :     void                SetDocument(ScDocument* pPtr){pDoc = pPtr;}
     148             : 
     149             : };
     150             : //========================================================================
     151             : 
     152             : #endif // SC_TPUSRLST_HXX
     153             : 
     154             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10