unoawt: WINDOW_*BOX also do not require a parent window, so allow creating them without parent

This commit is contained in:
Frank Schoenheit [fs] 2010-05-28 15:23:19 +02:00
parent 4e5d6754bf
commit 0fe86b35c9

View file

@ -632,7 +632,15 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
// Wenn die Component einen Parent braucht, dann NULL zurueckgeben,
// spaeter mal ::com::sun::star::uno::Exception...
sal_Bool bException = sal_True;
if ( ( nType == WINDOW_DIALOG ) || ( nType == WINDOW_MODALDIALOG ) || ( nType == WINDOW_MODELESSDIALOG ) )
if ( ( nType == WINDOW_DIALOG )
|| ( nType == WINDOW_MODALDIALOG )
|| ( nType == WINDOW_MODELESSDIALOG )
|| ( nType == WINDOW_MESSBOX )
|| ( nType == WINDOW_INFOBOX )
|| ( nType == WINDOW_WARNINGBOX )
|| ( nType == WINDOW_ERRORBOX )
|| ( nType == WINDOW_QUERYBOX )
)
bException = sal_False;
else if ( ( nType == WINDOW_WINDOW ) ||
( nType == WINDOW_WORKWINDOW ) ||