SidebarChildWindow.cxx (7a32b0c8) | SidebarChildWindow.cxx (45da7d5e) |
---|---|
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 --- 21 unchanged lines hidden (view full) --- 30 31namespace sfx2 { namespace sidebar { 32 33 34SFX_IMPL_DOCKINGWINDOW(SidebarChildWindow, SID_SIDEBAR); 35 36 37SidebarChildWindow::SidebarChildWindow ( | 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 --- 21 unchanged lines hidden (view full) --- 30 31namespace sfx2 { namespace sidebar { 32 33 34SFX_IMPL_DOCKINGWINDOW(SidebarChildWindow, SID_SIDEBAR); 35 36 37SidebarChildWindow::SidebarChildWindow ( |
38 Window* pParent, | 38 Window* pParentWindow, |
39 sal_uInt16 nId, 40 SfxBindings* pBindings, | 39 sal_uInt16 nId, 40 SfxBindings* pBindings, |
41 SfxChildWinInfo* pInfo ) 42 : SfxChildWindow(pParent, nId) | 41 SfxChildWinInfo* pInfo) 42 : SfxChildWindow(pParentWindow, nId) |
43{ 44 this->pWindow = new SidebarDockingWindow( 45 pBindings, 46 *this, | 43{ 44 this->pWindow = new SidebarDockingWindow( 45 pBindings, 46 *this, |
47 pParent, | 47 pParentWindow, |
48 WB_STDDOCKWIN | WB_OWNERDRAWDECORATION | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE); 49 eChildAlignment = SFX_ALIGN_RIGHT; 50 51 this->pWindow->SetHelpId(HID_SIDEBAR_WINDOW); 52 this->pWindow->SetOutputSizePixel(Size(300, 450)); 53 | 48 WB_STDDOCKWIN | WB_OWNERDRAWDECORATION | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE); 49 eChildAlignment = SFX_ALIGN_RIGHT; 50 51 this->pWindow->SetHelpId(HID_SIDEBAR_WINDOW); 52 this->pWindow->SetOutputSizePixel(Size(300, 450)); 53 |
54 dynamic_cast<SfxDockingWindow*>(pWindow)->Initialize(pInfo); | 54 SfxDockingWindow* pDockingParent = dynamic_cast<SfxDockingWindow*>(pParentWindow); 55 if (pDockingParent != NULL) 56 pDockingParent->Initialize(pInfo); |
55 SetHideNotDelete(sal_True); 56 57 this->pWindow->Show(); 58} 59 60 61} } // end of namespace sfx2::sidebar | 57 SetHideNotDelete(sal_True); 58 59 this->pWindow->Show(); 60} 61 62 63} } // end of namespace sfx2::sidebar |