2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UI_INC_WORDCOUNTDIALOG_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UI_INC_WORDCOUNTDIALOG_HXX
|
2004-04-27 12:44:33 +00:00
|
|
|
#include <sfx2/basedlgs.hxx>
|
|
|
|
#include <svtools/stdctrl.hxx>
|
2011-11-09 22:58:42 +00:00
|
|
|
#include <vcl/layout.hxx>
|
2004-04-27 12:44:33 +00:00
|
|
|
#include <vcl/button.hxx>
|
|
|
|
struct SwDocStat;
|
2011-11-01 22:47:33 -06:00
|
|
|
#include <sfx2/childwin.hxx>
|
|
|
|
#include "swabstdlg.hxx"
|
|
|
|
|
2012-08-29 22:17:19 +01:00
|
|
|
class SwWordCountFloatDlg : public SfxModelessDialog
|
2004-04-27 12:44:33 +00:00
|
|
|
{
|
2012-08-29 22:17:19 +01:00
|
|
|
virtual void Activate();
|
2012-11-21 09:20:12 +00:00
|
|
|
void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc);
|
|
|
|
void showCJK(bool bShowCJK);
|
2011-11-01 22:47:33 -06:00
|
|
|
|
2012-08-29 22:17:19 +01:00
|
|
|
FixedText* m_pCurrentWordFT;
|
|
|
|
FixedText* m_pCurrentCharacterFT;
|
|
|
|
FixedText* m_pCurrentCharacterExcludingSpacesFT;
|
2012-11-14 15:25:02 +00:00
|
|
|
FixedText* m_pCurrentCjkcharsFT;
|
|
|
|
|
2012-08-29 22:17:19 +01:00
|
|
|
FixedText* m_pDocWordFT;
|
|
|
|
FixedText* m_pDocCharacterFT;
|
|
|
|
FixedText* m_pDocCharacterExcludingSpacesFT;
|
2012-11-14 15:25:02 +00:00
|
|
|
FixedText* m_pDocCjkcharsFT;
|
|
|
|
|
|
|
|
FixedText* m_pCjkcharsLabelFT;
|
|
|
|
|
2013-01-07 21:19:04 +00:00
|
|
|
CloseButton* m_pClosePB;
|
2011-11-01 22:47:33 -06:00
|
|
|
|
2012-08-29 22:17:19 +01:00
|
|
|
SW_DLLPRIVATE DECL_LINK( CloseHdl, void* );
|
|
|
|
public:
|
2011-11-01 22:47:33 -06:00
|
|
|
SwWordCountFloatDlg( SfxBindings* pBindings,
|
|
|
|
SfxChildWindow* pChild,
|
|
|
|
Window *pParent,
|
|
|
|
SfxChildWinInfo* pInfo);
|
2012-08-29 22:17:19 +01:00
|
|
|
~SwWordCountFloatDlg();
|
2011-11-01 22:47:33 -06:00
|
|
|
void UpdateCounts();
|
2012-08-27 16:05:11 +01:00
|
|
|
|
|
|
|
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
|
2011-11-01 22:47:33 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
class SwWordCountWrapper : public SfxChildWindow
|
|
|
|
{
|
|
|
|
AbstractSwWordCountFloatDlg* pAbstDlg;
|
|
|
|
protected:
|
|
|
|
SwWordCountWrapper( Window *pParentWindow,
|
|
|
|
sal_uInt16 nId,
|
|
|
|
SfxBindings* pBindings,
|
|
|
|
SfxChildWinInfo* pInfo );
|
|
|
|
|
2012-06-16 14:12:33 +01:00
|
|
|
SFX_DECL_CHILDWINDOW_WITHID(SwWordCountWrapper);
|
2011-11-01 22:47:33 -06:00
|
|
|
|
|
|
|
public:
|
|
|
|
void UpdateCounts();
|
2012-08-27 16:05:11 +01:00
|
|
|
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
|
2004-04-27 12:44:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|