LCOV - code coverage report
Current view: top level - sc/source/ui/miscdlgs - textdlgs.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 38 0.0 %
Date: 2012-08-25 Functions: 0 4 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                 :            :  *
       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                 :            : 
      29                 :            : #undef SC_DLLIMPLEMENTATION
      30                 :            : 
      31                 :            : #include <svx/svxids.hrc>
      32                 :            : 
      33                 :            : #include <editeng/flstitem.hxx>
      34                 :            : #include <sfx2/objsh.hxx>
      35                 :            : #include <svl/cjkoptions.hxx>
      36                 :            : 
      37                 :            : #include "textdlgs.hxx"
      38                 :            : #include "scresid.hxx"
      39                 :            : #include "sc.hrc"
      40                 :            : #include <svl/intitem.hxx>
      41                 :            : #include <svx/flagsdef.hxx>
      42                 :            : // -----------------------------------------------------------------------
      43                 :            : 
      44                 :          0 : ScCharDlg::ScCharDlg( Window* pParent, const SfxItemSet* pAttr,
      45                 :            :                     const SfxObjectShell* pDocShell ) :
      46                 :            :         SfxTabDialog        ( pParent, ScResId( RID_SCDLG_CHAR ), pAttr ),
      47                 :            :         rOutAttrs           ( *pAttr ),
      48                 :          0 :         rDocShell           ( *pDocShell )
      49                 :            : {
      50                 :          0 :     FreeResource();
      51                 :            : 
      52                 :          0 :     AddTabPage( RID_SVXPAGE_CHAR_NAME );
      53                 :          0 :     AddTabPage( RID_SVXPAGE_CHAR_EFFECTS );
      54                 :          0 :     AddTabPage( RID_SVXPAGE_CHAR_POSITION );
      55                 :          0 : }
      56                 :            : 
      57                 :            : // -----------------------------------------------------------------------
      58                 :            : 
      59                 :          0 : void ScCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
      60                 :            : {
      61                 :          0 :     SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      62                 :          0 :     switch( nId )
      63                 :            :     {
      64                 :            :         case RID_SVXPAGE_CHAR_NAME:
      65                 :            :         {
      66                 :            :             SvxFontListItem aItem(*( (const SvxFontListItem*)
      67                 :          0 :                 ( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );
      68                 :            : 
      69                 :          0 :             aSet.Put (SvxFontListItem( aItem.GetFontList(), SID_ATTR_CHAR_FONTLIST));
      70                 :          0 :             rPage.PageCreated(aSet);
      71                 :            :         }
      72                 :          0 :         break;
      73                 :            : 
      74                 :            :         case RID_SVXPAGE_CHAR_EFFECTS:
      75                 :          0 :             aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
      76                 :          0 :             rPage.PageCreated(aSet);
      77                 :          0 :             break;
      78                 :            : 
      79                 :            :         default:
      80                 :          0 :         break;
      81                 :          0 :     }
      82                 :          0 : }
      83                 :            : 
      84                 :            : // -----------------------------------------------------------------------
      85                 :            : 
      86                 :          0 : ScParagraphDlg::ScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ) :
      87                 :            :         SfxTabDialog        ( pParent, ScResId( RID_SCDLG_PARAGRAPH ), pAttr ),
      88                 :          0 :         rOutAttrs           ( *pAttr )
      89                 :            : {
      90                 :          0 :     FreeResource();
      91                 :            : 
      92                 :          0 :     SvtCJKOptions aCJKOptions;
      93                 :            : 
      94                 :          0 :     AddTabPage( RID_SVXPAGE_STD_PARAGRAPH );
      95                 :          0 :     AddTabPage( RID_SVXPAGE_ALIGN_PARAGRAPH );
      96                 :          0 :     if ( aCJKOptions.IsAsianTypographyEnabled() )
      97                 :          0 :         AddTabPage( RID_SVXPAGE_PARA_ASIAN);
      98                 :            :     else
      99                 :          0 :         RemoveTabPage( RID_SVXPAGE_PARA_ASIAN );
     100                 :          0 :     AddTabPage( RID_SVXPAGE_TABULATOR );
     101                 :          0 : }
     102                 :            : 
     103                 :            : // -----------------------------------------------------------------------
     104                 :            : 
     105                 :          0 : void ScParagraphDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
     106                 :            : {
     107                 :          0 :     switch( nId )
     108                 :            :     {
     109                 :            :         case RID_SVXPAGE_TABULATOR:
     110                 :            :             {
     111                 :          0 :             SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
     112                 :            :             aSet.Put(SfxUInt16Item(SID_SVXTABULATORTABPAGE_CONTROLFLAGS,(TABTYPE_ALL &~TABTYPE_LEFT) |
     113                 :          0 :                                 (TABFILL_ALL &~TABFILL_NONE) ));
     114                 :          0 :             rPage.PageCreated(aSet);
     115                 :            :             }
     116                 :          0 :         break;
     117                 :            :     }
     118                 :          0 : }
     119                 :            : 
     120                 :            : 
     121                 :            : 
     122                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10