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

Generated by: LCOV version 1.10