summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/JoinController.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-04-24 13:28:56 +0000
committerOcke Janssen <oj@openoffice.org>2001-04-24 13:28:56 +0000
commite55c84b315c7b81eb9bfd3bf5c439435098e58b7 (patch)
treeec0cc31bca161e0d84aac05255fa3bd46bfff053 /dbaccess/source/ui/querydesign/JoinController.cxx
parentf93bf62993dfd8df4f7a641456e1b7475b94d105 (diff)
impl views and a menu
Diffstat (limited to 'dbaccess/source/ui/querydesign/JoinController.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/JoinController.cxx19
1 files changed, 16 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx
index c8805f2bdaf5..24b9c9072489 100644
--- a/dbaccess/source/ui/querydesign/JoinController.cxx
+++ b/dbaccess/source/ui/querydesign/JoinController.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: JoinController.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2001-04-18 07:02:22 $
+ * last change: $Author: oj $ $Date: 2001-04-24 14:28:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -320,6 +320,8 @@ FeatureState OJoinController::GetState(sal_uInt16 _nId)
switch (_nId)
{
+ case SID_CLOSEDOC:
+ break;
case ID_BROWSER_EDITDOC:
aReturn.aState = ::cppu::bool2any(m_bEditable);
break;
@@ -346,6 +348,10 @@ void OJoinController::Execute(sal_uInt16 _nId)
{
switch(_nId)
{
+ case SID_CLOSEDOC:
+ closeTask();
+ return;
+ break;
case ID_BROWSER_EDITDOC:
m_bEditable = !m_bEditable;
static_cast<OJoinDesignView*>(m_pView)->setReadOnly(!m_bEditable);
@@ -394,7 +400,14 @@ void OJoinController::removeConnectionData(::std::auto_ptr<OTableConnectionData>
m_vTableConnectionData.erase( ::std::find(m_vTableConnectionData.begin(),m_vTableConnectionData.end(),_pData.get()));
}
// -----------------------------------------------------------------------------
-
+void OJoinController::AddSupportedFeatures()
+{
+ m_aSupportedFeatures[ ::rtl::OUString::createFromAscii(".uno:Redo")] = ID_BROWSER_REDO;
+ m_aSupportedFeatures[ ::rtl::OUString::createFromAscii(".uno:Save")] = ID_BROWSER_SAVEDOC;
+ m_aSupportedFeatures[ ::rtl::OUString::createFromAscii(".uno:Undo")] = ID_BROWSER_UNDO;
+ m_aSupportedFeatures[ ::rtl::OUString::createFromAscii(".uno:DB/Close")] = SID_CLOSEDOC;
+}
+// -----------------------------------------------------------------------------