Tag: cws_src680_oj14
User: lla     
Date: 2007-05-24 11:54:09+0000
Log:
 #i77259# error message if no report designer is installed

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.14&r2=1.22.4.15
Delta lines:  +24 -4
--------------------
--- AppController.cxx   2007-04-30 12:40:56+0000        1.22.4.14
+++ AppController.cxx   2007-05-24 11:54:06+0000        1.22.4.15
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppController.cxx,v $
  *
- *  $Revision: 1.22.4.14 $
+ *  $Revision: 1.22.4.15 $
  *
- *  last change: $Author: oj $ $Date: 2007/04/30 12:40:56 $
+ *  last change: $Author: lla $ $Date: 2007/05/24 11:54:06 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1686,14 +1686,34 @@
                 static ::rtl::OUString 
s_sReportDesign(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.report.pentaho.SOReportJobFactory"));
                 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);
+
                     break;
+                               }
             }// run through
                case E_FORM:
                        {
                                ::std::auto_ptr<OLinkedDocumentsAccess> aHelper 
= getDocumentsAccess(_eType);
                                Reference< XComponent > xDefinition;
                                xRet.set(aHelper->open(_sName, 
xDefinition,_eOpenMode),UNO_QUERY);
-                               addDocumentListener(xRet,xDefinition);
+                               // if (_eOpenMode == 
OLinkedDocumentsAccess::OPEN_DESIGN ||
+                               // _eType == E_FORM )
+                               // {    
+                               //      // LLA: close only if in EDIT mode
+                               //     addDocumentListener(xRet,xDefinition);
+                               // }
                        }
                        break;
                




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

Reply via email to