LCOV - code coverage report
Current view: top level - cui/source/options - optfltr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-08-25 Functions: 0 3 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 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 _OFA_OPTFLTR_HXX
      29                 :            : #define _OFA_OPTFLTR_HXX
      30                 :            : 
      31                 :            : #include <vcl/button.hxx>
      32                 :            : #include <vcl/group.hxx>
      33                 :            : #include <vcl/fixed.hxx>
      34                 :            : #include <sfx2/tabdlg.hxx>
      35                 :            : #include <svx/simptabl.hxx>
      36                 :            : 
      37                 :            : 
      38                 :            : 
      39                 :            : class OfaMSFilterTabPage : public SfxTabPage
      40                 :            : {
      41                 :            :     FixedLine       aMSWordGB;
      42                 :            :     CheckBox        aWBasicCodeCB;
      43                 :            :     CheckBox        aWBasicWbctblCB;
      44                 :            :     CheckBox        aWBasicStgCB;
      45                 :            :     FixedLine       aMSExcelGB;
      46                 :            :     CheckBox        aEBasicCodeCB;
      47                 :            :     CheckBox        aEBasicExectblCB;
      48                 :            :     CheckBox        aEBasicStgCB;
      49                 :            :     FixedLine       aMSPPointGB;
      50                 :            :     CheckBox        aPBasicCodeCB;
      51                 :            :     CheckBox        aPBasicStgCB;
      52                 :            : 
      53                 :            :     OfaMSFilterTabPage( Window* pParent, const SfxItemSet& rSet );
      54                 :            :     virtual ~OfaMSFilterTabPage();
      55                 :            : 
      56                 :            :     DECL_LINK(LoadWordBasicCheckHdl_Impl, void *);
      57                 :            :     DECL_LINK(LoadExcelBasicCheckHdl_Impl, void *);
      58                 :            : public:
      59                 :            : 
      60                 :            :     static SfxTabPage*  Create( Window* pParent,
      61                 :            :                                 const SfxItemSet& rAttrSet );
      62                 :            : 
      63                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
      64                 :            :     virtual void        Reset( const SfxItemSet& rSet );
      65                 :            : };
      66                 :            : 
      67                 :            : class OfaMSFilterTabPage2 : public SfxTabPage
      68                 :            : {
      69         [ #  # ]:          0 :     class MSFltrSimpleTable : public SvxSimpleTable
      70                 :            :     {
      71                 :            :         using SvTreeListBox::GetCheckButtonState;
      72                 :            :         using SvTreeListBox::SetCheckButtonState;
      73                 :            :         using SvxSimpleTable::SetTabs;
      74                 :            : 
      75                 :            :         void            CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked);
      76                 :            :         SvButtonState   GetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol ) const;
      77                 :            :         void            SetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol, SvButtonState );
      78                 :            :     protected:
      79                 :            :         virtual void    SetTabs();
      80                 :            :         virtual void    HBarClick();
      81                 :            :         virtual void    KeyInput( const KeyEvent& rKEvt );
      82                 :            : 
      83                 :            :     public:
      84                 :          0 :         MSFltrSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER)
      85                 :          0 :             : SvxSimpleTable(rParent, nBits)
      86                 :            :         {
      87                 :          0 :         }
      88                 :            :     };
      89                 :            : 
      90                 :            :     SvxSimpleTableContainer m_aCheckLBContainer;
      91                 :            :     MSFltrSimpleTable aCheckLB;
      92                 :            :     FixedText aHeader1FT, aHeader2FT;
      93                 :            :     String sHeader1, sHeader2;
      94                 :            :     String sChgToFromMath,
      95                 :            :            sChgToFromWriter,
      96                 :            :            sChgToFromCalc,
      97                 :            :            sChgToFromImpress;
      98                 :            :     SvLBoxButtonData*   pCheckButtonData;
      99                 :            : 
     100                 :            :     OfaMSFilterTabPage2( Window* pParent, const SfxItemSet& rSet );
     101                 :            :     virtual ~OfaMSFilterTabPage2();
     102                 :            : 
     103                 :            :     void            InsertEntry( const String& _rTxt, sal_IntPtr _nType );
     104                 :            :     SvLBoxEntry*    GetEntry4Type( sal_IntPtr _nType ) const;
     105                 :            : 
     106                 :            : public:
     107                 :            : 
     108                 :            :     static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
     109                 :            : 
     110                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     111                 :            :     virtual void        Reset( const SfxItemSet& rSet );
     112                 :            : };
     113                 :            : 
     114                 :            : 
     115                 :            : #endif //
     116                 :            : 
     117                 :            : 
     118                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10