LCOV - code coverage report
Current view: top level - chart2/source/controller/dialogs - dlg_ShapeFont.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 47 0.0 %

           Branch data     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                 :            : 
      20                 :            : 
      21                 :            : #include "dlg_ShapeFont.hxx"
      22                 :            : #include "ViewElementListProvider.hxx"
      23                 :            : #include "ResId.hxx"
      24                 :            : #include "ResourceIds.hrc"
      25                 :            : 
      26                 :            : #include <svl/intitem.hxx>
      27                 :            : #include <sfx2/objsh.hxx>
      28                 :            : #include <svx/dialogs.hrc>
      29                 :            : #include <svx/flagsdef.hxx>
      30                 :            : #include <editeng/flstitem.hxx>
      31                 :            : 
      32                 :            : using ::com::sun::star::uno::Reference;
      33                 :            : using namespace ::com::sun::star;
      34                 :            : 
      35                 :            : //.............................................................................
      36                 :            : namespace chart
      37                 :            : {
      38                 :            : //.............................................................................
      39                 :            : 
      40                 :          0 : ShapeFontDialog::ShapeFontDialog( Window* pParent, const SfxItemSet* pAttr,
      41                 :            :     const ViewElementListProvider* pViewElementListProvider )
      42                 :            :     :SfxTabDialog( pParent, SchResId( DLG_SHAPE_FONT ), pAttr )
      43         [ #  # ]:          0 :     ,m_pViewElementListProvider( pViewElementListProvider )
      44                 :            : {
      45         [ #  # ]:          0 :     FreeResource();
      46                 :            : 
      47         [ #  # ]:          0 :     AddTabPage( RID_SVXPAGE_CHAR_NAME );
      48         [ #  # ]:          0 :     AddTabPage( RID_SVXPAGE_CHAR_EFFECTS );
      49         [ #  # ]:          0 :     AddTabPage( RID_SVXPAGE_CHAR_POSITION );
      50                 :          0 : }
      51                 :            : 
      52                 :          0 : ShapeFontDialog::~ShapeFontDialog()
      53                 :            : {
      54         [ #  # ]:          0 : }
      55                 :            : 
      56                 :          0 : void ShapeFontDialog::PageCreated( sal_uInt16 nId, SfxTabPage& rPage )
      57                 :            : {
      58 [ #  # ][ #  # ]:          0 :     SfxAllItemSet aSet( *( GetInputSetImpl()->GetPool() ) );
      59      [ #  #  # ]:          0 :     switch ( nId )
      60                 :            :     {
      61                 :            :         case RID_SVXPAGE_CHAR_NAME:
      62                 :            :             {
      63 [ #  # ][ #  # ]:          0 :                 aSet.Put( SvxFontListItem( m_pViewElementListProvider->getFontList(), SID_ATTR_CHAR_FONTLIST ) );
         [ #  # ][ #  # ]
      64 [ #  # ][ #  # ]:          0 :                 rPage.PageCreated( aSet );
                 [ #  # ]
      65                 :            :             }
      66                 :          0 :             break;
      67                 :            :         case RID_SVXPAGE_CHAR_EFFECTS:
      68                 :            :             {
      69 [ #  # ][ #  # ]:          0 :                 aSet.Put( SfxUInt16Item( SID_DISABLE_CTL, DISABLE_CASEMAP ) );
                 [ #  # ]
      70 [ #  # ][ #  # ]:          0 :                 rPage.PageCreated( aSet );
                 [ #  # ]
      71                 :            :             }
      72                 :          0 :             break;
      73                 :            :         default:
      74                 :            :             {
      75                 :            :             }
      76                 :          0 :             break;
      77         [ #  # ]:          0 :     }
      78                 :          0 : }
      79                 :            : 
      80                 :            : //.............................................................................
      81                 :            : } //namespace chart
      82                 :            : //.............................................................................
      83                 :            : 
      84                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10