LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/dlg - dlgattr.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 24 0.0 %
Date: 2012-12-27 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             : #include "dlgattr.hxx"
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : 
      24             : #include <svx/numinf.hxx>
      25             : 
      26             : #include <svx/dialogs.hrc>
      27             : #include "dbu_dlg.hrc"
      28             : #include <svl/itemset.hxx>
      29             : #include <svl/zforlist.hxx>
      30             : #include <svx/svxids.hrc>
      31             : #include <svx/flagsdef.hxx>
      32             : #include <svl/intitem.hxx>
      33             : #include "moduledbu.hxx"
      34             : using namespace dbaui;
      35             : 
      36             : DBG_NAME(SbaSbAttrDlg)
      37             : //==================================================================
      38           0 : SbaSbAttrDlg::SbaSbAttrDlg(Window* pParent, const SfxItemSet* pCellAttrs, SvNumberFormatter* pFormatter, sal_uInt16 nFlags, sal_Bool bRow)
      39             :              : SfxTabDialog(pParent, ModuleRes( DLG_ATTR ), pCellAttrs )
      40           0 :              ,aTitle(ModuleRes(ST_ROW))
      41             : {
      42             :     DBG_CTOR(SbaSbAttrDlg,NULL);
      43             : 
      44           0 :     pNumberInfoItem = new SvxNumberInfoItem( pFormatter, 0 );
      45             : 
      46           0 :     if (bRow)
      47           0 :         SetText(aTitle);
      48           0 :     if( nFlags & TP_ATTR_CHAR )
      49             :     {
      50             :         OSL_FAIL( "found flag TP_ATTR_CHAR" );
      51             :     }
      52           0 :     if( nFlags & TP_ATTR_NUMBER )
      53           0 :         AddTabPage( RID_SVXPAGE_NUMBERFORMAT,String(ModuleRes(TP_ATTR_NUMBER)) );
      54           0 :     if( nFlags & TP_ATTR_ALIGN )
      55           0 :         AddTabPage( RID_SVXPAGE_ALIGNMENT,String(ModuleRes(TP_ATTR_ALIGN)) );
      56           0 :     FreeResource();
      57           0 : }
      58             : 
      59             : // -----------------------------------------------------------------------
      60           0 : SbaSbAttrDlg::~SbaSbAttrDlg()
      61             : {
      62           0 :     delete pNumberInfoItem;
      63             : 
      64             :     DBG_DTOR(SbaSbAttrDlg,NULL);
      65           0 : }
      66             : 
      67             : // -----------------------------------------------------------------------
      68           0 : void SbaSbAttrDlg::PageCreated( sal_uInt16 nPageId, SfxTabPage& rTabPage )
      69             : {
      70           0 :     SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
      71           0 :     switch ( nPageId )
      72             :     {
      73             :         case RID_SVXPAGE_NUMBERFORMAT:
      74             :         {
      75           0 :             aSet.Put (SvxNumberInfoItem( pNumberInfoItem->GetNumberFormatter(), (const sal_uInt16)SID_ATTR_NUMBERFORMAT_INFO));
      76           0 :             rTabPage.PageCreated(aSet);
      77             :         }
      78           0 :         break;
      79             : 
      80             :         default:
      81           0 :         break;
      82           0 :     }
      83           0 : }
      84             : 
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10