122de8995SAndre Fischer /**************************************************************
222de8995SAndre Fischer  *
322de8995SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
422de8995SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
522de8995SAndre Fischer  * distributed with this work for additional information
622de8995SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
722de8995SAndre Fischer  * to you under the Apache License, Version 2.0 (the
822de8995SAndre Fischer  * "License"); you may not use this file except in compliance
922de8995SAndre Fischer  * with the License.  You may obtain a copy of the License at
1022de8995SAndre Fischer  *
1122de8995SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
1222de8995SAndre Fischer  *
1322de8995SAndre Fischer  * Unless required by applicable law or agreed to in writing,
1422de8995SAndre Fischer  * software distributed under the License is distributed on an
1522de8995SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1622de8995SAndre Fischer  * KIND, either express or implied.  See the License for the
1722de8995SAndre Fischer  * specific language governing permissions and limitations
1822de8995SAndre Fischer  * under the License.
1922de8995SAndre Fischer  *
2022de8995SAndre Fischer  *************************************************************/
2122de8995SAndre Fischer 
2222de8995SAndre Fischer #ifndef SFX_SIDEBAR_DOCKING_WINDOW_HXX
2322de8995SAndre Fischer #define SFX_SIDEBAR_DOCKING_WINDOW_HXX
2422de8995SAndre Fischer 
257a32b0c8SAndre Fischer #include "sfx2/dockwin.hxx"
2622de8995SAndre Fischer #include "sfx2/dockwin.hxx"
2722de8995SAndre Fischer 
2895a18594SAndre Fischer #include <rtl/ref.hxx>
2922de8995SAndre Fischer 
307a32b0c8SAndre Fischer namespace sfx2 { namespace sidebar {
3122de8995SAndre Fischer 
3222de8995SAndre Fischer class SidebarChildWindow;
33ff12d537SAndre Fischer 
347a32b0c8SAndre Fischer class SidebarController;
3522de8995SAndre Fischer 
3622de8995SAndre Fischer class SidebarDockingWindow
3722de8995SAndre Fischer     : public SfxDockingWindow
3822de8995SAndre Fischer {
3922de8995SAndre Fischer public:
4022de8995SAndre Fischer     SidebarDockingWindow(
4122de8995SAndre Fischer         SfxBindings* pBindings,
4222de8995SAndre Fischer         SidebarChildWindow& rChildWindow,
4322de8995SAndre Fischer         Window* pParent,
4422de8995SAndre Fischer         WinBits nBits);
4522de8995SAndre Fischer     virtual ~SidebarDockingWindow (void);
467a32b0c8SAndre Fischer 
477a32b0c8SAndre Fischer     virtual sal_Bool Close (void);
4822de8995SAndre Fischer 
497a32b0c8SAndre Fischer     SfxChildWindow* GetChildWindow (void);
507a32b0c8SAndre Fischer 
5122de8995SAndre Fischer protected:
5222de8995SAndre Fischer     // Window overridables
5322de8995SAndre Fischer     virtual void GetFocus (void);
5422de8995SAndre Fischer 
55*6fa16b61SAndre Fischer     virtual SfxChildAlignment CheckAlignment (
56*6fa16b61SAndre Fischer         SfxChildAlignment eCurrentAlignment,
57*6fa16b61SAndre Fischer         SfxChildAlignment eRequestedAlignment);
58*6fa16b61SAndre Fischer 
5922de8995SAndre Fischer private:
60ff12d537SAndre Fischer     ::rtl::Reference<sfx2::sidebar::SidebarController> mpSidebarController;
6122de8995SAndre Fischer 
6222de8995SAndre Fischer     void DoDispose (void);
6322de8995SAndre Fischer };
6422de8995SAndre Fischer 
6522de8995SAndre Fischer 
667a32b0c8SAndre Fischer } } // end of namespace sfx2::sidebar
6722de8995SAndre Fischer 
6822de8995SAndre Fischer 
6922de8995SAndre Fischer #endif
70