LCOV - code coverage report
Current view: top level - cui/source/dialogs - sdrcelldlg.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 26 0.0 %
Date: 2014-11-03 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 <svl/cjkoptions.hxx>
      21             : #include <svx/flagsdef.hxx>
      22             : #include "cuires.hrc"
      23             : #include "sdrcelldlg.hxx"
      24             : #include "dialmgr.hxx"
      25             : #include "cuitabarea.hxx"
      26             : #include "svx/svdmodel.hxx"
      27             : #include "border.hxx"
      28             : #include <svx/dialogs.hrc>
      29             : 
      30           0 : SvxFormatCellsDialog::SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel )
      31             :     : SfxTabDialog(pParent, "FormatCellsDialog", "cui/ui/formatcellsdialog.ui", pAttr)
      32             :     , mrOutAttrs(*pAttr)
      33             :     , mpColorTab(pModel->GetColorList())
      34             :     , mpGradientList(pModel->GetGradientList())
      35             :     , mpHatchingList(pModel->GetHatchList())
      36             :     , mpBitmapList(pModel->GetBitmapList())
      37           0 :     , m_nAreaPageId(0)
      38             : {
      39           0 :     AddTabPage("name", RID_SVXPAGE_CHAR_NAME);
      40           0 :     AddTabPage("effects", RID_SVXPAGE_CHAR_EFFECTS);
      41           0 :     m_nBorderPageId = AddTabPage("border", RID_SVXPAGE_BORDER );
      42           0 :     m_nAreaPageId = AddTabPage("area", RID_SVXPAGE_AREA);
      43           0 : }
      44             : 
      45           0 : void SvxFormatCellsDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
      46             : {
      47           0 :     if (nId == m_nAreaPageId)
      48             :     {
      49           0 :         SvxAreaTabPage& rAreaPage = static_cast<SvxAreaTabPage&>(rPage);
      50           0 :         rAreaPage.SetColorList( mpColorTab );
      51           0 :         rAreaPage.SetGradientList( mpGradientList );
      52           0 :         rAreaPage.SetHatchingList( mpHatchingList );
      53           0 :         rAreaPage.SetBitmapList( mpBitmapList );
      54           0 :         rAreaPage.SetPageType( PT_AREA );
      55           0 :         rAreaPage.SetDlgType( 1 );
      56           0 :         rAreaPage.SetPos( 0 );
      57           0 :         rAreaPage.Construct();
      58           0 :         rAreaPage.ActivatePage( mrOutAttrs );
      59             :     }
      60           0 :     else if (nId == m_nBorderPageId)
      61             :     {
      62           0 :         SvxBorderTabPage& rBorderPage = static_cast<SvxBorderTabPage&>(rPage);
      63           0 :         rBorderPage.SetTableMode();
      64             :     }
      65             :     else
      66           0 :         SfxTabDialog::PageCreated( nId, rPage );
      67           0 : }
      68             : 
      69           0 : void SvxFormatCellsDialog::Apply()
      70             : {
      71           0 : }
      72             : 
      73             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10