LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/source/ui/dialog - wordcountwrapper.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 17 11.8 %
Date: 2013-07-09 Functions: 4 9 44.4 %
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             : 
      10             : #include <swtypes.hxx>
      11             : #include <wordcountdialog.hxx>
      12             : #include <docstat.hxx>
      13             : #include <dialog.hrc>
      14             : #include <cmdid.h>
      15             : 
      16         779 : SFX_IMPL_CHILDWINDOW_WITHID(SwWordCountWrapper, FN_WORDCOUNT_DIALOG)
      17             : 
      18           0 : SwWordCountWrapper::SwWordCountWrapper(   Window *pParentWindow,
      19             :                             sal_uInt16 nId,
      20             :                             SfxBindings* pBindings,
      21             :                             SfxChildWinInfo* pInfo ) :
      22           0 :         SfxChildWindow(pParentWindow, nId)
      23             : {
      24           0 :     SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
      25             :     OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
      26           0 :     pAbstDlg = pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow, pInfo);
      27             :     OSL_ENSURE(pAbstDlg, "Dialog construction failed!");
      28           0 :     pWindow = pAbstDlg->GetWindow();
      29             : 
      30           0 :     eChildAlignment = SFX_ALIGN_NOALIGNMENT;
      31           0 : }
      32             : 
      33           0 : SfxChildWinInfo SwWordCountWrapper::GetInfo() const
      34             : {
      35           0 :     SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
      36           0 :     return aInfo;
      37             : }
      38             : 
      39           0 : void SwWordCountWrapper::UpdateCounts()
      40             : {
      41           0 :     pAbstDlg->UpdateCounts();
      42           0 : }
      43             : 
      44           0 : void SwWordCountWrapper::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
      45             : {
      46           0 :     pAbstDlg->SetCounts(rCurrCnt, rDocStat);
      47          99 : }

Generated by: LCOV version 1.10