LCOV - code coverage report
Current view: top level - svx/source/form - fmtextcontroldialogs.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 30 0.0 %
Date: 2014-04-14 Functions: 0 5 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             : #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             :         : SfxTabDialog( pParent, "TextControlCharacterPropertiesDialog",
      43             :             "svx/ui/textcontrolchardialog.ui", &_rCoreSet )
      44             :         , m_aFontList(_rFontList)
      45             :         , m_nCharNamePageId(0)
      46             :         , m_nCharEffectsPageId(0)
      47           0 :         , m_nCharPositionPageId(0)
      48             :     {
      49           0 :         m_nCharNamePageId = AddTabPage("font", RID_SVXPAGE_CHAR_NAME);
      50           0 :         m_nCharEffectsPageId = AddTabPage("fonteffects", RID_SVXPAGE_CHAR_EFFECTS);
      51           0 :         m_nCharPositionPageId = AddTabPage("position", RID_SVXPAGE_CHAR_POSITION);
      52           0 :     }
      53             : 
      54           0 :     void TextControlCharAttribDialog::PageCreated( sal_uInt16 _nId, SfxTabPage& _rPage )
      55             :     {
      56           0 :         SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      57             : 
      58           0 :         if (_nId == m_nCharNamePageId)
      59             :         {
      60           0 :             aSet.Put (m_aFontList);
      61           0 :             _rPage.PageCreated(aSet);
      62             :         }
      63           0 :         else if (_nId == m_nCharEffectsPageId)
      64             :         {
      65           0 :             aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
      66           0 :             _rPage.PageCreated(aSet);
      67             :         }
      68           0 :         else if (_nId == m_nCharPositionPageId)
      69             :         {
      70           0 :             aSet.Put( SfxUInt32Item(SID_FLAG_TYPE, SVX_PREVIEW_CHARACTER) );
      71           0 :             _rPage.PageCreated(aSet);
      72           0 :         }
      73           0 :     }
      74             : 
      75           0 :     TextControlParaAttribDialog::TextControlParaAttribDialog(Window* _pParent,
      76             :         const SfxItemSet& _rCoreSet)
      77             :         : SfxTabDialog( _pParent, "TextControlParagraphPropertiesDialog",
      78           0 :             "svx/ui/textcontrolparadialog.ui", &_rCoreSet )
      79             :     {
      80           0 :         AddTabPage("labelTP_PARA_STD", RID_SVXPAGE_STD_PARAGRAPH);
      81           0 :         AddTabPage("labelTP_PARA_ALIGN", RID_SVXPAGE_ALIGN_PARAGRAPH);
      82             : 
      83           0 :         SvtCJKOptions aCJKOptions;
      84           0 :         if( aCJKOptions.IsAsianTypographyEnabled() )
      85           0 :             AddTabPage("labelTP_PARA_ASIAN", RID_SVXPAGE_PARA_ASIAN);
      86             :         else
      87           0 :             RemoveTabPage("labelTP_PARA_ASIAN");
      88             : 
      89           0 :         AddTabPage("labelTP_TABULATOR", RID_SVXPAGE_TABULATOR);
      90           0 :     }
      91             : 
      92           0 : }   // namespace svx
      93             : 
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10