LibreOffice Module sw (master)  1
docstdlg.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_DOCSTDLG_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_DOCSTDLG_HXX
21 
22 #include <sfx2/tabdlg.hxx>
23 #include <docstat.hxx>
24 
25 // DocInfo now as page
26 class SwDocStatPage final : public SfxTabPage
27 {
28 public:
29  SwDocStatPage(TabPageParent pParent, const SfxItemSet &rSet);
30  virtual ~SwDocStatPage() override;
31 
32  static VclPtr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet *rSet);
33 
34 private:
35  virtual bool FillItemSet( SfxItemSet *rSet) override;
36  virtual void Reset (const SfxItemSet *rSet) override;
37 
38  DECL_LINK(UpdateHdl, weld::Button&, void);
39 
40  std::unique_ptr<weld::Label> m_xPageNo;
41  std::unique_ptr<weld::Label> m_xTableNo;
42  std::unique_ptr<weld::Label> m_xGrfNo;
43  std::unique_ptr<weld::Label> m_xOLENo;
44  std::unique_ptr<weld::Label> m_xParaNo;
45  std::unique_ptr<weld::Label> m_xWordNo;
46  std::unique_ptr<weld::Label> m_xCharNo;
47  std::unique_ptr<weld::Label> m_xCharExclSpacesNo;
48  std::unique_ptr<weld::Label> m_xLineLbl;
49  std::unique_ptr<weld::Label> m_xLineNo;
50  std::unique_ptr<weld::Button> m_xUpdatePB;
51 
53 
54  void Update();
55 
56  void SetData(const SwDocStat &rStat);
57 };
58 
59 #endif
60 
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetData(const SwDocStat &rStat)
Definition: docstdlg.cxx:84
std::unique_ptr< weld::Label > m_xCharExclSpacesNo
Definition: docstdlg.hxx:47
SwDocStatPage(TabPageParent pParent, const SfxItemSet &rSet)
Definition: docstdlg.cxx:42
std::unique_ptr< weld::Label > m_xLineNo
Definition: docstdlg.hxx:49
std::unique_ptr< weld::Label > m_xWordNo
Definition: docstdlg.hxx:45
std::unique_ptr< weld::Label > m_xCharNo
Definition: docstdlg.hxx:46
virtual ~SwDocStatPage() override
Definition: docstdlg.cxx:69
SwDocStat aDocStat
Definition: docstdlg.hxx:52
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rSet)
Definition: docstdlg.cxx:37
std::unique_ptr< weld::Label > m_xOLENo
Definition: docstdlg.hxx:43
std::unique_ptr< weld::Label > m_xPageNo
Definition: docstdlg.hxx:40
std::unique_ptr< weld::Label > m_xGrfNo
Definition: docstdlg.hxx:42
std::unique_ptr< weld::Button > m_xUpdatePB
Definition: docstdlg.hxx:50
std::unique_ptr< weld::Label > m_xLineLbl
Definition: docstdlg.hxx:48
std::unique_ptr< weld::Label > m_xParaNo
Definition: docstdlg.hxx:44
std::unique_ptr< weld::Label > m_xTableNo
Definition: docstdlg.hxx:41
virtual void Reset(const SfxItemSet *rSet) override
Definition: docstdlg.cxx:79
void Update()
Definition: docstdlg.cxx:98
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: docstdlg.cxx:74
DECL_LINK(UpdateHdl, weld::Button &, void)