summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc/JoinController.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 14:15:26 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 14:15:26 +0000
commit47ae3fe9a235fa9a8f19c9144928de3e30e88727 (patch)
tree2ce131210329f06275765197c564e99279f63167 /dbaccess/source/ui/inc/JoinController.hxx
parent4c7e3bfaf616b0ef09b8516538b943d502eb5ad6 (diff)
INTEGRATION: CWS dba24b (1.22.28); FILE MERGED
2007/08/24 11:15:57 oj 1.22.28.2: #i80894# reset range to show all tables 2007/08/16 06:14:43 oj 1.22.28.1: #i56898# clean up of the class structure
Diffstat (limited to 'dbaccess/source/ui/inc/JoinController.hxx')
-rw-r--r--dbaccess/source/ui/inc/JoinController.hxx24
1 files changed, 14 insertions, 10 deletions
diff --git a/dbaccess/source/ui/inc/JoinController.hxx b/dbaccess/source/ui/inc/JoinController.hxx
index 2e8a32bf5e82..e9a3991b62f7 100644
--- a/dbaccess/source/ui/inc/JoinController.hxx
+++ b/dbaccess/source/ui/inc/JoinController.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: JoinController.hxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: rt $ $Date: 2007-07-06 08:23:57 $
+ * last change: $Author: hr $ $Date: 2007-11-01 15:15:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -50,9 +50,12 @@
#ifndef DBAUI_JOINDESIGNVIEW_HXX
#include "JoinDesignView.hxx"
#endif
+#include "TableConnectionData.hxx"
+#include "TableWindowData.hxx"
#ifndef _MEMORY_
#include <memory>
#endif
+#include <boost/shared_ptr.hpp>
class VCLXWindow;
namespace dbaui
@@ -63,18 +66,20 @@ namespace dbaui
class OTableWindowData;
class OTableWindow;
typedef OSingleDocumentController OJoinController_BASE;
+
class OJoinController : public OJoinController_BASE
{
OModuleClient m_aModuleClient;
protected:
- ::std::vector<OTableConnectionData*> m_vTableConnectionData;
- ::std::vector<OTableWindowData*> m_vTableData;
+ TTableConnectionData m_vTableConnectionData;
+ TTableWindowData m_vTableData;
Fraction m_aZoom;
::dbtools::SQLExceptionInfo m_aExceptionInfo;
OAddTableDlg* m_pAddTableDialog;
::std::auto_ptr< AddTableDialogContext > m_pDialogContext;
+ Point m_aMinimumTableViewSize;
// state of a feature. 'feature' may be the handle of a ::com::sun::star::util::URL somebody requested a dispatch interface for OR a toolbar slot.
virtual FeatureState GetState(sal_uInt16 nId) const;
@@ -105,10 +110,9 @@ namespace dbaui
// ---------------------------------------------------------------
// attribute access
- ::std::vector< OTableWindowData*>* getTableWindowData() { return &m_vTableData; }
- ::std::vector< OTableConnectionData*>* getTableConnectionData() { return &m_vTableConnectionData;}
-
- OAddTableDlg* getAddTableDialog() const { return m_pAddTableDialog; }
+ inline TTableWindowData* getTableWindowData() { return &m_vTableData; }
+ inline TTableConnectionData* getTableConnectionData() { return &m_vTableConnectionData;}
+ inline OAddTableDlg* getAddTableDialog()const { return m_pAddTableDialog; }
// ---------------------------------------------------------------
// OSingleDocumentController overridables
@@ -136,7 +140,7 @@ namespace dbaui
@param _pData
the data whioch should be erased
*/
- void removeConnectionData(OTableConnectionData* _pData);
+ void removeConnectionData(const TTableConnectionData::value_type& _pData);
void SaveTabWinsPosSize( OJoinTableView::OTableWindowMap* pTabWinList, long nOffsetX, long nOffsetY );
@@ -173,7 +177,7 @@ namespace dbaui
}
protected:
- virtual OTableWindowData* createTableWindowData() = 0;
+ TTableWindowData::value_type createTableWindowData(const ::rtl::OUString& _sComposedName,const ::rtl::OUString& _sTableName,const ::rtl::OUString& _sWindowName);
// ask the user if the design should be saved when it is modified
virtual short saveModified() = 0;
// called when the orignal state should be reseted (first time load)