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

Generated by: LCOV version 1.10