LCOV - code coverage report
Current view: top level - sw/source/ui/fldui - fldvar.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 3 0.0 %
Date: 2015-06-13 12:38:46 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 SwFieldVarPage;
      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(vcl::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 SwFieldVarPage : public SwFieldPage
      51             : {
      52             :     friend class SelectionListBox;
      53             : 
      54             :     VclPtr<ListBox>            m_pTypeLB;
      55             :     VclPtr<VclContainer>       m_pSelection;
      56             :     VclPtr<SelectionListBox>   m_pSelectionLB;
      57             :     VclPtr<FixedText>          m_pNameFT;
      58             :     VclPtr<Edit>               m_pNameED;
      59             :     VclPtr<FixedText>          m_pValueFT;
      60             :     VclPtr<ConditionEdit>      m_pValueED;
      61             :     VclPtr<VclContainer>       m_pFormat;
      62             :     VclPtr<NumFormatListBox>   m_pNumFormatLB;
      63             :     VclPtr<ListBox>            m_pFormatLB;
      64             :     VclPtr<VclContainer>       m_pChapterFrame;
      65             :     VclPtr<ListBox>            m_pChapterLevelLB;
      66             :     VclPtr<CheckBox>           m_pInvisibleCB;
      67             :     VclPtr<FixedText>          m_pSeparatorFT;
      68             :     VclPtr<Edit>               m_pSeparatorED;
      69             :     VclPtr<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             :     bool                bInit;
      78             : 
      79             :     DECL_LINK(TypeHdl, void *);
      80             :     DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
      81             :     DECL_LINK(ModifyHdl, void * = 0);
      82             :     DECL_LINK_TYPED( TBClickHdl, ToolBox *, void );
      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             :                         SwFieldVarPage(vcl::Window* pParent, const SfxItemSet& rSet);
      94             : 
      95             :                         virtual ~SwFieldVarPage();
      96             :     virtual void        dispose() SAL_OVERRIDE;
      97             : 
      98             :     static VclPtr<SfxTabPage>  Create(vcl::Window* pParent, const SfxItemSet* rAttrSet);
      99             : 
     100             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
     101             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
     102             : 
     103             :     virtual void        FillUserData() SAL_OVERRIDE;
     104             : };
     105             : 
     106             : #endif
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11