LCOV - code coverage report
Current view: top level - sc/source/ui/miscdlgs - textdlgs.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 33 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 6 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             : #undef SC_DLLIMPLEMENTATION
      21             : 
      22             : #include <svx/svxids.hrc>
      23             : 
      24             : #include <editeng/flstitem.hxx>
      25             : #include <sfx2/objsh.hxx>
      26             : #include <svl/cjkoptions.hxx>
      27             : 
      28             : #include "textdlgs.hxx"
      29             : #include "scresid.hxx"
      30             : #include "sc.hrc"
      31             : #include <svl/intitem.hxx>
      32             : #include <svx/flagsdef.hxx>
      33             : 
      34           0 : ScCharDlg::ScCharDlg( vcl::Window* pParent, const SfxItemSet* pAttr,
      35             :                     const SfxObjectShell* pDocShell )
      36             :     : SfxTabDialog(pParent, "CharDialog",
      37             :         "modules/scalc/ui/chardialog.ui", pAttr)
      38             :     , rDocShell(*pDocShell)
      39             :     , m_nNamePageId(0)
      40           0 :     , m_nEffectsPageId(0)
      41             : {
      42           0 :     m_nNamePageId = AddTabPage("font", RID_SVXPAGE_CHAR_NAME);
      43           0 :     m_nEffectsPageId = AddTabPage("fonteffects", RID_SVXPAGE_CHAR_EFFECTS);
      44           0 :     AddTabPage("position", RID_SVXPAGE_CHAR_POSITION);
      45           0 : }
      46             : 
      47           0 : void ScCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
      48             : {
      49           0 :     SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      50           0 :     if (nId == m_nNamePageId)
      51             :     {
      52             :         SvxFontListItem aItem(*static_cast<const SvxFontListItem*>(
      53           0 :             ( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );
      54             : 
      55           0 :         aSet.Put (SvxFontListItem( aItem.GetFontList(), SID_ATTR_CHAR_FONTLIST));
      56           0 :         rPage.PageCreated(aSet);
      57             :     }
      58           0 :     else if (nId == m_nEffectsPageId)
      59             :     {
      60           0 :         aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
      61           0 :         rPage.PageCreated(aSet);
      62           0 :     }
      63           0 : }
      64             : 
      65           0 : ScParagraphDlg::ScParagraphDlg(vcl::Window* pParent, const SfxItemSet* pAttr)
      66             :     : SfxTabDialog(pParent, "ParagraphDialog",
      67             :         "modules/scalc/ui/paradialog.ui", pAttr)
      68           0 :     , m_nTabPageId(0)
      69             : {
      70           0 :     AddTabPage("labelTP_PARA_STD", RID_SVXPAGE_STD_PARAGRAPH);
      71           0 :     AddTabPage("labelTP_PARA_ALIGN", RID_SVXPAGE_ALIGN_PARAGRAPH);
      72           0 :     SvtCJKOptions aCJKOptions;
      73           0 :     if (aCJKOptions.IsAsianTypographyEnabled() )
      74           0 :         AddTabPage("labelTP_PARA_ASIAN", RID_SVXPAGE_PARA_ASIAN);
      75             :     else
      76           0 :         RemoveTabPage("labelTP_PARA_ASIAN");
      77           0 :     m_nTabPageId = AddTabPage("labelTP_TABULATOR", RID_SVXPAGE_TABULATOR);
      78           0 : }
      79             : 
      80           0 : void ScParagraphDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
      81             : {
      82           0 :     if (nId == m_nTabPageId)
      83             :     {
      84           0 :         SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      85             :         aSet.Put(SfxUInt16Item(SID_SVXTABULATORTABPAGE_CONTROLFLAGS,
      86           0 :             (TABTYPE_ALL &~TABTYPE_LEFT) | (TABFILL_ALL &~TABFILL_NONE)));
      87           0 :         rPage.PageCreated(aSet);
      88             :     }
      89           0 : }
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11