Revert "tdf#158280 Replace usage of InputDialog with SvxNameDialog"
[LibreOffice.git] / sw / source / uibase / inc / wordcountctrl.hxx
blob8074253b3645e8a0581ec8f17a1a5f7c788143bf
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_WORDCOUNTCTRL_HXX
11 #define INCLUDED_SW_SOURCE_UIBASE_INC_WORDCOUNTCTRL_HXX
13 #include <sfx2/stbitem.hxx>
15 /**
16 Word count status bar control for Writer.
18 @remarks This is a simple status bar control of type SfxStringItem, and it has no custom
19 logic whatsoever. The actual updating of the word count string happens in
20 SwView::StateStatusLine (see sw/source/ui/uiview/view2.cxx).
22 class SwWordCountStatusBarControl final : public SfxStatusBarControl
24 public:
25 SFX_DECL_STATUSBAR_CONTROL();
27 SwWordCountStatusBarControl(sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb);
28 virtual ~SwWordCountStatusBarControl() override;
30 virtual void StateChangedAtStatusBarControl(sal_uInt16 nSID, SfxItemState eState,
31 const SfxPoolItem* pState) override;
34 #endif
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */