LibreOffice Module sw (master)  1
wordcountdialog.hxx
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  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_WORDCOUNTDIALOG_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_WORDCOUNTDIALOG_HXX
21 #include <sfx2/basedlgs.hxx>
22 struct SwDocStat;
23 #include <sfx2/childwin.hxx>
24 #include <swabstdlg.hxx>
25 
27 {
28  void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc);
29  void showCJK(bool bShowCJK);
30  void showStandardizedPages(bool bShowStandardizedPages);
31 
32  std::unique_ptr<weld::Label> m_xCurrentWordFT;
33  std::unique_ptr<weld::Label> m_xCurrentCharacterFT;
34  std::unique_ptr<weld::Label> m_xCurrentCharacterExcludingSpacesFT;
35  std::unique_ptr<weld::Label> m_xCurrentCjkcharsFT;
36  std::unique_ptr<weld::Label> m_xCurrentStandardizedPagesFT;
37  std::unique_ptr<weld::Label> m_xDocWordFT;
38  std::unique_ptr<weld::Label> m_xDocCharacterFT;
39  std::unique_ptr<weld::Label> m_xDocCharacterExcludingSpacesFT;
40  std::unique_ptr<weld::Label> m_xDocCjkcharsFT;
41  std::unique_ptr<weld::Label> m_xDocStandardizedPagesFT;
42  std::unique_ptr<weld::Label> m_xCjkcharsLabelFT;
43  std::unique_ptr<weld::Label> m_xStandardizedPagesLabelFT;
44 
45 public:
47  SfxChildWindow* pChild,
48  weld::Window *pParent,
49  SfxChildWinInfo const * pInfo);
50  virtual ~SwWordCountFloatDlg() override;
51  void UpdateCounts();
52 
53  void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
54 };
55 
56 class SwWordCountWrapper final : public SfxChildWindow
57 {
59 
60 public:
61  SwWordCountWrapper( vcl::Window *pParentWindow,
62  sal_uInt16 nId,
63  SfxBindings* pBindings,
64  SfxChildWinInfo* pInfo );
66 
67  virtual ~SwWordCountWrapper() override;
68  void UpdateCounts();
69  void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
70 };
71 
72 #endif
73 
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SFX_DECL_CHILDWINDOW_WITHID(SwWordCountWrapper)
void showStandardizedPages(bool bShowStandardizedPages)
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
std::unique_ptr< weld::Label > m_xDocCharacterExcludingSpacesFT
std::unique_ptr< weld::Label > m_xCurrentWordFT
std::unique_ptr< weld::Label > m_xDocCjkcharsFT
SwWordCountFloatDlg(SfxBindings *pBindings, SfxChildWindow *pChild, weld::Window *pParent, SfxChildWinInfo const *pInfo)
std::unique_ptr< weld::Label > m_xCurrentStandardizedPagesFT
std::unique_ptr< weld::Label > m_xStandardizedPagesLabelFT
void SetValues(const SwDocStat &rCurrent, const SwDocStat &rDoc)
SwWordCountWrapper(vcl::Window *pParentWindow, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
std::unique_ptr< weld::Label > m_xCurrentCjkcharsFT
virtual ~SwWordCountWrapper() override
std::unique_ptr< weld::Label > m_xDocStandardizedPagesFT
std::unique_ptr< weld::Label > m_xCurrentCharacterFT
virtual ~SwWordCountFloatDlg() override
std::unique_ptr< weld::Label > m_xDocWordFT
std::unique_ptr< weld::Label > m_xCjkcharsLabelFT
std::unique_ptr< weld::Label > m_xDocCharacterFT
void showCJK(bool bShowCJK)
std::unique_ptr< weld::Label > m_xCurrentCharacterExcludingSpacesFT
VclPtr< AbstractSwWordCountFloatDlg > xAbstDlg