User: vg      
Date: 05/02/17 03:10:02

Modified:
 /dba/dbaccess/source/ui/uno/
  DBTypeWizDlgSetup.cxx

Log:
 INTEGRATION: CWS dba23 (1.2.42); FILE MERGED
 2005/02/03 13:06:45 oj 1.2.42.3: RESYNC: (1.2-1.3); FILE MERGED
 2005/01/20 16:55:09 oj 1.2.42.2: #i41043# implement 
private:factory/sdatabase?Interactive
 2005/01/19 09:01:14 oj 1.2.42.1: #i40485# new service for the new database 
document

File Changes:

Directory: /dba/dbaccess/source/ui/uno/
=======================================

File [changed]: DBTypeWizDlgSetup.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx?r1=1.3&r2=1.4
Delta lines:  +21 -4
--------------------
--- DBTypeWizDlgSetup.cxx       2 Feb 2005 14:00:23 -0000       1.3
+++ DBTypeWizDlgSetup.cxx       17 Feb 2005 11:10:00 -0000      1.4
@@ -71,6 +71,9 @@
 #ifndef DBAUI_DBWIZSETUP_HXX
 #include "dbwizsetup.hxx"
 #endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
 
 using namespace dbaui;
                          
@@ -92,7 +95,14 @@
 //-------------------------------------------------------------------------
 ODBTypeWizDialogSetup::ODBTypeWizDialogSetup(const Reference< 
XMultiServiceFactory >& _rxORB)
        :ODatabaseAdministrationDialog(_rxORB)
+    ,m_bOpenDatabase(sal_True)
+       ,m_bStartTableWizard(sal_False)
 {
+    
registerProperty(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OpenDatabase")), 
3, PropertyAttribute::TRANSIENT,
+               &m_bOpenDatabase, getBooleanCppuType());
+
+    
registerProperty(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StartTableWizard")),
 4, PropertyAttribute::TRANSIENT,
+               &m_bStartTableWizard, getBooleanCppuType());
 }
 //-------------------------------------------------------------------------
 Sequence<sal_Int8> SAL_CALL ODBTypeWizDialogSetup::getImplementationId(  ) 
throw(RuntimeException)
@@ -165,8 +175,7 @@
 //-------------------------------------------------------------------------
 Reference<XPropertySetInfo>  SAL_CALL 
ODBTypeWizDialogSetup::getPropertySetInfo() throw(RuntimeException)
 {
-       Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( 
getInfoHelper() ) );
-       return xInfo;
+       return createPropertySetInfo( getInfoHelper() );
 }
 
 //-------------------------------------------------------------------------
@@ -185,8 +194,16 @@
 
//------------------------------------------------------------------------------
 Dialog*        ODBTypeWizDialogSetup::createDialog(Window* _pParent)
 {
-       ODbTypeWizDialogSetup* pDlg = new ODbTypeWizDialogSetup(_pParent, 
m_pDatasourceItems, m_xORB, m_aInitialSelection);
-       return pDlg;
+       return new ODbTypeWizDialogSetup(_pParent, m_pDatasourceItems, m_xORB, 
m_aInitialSelection);
+}
+// 
-----------------------------------------------------------------------------
+void ODBTypeWizDialogSetup::executedDialog(sal_Int16 _nExecutionResult)
+{
+    if ( _nExecutionResult == RET_OK )
+    {
+        m_bOpenDatabase = 
static_cast<ODbTypeWizDialogSetup*>(m_pDialog)->IsDatabaseDocumentToBeOpened();
+        m_bStartTableWizard = 
static_cast<ODbTypeWizDialogSetup*>(m_pDialog)->IsTableWizardToBeStarted();
+    }
 }
 
 //.........................................................................




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to