bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / wordcountdialog.hxx
blob56c2b09da253dd1df844efdae51eb30eb159ea36
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef SW_WORDCOUNTDIALOG_HXX
20 #define SW_WORDCOUNTDIALOG_HXX
21 #include <sfx2/basedlgs.hxx>
22 #include <svtools/stdctrl.hxx>
23 #include <vcl/layout.hxx>
24 #include <vcl/button.hxx>
25 struct SwDocStat;
26 #include <sfx2/childwin.hxx>
27 #include "swabstdlg.hxx"
29 class SwWordCountFloatDlg : public SfxModelessDialog
31 virtual void Activate();
32 void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc);
33 void showCJK(bool bShowCJK);
35 FixedText* m_pCurrentWordFT;
36 FixedText* m_pCurrentCharacterFT;
37 FixedText* m_pCurrentCharacterExcludingSpacesFT;
38 FixedText* m_pCurrentCjkcharsFT;
40 FixedText* m_pDocWordFT;
41 FixedText* m_pDocCharacterFT;
42 FixedText* m_pDocCharacterExcludingSpacesFT;
43 FixedText* m_pDocCjkcharsFT;
45 FixedText* m_pCjkcharsLabelFT;
47 CloseButton* m_pClosePB;
49 SW_DLLPRIVATE DECL_LINK( CloseHdl, void* );
50 public:
51 SwWordCountFloatDlg( SfxBindings* pBindings,
52 SfxChildWindow* pChild,
53 Window *pParent,
54 SfxChildWinInfo* pInfo);
55 ~SwWordCountFloatDlg();
56 void UpdateCounts();
58 void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
61 class SwWordCountWrapper : public SfxChildWindow
63 AbstractSwWordCountFloatDlg* pAbstDlg;
64 protected:
65 SwWordCountWrapper( Window *pParentWindow,
66 sal_uInt16 nId,
67 SfxBindings* pBindings,
68 SfxChildWinInfo* pInfo );
70 SFX_DECL_CHILDWINDOW_WITHID(SwWordCountWrapper);
72 public:
73 void UpdateCounts();
74 void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */