diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 22:17:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:41 +0100 |
commit | d499ecfe451d3fcb4dc47b2c4f104ca6faa81e62 (patch) | |
tree | 5d91d60843c8572516dd35dd1090df90f05f375e /sw/source | |
parent | dfbaba92e53a91d08bcde392d616f1fc48e220e2 (diff) |
Drop hard-coded layout for wordcount and use Gokul's .ui
Take the opportunity to merge SwWordCountDialog and SwWordCountFloatDlg
together.
Now the cycle is complete, .src -> manual layout -> .ui
Change-Id: I4fb7840b8786ede82ffa1591effc9e4ff444504c
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.cxx | 18 | ||||
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.hxx | 7 | ||||
-rw-r--r-- | sw/source/ui/dialog/wordcountdialog.cxx | 126 | ||||
-rw-r--r-- | sw/source/ui/dialog/wordcountdialog.hrc | 41 | ||||
-rw-r--r-- | sw/source/ui/dialog/wordcountdialog.src | 156 | ||||
-rw-r--r-- | sw/source/ui/dialog/wordcountwrapper.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/inc/wordcountdialog.hxx | 65 |
7 files changed, 42 insertions, 374 deletions
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index 868b487701b3..f684751a51df 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -1539,24 +1539,14 @@ AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( int return 0; } -AbstractSwWordCountFloatDlg * SwAbstractDialogFactory_Impl::CreateSwWordCountDialog( int nResId, +AbstractSwWordCountFloatDlg * SwAbstractDialogFactory_Impl::CreateSwWordCountDialog( SfxBindings* pBindings, SfxChildWindow* pChild, Window *pParent, - SfxChildWinInfo* pInfo ) + SfxChildWinInfo* pInfo) { - SwWordCountFloatDlg* pDlg=NULL; - switch ( nResId ) - { - case DLG_WORDCOUNT : - pDlg = new SwWordCountFloatDlg( pBindings, pChild, pParent, pInfo ); - break; - default: - break; - } - if ( pDlg ) - return new AbstractSwWordCountFloatDlg_Impl( pDlg ); - return 0; + SwWordCountFloatDlg* pDlg = new SwWordCountFloatDlg( pBindings, pChild, pParent, pInfo ); + return new AbstractSwWordCountFloatDlg_Impl( pDlg ); } //add for SwIndexMarkModalDlg begin diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx index 159f6e3633b0..c28fe03446dd 100644 --- a/sw/source/ui/dialog/swdlgfact.hxx +++ b/sw/source/ui/dialog/swdlgfact.hxx @@ -439,11 +439,8 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame, sal_uInt32 nResId ); - virtual AbstractSwWordCountFloatDlg* CreateSwWordCountDialog(int nResId, - SfxBindings* pBindings, - SfxChildWindow* pChild, - Window *pParent, - SfxChildWinInfo* pInfo); + virtual AbstractSwWordCountFloatDlg* CreateSwWordCountDialog(SfxBindings* pBindings, + SfxChildWindow* pChild, Window *pParent, SfxChildWinInfo* pInfo); virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg( Window* pParent,int nResId ); virtual AbstractSwAsciiFilterDlg* CreateSwAsciiFilterDlg ( Window* pParent, SwDocShell& rDocSh, SvStream* pStream, int nResId ); //add for SwAsciiFilterDlg diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx index e89bc1eb4d33..b943ab15dfbe 100644 --- a/sw/source/ui/dialog/wordcountdialog.cxx +++ b/sw/source/ui/dialog/wordcountdialog.cxx @@ -30,7 +30,6 @@ #include <wordcountdialog.hxx> #include <docstat.hxx> #include <dialog.hrc> -#include <wordcountdialog.hrc> #include <cmdid.h> #include "vcl/msgbox.hxx" // RET_CANCEL #include <swmodule.hxx> @@ -39,89 +38,7 @@ #include <swwait.hxx> #include <wrtsh.hxx> -//TODO, add asian/non-asian word count to UI when CJK mode is enabled. -SwWordCountDialog::SwWordCountDialog(Dialog* pParent) - : vbox(pParent) - , content_area(&vbox) - , aCurrentSelection(&content_area, false, 3) - , aCurrentSelectionText(&aCurrentSelection, SW_RES(FT_CURRENT)) - , aCurrentSelectionLine(&aCurrentSelection, SW_RES(FL_CURRENT)) - , aSelectionBox(&content_area, false, 7) - , aSelectionRow1(&aSelectionBox) - , aCurrentWordFT(&aSelectionRow1, SW_RES(FT_CURRENTWORD)) - , aCurrentWordFI(&aSelectionRow1, SW_RES(FI_CURRENTWORD)) - , aSelectionRow2(&aSelectionBox) - , aCurrentCharacterFT(&aSelectionRow2, SW_RES(FT_CURRENTCHARACTER)) - , aCurrentCharacterFI(&aSelectionRow2, SW_RES(FI_CURRENTCHARACTER)) - , aSelectionRow3(&aSelectionBox) - , aCurrentCharacterExcludingSpacesFT(&aSelectionRow3, SW_RES(FT_CURRENTCHARACTEREXCLUDINGSPACES)) - , aCurrentCharacterExcludingSpacesFI(&aSelectionRow3, SW_RES(FI_CURRENTCHARACTEREXCLUDINGSPACES)) - , aDoc(&content_area, false, 3) - , aDocText(&aDoc, SW_RES(FT_DOC)) - , aDocLine(&aDoc, SW_RES(FL_DOC)) - , aDocBox(&content_area, false, 7) - , aDocRow1(&aDocBox) - , aDocWordFT(&aDocRow1, SW_RES(FT_DOCWORD)) - , aDocWordFI(&aDocRow1, SW_RES(FI_DOCWORD)) - , aDocRow2(&aDocBox) - , aDocCharacterFT(&aDocRow2, SW_RES(FT_DOCCHARACTER)) - , aDocCharacterFI(&aDocRow2, SW_RES(FI_DOCCHARACTER)) - , aDocRow3(&aDocBox) - , aDocCharacterExcludingSpacesFT(&aDocRow3, SW_RES(FT_DOCCHARACTEREXCLUDINGSPACES)) - , aDocCharacterExcludingSpacesFI(&aDocRow3, SW_RES(FI_DOCCHARACTEREXCLUDINGSPACES)) - , aBottomFL(&vbox, SW_RES(FL_BOTTOM)) - , action_area(&vbox) - , aOK(&action_area, SW_RES(PB_OK)) - , aHelp(&action_area, SW_RES(PB_HELP)) -{ - rtl::OUString sForceInitialSize(RTL_CONSTASCII_USTRINGPARAM(" ")); - aCurrentWordFI.SetText(sForceInitialSize); - aCurrentCharacterFI.SetText(sForceInitialSize); - aCurrentCharacterExcludingSpacesFI.SetText(sForceInitialSize); - aDocWordFI.SetText(sForceInitialSize); - aDocCharacterFI.SetText(sForceInitialSize); - aDocCharacterExcludingSpacesFI.SetText(sForceInitialSize); - - content_area.set_expand(true); - - aCurrentSelectionLine.set_expand(true); - - aSelectionBox.set_border_width(7); - - aSelectionRow1.set_expand(true); - aCurrentWordFI.set_expand(true); - - aSelectionRow2.set_expand(true); - aCurrentCharacterFI.set_expand(true); - aSelectionRow3.set_expand(true); - aCurrentCharacterExcludingSpacesFI.set_expand(true); - - aDocLine.set_expand(true); - - aDocBox.set_border_width(7); - - aDocRow1.set_expand(true); - aDocWordFT.set_expand(true); - - aDocRow2.set_expand(true); - aDocCharacterFI.set_expand(true); - aDocRow3.set_expand(true); - aDocCharacterExcludingSpacesFI.set_expand(true); - - aOK.set_pack_type(VCL_PACK_END); - aHelp.set_pack_type(VCL_PACK_END); - - aOK.SetClickHdl(LINK(this, SwWordCountDialog, OkHdl)); - - pParent->SetMinOutputSizePixel(vbox.GetOptimalSize(WINDOWSIZE_PREFERRED)); - -#if OSL_DEBUG_LEVEL > 2 - aDocCharacterExcludingSpacesFT.SetControlBackground(Color(180,0,0)); - aDocCharacterExcludingSpacesFI.SetControlBackground(Color(0,180,0)); -#endif -} - -IMPL_LINK_NOARG(SwWordCountDialog, OkHdl) +IMPL_LINK_NOARG(SwWordCountFloatDlg, CloseHdl) { SfxViewFrame* pVFrame = ::GetActiveView()->GetViewFrame(); if (pVFrame != NULL) @@ -131,37 +48,40 @@ IMPL_LINK_NOARG(SwWordCountDialog, OkHdl) return 0; } -SwWordCountDialog::~SwWordCountDialog() +SwWordCountFloatDlg::~SwWordCountFloatDlg() { ViewShell::SetCareWin( 0 ); } -void SwWordCountDialog::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc) +void SwWordCountFloatDlg::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc) { - aCurrentWordFI.SetText( String::CreateFromInt32(rCurrent.nWord )); - aCurrentCharacterFI.SetText(String::CreateFromInt32(rCurrent.nChar )); - aCurrentCharacterExcludingSpacesFI.SetText(String::CreateFromInt32(rCurrent.nCharExcludingSpaces )); - aDocWordFI.SetText( String::CreateFromInt32(rDoc.nWord )); - aDocCharacterFI.SetText( String::CreateFromInt32(rDoc.nChar )); - aDocCharacterExcludingSpacesFI.SetText( String::CreateFromInt32(rDoc.nCharExcludingSpaces )); + m_pCurrentWordFT->SetText(rtl::OUString::valueOf(static_cast<sal_Int64>(rCurrent.nWord))); + m_pCurrentCharacterFT->SetText(rtl::OUString::valueOf(static_cast<sal_Int64>(rCurrent.nChar))); + m_pCurrentCharacterExcludingSpacesFT->SetText(rtl::OUString::valueOf(static_cast<sal_Int64>(rCurrent.nCharExcludingSpaces))); + m_pDocWordFT->SetText(rtl::OUString::valueOf(static_cast<sal_Int64>(rDoc.nWord))); + m_pDocCharacterFT->SetText(rtl::OUString::valueOf(static_cast<sal_Int64>(rDoc.nChar))); + m_pDocCharacterExcludingSpacesFT->SetText(rtl::OUString::valueOf(static_cast<sal_Int64>(rDoc.nCharExcludingSpaces))); } - +//TODO, add asian/non-asian word count to UI when CJK mode is enabled. SwWordCountFloatDlg::SwWordCountFloatDlg(SfxBindings* _pBindings, SfxChildWindow* pChild, Window *pParent, SfxChildWinInfo* pInfo) - : SfxModelessDialog(_pBindings, pChild, pParent, SW_RES(DLG_WORDCOUNT)), -#if defined _MSC_VER -#pragma warning (disable : 4355) -#endif - aDlg(this) -#if defined _MSC_VER -#pragma warning (default : 4355) -#endif + : SfxModelessDialog(_pBindings, pChild, pParent, "WordCountDialog", "modules/swriter/ui/wordcount.ui") { - FreeResource(); + m_pUIBuilder->get(m_pCurrentWordFT, "selectwords"); + m_pUIBuilder->get(m_pCurrentCharacterFT, "selectchars"); + m_pUIBuilder->get(m_pCurrentCharacterExcludingSpacesFT, "selectcharsnospaces"); + m_pUIBuilder->get(m_pDocWordFT, "docwords"); + m_pUIBuilder->get(m_pDocCharacterFT, "docchars"); + m_pUIBuilder->get(m_pDocCharacterExcludingSpacesFT, "doccharsnospaces"); + m_pUIBuilder->get(m_pClosePB, "close"); + Initialize(pInfo); + + m_pClosePB->SetClickHdl(LINK(this, SwWordCountFloatDlg, CloseHdl)); + m_pClosePB->GrabFocus(); } void SwWordCountFloatDlg::Activate() @@ -181,7 +101,7 @@ void SwWordCountFloatDlg::UpdateCounts() aDocStat = rSh.GetUpdatedDocStat(); rSh.EndAction(); } - aDlg.SetValues(aCurrCnt, aDocStat); + SetValues(aCurrCnt, aDocStat); } void SwWordCountFloatDlg::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat) diff --git a/sw/source/ui/dialog/wordcountdialog.hrc b/sw/source/ui/dialog/wordcountdialog.hrc deleted file mode 100644 index 7fcceb30093d..000000000000 --- a/sw/source/ui/dialog/wordcountdialog.hrc +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 . - */ -#ifndef SW_WORDCOUNTDIALOG_HRC -#define SW_WORDCOUNTDIALOG_HRC -#define FL_CURRENT 1 -#define FT_CURRENTWORD 2 -#define FI_CURRENTWORD 3 -#define FT_CURRENTCHARACTER 4 -#define FI_CURRENTCHARACTER 5 -#define FT_CURRENTCHARACTEREXCLUDINGSPACES 6 -#define FI_CURRENTCHARACTEREXCLUDINGSPACES 7 -#define FL_DOC 8 -#define FT_DOCWORD 9 -#define FI_DOCWORD 10 -#define FT_DOCCHARACTER 11 -#define FI_DOCCHARACTER 12 -#define FT_DOCCHARACTEREXCLUDINGSPACES 13 -#define FI_DOCCHARACTEREXCLUDINGSPACES 14 -#define FL_BOTTOM 15 -#define PB_OK 16 -#define PB_HELP 17 -#define WINDOW_DLG 18 -#define FT_CURRENT 19 -#define FT_DOC 20 - -#endif diff --git a/sw/source/ui/dialog/wordcountdialog.src b/sw/source/ui/dialog/wordcountdialog.src deleted file mode 100644 index 267563300e9e..000000000000 --- a/sw/source/ui/dialog/wordcountdialog.src +++ /dev/null @@ -1,156 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * 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. - * - * 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). - * - * 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. - * - ************************************************************************/ -#include <helpid.h> -#include <dialog.hrc> -#include <wordcountdialog.hrc> -ModelessDialog DLG_WORDCOUNT -{ - HelpID = HID_DLG_WORDCOUNT ; - OutputSize = TRUE ; - SVLook = TRUE ; - Size = MAP_APPFONT ( 170 , 136 ) ; - Text [ en-US ] = "Word Count" ; - Moveable = TRUE ; - - Closeable = TRUE; - Sizeable = TRUE ; - Hide = TRUE ; - - FixedText FT_CURRENT - { - Pos = MAP_APPFONT ( 5 , 5 ) ; - Size = MAP_APPFONT ( 160 , 8 ) ; - Text [ en-US ] = "Current selection"; - }; - FixedLine FL_CURRENT - { - Pos = MAP_APPFONT ( 6 , 3 ) ; - Size = MAP_APPFONT ( 158 , 8 ) ; - }; - FixedText FT_CURRENTWORD - { - Pos = MAP_APPFONT ( 10 , 16 ) ; - Size = MAP_APPFONT ( 80 , 8 ) ; - Text [ en-US ] = "Words:"; - }; - FixedText FI_CURRENTWORD - { - Pos = MAP_APPFONT ( 114 , 16 ) ; - Size = MAP_APPFONT ( 50 , 8 ) ; - Right = TRUE; - }; - FixedText FT_CURRENTCHARACTER - { - Pos = MAP_APPFONT ( 10 , 28 ) ; - Size = MAP_APPFONT ( 80 , 8 ) ; - Text [ en-US ] = "Characters:"; - }; - FixedText FI_CURRENTCHARACTER - { - Pos = MAP_APPFONT ( 114 , 28 ) ; - Size = MAP_APPFONT ( 50 , 8 ) ; - Right = TRUE; - }; - FixedText FT_CURRENTCHARACTEREXCLUDINGSPACES - { - Pos = MAP_APPFONT ( 10 , 40 ) ; - Size = MAP_APPFONT ( 98 , 8 ) ; - Text [ en-US ] = "Characters excluding spaces:"; - }; - FixedText FI_CURRENTCHARACTEREXCLUDINGSPACES - { - Pos = MAP_APPFONT ( 114 , 40 ) ; - Size = MAP_APPFONT ( 50 , 8 ) ; - Right = TRUE; - }; - FixedText FT_DOC - { - Pos = MAP_APPFONT ( 5, 54 ) ; - Size = MAP_APPFONT ( 160 , 8 ) ; - Text [ en-US ] = "Whole document"; - }; - FixedLine FL_DOC - { - Pos = MAP_APPFONT ( 6, 52 ) ; - Size = MAP_APPFONT ( 158 , 8 ) ; - }; - FixedText FT_DOCWORD - { - Pos = MAP_APPFONT ( 10, 65 ) ; - Size = MAP_APPFONT ( 80 , 8 ) ; - Text [ en-US ] = "Words:"; - }; - FixedText FI_DOCWORD - { - Pos = MAP_APPFONT ( 114 , 65 ) ; - Size = MAP_APPFONT ( 50 , 8 ) ; - Right = TRUE; - }; - FixedText FT_DOCCHARACTER - { - Pos = MAP_APPFONT ( 10 , 77 ) ; - Size = MAP_APPFONT ( 80 , 8 ) ; - Text [ en-US ] = "Characters:"; - }; - FixedText FI_DOCCHARACTER - { - Pos = MAP_APPFONT ( 114, 77 ) ; - Size = MAP_APPFONT ( 50, 8 ) ; - Right = TRUE; - }; - FixedText FT_DOCCHARACTEREXCLUDINGSPACES - { - Pos = MAP_APPFONT ( 10 , 89 ) ; - Size = MAP_APPFONT ( 98 , 8 ) ; - Text [ en-US ] = "Characters excluding spaces:"; - }; - FixedText FI_DOCCHARACTEREXCLUDINGSPACES - { - Pos = MAP_APPFONT ( 114, 89 ) ; - Size = MAP_APPFONT ( 50, 8 ) ; - Right = TRUE; - }; - FixedLine FL_BOTTOM - { - Pos = MAP_APPFONT ( 0 , 103 ) ; - Size = MAP_APPFONT ( 170 , 8 ) ; - }; - HelpButton PB_HELP - { - HelpID = HID_DLG_WORDCOUNT ; - Pos = MAP_APPFONT ( 5 , 114 ) ; - Size = MAP_APPFONT ( 50 , 15 ) ; - }; - OKButton PB_OK - { - HelpID = HID_DLG_WORDCOUNT ; - Pos = MAP_APPFONT ( 115 , 114 ) ; - Size = MAP_APPFONT ( 50 , 15 ) ; - DefButton = TRUE ; - Text [ en-US ] = "~Close"; - }; -}; diff --git a/sw/source/ui/dialog/wordcountwrapper.cxx b/sw/source/ui/dialog/wordcountwrapper.cxx index 2fb4b8da2bf5..6a0c8a3d9427 100644 --- a/sw/source/ui/dialog/wordcountwrapper.cxx +++ b/sw/source/ui/dialog/wordcountwrapper.cxx @@ -28,7 +28,6 @@ #include <wordcountdialog.hxx> #include <docstat.hxx> #include <dialog.hrc> -#include <wordcountdialog.hrc> #include <cmdid.h> SFX_IMPL_CHILDWINDOW_WITHID(SwWordCountWrapper, FN_WORDCOUNT_DIALOG) @@ -41,7 +40,7 @@ SwWordCountWrapper::SwWordCountWrapper( Window *pParentWindow, { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!"); - pAbstDlg = pFact->CreateSwWordCountDialog( DLG_WORDCOUNT, pBindings, this, pParentWindow, pInfo ); + pAbstDlg = pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow, pInfo); OSL_ENSURE(pAbstDlg, "Dialog construction failed!"); pWindow = pAbstDlg->GetWindow(); diff --git a/sw/source/ui/inc/wordcountdialog.hxx b/sw/source/ui/inc/wordcountdialog.hxx index 02015c19b8aa..47e7a98a08d8 100644 --- a/sw/source/ui/inc/wordcountdialog.hxx +++ b/sw/source/ui/inc/wordcountdialog.hxx @@ -35,67 +35,26 @@ struct SwDocStat; #include <sfx2/childwin.hxx> #include "swabstdlg.hxx" -class SwWordCountDialog +class SwWordCountFloatDlg : public SfxModelessDialog { - VclVBox vbox; - VclVBox content_area; - - VclHBox aCurrentSelection; - FixedText aCurrentSelectionText; - FixedLine aCurrentSelectionLine; - - VclVBox aSelectionBox; - VclHBox aSelectionRow1; - FixedText aCurrentWordFT; - FixedInfo aCurrentWordFI; - VclHBox aSelectionRow2; - FixedText aCurrentCharacterFT; - FixedInfo aCurrentCharacterFI; - VclHBox aSelectionRow3; - FixedText aCurrentCharacterExcludingSpacesFT; - FixedInfo aCurrentCharacterExcludingSpacesFI; - - VclHBox aDoc; - FixedText aDocText; - FixedLine aDocLine; - - VclVBox aDocBox; - VclHBox aDocRow1; - FixedText aDocWordFT; - FixedInfo aDocWordFI; - VclHBox aDocRow2; - FixedText aDocCharacterFT; - FixedInfo aDocCharacterFI; - VclHBox aDocRow3; - FixedText aDocCharacterExcludingSpacesFT; - FixedInfo aDocCharacterExcludingSpacesFI; - - FixedLine aBottomFL; - - VclHButtonBox action_area; - OKButton aOK; - HelpButton aHelp; - - void InitControls(); - -public: - SwWordCountDialog(Dialog* pParent); - ~SwWordCountDialog(); - + virtual void Activate(); void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc); - SW_DLLPRIVATE DECL_LINK( OkHdl, void* ); -}; + FixedText* m_pCurrentWordFT; + FixedText* m_pCurrentCharacterFT; + FixedText* m_pCurrentCharacterExcludingSpacesFT; + FixedText* m_pDocWordFT; + FixedText* m_pDocCharacterFT; + FixedText* m_pDocCharacterExcludingSpacesFT; + PushButton* m_pClosePB; -class SwWordCountFloatDlg : public SfxModelessDialog -{ - SwWordCountDialog aDlg; - virtual void Activate(); - public: + SW_DLLPRIVATE DECL_LINK( CloseHdl, void* ); +public: SwWordCountFloatDlg( SfxBindings* pBindings, SfxChildWindow* pChild, Window *pParent, SfxChildWinInfo* pInfo); + ~SwWordCountFloatDlg(); void UpdateCounts(); void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat); |