summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign/TableDesignView.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-08-15 12:43:46 +0000
committerFrank Schönheit <fs@openoffice.org>2001-08-15 12:43:46 +0000
commit5bfca1f12ff8206b2eafb1e1a0766b63d991186a (patch)
treeb7defac345ebd393b047c3413ee19128fa12ee70 /dbaccess/source/ui/tabledesign/TableDesignView.cxx
parentb28c4e7fb0263a86210b5946207738a90fc057fc (diff)
#88637# resize semantics changed
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableDesignView.cxx')
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignView.cxx21
1 files changed, 8 insertions, 13 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
index 9084bb04b376..9b3dff491905 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableDesignView.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2001-07-16 07:55:35 $
+ * last change: $Author: fs $ $Date: 2001-08-15 13:43:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -288,20 +288,15 @@ void OTableDesignView::initialize()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
-void OTableDesignView::resizeControl(Rectangle& _rRect)
+void OTableDesignView::resizeControl(Rectangle& _rPlayground)
{
- Size aToolBoxSize;
- ToolBox* pToolBox = getToolBox();
- if(pToolBox)
- aToolBoxSize = pToolBox->GetOutputSizePixel();
- Size aSize = GetOutputSizePixel();
+ m_pWin->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() );
- m_pWin->SetPosSizePixel(Point(0,aToolBoxSize.Height()),Size(aSize.Width(),aSize.Height() - aToolBoxSize.Height()));
-
- aToolBoxSize.Width() = _rRect.getWidth();
- _rRect.SetPos(Point(0,0));
- _rRect.SetSize(aToolBoxSize);
+ // just for completeness: there is no space left, we occupied it all ...
+ _rPlayground.SetPos( _rPlayground.BottomRight() );
+ _rPlayground.SetSize( Size( 0, 0 ) );
}
+
//------------------------------------------------------------------------------
IMPL_LINK( OTableDesignView, SwitchHdl, Accelerator*, pAcc )
{