diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 18:33:44 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 18:33:44 +0000 |
commit | 5e5327030f0ddaf2d208eada437308c7876d023e (patch) | |
tree | 5f9e7e266ea66c2d2d4d65ae902684c58c5a0bb2 /svtools/source/dialogs/wizardmachine.cxx | |
parent | 73f30e971e78110d9c42f2f3a843a0e365dfdd46 (diff) |
INTEGRATION: CWS chart2mst3 (1.7.24); FILE MERGED
2006/10/19 02:49:16 bm 1.7.24.9: RESYNC: (1.14-1.17); FILE MERGED
2006/03/11 16:51:46 iha 1.7.24.8: #i63031# added HelpId for Wizard Next and Previous Button
2006/01/25 17:06:22 bm 1.7.24.7: RESYNC: (1.13-1.14); FILE MERGED
2005/10/08 16:55:21 bm 1.7.24.6: RESYNC: (1.12-1.13); FILE MERGED
2005/03/17 10:28:22 bm 1.7.24.5: RESYNC: (1.11-1.12); FILE MERGED
2004/11/02 15:26:31 bm 1.7.24.4: RESYNC: (1.9-1.11); FILE MERGED
2004/08/30 16:56:06 bm 1.7.24.3: RESYNC: (1.8-1.9); FILE MERGED
2004/06/17 15:57:15 bm 1.7.24.2: dynamic cast not available yet on Windows (wait for m44)
2004/06/17 11:08:04 bm 1.7.24.1: OWizardPage: initialize with Window instead of wizard machine
To later use the wizard machine, perform a dynamic_cast
Diffstat (limited to 'svtools/source/dialogs/wizardmachine.cxx')
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index 1e52a6fa1f94..fa08e54c60e7 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -4,9 +4,9 @@ * * $RCSfile: wizardmachine.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: obo $ $Date: 2006-09-17 14:46:30 $ + * last change: $Author: vg $ $Date: 2007-05-22 19:33:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,6 +39,7 @@ #ifndef _SVTOOLS_WIZARDMACHINE_HXX_ #include "wizardmachine.hxx" #endif +#include "helpid.hrc" #ifndef _TOOLS_DEBUG_HXX #include <tools/debug.hxx> #endif @@ -82,14 +83,14 @@ namespace svt //= OWizardPage //===================================================================== //--------------------------------------------------------------------- - OWizardPage::OWizardPage( OWizardMachine* _pParent, WinBits _nStyle ) + OWizardPage::OWizardPage( Window* _pParent, WinBits _nStyle ) :TabPage( _pParent, _nStyle ) ,m_pImpl( new WizardPageImplData ) { } //--------------------------------------------------------------------- - OWizardPage::OWizardPage( OWizardMachine* _pParent, const ResId& _rResId ) + OWizardPage::OWizardPage( Window* _pParent, const ResId& _rResId ) :TabPage( _pParent, _rResId ) ,m_pImpl( new WizardPageImplData ) { @@ -173,7 +174,9 @@ namespace svt //--------------------------------------------------------------------- void OWizardPage::implCheckNextButton() { - static_cast< OWizardMachine* >(GetParent())->enableButtons(WZB_NEXT, determineNextButtonState()); + OWizardMachine * pWizardMachine = dynamic_cast< OWizardMachine* >(GetParent()); + if( pWizardMachine ) + pWizardMachine->enableButtons(WZB_NEXT, determineNextButtonState()); } //--------------------------------------------------------------------- @@ -264,6 +267,7 @@ namespace svt if (_nButtonFlags & WZB_PREVIOUS) { m_pPrevPage = new PushButton(this, WB_TABSTOP); + m_pPrevPage->SetSmartHelpId( SmartId(HID_WIZARD_PREVIOUS) ); m_pPrevPage->SetSizePixel( LogicToPixel( Size( 50, 14 ), MAP_APPFONT ) ); m_pPrevPage->SetText(String(SvtResId(STR_WIZDLG_PREVIOUS))); m_pPrevPage->Show(); @@ -280,6 +284,7 @@ namespace svt if (_nButtonFlags & WZB_NEXT) { m_pNextPage = new PushButton(this, WB_TABSTOP); + m_pNextPage->SetSmartHelpId( SmartId(HID_WIZARD_NEXT) ); m_pNextPage->SetSizePixel( LogicToPixel( Size( 50, 14 ), MAP_APPFONT ) ); m_pNextPage->SetText(String(SvtResId(STR_WIZDLG_NEXT))); m_pNextPage->Show(); @@ -799,4 +804,3 @@ namespace svt //......................................................................... } // namespace svt //......................................................................... - |