LCOV - code coverage report
Current view: top level - cui/source/options - fontsubs.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 _SVX_FONT_SUBSTITUTION_HXX
      29                 :            : #define _SVX_FONT_SUBSTITUTION_HXX
      30                 :            : 
      31                 :            : #include <sfx2/tabdlg.hxx>
      32                 :            : #include <vcl/fixed.hxx>
      33                 :            : #include <svx/simptabl.hxx>
      34                 :            : #include <vcl/toolbox.hxx>
      35                 :            : #include <svtools/ctrlbox.hxx>
      36                 :            : 
      37                 :            : // class SvxFontSubstCheckListBox ------------------------------------------
      38                 :            : 
      39         [ #  # ]:          0 : class SvxFontSubstCheckListBox : public SvxSimpleTable
      40                 :            : {
      41                 :            :     friend class SvxFontSubstTabPage;
      42                 :            :     using SvxSimpleTable::SetTabs;
      43                 :            :     using SvTreeListBox::GetCheckButtonState;
      44                 :            :     using SvTreeListBox::SetCheckButtonState;
      45                 :            : 
      46                 :            :     protected:
      47                 :            :         virtual void    SetTabs();
      48                 :            :         virtual void    KeyInput( const KeyEvent& rKEvt );
      49                 :            : 
      50                 :            :     public:
      51                 :          0 :         SvxFontSubstCheckListBox(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER)
      52                 :          0 :             : SvxSimpleTable(rParent, nBits)
      53                 :            :         {
      54                 :          0 :         }
      55                 :            : 
      56                 :            :         inline void     *GetUserData(sal_uLong nPos) { return GetEntry(nPos)->GetUserData(); }
      57                 :            :         inline void     SetUserData(sal_uLong nPos, void *pData ) { GetEntry(nPos)->SetUserData(pData); }
      58                 :            : 
      59                 :            :         sal_Bool            IsChecked(sal_uLong nPos, sal_uInt16 nCol = 0);
      60                 :            :         sal_Bool            IsChecked(SvLBoxEntry* pEntry, sal_uInt16 nCol = 0);
      61                 :            :         void            CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked);
      62                 :            :         void            CheckEntry(SvLBoxEntry* pEntry, sal_uInt16 nCol, sal_Bool bChecked);
      63                 :            :         SvButtonState   GetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol ) const;
      64                 :            :         void            SetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol, SvButtonState );
      65                 :            : };
      66                 :            : 
      67                 :            : // class SvxFontSubstTabPage ----------------------------------------------------
      68                 :            : class SvtFontSubstConfig;
      69                 :            : class SvxFontSubstTabPage : public SfxTabPage
      70                 :            : {
      71                 :            :     CheckBox                    aUseTableCB;
      72                 :            :     FixedText                   aFont1FT;
      73                 :            :     FontNameBox                 aFont1CB;
      74                 :            :     FixedText                   aFont2FT;
      75                 :            :     FontNameBox                 aFont2CB;
      76                 :            :     ToolBox                     aNewDelTBX;
      77                 :            :     SvxSimpleTableContainer m_aCheckLBContainer;
      78                 :            :     SvxFontSubstCheckListBox    aCheckLB;
      79                 :            : 
      80                 :            :     FixedLine                   aSourceViewFontsFL;
      81                 :            :     FixedText                   aFontNameFT;
      82                 :            :     ListBox                     aFontNameLB;
      83                 :            :     CheckBox                    aNonPropFontsOnlyCB;
      84                 :            :     FixedText                   aFontHeightFT;
      85                 :            :     ListBox                     aFontHeightLB;
      86                 :            : 
      87                 :            :     ImageList                   aImageList;
      88                 :            :     String                      sAutomatic;
      89                 :            : 
      90                 :            :     SvtFontSubstConfig*         pConfig;
      91                 :            : 
      92                 :            :     String          sHeader1;
      93                 :            :     String          sHeader2;
      94                 :            :     String          sHeader3;
      95                 :            :     String          sHeader4;
      96                 :            : 
      97                 :            :     Color           aTextColor;
      98                 :            : 
      99                 :            :     SvLBoxButtonData*   pCheckButtonData;
     100                 :            : 
     101                 :            :     DECL_LINK(SelectHdl, Window *pWin = 0);
     102                 :            :     DECL_LINK(NonPropFontsHdl, CheckBox* pBox);
     103                 :            : 
     104                 :            :     SvLBoxEntry*    CreateEntry(String& rFont1, String& rFont2);
     105                 :            :     void            CheckEnable();
     106                 :            : 
     107                 :            : 
     108                 :            :     SvxFontSubstTabPage( Window* pParent, const SfxItemSet& rSet );
     109                 :            :     ~SvxFontSubstTabPage();
     110                 :            : 
     111                 :            : public:
     112                 :            :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet);
     113                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     114                 :            :     virtual void        Reset( const SfxItemSet& rSet );
     115                 :            : };
     116                 :            : 
     117                 :            : 
     118                 :            : #endif // _SVX_FONT_SUBSTITUTION_HXX
     119                 :            : 
     120                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10