SidebarDockingWindow.cxx (52d13b84) SidebarDockingWindow.cxx (6fa16b61)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 94 unchanged lines hidden (view full) ---

103 mpSidebarController->NotifyResize();
104 return sal_False;
105 }
106 else
107 return SfxDockingWindow::Close();
108}
109
110
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 94 unchanged lines hidden (view full) ---

103 mpSidebarController->NotifyResize();
104 return sal_False;
105 }
106 else
107 return SfxDockingWindow::Close();
108}
109
110
111
112
113SfxChildAlignment SidebarDockingWindow::CheckAlignment (
114 SfxChildAlignment eCurrentAlignment,
115 SfxChildAlignment eRequestedAlignment)
116{
117 switch (eRequestedAlignment)
118 {
119 case SFX_ALIGN_TOP:
120 case SFX_ALIGN_HIGHESTTOP:
121 case SFX_ALIGN_LOWESTTOP:
122 case SFX_ALIGN_BOTTOM:
123 case SFX_ALIGN_LOWESTBOTTOM:
124 case SFX_ALIGN_HIGHESTBOTTOM:
125 return eCurrentAlignment;
126
127 case SFX_ALIGN_LEFT:
128 case SFX_ALIGN_RIGHT:
129 case SFX_ALIGN_FIRSTLEFT:
130 case SFX_ALIGN_LASTLEFT:
131 case SFX_ALIGN_FIRSTRIGHT:
132 case SFX_ALIGN_LASTRIGHT:
133 return eRequestedAlignment;
134
135 default:
136 return eRequestedAlignment;
137 }
138}
139
140
111} } // end of namespace sfx2::sidebar
141} } // end of namespace sfx2::sidebar