LCOV - code coverage report
Current view: top level - cui/source/inc - cuicharmap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 26 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 _CUI_CHARMAP_HXX
      29                 :            : #define _CUI_CHARMAP_HXX
      30                 :            : 
      31                 :            : #include <vcl/ctrl.hxx>
      32                 :            : #include <vcl/metric.hxx>
      33                 :            : #include <vcl/button.hxx>
      34                 :            : #include <vcl/fixed.hxx>
      35                 :            : #include <vcl/lstbox.hxx>
      36                 :            : #include <sfx2/basedlgs.hxx>
      37                 :            : #include <svx/charmap.hxx>
      38                 :            : 
      39                 :            : class SubsetMap;
      40                 :            : class SvxCharMapData;
      41                 :            : 
      42                 :            : #define CHARMAP_MAXLEN  32
      43                 :            : 
      44                 :            : namespace svx
      45                 :            : {
      46                 :            :     struct SvxShowCharSetItem;
      47                 :            : }
      48                 :            : 
      49                 :            : class SvxShowText : public Control
      50                 :            : {
      51                 :            : public:
      52                 :            :                     SvxShowText( Window* pParent,
      53                 :            :                                  const ResId& rResId,
      54                 :            :                                  sal_Bool bCenter = sal_False );
      55                 :            :                     ~SvxShowText();
      56                 :            : 
      57                 :            :     void            SetFont( const Font& rFont );
      58                 :            :     void            SetText( const String& rText );
      59                 :            : 
      60                 :            : protected:
      61                 :            :     virtual void    Paint( const Rectangle& );
      62                 :            : 
      63                 :            : private:
      64                 :            :     long            mnY;
      65                 :            :     sal_Bool            mbCenter;
      66                 :            : 
      67                 :            : };
      68                 :            : 
      69 [ #  # ][ #  # ]:          0 : class SvxCharMapData
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
      70                 :            : {
      71                 :            : public:
      72                 :            :                     SvxCharMapData( class SfxModalDialog* pDialog, sal_Bool bOne_, ResMgr* pResContext );
      73                 :            : 
      74                 :            :     void            SetCharFont( const Font& rFont );
      75                 :            : 
      76                 :            : private:
      77                 :            : friend class SvxCharacterMap;
      78                 :            :     SfxModalDialog* mpDialog;
      79                 :            : 
      80                 :            :     SvxShowCharSet  aShowSet;
      81                 :            :     SvxShowText     aShowText;
      82                 :            :     OKButton        aOKBtn;
      83                 :            :     CancelButton    aCancelBtn;
      84                 :            :     HelpButton      aHelpBtn;
      85                 :            :     PushButton      aDeleteBtn;
      86                 :            :     FixedText       aFontText;
      87                 :            :     ListBox         aFontLB;
      88                 :            :     FixedText       aSubsetText;
      89                 :            :     ListBox         aSubsetLB;
      90                 :            :     FixedText       aSymbolText;
      91                 :            :     SvxShowText     aShowChar;
      92                 :            :     FixedText       aCharCodeText;
      93                 :            :     Font            aFont;
      94                 :            :     sal_Bool            bOne;
      95                 :            :     const SubsetMap* pSubsetMap;
      96                 :            : 
      97                 :            :     DECL_LINK(OKHdl, void *);
      98                 :            :     DECL_LINK(FontSelectHdl, void *);
      99                 :            :     DECL_LINK(SubsetSelectHdl, void *);
     100                 :            :     DECL_LINK(CharDoubleClickHdl, void *);
     101                 :            :     DECL_LINK(CharSelectHdl, void *);
     102                 :            :     DECL_LINK(CharHighlightHdl, void *);
     103                 :            :     DECL_LINK(CharPreSelectHdl, void *);
     104                 :            :     DECL_LINK(DeleteHdl, void *);
     105                 :            : };
     106                 :            : 
     107                 :            : /** The main purpose of this dialog is to enable the use of characters
     108                 :            :     that are not easily accesible from the keyboard. */
     109                 :            : class SvxCharacterMap : public SfxModalDialog
     110                 :            : {
     111                 :            : private:
     112                 :            :     SvxCharMapData* mpCharMapData;
     113                 :            : 
     114                 :            : public:
     115                 :            :                     SvxCharacterMap( Window* pParent, sal_Bool bOne=sal_True, const SfxItemSet* pSet=0 );
     116                 :            :                     ~SvxCharacterMap();
     117                 :            : 
     118                 :            :     void            DisableFontSelection();
     119                 :            : 
     120                 :            :     const Font&     GetCharFont() const;
     121                 :            :     void            SetCharFont( const Font& rFont );
     122                 :            : 
     123                 :            :     void            SetChar( sal_UCS4 );
     124                 :            :     sal_UCS4        GetChar() const;
     125                 :            : 
     126                 :            :     String          GetCharacters() const;
     127                 :            : 
     128                 :            :     virtual short   Execute();
     129                 :            : };
     130                 :            : 
     131                 :            : #endif
     132                 :            : 
     133                 :            : 
     134                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10