xref: /trunk/main/sfx2/source/inc/hexplwnd.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
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.
14  *
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).
20  *
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.
25  *
26  ************************************************************************/
27 #ifndef _HEXPLWND_HXX
28 #define _HEXPLWND_HXX
29 
30 // includes --------------------------------------------------------------
31 
32 #include <com/sun/star/beans/PropertyValues.hpp>
33 #include <com/sun/star/beans/XPropertySet.hpp>
34 #include <com/sun/star/beans/PropertyValue.hpp>
35 #include <com/sun/star/beans/PropertyState.hpp>
36 #include <com/sun/star/beans/XPropertySetInfo.hpp>
37 #include <com/sun/star/beans/XMultiPropertySet.hpp>
38 #include <com/sun/star/beans/XFastPropertySet.hpp>
39 #include <com/sun/star/beans/XVetoableChangeListener.hpp>
40 #include <com/sun/star/beans/XPropertyState.hpp>
41 #include <com/sun/star/beans/XPropertyStateChangeListener.hpp>
42 #include <com/sun/star/beans/PropertyAttribute.hpp>
43 #include <com/sun/star/beans/XPropertiesChangeListener.hpp>
44 #include <com/sun/star/beans/XPropertyChangeListener.hpp>
45 #include <com/sun/star/beans/XPropertyAccess.hpp>
46 #include <com/sun/star/beans/XPropertyContainer.hpp>
47 #include <com/sun/star/beans/PropertyStateChangeEvent.hpp>
48 #include <com/sun/star/beans/PropertyChangeEvent.hpp>
49 #include <com/sun/star/frame/XFrame.hpp>
50 #include <com/sun/star/util/URL.hpp>
51 #include <sfx2/childwin.hxx>
52 #include <sfx2/dockwin.hxx>
53 
54 // forward ---------------------------------------------------------------
55 
56 class SfxBeamerUnoFrame_Impl;
57 
58 // class SfxExplorerHorizChildWnd_Impl -----------------------------------
59 
60 class SfxExplorerHorizChildWnd_Impl : public SfxChildWindow
61 {
62 public:
63     SfxExplorerHorizChildWnd_Impl( Window* pParent, sal_uInt16 nId,
64                                    SfxBindings* pBindings,
65                                    SfxChildWinInfo* pInfo );
66 
67     SFX_DECL_CHILDWINDOW(SfxExplorerHorizChildWnd_Impl);
68 
69 
70     virtual sal_Bool        QueryClose();
71 };
72 
73 // class SfxExplorerDockWnd_Impl -----------------------------------------
74 
75 class SfxExplorerHorizDockWnd_Impl : public SfxDockingWindow
76 {
77 private:
78     SfxBeamerUnoFrame_Impl* _pFrame;
79 
80 protected:
81     virtual void            GetFocus();
82     virtual long            Notify( NotifyEvent& rNEvt );
83 
84 public:
85     SfxExplorerHorizDockWnd_Impl( SfxBindings* pBindings,
86                                   SfxChildWindow* pChildWin,
87                                   Window* pParent, const ResId& rResId );
88     ~SfxExplorerHorizDockWnd_Impl();
89 
90     virtual void            FillInfo( SfxChildWinInfo& ) const;
91     virtual void            FadeIn( sal_Bool );
92     sal_Bool                    QueryClose();
93     void                    SetURL( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArgs );
94     const ::com::sun::star::util::URL&              GetURL() const;
95     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >             GetFrameInterface();
96     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >&    GetArgs() const;
97 };
98 
99 
100 #endif
101 
102