LCOV - code coverage report
Current view: top level - sw/source/ui/fldui - fldvar.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-08-25 Functions: 0 4 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                 :            : #ifndef _SWFLDVAR_HXX
      29                 :            : #define _SWFLDVAR_HXX
      30                 :            : 
      31                 :            : #include <sfx2/tabdlg.hxx>
      32                 :            : #include <vcl/fixed.hxx>
      33                 :            : #include <vcl/lstbox.hxx>
      34                 :            : #include <vcl/button.hxx>
      35                 :            : #include <vcl/group.hxx>
      36                 :            : #include <vcl/toolbox.hxx>
      37                 :            : #include <vcl/edit.hxx>
      38                 :            : 
      39                 :            : #include "fldpage.hxx"
      40                 :            : #include "condedit.hxx"
      41                 :            : #include "numfmtlb.hxx"
      42                 :            : 
      43                 :            : class SwFldVarPage;
      44                 :            : 
      45                 :          0 : class SelectionListBox : public ListBox
      46                 :            : {
      47                 :            :     SwFldVarPage*   pDlg;
      48                 :            :     sal_Bool            bCallAddSelection;
      49                 :            : 
      50                 :            :     virtual long        PreNotify( NotifyEvent& rNEvt );
      51                 :            : 
      52                 :            : public:
      53                 :            :     SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId );
      54                 :            : 
      55                 :            :     //  detect selection via Ctrl or Alt and evaluate with SelectHdl
      56                 :          0 :     sal_Bool            IsCallAddSelection() const {return bCallAddSelection;}
      57                 :          0 :     void            ResetCallAddSelection() {bCallAddSelection = sal_False;}
      58                 :            : };
      59                 :            : 
      60                 :            : class SwFldVarPage : public SwFldPage
      61                 :            : {
      62                 :            :     friend class SelectionListBox;
      63                 :            : 
      64                 :            :     FixedText           aTypeFT;
      65                 :            :     ListBox             aTypeLB;
      66                 :            :     FixedText           aSelectionFT;
      67                 :            :     SelectionListBox    aSelectionLB;
      68                 :            :     FixedText           aNameFT;
      69                 :            :     Edit                aNameED;
      70                 :            :     FixedText           aValueFT;
      71                 :            :     ConditionEdit       aValueED;
      72                 :            :     FixedText           aFormatFT;
      73                 :            :     NumFormatListBox    aNumFormatLB;
      74                 :            :     ListBox             aFormatLB;
      75                 :            :     FixedText           aChapterHeaderFT;
      76                 :            :     FixedText           aChapterLevelFT;
      77                 :            :     ListBox             aChapterLevelLB;
      78                 :            :     CheckBox            aInvisibleCB;
      79                 :            :     FixedText           aSeparatorFT;
      80                 :            :     Edit                aSeparatorED;
      81                 :            :     ToolBox             aNewDelTBX;
      82                 :            : 
      83                 :            :     String              sOldValueFT;
      84                 :            :     String              sOldNameFT;
      85                 :            : 
      86                 :            :     sal_uLong               nOldFormat;
      87                 :            :     sal_Bool                bInit;
      88                 :            : 
      89                 :            :     DECL_LINK(TypeHdl, void *);
      90                 :            :     DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
      91                 :            :     DECL_LINK(ModifyHdl, void * = 0);
      92                 :            :     DECL_LINK( TBClickHdl, ToolBox *pTB = 0);
      93                 :            :     DECL_LINK(ChapterHdl, void * = 0);
      94                 :            :     DECL_LINK(SeparatorHdl, void * = 0);
      95                 :            : 
      96                 :            :     void                UpdateSubType();
      97                 :            :     sal_uInt16              FillFormatLB(sal_uInt16 nTypeId);
      98                 :            : 
      99                 :            : protected:
     100                 :            :     virtual sal_uInt16      GetGroup();
     101                 :            : 
     102                 :            : public:
     103                 :            :                         SwFldVarPage(Window* pParent, const SfxItemSet& rSet);
     104                 :            : 
     105                 :            :                         ~SwFldVarPage();
     106                 :            : 
     107                 :            :     static SfxTabPage*  Create(Window* pParent, const SfxItemSet& rAttrSet);
     108                 :            : 
     109                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     110                 :            :     virtual void        Reset( const SfxItemSet& rSet );
     111                 :            : 
     112                 :            :     virtual void        FillUserData();
     113                 :            : };
     114                 :            : 
     115                 :            : 
     116                 :            : #endif
     117                 :            : 
     118                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10