LCOV - code coverage report
Current view: top level - libreoffice/svx/source/form - fmtextcontroldialogs.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 38 2.6 %
Date: 2012-12-27 Functions: 2 9 22.2 %
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             : #include "fmtextcontroldialogs.hxx"
      21             : #include <svx/dialmgr.hxx>
      22             : #include <svx/dialogs.hrc>
      23             : 
      24             : #include <editeng/eeitem.hxx>
      25             : 
      26             : #include "svx/flagsdef.hxx"
      27             : #include <svl/intitem.hxx>
      28             : 
      29             : #include <com/sun/star/uno/Sequence.hxx>
      30             : #include <svl/cjkoptions.hxx>
      31             : 
      32             : //........................................................................
      33             : namespace svx
      34             : {
      35             : //........................................................................
      36             : 
      37             :     //====================================================================
      38             :     //= TextControlCharAttribDialog
      39             :     //====================================================================
      40             :     //--------------------------------------------------------------------
      41           0 :     TextControlCharAttribDialog::TextControlCharAttribDialog( Window* pParent, const SfxItemSet& _rCoreSet, const SvxFontListItem& _rFontList )
      42           0 :         :SfxTabDialog( pParent, SVX_RES( RID_SVXDLG_TEXTCONTROL_CHARATTR ), &_rCoreSet )
      43           0 :         ,m_aFontList( _rFontList )
      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             :     //--------------------------------------------------------------------
      53           0 :     TextControlCharAttribDialog::~TextControlCharAttribDialog()
      54             :     {
      55           0 :     }
      56             : 
      57             :     //--------------------------------------------------------------------
      58           0 :     void TextControlCharAttribDialog::PageCreated( sal_uInt16 _nId, SfxTabPage& _rPage )
      59             :     {
      60           0 :         SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      61             : 
      62           0 :         switch( _nId )
      63             :         {
      64             :             case RID_SVXPAGE_CHAR_NAME:
      65           0 :                 aSet.Put (m_aFontList);
      66           0 :                 _rPage.PageCreated(aSet);
      67           0 :                 break;
      68             : 
      69             :             case RID_SVXPAGE_CHAR_EFFECTS:
      70           0 :                 aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
      71           0 :                 _rPage.PageCreated(aSet);
      72           0 :                 break;
      73             : 
      74             :             case RID_SVXPAGE_CHAR_POSITION:
      75           0 :                 aSet.Put( SfxUInt32Item(SID_FLAG_TYPE, SVX_PREVIEW_CHARACTER) );
      76           0 :                 _rPage.PageCreated(aSet);
      77           0 :                 break;
      78           0 :         }
      79           0 :     }
      80             : 
      81             :     //====================================================================
      82             :     //= TextControlParaAttribDialog
      83             :     //====================================================================
      84             :     //--------------------------------------------------------------------
      85           0 :     TextControlParaAttribDialog::TextControlParaAttribDialog( Window* _pParent, const SfxItemSet& _rCoreSet )
      86           0 :         :SfxTabDialog( _pParent, SVX_RES( RID_SVXDLG_TEXTCONTROL_PARAATTR ), &_rCoreSet )
      87             :     {
      88           0 :         FreeResource();
      89             : 
      90           0 :         AddTabPage( RID_SVXPAGE_STD_PARAGRAPH );
      91           0 :         AddTabPage( RID_SVXPAGE_ALIGN_PARAGRAPH );
      92             : 
      93           0 :         SvtCJKOptions aCJKOptions;
      94           0 :         if( aCJKOptions.IsAsianTypographyEnabled() )
      95           0 :             AddTabPage( RID_SVXPAGE_PARA_ASIAN );
      96             :         else
      97           0 :             RemoveTabPage( RID_SVXPAGE_PARA_ASIAN );
      98             : 
      99           0 :         AddTabPage( RID_SVXPAGE_TABULATOR );
     100           0 :     }
     101             : 
     102             :     //--------------------------------------------------------------------
     103           0 :     TextControlParaAttribDialog::~TextControlParaAttribDialog()
     104             :     {
     105           0 :     }
     106             : 
     107             : //........................................................................
     108          63 : }   // namespace svx
     109             : //........................................................................
     110             : 
     111             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10