/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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 .
*/
m_xPrevPage->set_help_id(HID_DBWIZ_PREVIOUS);
m_xNextPage->set_help_id(HID_DBWIZ_NEXT);
m_xCancel->set_help_id(HID_DBWIZ_CANCEL);
m_xFinish->set_help_id(HID_DBWIZ_FINISH); // no local resources needed anymore
WizardState ODbTypeWizDialog::determineNextState( WizardState _nCurrentState ) const
{
WizardState nNextState = WZS_INVALID_STATE; switch(_nCurrentState)
{ case START_PAGE: switch(m_pCollection->determineType(m_eType))
{ case ::dbaccess::DST_MOZILLA: case ::dbaccess::DST_OUTLOOK: case ::dbaccess::DST_OUTLOOKEXP: case ::dbaccess::DST_EVOLUTION: case ::dbaccess::DST_EVOLUTION_GROUPWISE: case ::dbaccess::DST_EVOLUTION_LDAP: case ::dbaccess::DST_KAB: case ::dbaccess::DST_MACAB:
nNextState = WZS_INVALID_STATE; break; case ::dbaccess::DST_MYSQL_NATIVE:
nNextState = ADDITIONAL_PAGE_MYSQL_NATIVE; break; default:
nNextState = CONNECTION_PAGE; break;
} break; case CONNECTION_PAGE: switch(m_pCollection->determineType(m_eType))
{ case ::dbaccess::DST_MOZILLA: case ::dbaccess::DST_THUNDERBIRD: case ::dbaccess::DST_OUTLOOK: case ::dbaccess::DST_OUTLOOKEXP: case ::dbaccess::DST_EVOLUTION: case ::dbaccess::DST_EVOLUTION_GROUPWISE: case ::dbaccess::DST_EVOLUTION_LDAP: case ::dbaccess::DST_KAB: case ::dbaccess::DST_MACAB: case ::dbaccess::DST_MSACCESS: case ::dbaccess::DST_JDBC: case ::dbaccess::DST_CALC: case ::dbaccess::DST_WRITER:
nNextState = WZS_INVALID_STATE; break; case ::dbaccess::DST_DBASE:
nNextState = ADDITIONAL_PAGE_DBASE; break; case ::dbaccess::DST_FLAT:
nNextState = ADDITIONAL_PAGE_FLAT; break; case ::dbaccess::DST_LDAP:
nNextState = ADDITIONAL_PAGE_LDAP; break; case ::dbaccess::DST_MYSQL_JDBC:
nNextState = ADDITIONAL_PAGE_MYSQL_JDBC; break; case ::dbaccess::DST_MYSQL_ODBC:
nNextState = ADDITIONAL_PAGE_MYSQL_ODBC; break; case ::dbaccess::DST_ORACLE_JDBC:
nNextState = ADDITIONAL_PAGE_ORACLE_JDBC; break; case ::dbaccess::DST_ADO:
nNextState = ADDITIONAL_PAGE_ADO; break; case ::dbaccess::DST_ODBC:
nNextState = ADDITIONAL_PAGE_ODBC; break; default:
nNextState = WZS_INVALID_STATE; break;
} break;
}
void ODbTypeWizDialog::enableConfirmSettings( bool _bEnable )
{
enableButtons( WizardButtonFlags::FINISH, _bEnable ); // TODO: // this is hacky. At the moment, this method is used in only one case. // 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 // a normal tab dialog.
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.