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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #include "precompiled_sd.hxx"
23 
24 #include "TableDesignPanel.hxx"
25 
26 #include "ViewShellBase.hxx"
27 
28 
29 namespace sd {
30 	extern ::Window * createTableDesignPanel (::Window* pParent, ViewShellBase& rBase);
31 }
32 
33 
34 namespace sd { namespace sidebar {
35 
36 
TableDesignPanel(::Window * pParentWindow,ViewShellBase & rViewShellBase)37 TableDesignPanel::TableDesignPanel (
38     ::Window* pParentWindow,
39     ViewShellBase& rViewShellBase)
40     : PanelBase(pParentWindow, rViewShellBase)
41 {
42 #ifdef DEBUG
43     SetText(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sd:TableDesignPanel")));
44 #endif
45 }
46 
47 
48 
49 
~TableDesignPanel(void)50 TableDesignPanel::~TableDesignPanel (void)
51 {
52 }
53 
54 
55 
56 
CreateWrappedControl(::Window * pParentWindow,ViewShellBase & rViewShellBase)57 ::Window* TableDesignPanel::CreateWrappedControl (
58     ::Window* pParentWindow,
59     ViewShellBase& rViewShellBase)
60 {
61     return createTableDesignPanel(pParentWindow, rViewShellBase);
62 }
63 
64 
65 
66 
GetHeightForWidth(const sal_Int32 nWidth)67 css::ui::LayoutSize TableDesignPanel::GetHeightForWidth (const sal_Int32 nWidth)
68 {
69     //TODO: make the sizes depend on the font size.
70     return css::ui::LayoutSize(350,-1, 400);
71 }
72 
73 } } // end of namespace sd::sidebar
74