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 <swtypes.hxx>
11 #include <wordcountdialog.hxx>
12 #include <docstat.hxx>
13 #include <cmdid.h>
14 
16 
17 SwWordCountWrapper::SwWordCountWrapper(vcl::Window *pParentWindow,
18  sal_uInt16 nId,
19  SfxBindings* pBindings,
20  SfxChildWinInfo* pInfo )
21  : SfxChildWindow(pParentWindow, nId)
22 {
24  xAbstDlg.reset(pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow->GetFrameWeld(), pInfo));
25  SetController(xAbstDlg->GetController());
26 }
27 
29 {
31 }
32 
34 {
36  return aInfo;
37 }
38 
40 {
42 }
43 
44 void SwWordCountWrapper::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
45 {
46  xAbstDlg->SetCounts(rCurrCnt, rDocStat);
47 }
48 
49 /* 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:574
virtual void UpdateCounts()=0
virtual ~SwWordCountWrapper() override
virtual SfxChildWinInfo GetInfo() const
VclPtr< AbstractSwWordCountFloatDlg > xAbstDlg