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_xCjkcharsLabelFT2;
44  std::unique_ptr<weld::Label> m_xStandardizedPagesLabelFT;
45  std::unique_ptr<weld::Label> m_xStandardizedPagesLabelFT2;
46 
47 public:
49  SfxChildWindow* pChild,
50  weld::Window *pParent,
51  SfxChildWinInfo const * pInfo);
52  virtual ~SwWordCountFloatDlg() override;
53  void UpdateCounts();
54 
55  void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
56 };
57 
58 class SwWordCountWrapper final : public SfxChildWindow
59 {
61 
62 public:
63  SwWordCountWrapper( vcl::Window *pParentWindow,
64  sal_uInt16 nId,
65  SfxBindings* pBindings,
66  SfxChildWinInfo* pInfo );
68 
69  virtual ~SwWordCountWrapper() override;
70  void UpdateCounts();
71  void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
72 };
73 
74 #endif
75 
76 /* 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)
std::unique_ptr< weld::Label > m_xStandardizedPagesLabelFT2
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_xCjkcharsLabelFT2
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