summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r--dbaccess/source/ui/querydesign/TableWindow.cxx21
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowListBox.cxx13
2 files changed, 19 insertions, 15 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindow.cxx b/dbaccess/source/ui/querydesign/TableWindow.cxx
index 63810fe0b9d1..cb70e40416db 100644
--- a/dbaccess/source/ui/querydesign/TableWindow.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindow.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableWindow.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: oj $ $Date: 2001-10-26 07:49:36 $
+ * last change: $Author: oj $ $Date: 2001-11-09 12:20:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -555,17 +555,16 @@ void OTableWindow::SetBoldTitle( BOOL bBold )
void OTableWindow::GetFocus()
{
Window::GetFocus();
- SetBoldTitle( TRUE );
- m_bActive = TRUE;
+ // we have to forward the focus to our listbox to enable keystokes
+ if(m_pListBox)
+ m_pListBox->GrabFocus();
}
-
-//------------------------------------------------------------------------------
-void OTableWindow::LoseFocus()
+// -----------------------------------------------------------------------------
+void OTableWindow::setActive(sal_Bool _bActive)
{
- Window::LoseFocus();
- SetBoldTitle( FALSE );
- m_bActive = FALSE;
- if (m_pListBox && m_pListBox->GetSelectionCount() != 0)
+ SetBoldTitle( _bActive );
+ m_bActive = _bActive;
+ if (!_bActive && m_pListBox && m_pListBox->GetSelectionCount() != 0)
m_pListBox->SelectAll(FALSE);
}
diff --git a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx
index d8bf126778c6..c0c98b0fe395 100644
--- a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableWindowListBox.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: oj $ $Date: 2001-10-26 07:49:36 $
+ * last change: $Author: oj $ $Date: 2001-11-09 12:20:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -391,12 +391,17 @@ sal_Int8 OTableWindowListBox::ExecuteDrop( const ExecuteDropEvent& _rEvt )
//------------------------------------------------------------------------------
void OTableWindowListBox::LoseFocus()
{
+ if(m_pTabWin)
+ m_pTabWin->setActive(sal_False);
SvTreeListBox::LoseFocus();
}
//------------------------------------------------------------------------------
void OTableWindowListBox::GetFocus()
{
+ if(m_pTabWin)
+ m_pTabWin->setActive();
+
if (GetCurEntry() != NULL)
{
if (GetSelectionCount() == 0)
@@ -406,8 +411,8 @@ void OTableWindowListBox::GetFocus()
}
SvTreeListBox::GetFocus();
- if(m_pTabWin)
- m_pTabWin->GrabFocus();
+// if(m_pTabWin)
+// m_pTabWin->GrabFocus();
}
//------------------------------------------------------------------------------