summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-08-15 12:19:03 +0000
committerOcke Janssen <oj@openoffice.org>2001-08-15 12:19:03 +0000
commit534b13f75f2053c655773559436c2b1b7bbede04 (patch)
tree84f18116881d2d8c5400d6e78f46642a798d06e5 /dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
parentaa3b7155e071de355eb1421b6d84cfe1ed739985 (diff)
#88644# insert some DBG's and fix getFocus calls
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryViewSwitch.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/QueryViewSwitch.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
index 3dc80c67bbea..132e1d9b4dd2 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.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: oj $ $Date: 2001-04-18 13:16:33 $
+ * last change: $Author: oj $ $Date: 2001-08-15 13:19:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,10 +94,11 @@ using namespace dbaui;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-
+DBG_NAME(OQueryViewSwitch);
OQueryViewSwitch::OQueryViewSwitch(Window* _pParent, OQueryController* _pController,const Reference< XMultiServiceFactory >& _rFactory)
// :OQueryView(_pParent,_pController,_rFactory)
{
+ DBG_CTOR(OQueryViewSwitch,NULL);
ToolBox* pToolBox = new ToolBox(_pParent, ModuleRes(RID_BRW_QUERYDESIGN_TOOLBOX));
m_pTextView = new OQueryTextView(_pParent,pToolBox);
@@ -129,6 +130,7 @@ OQueryViewSwitch::~OQueryViewSwitch()
delete m_pTextView;
// delete m_pDesignView; // will be deleted by XFrame
+ DBG_DTOR(OQueryViewSwitch,NULL);
}
// -------------------------------------------------------------------------
void OQueryViewSwitch::Construct(const Reference< ::com::sun::star::awt::XControlModel >& xModel)
@@ -186,6 +188,14 @@ void OQueryViewSwitch::clear()
m_pDesignView->clear();
}
// -----------------------------------------------------------------------------
+void OQueryViewSwitch::GetFocus()
+{
+ if(m_pTextView->IsVisible())
+ m_pTextView->GetFocus();
+ else
+ m_pDesignView->GetFocus();
+}
+// -----------------------------------------------------------------------------
void OQueryViewSwitch::setStatement(const ::rtl::OUString& _rsStatement)
{
if(m_pTextView->IsVisible())