diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-02-11 12:02:08 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-02-11 12:02:08 +0000 |
commit | 5c49431dec80a83b03533b66f6be62a8d8b11038 (patch) | |
tree | bc9bba9ab4fdda995ab47322a67e25a8af716a7c /dbaccess/source/ui/querydesign/QueryViewSwitch.cxx | |
parent | a615af5c4bdb3c4f68e68b77babcb85ec20a78e2 (diff) |
#90580# enable F6 key for components
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryViewSwitch.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryViewSwitch.cxx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx index d8db175949aa..60a330beca7d 100644 --- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx +++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx @@ -2,9 +2,9 @@ * * $RCSfile: QueryViewSwitch.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: oj $ $Date: 2002-02-06 11:35:20 $ + * last change: $Author: oj $ $Date: 2002-02-11 12:56:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -179,6 +179,23 @@ void OQueryViewSwitch::GetFocus() m_pDesignView->GetFocus(); } // ----------------------------------------------------------------------------- +void OQueryViewSwitch::GrabFocus() +{ + if ( m_pTextView && m_pTextView->IsVisible() ) + m_pTextView->GrabFocus(); + else if ( m_pDesignView && m_pDesignView->IsVisible() ) + m_pDesignView->GrabFocus(); +} +// ----------------------------------------------------------------------------- +Window* OQueryViewSwitch::getActive() const +{ + Window* pRet = m_pDesignView; + if ( m_pTextView && m_pTextView->IsVisible() ) + pRet = m_pTextView; + + return pRet; +} +// ----------------------------------------------------------------------------- void OQueryViewSwitch::setStatement(const ::rtl::OUString& _rsStatement) { if(m_pTextView->IsVisible()) |