1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef SD_TOOLPANEL_CONTROLS_CUSTOM_ANIMATION_PANEL_HXX
29 #define SD_TOOLPANEL_CONTROLS_CUSTOM_ANIMATION_PANEL_HXX
31 #include "taskpane/SubToolPanel.hxx"
37 namespace sd
{ namespace toolpanel
{
40 class ToolPanelViewShell
;
43 namespace sd
{ namespace toolpanel
{ namespace controls
{
45 class CustomAnimationPanel
49 CustomAnimationPanel (
50 Window
& i_rParentWindow
,
51 ToolPanelViewShell
& i_rPanelViewShell
);
52 virtual ~CustomAnimationPanel (void);
54 static std::auto_ptr
<ControlFactory
> CreateControlFactory (ToolPanelViewShell
& i_rPanelViewShell
);
56 // TreeNode overridables
57 virtual TaskPaneShellManager
* GetShellManager();
59 // ILayoutableWindow overridables
60 virtual Size
GetPreferredSize (void);
61 virtual sal_Int32
GetPreferredWidth (sal_Int32 nHeigh
);
62 virtual sal_Int32
GetPreferredHeight (sal_Int32 nWidth
);
63 virtual ::Window
* GetWindow (void);
64 virtual bool IsResizable (void);
65 virtual bool IsExpandable (void) const;
67 virtual ::com::sun::star::uno::Reference
<
68 ::com::sun::star::accessibility::XAccessible
> CreateAccessibleObject (
69 const ::com::sun::star::uno::Reference
<
70 ::com::sun::star::accessibility::XAccessible
>& rxParent
);
72 using Window::GetWindow
;
75 ::Window
* mpWrappedControl
;
76 ToolPanelViewShell
* m_pPanelViewShell
;
79 } } } // end of namespace ::sd::toolpanel::controls