196821c26SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 396821c26SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 496821c26SAndrew Rist * or more contributor license agreements. See the NOTICE file 596821c26SAndrew Rist * distributed with this work for additional information 696821c26SAndrew Rist * regarding copyright ownership. The ASF licenses this file 796821c26SAndrew Rist * to you under the Apache License, Version 2.0 (the 896821c26SAndrew Rist * "License"); you may not use this file except in compliance 996821c26SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 1196821c26SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 1396821c26SAndrew Rist * Unless required by applicable law or agreed to in writing, 1496821c26SAndrew Rist * software distributed under the License is distributed on an 1596821c26SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1696821c26SAndrew Rist * KIND, either express or implied. See the License for the 1796821c26SAndrew Rist * specific language governing permissions and limitations 1896821c26SAndrew Rist * under the License. 19cdf0e10cSrcweir * 2096821c26SAndrew Rist *************************************************************/ 2196821c26SAndrew Rist 2296821c26SAndrew Rist 23cdf0e10cSrcweir #ifndef UNOMODEL_HXX 24cdf0e10cSrcweir #define UNOMODEL_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 27*b504c543SDamjan Jovanovic #include <com/sun/star/uno/XComponentContext.hpp> 28cdf0e10cSrcweir #include <sfx2/sfxbasemodel.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir //----------------------------------------------------------------------------- 31cdf0e10cSrcweir class SIDEModel : public SfxBaseModel, 32cdf0e10cSrcweir public com::sun::star::lang::XServiceInfo 33cdf0e10cSrcweir { 34cdf0e10cSrcweir public: 35cdf0e10cSrcweir SIDEModel( SfxObjectShell *pObjSh = 0 ); 36cdf0e10cSrcweir virtual ~SIDEModel(); 37cdf0e10cSrcweir 38cdf0e10cSrcweir //XInterface 39cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); 40cdf0e10cSrcweir virtual void SAL_CALL acquire( ) throw(); 41cdf0e10cSrcweir virtual void SAL_CALL release( ) throw(); 42cdf0e10cSrcweir 43cdf0e10cSrcweir //XTypeProvider 44cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); 45cdf0e10cSrcweir 46cdf0e10cSrcweir //XServiceInfo 47cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) 48cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException ); 49cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) 50cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException ); 51cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) 52cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException ); 53cdf0e10cSrcweir 54cdf0e10cSrcweir static ::com::sun::star::uno::Sequence< rtl::OUString > getSupportedServiceNames_Static(); 55cdf0e10cSrcweir static ::rtl::OUString getImplementationName_Static(); 56cdf0e10cSrcweir }; 57cdf0e10cSrcweir 58cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL SIDEModel_createInstance( 59*b504c543SDamjan Jovanovic const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & rContext ) 60cdf0e10cSrcweir throw( com::sun::star::uno::Exception ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir #endif 63