LCOV - code coverage report
Current view: top level - sw/source/ui/fldui - fldvar.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 3 0.0 %
Date: 2014-04-11 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 INCLUDED_SW_SOURCE_UI_FLDUI_FLDVAR_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_FLDUI_FLDVAR_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             :     bool            bCallAddSelection;
      39             : 
      40             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      41             : 
      42             : public:
      43             :     SelectionListBox(Window* pParent, WinBits nStyle);
      44             : 
      45             :     //  detect selection via Ctrl or Alt and evaluate with SelectHdl
      46           0 :     bool            IsCallAddSelection() const {return bCallAddSelection;}
      47           0 :     void            ResetCallAddSelection() {bCallAddSelection = false;}
      48             : };
      49             : 
      50             : class SwFldVarPage : public SwFldPage
      51             : {
      52             :     friend class SelectionListBox;
      53             : 
      54             :     ListBox*            m_pTypeLB;
      55             :     VclContainer*       m_pSelection;
      56             :     SelectionListBox*   m_pSelectionLB;
      57             :     FixedText*          m_pNameFT;
      58             :     Edit*               m_pNameED;
      59             :     FixedText*          m_pValueFT;
      60             :     ConditionEdit*      m_pValueED;
      61             :     VclContainer*       m_pFormat;
      62             :     NumFormatListBox*   m_pNumFormatLB;
      63             :     ListBox*            m_pFormatLB;
      64             :     VclContainer*       m_pChapterFrame;
      65             :     ListBox*            m_pChapterLevelLB;
      66             :     CheckBox*           m_pInvisibleCB;
      67             :     FixedText*          m_pSeparatorFT;
      68             :     Edit*               m_pSeparatorED;
      69             :     ToolBox*            m_pNewDelTBX;
      70             :     sal_uInt16          m_nApplyId;
      71             :     sal_uInt16          m_nDeleteId;
      72             : 
      73             :     OUString            sOldValueFT;
      74             :     OUString            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_Int32           FillFormatLB(sal_uInt16 nTypeId);
      88             : 
      89             : protected:
      90             :     virtual sal_uInt16      GetGroup() SAL_OVERRIDE;
      91             : 
      92             : public:
      93             :                         SwFldVarPage(Window* pParent, const SfxItemSet& rSet);
      94             : 
      95             :                         virtual ~SwFldVarPage();
      96             : 
      97             :     static SfxTabPage*  Create(Window* pParent, const SfxItemSet& rAttrSet);
      98             : 
      99             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
     100             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
     101             : 
     102             :     virtual void        FillUserData() SAL_OVERRIDE;
     103             : };
     104             : 
     105             : #endif
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10