SidebarChildWindow.cxx (d29c2fc2) SidebarChildWindow.cxx (e4bfc5b7)
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

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

59 SetHideNotDelete(sal_True);
60
61 this->pWindow->Show();
62}
63
64
65
66
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

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

59 SetHideNotDelete(sal_True);
60
61 this->pWindow->Show();
62}
63
64
65
66
67SidebarChildWindow::~SidebarChildWindow (void)
68{
69}
70
71
72
73
67sal_Int32 SidebarChildWindow::GetDefaultWidth (Window* pWindow)
68{
69 if (pWindow != NULL)
70 {
71 // Width of the paragraph panel.
72 const static sal_Int32 nMaxPropertyPageWidth (115);
73
74 return pWindow->LogicToPixel(Point(nMaxPropertyPageWidth,1), MAP_APPFONT).X()
75 + TabBar::GetDefaultWidth();
76 }
77 else
78 return 0;
79}
80
81
82} } // end of namespace sfx2::sidebar
74sal_Int32 SidebarChildWindow::GetDefaultWidth (Window* pWindow)
75{
76 if (pWindow != NULL)
77 {
78 // Width of the paragraph panel.
79 const static sal_Int32 nMaxPropertyPageWidth (115);
80
81 return pWindow->LogicToPixel(Point(nMaxPropertyPageWidth,1), MAP_APPFONT).X()
82 + TabBar::GetDefaultWidth();
83 }
84 else
85 return 0;
86}
87
88
89} } // end of namespace sfx2::sidebar