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>
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
struct SwDocStat;
|
2011-11-01 22:47:33 -06:00
|
|
|
#include <sfx2/childwin.hxx>
|
|
|
|
#include "swabstdlg.hxx"
|
|
|
|
|
2011-11-07 14:18:07 +00:00
|
|
|
class SwWordCountDialog
|
2004-04-27 12:44:33 +00:00
|
|
|
{
|
|
|
|
FixedLine aCurrentFL;
|
|
|
|
FixedText aCurrentWordFT;
|
|
|
|
FixedInfo aCurrentWordFI;
|
|
|
|
FixedText aCurrentCharacterFT;
|
|
|
|
FixedInfo aCurrentCharacterFI;
|
2010-10-27 18:01:43 +11:00
|
|
|
FixedText aCurrentCharacterExcludingSpacesFT;
|
|
|
|
FixedInfo aCurrentCharacterExcludingSpacesFI;
|
2004-04-27 12:44:33 +00:00
|
|
|
|
|
|
|
FixedLine aDocFL;
|
|
|
|
FixedText aDocWordFT;
|
|
|
|
FixedInfo aDocWordFI;
|
|
|
|
FixedText aDocCharacterFT;
|
|
|
|
FixedInfo aDocCharacterFI;
|
2010-10-27 18:01:43 +11:00
|
|
|
FixedText aDocCharacterExcludingSpacesFT;
|
|
|
|
FixedInfo aDocCharacterExcludingSpacesFI;
|
2004-04-27 12:44:33 +00:00
|
|
|
|
|
|
|
FixedLine aBottomFL;
|
|
|
|
|
|
|
|
OKButton aOK;
|
|
|
|
HelpButton aHelp;
|
|
|
|
|
2011-11-01 22:47:33 -06:00
|
|
|
void InitControls();
|
|
|
|
|
2004-04-27 12:44:33 +00:00
|
|
|
public:
|
|
|
|
SwWordCountDialog(Window* pParent);
|
|
|
|
~SwWordCountDialog();
|
|
|
|
|
|
|
|
void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc);
|
2011-11-01 22:47:33 -06:00
|
|
|
|
|
|
|
SW_DLLPRIVATE DECL_LINK( OkHdl, void* );
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwWordCountFloatDlg : public SfxModelessDialog
|
|
|
|
{
|
|
|
|
SwWordCountDialog aDlg;
|
|
|
|
virtual void Activate();
|
|
|
|
public:
|
|
|
|
SwWordCountFloatDlg( SfxBindings* pBindings,
|
|
|
|
SfxChildWindow* pChild,
|
|
|
|
Window *pParent,
|
|
|
|
SfxChildWinInfo* pInfo);
|
|
|
|
void UpdateCounts();
|
|
|
|
};
|
|
|
|
|
|
|
|
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();
|
2004-04-27 12:44:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|