diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-01-14 12:06:28 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-01-14 12:06:28 +0000 |
commit | 1e6fece8eab2f2da3c7e6fbd729bfd5a94780f90 (patch) | |
tree | c3879bfcda18d83547f34b0918ea145483d0f96e /vcl/source | |
parent | 7d8d0882d6df8938dea07f397fd3a4e6c341008b (diff) |
INTEGRATION: CWS awtfixes1 (1.9.10); FILE MERGED
2007/08/17 14:56:31 mmeeks 1.9.10.2: RESYNC: (1.9-1.10); FILE MERGED
2007/08/17 13:52:58 mmeeks 1.9.10.1: Issue number: i#80754#
Submitted by: mmeeks
Start of virtual method for sizing ...
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/window3.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/vcl/source/window/window3.cxx b/vcl/source/window/window3.cxx index 4f9f1f59c790..4af0643383ae 100644 --- a/vcl/source/window/window3.cxx +++ b/vcl/source/window/window3.cxx @@ -4,9 +4,9 @@ * * $RCSfile: window3.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2007-07-24 10:23:32 $ + * last change: $Author: ihi $ $Date: 2008-01-14 13:06:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -317,3 +317,18 @@ WaitObject::~WaitObject() if ( mpWindow ) mpWindow->LeaveWait(); } + +// ----------------------------------------------------------------------- + +Size Window::GetOptimalSize(WindowSizeType eType) const +{ + switch (eType) { + case WINDOWSIZE_MINIMUM: + return Size(); + case WINDOWSIZE_PREFERRED: + return GetOptimalSize( WINDOWSIZE_MINIMUM ); + case WINDOWSIZE_MAXIMUM: + default: + return Size( LONG_MAX, LONG_MAX ); + } +} |