1*c45d927aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c45d927aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c45d927aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c45d927aSAndrew Rist * distributed with this work for additional information 6*c45d927aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c45d927aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c45d927aSAndrew Rist * "License"); you may not use this file except in compliance 9*c45d927aSAndrew Rist * with the License. You may obtain a copy of the License at 10*c45d927aSAndrew Rist * 11*c45d927aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c45d927aSAndrew Rist * 13*c45d927aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c45d927aSAndrew Rist * software distributed under the License is distributed on an 15*c45d927aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c45d927aSAndrew Rist * KIND, either express or implied. See the License for the 17*c45d927aSAndrew Rist * specific language governing permissions and limitations 18*c45d927aSAndrew Rist * under the License. 19*c45d927aSAndrew Rist * 20*c45d927aSAndrew Rist *************************************************************/ 21*c45d927aSAndrew Rist 22*c45d927aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SD_UNO_SLIDE_VIEW_HXX 25cdf0e10cSrcweir #define SD_UNO_SLIDE_VIEW_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "DrawSubController.hxx" 28cdf0e10cSrcweir #include <cppuhelper/basemutex.hxx> 29cdf0e10cSrcweir #include <com/sun/star/drawing/XDrawPage.hpp> 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace css = ::com::sun::star; 32cdf0e10cSrcweir 33cdf0e10cSrcweir namespace sd { namespace slidesorter { 34cdf0e10cSrcweir class SlideSorter; 35cdf0e10cSrcweir } } 36cdf0e10cSrcweir 37cdf0e10cSrcweir namespace sd { namespace slidesorter { namespace controller { 38cdf0e10cSrcweir class PageSelector; 39cdf0e10cSrcweir } } } 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace sd { 42cdf0e10cSrcweir 43cdf0e10cSrcweir class DrawController; 44cdf0e10cSrcweir class SlideViewShell; 45cdf0e10cSrcweir class View; 46cdf0e10cSrcweir 47cdf0e10cSrcweir 48cdf0e10cSrcweir /** This class implements the SlideSorter specific part of the 49cdf0e10cSrcweir controller. 50cdf0e10cSrcweir */ 51cdf0e10cSrcweir class SdUnoSlideView 52cdf0e10cSrcweir : private cppu::BaseMutex, 53cdf0e10cSrcweir public DrawSubControllerInterfaceBase 54cdf0e10cSrcweir { 55cdf0e10cSrcweir public: 56cdf0e10cSrcweir SdUnoSlideView ( 57cdf0e10cSrcweir DrawController& rController, 58cdf0e10cSrcweir slidesorter::SlideSorter& rSlideSorter, 59cdf0e10cSrcweir View& rView) throw(); 60cdf0e10cSrcweir virtual ~SdUnoSlideView (void) throw(); 61cdf0e10cSrcweir 62cdf0e10cSrcweir // XSelectionSupplier 63cdf0e10cSrcweir 64cdf0e10cSrcweir virtual sal_Bool SAL_CALL select (const ::com::sun::star::uno::Any& aSelection) 65cdf0e10cSrcweir throw(::com::sun::star::lang::IllegalArgumentException, 66cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 67cdf0e10cSrcweir 68cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getSelection (void) 69cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 70cdf0e10cSrcweir 71cdf0e10cSrcweir virtual void SAL_CALL addSelectionChangeListener ( 72cdf0e10cSrcweir const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) 73cdf0e10cSrcweir throw(css::uno::RuntimeException); 74cdf0e10cSrcweir 75cdf0e10cSrcweir virtual void SAL_CALL removeSelectionChangeListener ( 76cdf0e10cSrcweir const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) 77cdf0e10cSrcweir throw(css::uno::RuntimeException); 78cdf0e10cSrcweir 79cdf0e10cSrcweir 80cdf0e10cSrcweir // XDrawView 81cdf0e10cSrcweir 82cdf0e10cSrcweir virtual void SAL_CALL setCurrentPage ( 83cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage) 84cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 85cdf0e10cSrcweir 86cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL 87cdf0e10cSrcweir getCurrentPage (void) 88cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 89cdf0e10cSrcweir 90cdf0e10cSrcweir 91cdf0e10cSrcweir // XFastPropertySet 92cdf0e10cSrcweir 93cdf0e10cSrcweir virtual void SAL_CALL setFastPropertyValue ( 94cdf0e10cSrcweir sal_Int32 nHandle, 95cdf0e10cSrcweir const css::uno::Any& rValue) 96cdf0e10cSrcweir throw(css::beans::UnknownPropertyException, 97cdf0e10cSrcweir css::beans::PropertyVetoException, 98cdf0e10cSrcweir css::lang::IllegalArgumentException, 99cdf0e10cSrcweir css::lang::WrappedTargetException, 100cdf0e10cSrcweir css::uno::RuntimeException); 101cdf0e10cSrcweir 102cdf0e10cSrcweir virtual css::uno::Any SAL_CALL getFastPropertyValue ( 103cdf0e10cSrcweir sal_Int32 nHandle) 104cdf0e10cSrcweir throw(css::beans::UnknownPropertyException, 105cdf0e10cSrcweir css::lang::WrappedTargetException, 106cdf0e10cSrcweir css::uno::RuntimeException); 107cdf0e10cSrcweir 108cdf0e10cSrcweir // XServiceInfo 109cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); 110cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); 111cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); 112cdf0e10cSrcweir 113cdf0e10cSrcweir private: 114cdf0e10cSrcweir DrawController& mrController; 115cdf0e10cSrcweir slidesorter::SlideSorter& mrSlideSorter; 116cdf0e10cSrcweir sd::View& mrView; 117cdf0e10cSrcweir /* 118cdf0e10cSrcweir virtual void FillPropertyTable ( 119cdf0e10cSrcweir ::std::vector< ::com::sun::star::beans::Property>& rProperties); 120cdf0e10cSrcweir virtual sal_Bool SAL_CALL convertFastPropertyValue( 121cdf0e10cSrcweir ::com::sun::star::uno::Any & rConvertedValue, 122cdf0e10cSrcweir ::com::sun::star::uno::Any & rOldValue, 123cdf0e10cSrcweir sal_Int32 nHandle, 124cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue ) 125cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException); 126cdf0e10cSrcweir virtual void SAL_CALL setFastPropertyValue_NoBroadcast( 127cdf0e10cSrcweir sal_Int32 nHandle, 128cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue ) 129cdf0e10cSrcweir throw (::com::sun::star::uno::Exception); 130cdf0e10cSrcweir virtual void SAL_CALL getFastPropertyValue( 131cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 132cdf0e10cSrcweir sal_Int32 nHandle ) const; 133cdf0e10cSrcweir */ 134cdf0e10cSrcweir }; 135cdf0e10cSrcweir 136cdf0e10cSrcweir } // end of namespace sd 137cdf0e10cSrcweir 138cdf0e10cSrcweir #endif 139