User: kz Date: 2007-05-10 10:25:01+0000 Log: INTEGRATION: CWS dba23a (1.12.72); FILE MERGED 2007/03/13 08:42:14 fs 1.12.72.2: some slight re-factoring (class/method renaming), plus some rudimentary fix for #b6532894# 2007/02/26 11:48:12 fs 1.12.72.1: remove unused code Issue number: #i74804# Submitted by: [EMAIL PROTECTED] Reviewed by: [EMAIL PROTECTED]
File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: dbwiz.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/dbwiz.cxx?r1=1.13&r2=1.14 Delta lines: +11 -27 --------------------- --- dbwiz.cxx 2007-04-26 07:58:29+0000 1.13 +++ dbwiz.cxx 2007-05-10 10:24:58+0000 1.14 @@ -265,33 +265,6 @@ return nNextState; } -//------------------------------------------------------------------------- -void ODbTypeWizDialog::resetPages(const Reference< XPropertySet >& _rxDatasource) -{ - // remove all items which relate to indirect properties from the input set - // (without this, the following may happen: select an arbitrary data source where some indirect properties - // are set. Select another data source of the same type, where the indirect props are not set (yet). Then, - // the indirect property values of the first ds are shown in the second ds ...) - const ODbDataSourceAdministrationHelper::MapInt2String& rMap = m_pImpl->getIndirectProperties(); - for ( ODbDataSourceAdministrationHelper::ConstMapInt2StringIterator aIndirect = rMap.begin(); - aIndirect != rMap.end(); - ++aIndirect - ) - getWriteOutputSet()->ClearItem( (sal_uInt16)aIndirect->first ); - - // extract all relevant data from the property set of the data source - m_pImpl->translateProperties(_rxDatasource, *getWriteOutputSet()); -} -//------------------------------------------------------------------------- -ODbTypeWizDialog::ApplyResult ODbTypeWizDialog::implApplyChanges() -{ - if ( !m_pImpl->saveChanges(*m_pOutSet) ) - return AR_KEEP; - - m_bApplied = sal_True; - - return AR_LEAVE_MODIFIED; -} // ----------------------------------------------------------------------------- const SfxItemSet* ODbTypeWizDialog::getOutputSet() const { @@ -413,6 +386,17 @@ SetText(_sTitle); } //------------------------------------------------------------------------- +void ODbTypeWizDialog::enableConfirmSettings( bool _bEnable ) +{ + enableButtons( WZB_FINISH, _bEnable ); + // TODO: + // this is hacky. At the moment, this method is used in only one case (#b6532894#). + // As soon as it is to be used more wide-spread, we should find a proper concept + // for enabling both the Next and Finish buttons, depending on the current page state. + // Plus, the concept must also care for the case where those pages are embedded into + // anormal tab dialog. +} +//------------------------------------------------------------------------- sal_Bool ODbTypeWizDialog::saveDatasource() { SfxTabPage* pPage = static_cast<SfxTabPage*>(WizardDialog::GetPage(getCurrentState())); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
