Lines 63-69
Link Here
|
63 |
using ::com::sun::star::lang::IndexOutOfBoundsException; |
63 |
using ::com::sun::star::lang::IndexOutOfBoundsException; |
64 |
|
64 |
|
65 |
VCLXTopWindow_Base::VCLXTopWindow_Base( const bool _bSupportSystemWindowPeer ) |
65 |
VCLXTopWindow_Base::VCLXTopWindow_Base( const bool _bSupportSystemWindowPeer ) |
66 |
:m_bWHWND( _bSupportSystemWindowPeer ) |
66 |
:m_bWHWND( _bSupportSystemWindowPeer ), |
|
|
67 |
m_bHasAWTMenuBar( sal_False ) |
67 |
{ |
68 |
{ |
68 |
} |
69 |
} |
69 |
|
70 |
|
Lines 180-191
Link Here
|
180 |
{ |
181 |
{ |
181 |
VCLXMenu* pMenu = VCLXMenu::GetImplementation( rxMenu ); |
182 |
VCLXMenu* pMenu = VCLXMenu::GetImplementation( rxMenu ); |
182 |
if ( pMenu && !pMenu->IsPopupMenu() ) |
183 |
if ( pMenu && !pMenu->IsPopupMenu() ) |
|
|
184 |
{ |
183 |
pWindow->SetMenuBar( (MenuBar*) pMenu->GetMenu() ); |
185 |
pWindow->SetMenuBar( (MenuBar*) pMenu->GetMenu() ); |
|
|
186 |
m_bHasAWTMenuBar = sal_True; |
187 |
} |
184 |
} |
188 |
} |
185 |
} |
189 |
} |
186 |
mxMenuBar = rxMenu; |
190 |
mxMenuBar = rxMenu; |
187 |
} |
191 |
} |
188 |
|
192 |
|
|
|
193 |
void VCLXTopWindow_Base::cleanUpMenuBar() |
194 |
{ |
195 |
::vos::OGuard aGuard( GetMutexImpl() ); |
196 |
|
197 |
if ( m_bHasAWTMenuBar ) |
198 |
{ |
199 |
SystemWindow* pWindow = (SystemWindow*) GetWindowImpl(); |
200 |
if ( pWindow ) |
201 |
{ |
202 |
pWindow->SetMenuBar( NULL ); |
203 |
m_bHasAWTMenuBar = sal_False; |
204 |
} |
205 |
} |
206 |
} |
207 |
|
189 |
//-------------------------------------------------------------------- |
208 |
//-------------------------------------------------------------------- |
190 |
::sal_Bool SAL_CALL VCLXTopWindow_Base::getIsMaximized() throw (RuntimeException) |
209 |
::sal_Bool SAL_CALL VCLXTopWindow_Base::getIsMaximized() throw (RuntimeException) |
191 |
{ |
210 |
{ |
Lines 265-270
Link Here
|
265 |
// class VCLXTopWindow |
284 |
// class VCLXTopWindow |
266 |
// ---------------------------------------------------- |
285 |
// ---------------------------------------------------- |
267 |
|
286 |
|
|
|
287 |
void VCLXTopWindow::dispose() throw(::com::sun::star::uno::RuntimeException) |
288 |
{ |
289 |
VCLXTopWindow_Base::cleanUpMenuBar(); |
290 |
VCLXContainer::dispose(); |
291 |
} |
292 |
|
268 |
void VCLXTopWindow::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds ) |
293 |
void VCLXTopWindow::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds ) |
269 |
{ |
294 |
{ |
270 |
VCLXContainer::ImplGetPropertyIds( rIds ); |
295 |
VCLXContainer::ImplGetPropertyIds( rIds ); |