1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: propbrw.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _BASCTL_PROPBRW_HXX
32 #define _BASCTL_PROPBRW_HXX
34 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 #include <com/sun/star/awt/XControlContainer.hpp>
37 #include <com/sun/star/frame/XFrame.hpp>
38 #include <comphelper/composedprops.hxx>
39 #include <sfx2/basedlgs.hxx>
40 #include <svtools/brdcst.hxx>
41 #include <svtools/lstner.hxx>
42 #include <sfx2/childwin.hxx>
43 #include <svx/svdmark.hxx>
45 //============================================================================
47 //============================================================================
49 class PropBrwMgr
: public SfxChildWindow
52 PropBrwMgr(Window
*pParent
, sal_uInt16 nId
, SfxBindings
*pBindings
, SfxChildWinInfo
*pInfo
);
53 SFX_DECL_CHILDWINDOW(PropBrwMgr
);
56 //============================================================================
58 //============================================================================
63 class PropBrw
: public SfxFloatingWindow
, public SfxListener
, public SfxBroadcaster
66 sal_Bool m_bInitialStateChange
;
68 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>
70 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>
72 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>
74 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
>
75 m_xBrowserComponentWindow
;
76 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>
81 virtual void Resize();
82 virtual void FillInfo( SfxChildWinInfo
& rInfo
) const;
83 virtual sal_Bool
Close();
85 DECLARE_STL_VECTOR(::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>, InterfaceArray
);
87 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> >
88 CreateMultiSelectionSequence( const SdrMarkList
& _rMarkList
);
89 void implSetNewObjectSequence( const ::com::sun::star::uno::Sequence
90 < ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> >& _rObjectSeq
);
92 void implSetNewObject(
93 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _rxObject
);
95 ::rtl::OUString
GetHeadlineName(
96 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _rxObject
);
99 PropBrw( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _xORB
,
100 SfxBindings
*pBindings
,
103 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>& _rxContextDocument
106 using Window::Update
;
107 // note: changing the Context document to an instance other than the one given in the ctor is not supported
109 void Update( const SfxViewShell
* _pShell
);
110 SdrView
* GetCurView() const { return pView
; }
113 void ImplUpdate( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>& _rxContextDocument
, SdrView
* pView
);
114 void ImplDestroyController();
115 void ImplReCreateController();
118 #endif // _BASCTL_PROPBRW_HXX