Line data Source code
1 : /*
2 : * This file is part of the LibreOffice project.
3 : *
4 : * This Source Code Form is subject to the terms of the Mozilla Public
5 : * License, v. 2.0. If a copy of the MPL was not distributed with this
6 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 : *
8 : * This file incorporates work covered by the following license notice:
9 : *
10 : * Licensed to the Apache Software Foundation (ASF) under one or more
11 : * contributor license agreements. See the NOTICE file distributed
12 : * with this work for additional information regarding copyright
13 : * ownership. The ASF licenses this file to you under the Apache
14 : * License, Version 2.0 (the "License"); you may not use this file
15 : * except in compliance with the License. You may obtain a copy of
16 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
17 : */
18 :
19 : #include "CustomAnimationPanel.hxx"
20 :
21 : #include "ViewShellBase.hxx"
22 :
23 :
24 : namespace sd {
25 : extern ::Window * createCustomAnimationPanel (::Window* pParent, ViewShellBase& rBase);
26 : extern sal_Int32 getCustomAnimationPanelMinimumHeight (::Window* pParent);
27 : }
28 :
29 :
30 :
31 :
32 : namespace sd { namespace sidebar {
33 :
34 :
35 0 : CustomAnimationPanel::CustomAnimationPanel (
36 : ::Window* pParentWindow,
37 : ViewShellBase& rViewShellBase)
38 : : PanelBase(
39 : pParentWindow,
40 0 : rViewShellBase)
41 : {
42 : #ifdef DEBUG
43 : SetText(OUString("sd:CustomAnimationPanel"));
44 : #endif
45 0 : }
46 :
47 :
48 :
49 :
50 0 : CustomAnimationPanel::~CustomAnimationPanel (void)
51 : {
52 0 : }
53 :
54 :
55 :
56 :
57 0 : ::Window* CustomAnimationPanel::CreateWrappedControl (
58 : ::Window* pParentWindow,
59 : ViewShellBase& rViewShellBase)
60 : {
61 0 : return createCustomAnimationPanel(pParentWindow, rViewShellBase);
62 : }
63 :
64 :
65 :
66 :
67 0 : css::ui::LayoutSize CustomAnimationPanel::GetHeightForWidth (const sal_Int32 /*nWidth*/)
68 : {
69 0 : const sal_Int32 nMinimumHeight(getCustomAnimationPanelMinimumHeight(mpWrappedControl.get()));
70 0 : return css::ui::LayoutSize(nMinimumHeight,-1, nMinimumHeight);
71 : }
72 :
73 :
74 33 : } } // end of namespace sd::sidebar
|