summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryViewSwitch.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/QueryViewSwitch.cxx23
1 files changed, 8 insertions, 15 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
index 132e1d9b4dd2..8f3a48bf3e2d 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.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2001-08-15 13:19:03 $
+ * last change: $Author: fs $ $Date: 2001-08-15 13:41:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -148,21 +148,14 @@ void OQueryViewSwitch::initialize()
switchView();
}
// -------------------------------------------------------------------------
-void OQueryViewSwitch::resizeControl(Rectangle& _rRect)
+void OQueryViewSwitch::resizeControl(Rectangle& _rPlayground)
{
- Size aToolBoxSize;
- ToolBox* pToolBox = m_pDesignView->getToolBox();
- if(pToolBox)
- aToolBoxSize = pToolBox->GetOutputSizePixel();
-
- Point aStart(_rRect.TopLeft());
- aStart.Y() += aToolBoxSize.Height();
-
- m_pTextView->SetPosSizePixel(aStart,Size(_rRect.GetSize().Width(),_rRect.GetSize().Height()-aToolBoxSize.Height()));
- m_pDesignView->SetPosSizePixel(aStart,Size(_rRect.GetSize().Width(),_rRect.GetSize().Height()-aToolBoxSize.Height()));
+ m_pTextView->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() );
+ m_pDesignView->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() );
- aToolBoxSize.Width() += _rRect.getWidth();
- _rRect.SetSize(aToolBoxSize);
+ // just for completeness: there is no space left, we occupied it all ...
+ _rPlayground.SetPos( _rPlayground.BottomRight() );
+ _rPlayground.SetSize( Size( 0, 0 ) );
}
// -----------------------------------------------------------------------------
::rtl::OUString OQueryViewSwitch::getStatement()