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>
22struct 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 std::unique_ptr<weld::Label> m_xDocComments;
47
48public:
50 SfxChildWindow* pChild,
51 weld::Window *pParent,
52 SfxChildWinInfo const * pInfo);
53 virtual ~SwWordCountFloatDlg() override;
54 void UpdateCounts();
55
56 void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
57};
58
60{
62
63public:
64 SwWordCountWrapper( vcl::Window *pParentWindow,
65 sal_uInt16 nId,
66 SfxBindings* pBindings,
67 SfxChildWinInfo* pInfo );
69
70 virtual ~SwWordCountWrapper() override;
71 void UpdateCounts();
72 void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
73};
74
75#endif
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetValues(const SwDocStat &rCurrent, const SwDocStat &rDoc)
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
std::unique_ptr< weld::Label > m_xDocComments
std::unique_ptr< weld::Label > m_xCjkcharsLabelFT
std::unique_ptr< weld::Label > m_xDocCjkcharsFT
std::unique_ptr< weld::Label > m_xDocCharacterFT
std::unique_ptr< weld::Label > m_xCjkcharsLabelFT2
std::unique_ptr< weld::Label > m_xDocCharacterExcludingSpacesFT
std::unique_ptr< weld::Label > m_xCurrentCjkcharsFT
std::unique_ptr< weld::Label > m_xCurrentStandardizedPagesFT
std::unique_ptr< weld::Label > m_xDocStandardizedPagesFT
std::unique_ptr< weld::Label > m_xDocWordFT
std::unique_ptr< weld::Label > m_xCurrentCharacterFT
virtual ~SwWordCountFloatDlg() override
std::unique_ptr< weld::Label > m_xCurrentWordFT
SwWordCountFloatDlg(SfxBindings *pBindings, SfxChildWindow *pChild, weld::Window *pParent, SfxChildWinInfo const *pInfo)
std::unique_ptr< weld::Label > m_xStandardizedPagesLabelFT2
void showCJK(bool bShowCJK)
void showStandardizedPages(bool bShowStandardizedPages)
std::unique_ptr< weld::Label > m_xCurrentCharacterExcludingSpacesFT
std::unique_ptr< weld::Label > m_xStandardizedPagesLabelFT
VclPtr< AbstractSwWordCountFloatDlg > m_xAbstDlg
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
SwWordCountWrapper(vcl::Window *pParentWindow, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
virtual ~SwWordCountWrapper() override
SFX_DECL_CHILDWINDOW_WITHID(SwWordCountWrapper)