2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2004-04-27 12:44:33 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:44:35 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
2008-04-10 19:44:35 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
2008-04-10 19:44:35 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
2008-04-10 19:44:35 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
2008-04-10 19:44:35 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
2008-04-10 19:44:35 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-04-27 12:44:33 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef SW_WORDCOUNTDIALOG_HXX
|
|
|
|
#define SW_WORDCOUNTDIALOG_HXX
|
|
|
|
#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;
|
|
|
|
|
2012-08-29 22:17:19 +01:00
|
|
|
PushButton* 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: */
|