Tag: cws_src680_qiq
User: fs      
Date: 06/05/11 03:39:30

Modified:
 /dba/dbaccess/source/ui/inc/
  sqlmessage.hxx

Log:
 #51143# some refactoring - should now display the More button only when 
(halfway) needed; should now also allow for message boxes displaying one text 
only

File Changes:

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

File [changed]: sqlmessage.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/sqlmessage.hxx?r1=1.4.124.1&r2=1.4.124.2
Delta lines:  +13 -28
---------------------
--- sqlmessage.hxx      10 May 2006 11:00:22 -0000      1.4.124.1
+++ sqlmessage.hxx      11 May 2006 10:39:27 -0000      1.4.124.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqlmessage.hxx,v $
  *
- *  $Revision: 1.4.124.1 $
+ *  $Revision: 1.4.124.2 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/10 11:00:22 $
+ *  last change: $Author: fs $ $Date: 2006/05/11 10:39:27 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -45,8 +45,9 @@
 #ifndef _SV_BTNDLG_HXX
 #include <vcl/btndlg.hxx>
 #endif
-#ifndef _COM_SUN_STAR_UNO_ANY_HXX_
-#include <com/sun/star/uno/Any.hxx>
+
+#ifndef _DBHELPER_DBEXCEPTION_HXX_
+#include <connectivity/dbexception.hxx>
 #endif
 
 // some forwards
@@ -58,10 +59,6 @@
                class SQLException;
        }
 } } }
-namespace dbtools
-{
-       class SQLExceptionInfo;
-}
 
 //.........................................................................
 namespace dbaui
@@ -77,8 +74,7 @@
        FixedText               m_aTitle;
        FixedText               m_aMessage;
 
-    ::com::sun::star::uno::Any         m_aNextChainElement;
-       PushButton*                                             m_pInfoButton;
+    ::dbtools::SQLExceptionInfo m_aExceptionInfo;
 
 public:
        enum MessageType
@@ -92,17 +88,6 @@
        };
 
 public:
-       /**     display a SQLException
-               <p/>
-               @param          _rTitle         main message
-               @param          _rError         detailed message, may contain 
an exception chain to be displayed on an user request
-       */
-       OSQLMessageBox(Window* _pParent,
-                               const UniString& _rTitle,
-                               const ::com::sun::star::sdbc::SQLException& 
_rError,
-                               WinBits _nStyle = WB_OK | WB_DEF_OK,
-                               MessageType _eImage = Info);
-
        /**     display an SQLException with auto-recognizing a main and a 
detailed message
                <p/>
                The first two messages from the exception chain are used as 
main and detailed message (recognizing the
@@ -139,16 +124,16 @@
                                WinBits nStyle = WB_OK | WB_DEF_OK,
                                MessageType eImage = Info);
 
-       ~OSQLMessageBox();
-
 private:
-       void Construct(const dbtools::SQLExceptionInfo& _rException, WinBits 
nStyle, MessageType eImage);
-       void Construct(const UniString& rTitle,
-                                  const UniString& rMessage,
-                                  WinBits nStyle,
-                                  MessageType eImage);
+    void Construct( WinBits nStyle, MessageType eImage );
 
        DECL_LINK(ButtonClickHdl, Button* );
+
+private:
+    void    impl_positionControls();
+    void    impl_initImage( MessageType _eImage );
+    void    impl_createStandardButtons( WinBits _nStyle );
+    void    impl_addDetailsButton();
 };
 
 //.........................................................................




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

Reply via email to