summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/dlgctrl.cxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-08-26 11:52:04 +0000
committerOliver Specht <os@openoffice.org>2002-08-26 11:52:04 +0000
commitf5e699ed1a4c1a6efcf93158c6b846f815d84a2e (patch)
tree49da8c0c951bfa7d7f32b5bf2fccf1c967ebc8e4 /svx/source/dialog/dlgctrl.cxx
parent#98671# change type for sequence to VARBINARY (diff)
downloadcore-f5e699ed1a4c1a6efcf93158c6b846f815d84a2e.tar.gz
core-f5e699ed1a4c1a6efcf93158c6b846f815d84a2e.zip
#99657# SvxRectCtrl resizeable
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx39
1 files changed, 26 insertions, 13 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index e1f8a7edb000..73d57813c714 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlgctrl.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: gt $ $Date: 2002-06-28 14:26:00 $
+ * last change: $Author: os $ $Date: 2002-08-26 12:52:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -134,6 +134,30 @@ SvxRectCtl::SvxRectCtl( Window* pParent, const ResId& rResId, RECT_POINT eRpt,
pBitmap ( NULL )
{
SetMapMode( MAP_100TH_MM );
+ Resize_Impl();
+}
+
+// -----------------------------------------------------------------------
+
+SvxRectCtl::~SvxRectCtl()
+{
+ delete pBitmap;
+
+ if( pAccContext )
+ pAccContext->release();
+}
+
+// -----------------------------------------------------------------------
+void SvxRectCtl::Resize()
+{
+ Resize_Impl();
+ Control::Resize();
+}
+
+// -----------------------------------------------------------------------
+
+void SvxRectCtl::Resize_Impl()
+{
aSize = GetOutputSize();
switch( eCS )
@@ -171,17 +195,6 @@ SvxRectCtl::SvxRectCtl( Window* pParent, const ResId& rResId, RECT_POINT eRpt,
Reset();
InitSettings( TRUE, TRUE );
}
-
-// -----------------------------------------------------------------------
-
-SvxRectCtl::~SvxRectCtl()
-{
- delete pBitmap;
-
- if( pAccContext )
- pAccContext->release();
-}
-
// -----------------------------------------------------------------------
void SvxRectCtl::InitBitmap( void )