LCOV - code coverage report
Current view: top level - sw/source/uibase/dialog - wordcountwrapper.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 17 11.8 %
Date: 2015-06-13 12:38:46 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        1296 : SFX_IMPL_CHILDWINDOW_WITHID(SwWordCountWrapper, FN_WORDCOUNT_DIALOG)
      17             : 
      18           0 : SwWordCountWrapper::SwWordCountWrapper(   vcl::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             :     assert(pFact && "SwAbstractDialogFactory fail!");
      26           0 :     pAbstDlg = pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow, pInfo);
      27             :     assert(pAbstDlg && "Dialog construction failed!");
      28           0 :     pWindow = pAbstDlg->GetWindow();
      29             : 
      30           0 :     eChildAlignment = SfxChildAlignment::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         177 : }
      48             : 
      49             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11