summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox2.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-08-11 15:53:10 +0000
committerOliver Bolte <obo@openoffice.org>2004-08-11 15:53:10 +0000
commit18dc246c66815d26778f97f419b7e7fa9e92d96c (patch)
tree43e438f10bcfb6b9abc5dcb6985e342b29e88591 /vcl/source/window/toolbox2.cxx
parent9311bd48ef1cf9f62b60b166bae23d8ca46d61d1 (diff)
INTEGRATION: CWS docking3 (1.27.2); FILE MERGED
2004/07/22 10:37:59 ssa 1.27.2.1: #i31756# lock/unlock immediately and not triggered by paint
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r--vcl/source/window/toolbox2.cxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index d826ab094150..4dfa54248c97 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: toolbox2.cxx,v $
*
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
- * last change: $Author: hr $ $Date: 2004-08-02 15:02:07 $
+ * last change: $Author: obo $ $Date: 2004-08-11 16:53:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2247,3 +2247,24 @@ const XubString& ToolBox::GetHelpIdAsString() const
{
return mpData->maHelpIdStr;
}
+
+
+// -----------------------------------------------------------------------
+
+void ToolBox::Lock( BOOL bLock )
+{
+ ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( this );
+ if( !pWrapper )
+ return;
+ if( mpData->mbIsLocked != bLock )
+ {
+ mpData->mbIsLocked = bLock;
+ if( !ImplIsFloatingMode() )
+ {
+ mbCalc = TRUE;
+ mbFormat = TRUE;
+ SetSizePixel( CalcWindowSizePixel(1) );
+ Invalidate();
+ }
+ }
+}