LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/ui/docshell - tpstat.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 22 0.0 %
Date: 2013-07-09 Functions: 0 8 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             : 
      21             : #undef SC_DLLIMPLEMENTATION
      22             : 
      23             : 
      24             : 
      25             : #include "document.hxx"
      26             : #include "docsh.hxx"
      27             : #include "scresid.hxx"
      28             : #include "tpstat.hrc"
      29             : 
      30             : #include "tpstat.hxx"
      31             : 
      32             : 
      33             : //========================================================================
      34             : // Dokumentinfo-Tabpage:
      35             : //========================================================================
      36             : 
      37           0 : SfxTabPage* ScDocStatPage::Create( Window *pParent, const SfxItemSet& rSet )
      38             : {
      39           0 :     return new ScDocStatPage( pParent, rSet );
      40             : }
      41             : 
      42             : //------------------------------------------------------------------------
      43             : 
      44           0 : ScDocStatPage::ScDocStatPage( Window *pParent, const SfxItemSet& rSet )
      45             :     :   SfxTabPage( pParent, ScResId(RID_SCPAGE_STAT), rSet ),
      46             :         aFlInfo         ( this, ScResId( FL_INFO ) ),
      47             :         aFtTablesLbl    ( this, ScResId( FT_TABLES_LBL ) ),
      48             :         aFtTables       ( this, ScResId( FT_TABLES ) ),
      49             :         aFtCellsLbl     ( this, ScResId( FT_CELLS_LBL ) ),
      50             :         aFtCells        ( this, ScResId( FT_CELLS ) ),
      51             :         aFtPagesLbl     ( this, ScResId( FT_PAGES_LBL ) ),
      52           0 :         aFtPages        ( this, ScResId( FT_PAGES ) )
      53             : {
      54           0 :     ScDocShell* pDocSh = PTR_CAST( ScDocShell, SfxObjectShell::Current() );
      55           0 :     ScDocStat   aDocStat;
      56             : 
      57           0 :     if ( pDocSh )
      58           0 :         pDocSh->GetDocStat( aDocStat );
      59             : 
      60           0 :     String aInfo = aFlInfo.GetText();
      61           0 :     aInfo += aDocStat.aDocName;
      62           0 :     aFlInfo     .SetText( aInfo );
      63           0 :     aFtTables   .SetText( OUString::number( aDocStat.nTableCount ) );
      64           0 :     aFtCells    .SetText( OUString::number( aDocStat.nCellCount ) );
      65           0 :     aFtPages    .SetText( OUString::number( aDocStat.nPageCount ) );
      66             : 
      67           0 :     FreeResource();
      68           0 : }
      69             : 
      70             : //------------------------------------------------------------------------
      71             : 
      72           0 : ScDocStatPage::~ScDocStatPage()
      73             : {
      74           0 : }
      75             : 
      76             : //------------------------------------------------------------------------
      77             : 
      78           0 : sal_Bool ScDocStatPage::FillItemSet( SfxItemSet& /* rSet */ )
      79             : {
      80           0 :     return false;
      81             : }
      82             : 
      83             : //------------------------------------------------------------------------
      84             : 
      85           0 : void ScDocStatPage::Reset( const SfxItemSet& /* rSet */ )
      86             : {
      87           0 : }
      88             : 
      89             : 
      90             : 
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10