summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/control/FieldDescControl.cxx5
-rw-r--r--dbaccess/source/ui/inc/FieldDescControl.hxx5
-rw-r--r--dbaccess/source/ui/inc/WTypeSelect.hxx7
-rw-r--r--dbaccess/source/ui/misc/WTypeSelect.cxx9
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.cxx9
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.hxx5
6 files changed, 27 insertions, 13 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index 45f2e3745495..6118587494fe 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FieldDescControl.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: oj $ $Date: 2002-05-31 07:50:01 $
+ * last change: $Author: oj $ $Date: 2002-07-09 13:19:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1184,6 +1184,7 @@ void OFieldDescControl::ActivateAggregate( EControlType eType )
WB_BORDER );
m_pColumnName->SetHelpId(HID_TAB_ENT_COLUMNNAME);
m_pColumnName->SetMaxTextLen(xub_StrLen( nMax ? nMax : EDIT_NOLIMIT));
+ m_pColumnName->setCheck( isSQL92CheckEnabled(getConnection()) );
}
SetPosSize( (Control**)&m_pColumnNameText, nPos, 0 );
diff --git a/dbaccess/source/ui/inc/FieldDescControl.hxx b/dbaccess/source/ui/inc/FieldDescControl.hxx
index 1ca9de687f7c..acc3031a8443 100644
--- a/dbaccess/source/ui/inc/FieldDescControl.hxx
+++ b/dbaccess/source/ui/inc/FieldDescControl.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FieldDescControl.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2001-07-16 07:50:32 $
+ * last change: $Author: oj $ $Date: 2002-07-09 13:18:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -239,6 +239,7 @@ namespace dbaui
virtual void Resize();
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData() = 0;
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection() = 0;
protected:
void implFocusLost(Window* _pWhich);
};
diff --git a/dbaccess/source/ui/inc/WTypeSelect.hxx b/dbaccess/source/ui/inc/WTypeSelect.hxx
index 4836b024a91f..99c4cc92596a 100644
--- a/dbaccess/source/ui/inc/WTypeSelect.hxx
+++ b/dbaccess/source/ui/inc/WTypeSelect.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WTypeSelect.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: oj $ $Date: 2002-02-06 07:44:03 $
+ * last change: $Author: oj $ $Date: 2002-07-09 13:18:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,9 +110,10 @@ namespace dbaui
: OFieldDescControl(pParent,pHelpBar) { };
OWizTypeSelectControl(Window* pParent, const ResId& rResId,OTableDesignHelpBar* pHelpBar=NULL)
: OFieldDescControl(pParent,rResId,pHelpBar) { };
- ~OWizTypeSelectControl();
+ virtual ~OWizTypeSelectControl();
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData();
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection();
};
diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx
index 101c132eb032..3e914479f9ea 100644
--- a/dbaccess/source/ui/misc/WTypeSelect.cxx
+++ b/dbaccess/source/ui/misc/WTypeSelect.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WTypeSelect.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: hr $ $Date: 2002-05-15 09:25:27 $
+ * last change: $Author: oj $ $Date: 2002-07-09 13:20:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -196,6 +196,11 @@ const OTypeInfoMap* OWizTypeSelectControl::getTypeInfo() const
{
return ((OWizTypeSelect*)GetParent())->m_pParent->m_xConnection->getMetaData();
}
+// -----------------------------------------------------------------------------
+::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> OWizTypeSelectControl::getConnection()
+{
+ return ((OWizTypeSelect*)GetParent())->m_pParent->m_xConnection;
+}
//========================================================================
DBG_NAME(OWizTypeSelect);
#define IMG_PRIMARY_KEY 1
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
index ef1f11d8263d..c2cec8409355 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableFieldControl.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: fs $ $Date: 2001-03-19 06:04:38 $
+ * last change: $Author: oj $ $Date: 2002-07-09 13:19:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -154,6 +154,11 @@ void OTableFieldControl::SetModified(BOOL bModified)
GetCtrl()->GetView()->getController()->setModified(bModified);
}
// -----------------------------------------------------------------------------
+::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> OTableFieldControl::getConnection()
+{
+ return GetCtrl()->GetView()->getController()->getConnection();
+}
+// -----------------------------------------------------------------------------
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> OTableFieldControl::getMetaData()
{
Reference<XConnection> xCon = GetCtrl()->GetView()->getController()->getConnection();
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
index 5cdbdbce3738..e9c04d6c956c 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableFieldControl.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: oj $ $Date: 2001-02-14 14:24:36 $
+ * last change: $Author: oj $ $Date: 2002-07-09 13:19:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -97,6 +97,7 @@ namespace dbaui
String BoolStringUI(const String& rPersistentString) const { return OFieldDescControl::BoolStringUI(rPersistentString); }
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData();
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection();
};
}
#endif // DBAUI_TABLEFIELDCONTROL_HXX