LCOV - code coverage report
Current view: top level - sd/source/ui/dlg - dlgchar.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 20 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 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                 :            : #ifdef SD_DLLIMPLEMENTATION
      22                 :            : #undef SD_DLLIMPLEMENTATION
      23                 :            : #endif
      24                 :            : 
      25                 :            : 
      26                 :            : #include <svx/dialogs.hrc>
      27                 :            : #include <editeng/flstitem.hxx>
      28                 :            : #include <svx/flagsdef.hxx>
      29                 :            : #include <sfx2/objsh.hxx>
      30                 :            : 
      31                 :            : #include "sdresid.hxx"
      32                 :            : #include "dlg_char.hxx"
      33                 :            : #include <svx/svxids.hrc>
      34                 :            : #include <svl/intitem.hxx>
      35                 :            : 
      36                 :            : /*************************************************************************
      37                 :            : |*
      38                 :            : |* Konstruktor des Tab-Dialogs: Fuegt die Seiten zum Dialog hinzu
      39                 :            : |*
      40                 :            : \************************************************************************/
      41                 :            : 
      42                 :          0 : SdCharDlg::SdCharDlg( Window* pParent, const SfxItemSet* pAttr,
      43                 :            :                     const SfxObjectShell* pDocShell ) :
      44                 :            :         SfxTabDialog        ( pParent, SdResId( TAB_CHAR ), pAttr ),
      45                 :            :         rOutAttrs           ( *pAttr ),
      46                 :          0 :         rDocShell           ( *pDocShell )
      47                 :            : {
      48                 :          0 :     FreeResource();
      49                 :            : 
      50                 :          0 :     AddTabPage( RID_SVXPAGE_CHAR_NAME );
      51                 :          0 :     AddTabPage( RID_SVXPAGE_CHAR_EFFECTS );
      52                 :          0 :     AddTabPage( RID_SVXPAGE_CHAR_POSITION );
      53                 :          0 : }
      54                 :            : 
      55                 :            : // -----------------------------------------------------------------------
      56                 :            : 
      57                 :          0 : void SdCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
      58                 :            : {
      59                 :          0 :     SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      60                 :          0 :     switch( nId )
      61                 :            :     {
      62                 :            :         case RID_SVXPAGE_CHAR_NAME:
      63                 :            :         {
      64                 :            :             SvxFontListItem aItem(*( (const SvxFontListItem*)
      65                 :          0 :                 ( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );
      66                 :            : 
      67                 :          0 :             aSet.Put (SvxFontListItem( aItem.GetFontList(), SID_ATTR_CHAR_FONTLIST));
      68                 :          0 :             rPage.PageCreated(aSet);
      69                 :            :         }
      70                 :          0 :         break;
      71                 :            : 
      72                 :            :         case RID_SVXPAGE_CHAR_EFFECTS:
      73                 :          0 :             aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
      74                 :          0 :             rPage.PageCreated(aSet);
      75                 :          0 :             break;
      76                 :            : 
      77                 :            :         default:
      78                 :          0 :         break;
      79                 :          0 :     }
      80                 :          0 : }
      81                 :            : 
      82                 :            : 
      83                 :            : 
      84                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10