xref: /aoo41x/main/sfx2/source/inc/iframe.hxx (revision 353d8f4d)
1*353d8f4dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*353d8f4dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*353d8f4dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*353d8f4dSAndrew Rist  * distributed with this work for additional information
6*353d8f4dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*353d8f4dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*353d8f4dSAndrew Rist  * "License"); you may not use this file except in compliance
9*353d8f4dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*353d8f4dSAndrew Rist  *
11*353d8f4dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*353d8f4dSAndrew Rist  *
13*353d8f4dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*353d8f4dSAndrew Rist  * software distributed under the License is distributed on an
15*353d8f4dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*353d8f4dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*353d8f4dSAndrew Rist  * specific language governing permissions and limitations
18*353d8f4dSAndrew Rist  * under the License.
19*353d8f4dSAndrew Rist  *
20*353d8f4dSAndrew Rist  *************************************************************/
21*353d8f4dSAndrew Rist 
22*353d8f4dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SFX_IFRAME_HXX
25cdf0e10cSrcweir #define _SFX_IFRAME_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx>
28cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
29cdf0e10cSrcweir #include <com/sun/star/util/XCloseable.hpp>
30cdf0e10cSrcweir #include <com/sun/star/lang/XEventListener.hpp>
31cdf0e10cSrcweir #include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
32cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
33cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34cdf0e10cSrcweir #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
35cdf0e10cSrcweir #include <com/sun/star/frame/XFrame.hpp>
36cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp>
37cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp>
38cdf0e10cSrcweir #include <cppuhelper/implbase6.hxx>
39cdf0e10cSrcweir 
40cdf0e10cSrcweir #include <rtl/ustring.hxx>
41cdf0e10cSrcweir #include <svl/ownlist.hxx>
42cdf0e10cSrcweir #include <svl/itemprop.hxx>
43cdf0e10cSrcweir 
44cdf0e10cSrcweir #include <sfx2/sfxuno.hxx>
45cdf0e10cSrcweir #include <sfx2/frmdescr.hxx>
46cdf0e10cSrcweir 
47cdf0e10cSrcweir namespace sfx2
48cdf0e10cSrcweir {
49cdf0e10cSrcweir 
50cdf0e10cSrcweir class IFrameObject : public ::cppu::WeakImplHelper6 <
51cdf0e10cSrcweir         com::sun::star::util::XCloseable,
52cdf0e10cSrcweir         com::sun::star::lang::XEventListener,
53cdf0e10cSrcweir         com::sun::star::frame::XSynchronousFrameLoader,
54cdf0e10cSrcweir         com::sun::star::ui::dialogs::XExecutableDialog,
55cdf0e10cSrcweir         com::sun::star::lang::XInitialization,
56cdf0e10cSrcweir         com::sun::star::beans::XPropertySet >
57cdf0e10cSrcweir {
58cdf0e10cSrcweir     com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > mxFact;
59cdf0e10cSrcweir     com::sun::star::uno::Reference < com::sun::star::frame::XFrame > mxFrame;
60cdf0e10cSrcweir     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > mxObj;
61cdf0e10cSrcweir     SfxItemPropertyMap  maPropMap;
62cdf0e10cSrcweir     SfxFrameDescriptor  maFrmDescr;
63cdf0e10cSrcweir 
64cdf0e10cSrcweir                         IFrameObject( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rFact );
65cdf0e10cSrcweir                         ~IFrameObject();
66cdf0e10cSrcweir 
67cdf0e10cSrcweir     virtual sal_Bool SAL_CALL load( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& lDescriptor,
68cdf0e10cSrcweir             const com::sun::star::uno::Reference < com::sun::star::frame::XFrame >& xFrame ) throw( com::sun::star::uno::RuntimeException );
69cdf0e10cSrcweir     virtual void SAL_CALL cancel() throw( com::sun::star::uno::RuntimeException );
70cdf0e10cSrcweir     virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw( com::sun::star::util::CloseVetoException, com::sun::star::uno::RuntimeException );
71cdf0e10cSrcweir     virtual void SAL_CALL addCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& xListener ) throw( com::sun::star::uno::RuntimeException );
72cdf0e10cSrcweir     virtual void SAL_CALL removeCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& xListener ) throw( com::sun::star::uno::RuntimeException );
73cdf0e10cSrcweir     virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& aEvent ) throw (com::sun::star::uno::RuntimeException) ;
74cdf0e10cSrcweir     virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle ) throw (::com::sun::star::uno::RuntimeException);
75cdf0e10cSrcweir     virtual ::sal_Int16 SAL_CALL execute(  ) throw (::com::sun::star::uno::RuntimeException);
76cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException );
77cdf0e10cSrcweir 	virtual void SAL_CALL addPropertyChangeListener(const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
78cdf0e10cSrcweir 	virtual void SAL_CALL removePropertyChangeListener(const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
79cdf0e10cSrcweir 	virtual void SAL_CALL addVetoableChangeListener(const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
80cdf0e10cSrcweir 	virtual void SAL_CALL removeVetoableChangeListener(const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
81cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
82cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
83cdf0e10cSrcweir     virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
84cdf0e10cSrcweir public:
85cdf0e10cSrcweir     SFX_DECL_XSERVICEINFO
86cdf0e10cSrcweir };
87cdf0e10cSrcweir 
88cdf0e10cSrcweir }
89cdf0e10cSrcweir #endif
90