Tag: cws_src680_oj14 User: lla Date: 2007-06-06 07:33:10+0000 Log: #i77259# new dialog if extension is not present
File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppController.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.22.4.18&r2=1.22.4.19 Delta lines: +18 -14 --------------------- --- AppController.cxx 2007-06-05 13:12:45+0000 1.22.4.18 +++ AppController.cxx 2007-06-06 07:33:07+0000 1.22.4.19 @@ -4,9 +4,9 @@ * * $RCSfile: AppController.cxx,v $ * - * $Revision: 1.22.4.18 $ + * $Revision: 1.22.4.19 $ * - * last change: $Author: oj $ $Date: 2007/06/05 13:12:45 $ + * last change: $Author: lla $ $Date: 2007/06/06 07:33:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -257,6 +257,8 @@ #include <algorithm> #include <functional> +#include "ExtensionNotPresent.hxx" + #define APP_SIZE_WIDTH 350 #define APP_SIZE_HEIGHT 250 @@ -1687,18 +1689,20 @@ Reference< XEnumeration > xEnumDrivers = xEnumAccess->createContentEnumeration(s_sReportDesign); if ( !xEnumDrivers.is() || !xEnumDrivers->hasMoreElements() ) { - // is there no report designer available? - static const ::rtl::OUString sStatus = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")); - String sMsg = String( ModuleRes( RID_STR_ERROR_NO_REPORT_INSTALLED ) ); - // sMsg.SearchAndReplace('#',e.Message); - SQLExceptionInfo aInfo; - - SQLException aSQLException; - aSQLException.Message = sMsg; - // aSQLException.Context = e.Context; - aInfo = SQLExceptionInfo(aSQLException); - - showError(aInfo); + OExtensionNotPresentDialog aDlg(getView(), getORB()); + aDlg.Execute(); + // // is there no report designer available? + // static const ::rtl::OUString sStatus = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")); + // String sMsg = String( ModuleRes( RID_STR_ERROR_NO_REPORT_INSTALLED ) ); + // // sMsg.SearchAndReplace('#',e.Message); + // SQLExceptionInfo aInfo; + // + // SQLException aSQLException; + // aSQLException.Message = sMsg; + // // aSQLException.Context = e.Context; + // aInfo = SQLExceptionInfo(aSQLException); + // + // showError(aInfo); break; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
