LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/dlg - dlgchar.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 20 0.0 %
Date: 2012-12-27 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          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           0 :         rDocShell           ( *pDocShell )
      46             : {
      47           0 :     FreeResource();
      48             : 
      49           0 :     AddTabPage( RID_SVXPAGE_CHAR_NAME );
      50           0 :     AddTabPage( RID_SVXPAGE_CHAR_EFFECTS );
      51           0 :     AddTabPage( RID_SVXPAGE_CHAR_POSITION );
      52           0 : }
      53             : 
      54             : // -----------------------------------------------------------------------
      55             : 
      56           0 : void SdCharDlg::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             :             SvxFontListItem aItem(*( (const SvxFontListItem*)
      64           0 :                 ( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );
      65             : 
      66           0 :             aSet.Put (SvxFontListItem( aItem.GetFontList(), SID_ATTR_CHAR_FONTLIST));
      67           0 :             rPage.PageCreated(aSet);
      68             :         }
      69           0 :         break;
      70             : 
      71             :         case RID_SVXPAGE_CHAR_EFFECTS:
      72           0 :             aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
      73           0 :             rPage.PageCreated(aSet);
      74           0 :             break;
      75             : 
      76             :         default:
      77           0 :         break;
      78           0 :     }
      79           0 : }
      80             : 
      81             : 
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10