Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_FRAME_XMODEL2_HDL
2 : #define INCLUDED_COM_SUN_STAR_FRAME_XMODEL2_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/beans/PropertyValue.hdl"
7 : namespace com { namespace sun { namespace star { namespace container { class XEnumeration; } } } }
8 : namespace com { namespace sun { namespace star { namespace frame { class XController2; } } } }
9 : namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
10 : #include "com/sun/star/frame/XModel.hdl"
11 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
12 : #include "com/sun/star/uno/Exception.hdl"
13 : #include "com/sun/star/uno/RuntimeException.hdl"
14 : #include "com/sun/star/uno/Reference.h"
15 : #include "com/sun/star/uno/Sequence.h"
16 : #include "cppu/macros.hxx"
17 : #include "rtl/ustring.hxx"
18 :
19 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 :
21 : namespace com { namespace sun { namespace star { namespace frame {
22 :
23 1954 : class SAL_NO_VTABLE XModel2 : public css::frame::XModel
24 : {
25 : public:
26 :
27 : // Methods
28 : virtual ::com::sun::star::uno::Reference< css::container::XEnumeration > SAL_CALL getControllers() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableViewControllerNames() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::com::sun::star::uno::Reference< css::frame::XController2 > SAL_CALL createDefaultViewController( const ::com::sun::star::uno::Reference< css::frame::XFrame >& Frame ) /* throw (css::lang::IllegalArgumentException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::com::sun::star::uno::Reference< css::frame::XController2 > SAL_CALL createViewController( const ::rtl::OUString& ViewName, const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& Arguments, const ::com::sun::star::uno::Reference< css::frame::XFrame >& Frame ) /* throw (css::lang::IllegalArgumentException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
32 :
33 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
34 :
35 : protected:
36 1367 : ~XModel2() throw () {} // avoid warnings about virtual members and non-virtual dtor
37 : };
38 :
39 :
40 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::frame::XModel2 const *);
41 : } } } }
42 :
43 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::frame::XModel2 > *) SAL_THROW(());
44 :
45 : #endif
|