LibreOffice Module sw (master)  1
wordcountwrapper.cxx
Go to the documentation of this file.
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 <wordcountdialog.hxx>
11 #include <docstat.hxx>
12 #include <cmdid.h>
13 
15 
16 SwWordCountWrapper::SwWordCountWrapper(vcl::Window *pParentWindow,
17  sal_uInt16 nId,
18  SfxBindings* pBindings,
19  SfxChildWinInfo* pInfo )
20  : SfxChildWindow(pParentWindow, nId)
21 {
23  xAbstDlg.reset(pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow->GetFrameWeld(), pInfo));
24  SetController(xAbstDlg->GetController());
25 }
26 
28 {
30 }
31 
33 {
35  return aInfo;
36 }
37 
39 {
41 }
42 
43 void SwWordCountWrapper::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
44 {
45  xAbstDlg->SetCounts(rCurrCnt, rDocStat);
46 }
47 
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
void disposeAndClear()
virtual void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)=0
virtual VclPtr< AbstractSwWordCountFloatDlg > CreateSwWordCountDialog(SfxBindings *pBindings, SfxChildWindow *pChild, weld::Window *pParent, SfxChildWinInfo *pInfo)=0
SFX_IMPL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper, SID_SEARCH_RESULTS_DIALOG)
static SwAbstractDialogFactory * Create()
Definition: swabstdlg.cxx:36
#define FN_WORDCOUNT_DIALOG
Definition: cmdid.h:590
virtual void UpdateCounts()=0
virtual ~SwWordCountWrapper() override
virtual SfxChildWinInfo GetInfo() const
VclPtr< AbstractSwWordCountFloatDlg > xAbstDlg