summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-07-09 05:56:49 +0000
committerOcke Janssen <oj@openoffice.org>2001-07-09 05:56:49 +0000
commit507e109c5518fd5a09267630f1e2cade047984de (patch)
tree8e0b6ebfa12a67d5b7e7318d20a8259d7b37ef61 /dbaccess/source/ui/inc
parent84d3294c846836a9ad7fe0647d7687aa4a1add80 (diff)
#88144# d&d for creating relations corrected
Diffstat (limited to 'dbaccess/source/ui/inc')
-rw-r--r--dbaccess/source/ui/inc/JoinController.hxx22
-rw-r--r--dbaccess/source/ui/inc/JoinTableView.hxx11
-rw-r--r--dbaccess/source/ui/inc/RelationTableView.hxx9
-rw-r--r--dbaccess/source/ui/inc/TableWindowListBox.hxx21
-rw-r--r--dbaccess/source/ui/inc/dbu_resource.hrc8
5 files changed, 50 insertions, 21 deletions
diff --git a/dbaccess/source/ui/inc/JoinController.hxx b/dbaccess/source/ui/inc/JoinController.hxx
index cb6fe445a65e..49d921a8e593 100644
--- a/dbaccess/source/ui/inc/JoinController.hxx
+++ b/dbaccess/source/ui/inc/JoinController.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: JoinController.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: oj $ $Date: 2001-04-24 14:34:10 $
+ * last change: $Author: oj $ $Date: 2001-07-09 06:56:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -104,6 +104,7 @@ namespace dbaui
::std::vector<OTableWindowData*> m_vTableData;
Fraction m_aZoom;
+ ::dbtools::SQLExceptionInfo m_aExceptionInfo;
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xDataSource;
@@ -157,6 +158,23 @@ namespace dbaui
virtual void Load(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxIn);
virtual void Save(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOut);
+ /**
+ only defines a method to save a SQLException in d&d methods to show the error at a later state
+ set the internal member m_aExceptionInfo to _rInfo
+ */
+ void setErrorOccured(const ::dbtools::SQLExceptionInfo& _rInfo)
+ {
+ m_aExceptionInfo = _rInfo;
+ }
+ /**
+ just returns the internal member and clears it
+ */
+ ::dbtools::SQLExceptionInfo clearOccuredError()
+ {
+ ::dbtools::SQLExceptionInfo aInfo = m_aExceptionInfo;
+ m_aExceptionInfo = ::dbtools::SQLExceptionInfo();
+ return aInfo;
+ }
protected:
virtual OTableWindowData* createTableWindowData() = 0;
virtual void AddSupportedFeatures();
diff --git a/dbaccess/source/ui/inc/JoinTableView.hxx b/dbaccess/source/ui/inc/JoinTableView.hxx
index dafd30915a8c..dd72a1ef88c7 100644
--- a/dbaccess/source/ui/inc/JoinTableView.hxx
+++ b/dbaccess/source/ui/inc/JoinTableView.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: JoinTableView.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2001-07-06 09:55:43 $
+ * last change: $Author: oj $ $Date: 2001-07-09 06:56:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -228,6 +228,12 @@ namespace dbaui
virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
+ /**
+ can be used in derevied classes to make some special ui handling
+ after d&d
+ */
+ virtual void lookForUiActivities();
+
protected:
virtual void MouseButtonUp( const MouseEvent& rEvt );
virtual void MouseButtonDown( const MouseEvent& rEvt );
@@ -259,7 +265,6 @@ namespace dbaui
virtual OTableWindowData* CreateImpl(const ::rtl::OUString& _rComposedName,
const ::rtl::OUString& _rWinName);
-
private:
void InitColors();
BOOL ScrollWhileDragging();
diff --git a/dbaccess/source/ui/inc/RelationTableView.hxx b/dbaccess/source/ui/inc/RelationTableView.hxx
index 86ec39ab46f8..8d6524297f34 100644
--- a/dbaccess/source/ui/inc/RelationTableView.hxx
+++ b/dbaccess/source/ui/inc/RelationTableView.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: RelationTableView.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2001-03-23 09:09:24 $
+ * last change: $Author: oj $ $Date: 2001-07-09 06:56:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,8 +68,11 @@
namespace dbaui
{
class ORelationDesignView;
+ class ORelationTableConnectionData;
class ORelationTableView : public OJoinTableView
{
+ OTableConnection* m_pExistingConnection; // is set when a connection was draged on an existing connection
+ ORelationTableConnectionData* m_pCurrentlyTabConnData; // set when we creating a connection with more than one keycolumn
protected:
virtual void ConnDoubleClicked( OTableConnection* pConnection );
virtual void KeyInput( const KeyEvent& rEvt );
@@ -90,6 +93,8 @@ namespace dbaui
// reisst den Dialog fuer eine voellig neue Relation hoch
// wird vom AddTabDlg benutzt, um festzustellen, ob noch Tabellen hinzugefuegt werden duerfen
virtual BOOL IsAddAllowed();
+
+ virtual void lookForUiActivities();
};
}
#endif // DBAUI_RELATION_TABLEVIEW_HXX
diff --git a/dbaccess/source/ui/inc/TableWindowListBox.hxx b/dbaccess/source/ui/inc/TableWindowListBox.hxx
index fb4db8cb0787..2ab7741df7c5 100644
--- a/dbaccess/source/ui/inc/TableWindowListBox.hxx
+++ b/dbaccess/source/ui/inc/TableWindowListBox.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableWindowListBox.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: fs $ $Date: 2001-03-30 13:05:53 $
+ * last change: $Author: oj $ $Date: 2001-07-09 06:56:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,22 +82,18 @@ namespace dbaui
class OTableWindowListBox
:public SvTreeListBox
,public IDragTransferableListener
-#if SUPD<627
- ,public DragSourceHelper
- ,public DropTargetHelper
-#endif
{
DECL_LINK( DoubleClickHdl, SvTreeListBox* );
DECL_LINK( ScrollUpHdl, SvTreeListBox* );
DECL_LINK( ScrollDownHdl, SvTreeListBox* );
- Timer m_aScrollTimer;
- Point m_aMousePos;
+ Timer m_aScrollTimer;
+ Point m_aMousePos;
- OTableWindow* m_pTabWin;
+ OTableWindow* m_pTabWin;
- BOOL m_bReallyScrolled : 1;
- BOOL m_bDragSource : 1;
+ BOOL m_bReallyScrolled : 1;
+ BOOL m_bDragSource : 1;
protected:
virtual void LoseFocus();
@@ -107,7 +103,8 @@ namespace dbaui
virtual long PreNotify(NotifyEvent& rNEvt);
- virtual void dragFinished( );
+ virtual void dragFinished( );
+
public:
OTableWindowListBox(OTableWindow* pParent, const String& rDatabaseName, const String& rTableName);
diff --git a/dbaccess/source/ui/inc/dbu_resource.hrc b/dbaccess/source/ui/inc/dbu_resource.hrc
index 9c9809636ac9..58837776f1ba 100644
--- a/dbaccess/source/ui/inc/dbu_resource.hrc
+++ b/dbaccess/source/ui/inc/dbu_resource.hrc
@@ -2,9 +2,9 @@
*
* $RCSfile: dbu_resource.hrc,v $
*
- * $Revision: 1.54 $
+ * $Revision: 1.55 $
*
- * last change: $Author: oj $ $Date: 2001-07-06 08:13:55 $
+ * last change: $Author: oj $ $Date: 2001-07-09 06:56:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -440,6 +440,7 @@
#define STR_DSBROWSER_TITLE RID_STRING_START + 179
#define STR_ADABAS_ERROR_SYSTEMTABLES RID_STRING_START + 180
#define STR_TABLEDESIGN_ALTER_ERROR RID_STRING_START + 181
+#define STR_QUERY_REL_DELETE_WINDOW RID_STRING_START + 182
//========================================================================
// untyped resources
@@ -454,6 +455,9 @@
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.54 2001/07/06 08:13:55 oj
+ * #88923# correct table altering
+ *
* Revision 1.53 2001/07/04 13:09:13 oj
* #85663# check if table is accessable and returns data
*