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
17 sal_uInt16 nId,
18 SfxBindings* pBindings,
19 SfxChildWinInfo* pInfo )
20 : SfxChildWindow(pParentWindow, nId)
21{
23 m_xAbstDlg.reset(pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow->GetFrameWeld(), pInfo));
24 SetController(m_xAbstDlg->GetController());
25}
26
28{
30}
31
33{
35 return aInfo;
36}
37
39{
40 m_xAbstDlg->UpdateCounts();
41}
42
43void SwWordCountWrapper::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
44{
45 m_xAbstDlg->SetCounts(rCurrCnt, rDocStat);
46}
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual SfxChildWinInfo GetInfo() const
static SwAbstractDialogFactory * Create()
Definition: swabstdlg.cxx:36
virtual VclPtr< AbstractSwWordCountFloatDlg > CreateSwWordCountDialog(SfxBindings *pBindings, SfxChildWindow *pChild, weld::Window *pParent, SfxChildWinInfo *pInfo)=0
VclPtr< AbstractSwWordCountFloatDlg > m_xAbstDlg
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
virtual ~SwWordCountWrapper() override
void disposeAndClear()
#define FN_WORDCOUNT_DIALOG
Definition: cmdid.h:610
SFX_IMPL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper, SID_SEARCH_RESULTS_DIALOG)