LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/dialog - wordcountwrapper.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 17 11.8 %
Date: 2012-12-27 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             :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4             :  *
       5             :  * The contents of this file are subject to the Mozilla Public License Version
       6             :  * 1.1 (the "License"); you may not use this file except in compliance with
       7             :  * the License. You may obtain a copy of the License at
       8             :  * http://www.mozilla.org/MPL/
       9             :  *
      10             :  * Software distributed under the License is distributed on an "AS IS" basis,
      11             :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12             :  * for the specific language governing rights and limitations under the
      13             :  * License.
      14             :  *
      15             :  * The Initial Developer of the Original Code is
      16             :  *       Matt Pratt <mattpratt.au@gmail.com>
      17             :  * Portions created by the Initial Developer are Copyright (C) 2011 the
      18             :  * Initial Developer. All Rights Reserved.
      19             :  *
      20             :  * Alternatively, the contents of this file may be used under the terms of
      21             :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      22             :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      23             :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      24             :  * instead of those above.
      25             :  */
      26             : 
      27             : #include <swtypes.hxx>
      28             : #include <wordcountdialog.hxx>
      29             : #include <docstat.hxx>
      30             : #include <dialog.hrc>
      31             : #include <cmdid.h>
      32             : 
      33          39 : SFX_IMPL_CHILDWINDOW_WITHID(SwWordCountWrapper, FN_WORDCOUNT_DIALOG)
      34             : 
      35           0 : SwWordCountWrapper::SwWordCountWrapper(   Window *pParentWindow,
      36             :                             sal_uInt16 nId,
      37             :                             SfxBindings* pBindings,
      38             :                             SfxChildWinInfo* pInfo ) :
      39           0 :         SfxChildWindow(pParentWindow, nId)
      40             : {
      41           0 :     SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
      42             :     OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
      43           0 :     pAbstDlg = pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow, pInfo);
      44             :     OSL_ENSURE(pAbstDlg, "Dialog construction failed!");
      45           0 :     pWindow = pAbstDlg->GetWindow();
      46             : 
      47           0 :     eChildAlignment = SFX_ALIGN_NOALIGNMENT;
      48           0 : }
      49             : 
      50           0 : SfxChildWinInfo SwWordCountWrapper::GetInfo() const
      51             : {
      52           0 :     SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
      53           0 :     return aInfo;
      54             : }
      55             : 
      56           0 : void SwWordCountWrapper::UpdateCounts()
      57             : {
      58           0 :     pAbstDlg->UpdateCounts();
      59           0 : }
      60             : 
      61           0 : void SwWordCountWrapper::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
      62             : {
      63           0 :     pAbstDlg->SetCounts(rCurrCnt, rDocStat);
      64          30 : }

Generated by: LCOV version 1.10