1*7a32b0c8SAndre Fischer /**************************************************************
2*7a32b0c8SAndre Fischer  *
3*7a32b0c8SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
4*7a32b0c8SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
5*7a32b0c8SAndre Fischer  * distributed with this work for additional information
6*7a32b0c8SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
7*7a32b0c8SAndre Fischer  * to you under the Apache License, Version 2.0 (the
8*7a32b0c8SAndre Fischer  * "License"); you may not use this file except in compliance
9*7a32b0c8SAndre Fischer  * with the License.  You may obtain a copy of the License at
10*7a32b0c8SAndre Fischer  *
11*7a32b0c8SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
12*7a32b0c8SAndre Fischer  *
13*7a32b0c8SAndre Fischer  * Unless required by applicable law or agreed to in writing,
14*7a32b0c8SAndre Fischer  * software distributed under the License is distributed on an
15*7a32b0c8SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7a32b0c8SAndre Fischer  * KIND, either express or implied.  See the License for the
17*7a32b0c8SAndre Fischer  * specific language governing permissions and limitations
18*7a32b0c8SAndre Fischer  * under the License.
19*7a32b0c8SAndre Fischer  *
20*7a32b0c8SAndre Fischer  *************************************************************/
21*7a32b0c8SAndre Fischer 
22*7a32b0c8SAndre Fischer #include "precompiled_sfx2.hxx"
23*7a32b0c8SAndre Fischer 
24*7a32b0c8SAndre Fischer #include "sfx2/sidebar/PopupContainer.hxx"
25*7a32b0c8SAndre Fischer 
26*7a32b0c8SAndre Fischer namespace sfx2 { namespace sidebar {
27*7a32b0c8SAndre Fischer 
PopupContainer(Window * pParent)28*7a32b0c8SAndre Fischer PopupContainer::PopupContainer (Window* pParent)
29*7a32b0c8SAndre Fischer     : FloatingWindow(pParent, WB_SYSTEMWINDOW | WB_3DLOOK)
30*7a32b0c8SAndre Fischer {
31*7a32b0c8SAndre Fischer }
32*7a32b0c8SAndre Fischer 
33*7a32b0c8SAndre Fischer 
34*7a32b0c8SAndre Fischer 
35*7a32b0c8SAndre Fischer 
~PopupContainer(void)36*7a32b0c8SAndre Fischer PopupContainer::~PopupContainer (void)
37*7a32b0c8SAndre Fischer {
38*7a32b0c8SAndre Fischer }
39*7a32b0c8SAndre Fischer 
40*7a32b0c8SAndre Fischer 
41*7a32b0c8SAndre Fischer 
42*7a32b0c8SAndre Fischer 
Notify(NotifyEvent & rEvent)43*7a32b0c8SAndre Fischer long  PopupContainer::Notify (NotifyEvent& rEvent)
44*7a32b0c8SAndre Fischer {
45*7a32b0c8SAndre Fischer 	if (rEvent.GetType() == EVENT_LOSEFOCUS)
46*7a32b0c8SAndre Fischer 	{
47*7a32b0c8SAndre Fischer 		if( ! HasChildPathFocus(sal_True))
48*7a32b0c8SAndre Fischer 			EndPopupMode();
49*7a32b0c8SAndre Fischer 	}
50*7a32b0c8SAndre Fischer 	return FloatingWindow::Notify(rEvent);
51*7a32b0c8SAndre Fischer }
52*7a32b0c8SAndre Fischer 
53*7a32b0c8SAndre Fischer 
54*7a32b0c8SAndre Fischer } } // end of namespace sfx2::sidebar
55