1*38d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*38d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*38d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*38d50f7bSAndrew Rist * distributed with this work for additional information 6*38d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*38d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*38d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 9*38d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 10*38d50f7bSAndrew Rist * 11*38d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*38d50f7bSAndrew Rist * 13*38d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*38d50f7bSAndrew Rist * software distributed under the License is distributed on an 15*38d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*38d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 17*38d50f7bSAndrew Rist * specific language governing permissions and limitations 18*38d50f7bSAndrew Rist * under the License. 19*38d50f7bSAndrew Rist * 20*38d50f7bSAndrew Rist *************************************************************/ 21*38d50f7bSAndrew Rist 22*38d50f7bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SC_VIEWUNO_HXX 25cdf0e10cSrcweir #define SC_VIEWUNO_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <sfx2/sfxbasecontroller.hxx> 28cdf0e10cSrcweir #include <svl/svarray.hxx> 29cdf0e10cSrcweir #include <svl/itemprop.hxx> 30cdf0e10cSrcweir #include <com/sun/star/view/XFormLayerAccess.hpp> 31cdf0e10cSrcweir #include <com/sun/star/view/XSelectionChangeListener.hpp> 32cdf0e10cSrcweir #include <com/sun/star/view/XSelectionSupplier.hpp> 33cdf0e10cSrcweir #include <com/sun/star/sheet/XCellRangeReferrer.hpp> 34cdf0e10cSrcweir #include <com/sun/star/sheet/XViewSplitable.hpp> 35cdf0e10cSrcweir #include <com/sun/star/sheet/XViewFreezable.hpp> 36cdf0e10cSrcweir #include <com/sun/star/sheet/XSpreadsheetView.hpp> 37cdf0e10cSrcweir #include <com/sun/star/sheet/XEnhancedMouseClickBroadcaster.hpp> 38cdf0e10cSrcweir #include <com/sun/star/sheet/XActivationBroadcaster.hpp> 39cdf0e10cSrcweir #include <com/sun/star/sheet/XViewPane.hpp> 40cdf0e10cSrcweir #include <com/sun/star/sheet/XRangeSelection.hpp> 41cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 42cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp> 43cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 44cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 45cdf0e10cSrcweir #include <com/sun/star/datatransfer/XTransferableSupplier.hpp> 46cdf0e10cSrcweir 47cdf0e10cSrcweir #include "address.hxx" 48cdf0e10cSrcweir 49cdf0e10cSrcweir class ScTabViewShell; 50cdf0e10cSrcweir 51cdf0e10cSrcweir #define SC_VIEWPANE_ACTIVE 0xFFFF 52cdf0e10cSrcweir 53cdf0e10cSrcweir 54cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< 55cdf0e10cSrcweir ::com::sun::star::sheet::XRangeSelectionListener >* XRangeSelectionListenerPtr; 56cdf0e10cSrcweir SV_DECL_PTRARR_DEL( XRangeSelectionListenerArr_Impl, XRangeSelectionListenerPtr, 4, 4 ) 57cdf0e10cSrcweir 58cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< 59cdf0e10cSrcweir ::com::sun::star::sheet::XRangeSelectionChangeListener >* XRangeSelectionChangeListenerPtr; 60cdf0e10cSrcweir SV_DECL_PTRARR_DEL( XRangeSelectionChangeListenerArr_Impl, XRangeSelectionChangeListenerPtr, 4, 4 ) 61cdf0e10cSrcweir 62cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< 63cdf0e10cSrcweir ::com::sun::star::view::XSelectionChangeListener >* XSelectionChangeListenerPtr; 64cdf0e10cSrcweir SV_DECL_PTRARR_DEL( XSelectionChangeListenerArr_Impl, XSelectionChangeListenerPtr, 4, 4 ) 65cdf0e10cSrcweir 66cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< 67cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >* XViewPropertyChangeListenerPtr; 68cdf0e10cSrcweir SV_DECL_PTRARR_DEL( XViewPropertyChangeListenerArr_Impl, XViewPropertyChangeListenerPtr, 4, 4 ) 69cdf0e10cSrcweir 70cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< 71cdf0e10cSrcweir ::com::sun::star::awt::XEnhancedMouseClickHandler >* XMouseClickHandlerPtr; 72cdf0e10cSrcweir SV_DECL_PTRARR_DEL( XMouseClickHandlerArr_Impl, XMouseClickHandlerPtr, 4, 4 ) 73cdf0e10cSrcweir 74cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< 75cdf0e10cSrcweir ::com::sun::star::sheet::XActivationEventListener >* XActivationEventListenerPtr; 76cdf0e10cSrcweir SV_DECL_PTRARR_DEL( XActivationEventListenerArr_Impl, XActivationEventListenerPtr, 4, 4 ) 77cdf0e10cSrcweir 78cdf0e10cSrcweir 79cdf0e10cSrcweir // ScViewPaneBase not derived from OWeakObject 80cdf0e10cSrcweir // to avoid duplicate OWeakObject in ScTabViewObj 81cdf0e10cSrcweir 82cdf0e10cSrcweir class ScViewPaneBase : public com::sun::star::sheet::XViewPane, 83cdf0e10cSrcweir public com::sun::star::sheet::XCellRangeReferrer, 84cdf0e10cSrcweir public com::sun::star::view::XFormLayerAccess, 85cdf0e10cSrcweir public com::sun::star::lang::XServiceInfo, 86cdf0e10cSrcweir public com::sun::star::lang::XTypeProvider, 87cdf0e10cSrcweir public SfxListener 88cdf0e10cSrcweir { 89cdf0e10cSrcweir private: 90cdf0e10cSrcweir ScTabViewShell* pViewShell; 91cdf0e10cSrcweir sal_uInt16 nPane; // ScSplitPos oder SC_VIEWPANE_ACTIVE 92cdf0e10cSrcweir 93cdf0e10cSrcweir protected: 94cdf0e10cSrcweir ::com::sun::star::awt::Rectangle GetVisArea() const; 95cdf0e10cSrcweir 96cdf0e10cSrcweir public: 97cdf0e10cSrcweir ScViewPaneBase(ScTabViewShell* pViewSh, sal_uInt16 nP); 98cdf0e10cSrcweir virtual ~ScViewPaneBase(); 99cdf0e10cSrcweir GetViewShell() const100cdf0e10cSrcweir ScTabViewShell* GetViewShell() const { return pViewShell; } 101cdf0e10cSrcweir 102cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( 103cdf0e10cSrcweir const ::com::sun::star::uno::Type & rType ) 104cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 105cdf0e10cSrcweir 106cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 107cdf0e10cSrcweir 108cdf0e10cSrcweir // XViewPane 109cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getFirstVisibleColumn() throw(::com::sun::star::uno::RuntimeException); 110cdf0e10cSrcweir virtual void SAL_CALL setFirstVisibleColumn( sal_Int32 nFirstVisibleColumn ) 111cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 112cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getFirstVisibleRow() throw(::com::sun::star::uno::RuntimeException); 113cdf0e10cSrcweir virtual void SAL_CALL setFirstVisibleRow( sal_Int32 nFirstVisibleRow ) 114cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 115cdf0e10cSrcweir virtual ::com::sun::star::table::CellRangeAddress SAL_CALL getVisibleRange() 116cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 117cdf0e10cSrcweir 118cdf0e10cSrcweir // XCellRangeReferrer 119cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL 120cdf0e10cSrcweir getReferredCells() throw(::com::sun::star::uno::RuntimeException); 121cdf0e10cSrcweir 122cdf0e10cSrcweir // XFormLayerAccess 123cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFormController > SAL_CALL 124cdf0e10cSrcweir getFormController( const ::com::sun::star::uno::Reference< 125cdf0e10cSrcweir ::com::sun::star::form::XForm >& Form ) 126cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 127cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL 128cdf0e10cSrcweir isFormDesignMode( ) 129cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 130cdf0e10cSrcweir virtual void SAL_CALL setFormDesignMode( ::sal_Bool DesignMode ) 131cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 132cdf0e10cSrcweir 133cdf0e10cSrcweir // XControlAccess 134cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL 135cdf0e10cSrcweir getControl( const ::com::sun::star::uno::Reference< 136cdf0e10cSrcweir ::com::sun::star::awt::XControlModel >& xModel ) 137cdf0e10cSrcweir throw(::com::sun::star::container::NoSuchElementException, 138cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 139cdf0e10cSrcweir 140cdf0e10cSrcweir // XServiceInfo 141cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 142cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 143cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 144cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 145cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 146cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 147cdf0e10cSrcweir 148cdf0e10cSrcweir // XTypeProvider 149cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() 150cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 151cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() 152cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 153cdf0e10cSrcweir }; 154cdf0e10cSrcweir 155cdf0e10cSrcweir 156cdf0e10cSrcweir // ScViewPaneObj for direct use (including OWeakObject) 157cdf0e10cSrcweir 158cdf0e10cSrcweir class ScViewPaneObj : public ScViewPaneBase, public cppu::OWeakObject 159cdf0e10cSrcweir { 160cdf0e10cSrcweir public: 161cdf0e10cSrcweir ScViewPaneObj(ScTabViewShell* pViewSh, sal_uInt16 nP); 162cdf0e10cSrcweir virtual ~ScViewPaneObj(); 163cdf0e10cSrcweir 164cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( 165cdf0e10cSrcweir const ::com::sun::star::uno::Type & rType ) 166cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 167cdf0e10cSrcweir virtual void SAL_CALL acquire() throw(); 168cdf0e10cSrcweir virtual void SAL_CALL release() throw(); 169cdf0e10cSrcweir }; 170cdf0e10cSrcweir 171cdf0e10cSrcweir // OWeakObject is base of SfxBaseController -> use ScViewPaneBase 172cdf0e10cSrcweir 173cdf0e10cSrcweir class ScTabViewObj : public ScViewPaneBase, 174cdf0e10cSrcweir public SfxBaseController, 175cdf0e10cSrcweir public com::sun::star::sheet::XSpreadsheetView, 176cdf0e10cSrcweir public com::sun::star::sheet::XEnhancedMouseClickBroadcaster, 177cdf0e10cSrcweir public com::sun::star::sheet::XActivationBroadcaster, 178cdf0e10cSrcweir public com::sun::star::container::XEnumerationAccess, 179cdf0e10cSrcweir public com::sun::star::container::XIndexAccess, 180cdf0e10cSrcweir public com::sun::star::view::XSelectionSupplier, 181cdf0e10cSrcweir public com::sun::star::beans::XPropertySet, 182cdf0e10cSrcweir public com::sun::star::sheet::XViewSplitable, 183cdf0e10cSrcweir public com::sun::star::sheet::XViewFreezable, 184cdf0e10cSrcweir public com::sun::star::sheet::XRangeSelection, 185cdf0e10cSrcweir public com::sun::star::lang::XUnoTunnel, 186cdf0e10cSrcweir public com::sun::star::datatransfer::XTransferableSupplier 187cdf0e10cSrcweir { 188cdf0e10cSrcweir private: 189cdf0e10cSrcweir SfxItemPropertySet aPropSet; 190cdf0e10cSrcweir XSelectionChangeListenerArr_Impl aSelectionListeners; 191cdf0e10cSrcweir XRangeSelectionListenerArr_Impl aRangeSelListeners; 192cdf0e10cSrcweir XRangeSelectionChangeListenerArr_Impl aRangeChgListeners; 193cdf0e10cSrcweir XViewPropertyChangeListenerArr_Impl aPropertyChgListeners; 194cdf0e10cSrcweir XMouseClickHandlerArr_Impl aMouseClickHandlers; 195cdf0e10cSrcweir XActivationEventListenerArr_Impl aActivationListeners; 196cdf0e10cSrcweir SCTAB nPreviousTab; 197cdf0e10cSrcweir sal_Bool bDrawSelModeSet; 198cdf0e10cSrcweir 199cdf0e10cSrcweir ScViewPaneObj* GetObjectByIndex_Impl(sal_uInt16 nIndex) const; 200cdf0e10cSrcweir sal_Int16 GetZoom(void) const; 201cdf0e10cSrcweir void SetZoom(sal_Int16 Zoom); 202cdf0e10cSrcweir sal_Int16 GetZoomType(void) const; 203cdf0e10cSrcweir void SetZoomType(sal_Int16 ZoomType); 204cdf0e10cSrcweir 205cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::uno::XInterface > GetClickedObject(const Point& rPoint) const; 206cdf0e10cSrcweir void StartMouseListening(); 207cdf0e10cSrcweir void EndMouseListening(); 208cdf0e10cSrcweir void StartActivationListening(); 209cdf0e10cSrcweir void EndActivationListening(); 210cdf0e10cSrcweir 211cdf0e10cSrcweir ScTabViewObj(); // disabled 212cdf0e10cSrcweir public: 213cdf0e10cSrcweir ScTabViewObj(ScTabViewShell* pViewSh); 214cdf0e10cSrcweir virtual ~ScTabViewObj(); 215cdf0e10cSrcweir 216cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( 217cdf0e10cSrcweir const ::com::sun::star::uno::Type & rType ) 218cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 219cdf0e10cSrcweir virtual void SAL_CALL acquire() throw(); 220cdf0e10cSrcweir virtual void SAL_CALL release() throw(); 221cdf0e10cSrcweir 222cdf0e10cSrcweir void SelectionChanged(); 223cdf0e10cSrcweir void VisAreaChanged(); 224cdf0e10cSrcweir // bSameTabButMoved = true if the same sheet as before is activated, used after moving/copying/inserting/deleting a sheet 225cdf0e10cSrcweir void SheetChanged( bool bSameTabButMoved = false ); 226cdf0e10cSrcweir bool IsMouseListening() const; 227cdf0e10cSrcweir sal_Bool MousePressed( const ::com::sun::star::awt::MouseEvent& e ) throw (::com::sun::star::uno::RuntimeException); 228cdf0e10cSrcweir sal_Bool MouseReleased( const ::com::sun::star::awt::MouseEvent& e ) throw (::com::sun::star::uno::RuntimeException); 229cdf0e10cSrcweir 230cdf0e10cSrcweir void RangeSelDone( const String& rText ); 231cdf0e10cSrcweir void RangeSelAborted( const String& rText ); 232cdf0e10cSrcweir void RangeSelChanged( const String& rText ); 233cdf0e10cSrcweir 234cdf0e10cSrcweir // XSelectionSupplier 235cdf0e10cSrcweir virtual sal_Bool SAL_CALL select( const ::com::sun::star::uno::Any& aSelection ) 236cdf0e10cSrcweir throw(::com::sun::star::lang::IllegalArgumentException, 237cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 238cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getSelection() 239cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 240cdf0e10cSrcweir virtual void SAL_CALL addSelectionChangeListener( const ::com::sun::star::uno::Reference< 241cdf0e10cSrcweir ::com::sun::star::view::XSelectionChangeListener >& xListener ) 242cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 243cdf0e10cSrcweir virtual void SAL_CALL removeSelectionChangeListener( const ::com::sun::star::uno::Reference< 244cdf0e10cSrcweir ::com::sun::star::view::XSelectionChangeListener >& xListener ) 245cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 246cdf0e10cSrcweir 247cdf0e10cSrcweir //! XPrintable? 248cdf0e10cSrcweir 249cdf0e10cSrcweir // XPropertySet 250cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > 251cdf0e10cSrcweir SAL_CALL getPropertySetInfo() 252cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 253cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, 254cdf0e10cSrcweir const ::com::sun::star::uno::Any& aValue ) 255cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 256cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 257cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 258cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 259cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 260cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 261cdf0e10cSrcweir const ::rtl::OUString& PropertyName ) 262cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 263cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 264cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 265cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, 266cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 267cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener ) 268cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 269cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 270cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 271cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, 272cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 273cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& aListener ) 274cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 275cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 276cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 277cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, 278cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 279cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 280cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 281cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 282cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 283cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, 284cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 285cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 286cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 287cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 288cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 289cdf0e10cSrcweir 290cdf0e10cSrcweir // XEnumerationAccess 291cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL 292cdf0e10cSrcweir createEnumeration() throw(::com::sun::star::uno::RuntimeException); 293cdf0e10cSrcweir 294cdf0e10cSrcweir // XIndexAccess 295cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException); 296cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) 297cdf0e10cSrcweir throw(::com::sun::star::lang::IndexOutOfBoundsException, 298cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 299cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 300cdf0e10cSrcweir 301cdf0e10cSrcweir // XElementAccess 302cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType() 303cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 304cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException); 305cdf0e10cSrcweir 306cdf0e10cSrcweir // XSpreadsheetView 307cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet > SAL_CALL 308cdf0e10cSrcweir getActiveSheet() throw(::com::sun::star::uno::RuntimeException); 309cdf0e10cSrcweir virtual void SAL_CALL setActiveSheet( const ::com::sun::star::uno::Reference< 310cdf0e10cSrcweir ::com::sun::star::sheet::XSpreadsheet >& xActiveSheet ) 311cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 312cdf0e10cSrcweir 313cdf0e10cSrcweir //XEnhancedMouseClickBroadcaster 314cdf0e10cSrcweir 315cdf0e10cSrcweir virtual void SAL_CALL addEnhancedMouseClickHandler( const ::com::sun::star::uno::Reference< 316cdf0e10cSrcweir ::com::sun::star::awt::XEnhancedMouseClickHandler >& aListener ) 317cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 318cdf0e10cSrcweir virtual void SAL_CALL removeEnhancedMouseClickHandler( const ::com::sun::star::uno::Reference< 319cdf0e10cSrcweir ::com::sun::star::awt::XEnhancedMouseClickHandler >& aListener ) 320cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 321cdf0e10cSrcweir 322cdf0e10cSrcweir //XActivationBroadcaster 323cdf0e10cSrcweir 324cdf0e10cSrcweir virtual void SAL_CALL addActivationEventListener( const ::com::sun::star::uno::Reference< 325cdf0e10cSrcweir ::com::sun::star::sheet::XActivationEventListener >& aListener ) 326cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 327cdf0e10cSrcweir virtual void SAL_CALL removeActivationEventListener( const ::com::sun::star::uno::Reference< 328cdf0e10cSrcweir ::com::sun::star::sheet::XActivationEventListener >& aListener ) 329cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 330cdf0e10cSrcweir 331cdf0e10cSrcweir // XViewSplitable 332cdf0e10cSrcweir virtual sal_Bool SAL_CALL getIsWindowSplit() throw(::com::sun::star::uno::RuntimeException); 333cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getSplitHorizontal() throw(::com::sun::star::uno::RuntimeException); 334cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getSplitVertical() throw(::com::sun::star::uno::RuntimeException); 335cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getSplitColumn() throw(::com::sun::star::uno::RuntimeException); 336cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getSplitRow() throw(::com::sun::star::uno::RuntimeException); 337cdf0e10cSrcweir virtual void SAL_CALL splitAtPosition( sal_Int32 nPixelX, sal_Int32 nPixelY ) 338cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 339cdf0e10cSrcweir 340cdf0e10cSrcweir // XViewFreezable 341cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasFrozenPanes() throw(::com::sun::star::uno::RuntimeException); 342cdf0e10cSrcweir virtual void SAL_CALL freezeAtPosition( sal_Int32 nColumns, sal_Int32 nRows ) 343cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 344cdf0e10cSrcweir 345cdf0e10cSrcweir // XRangeSelection 346cdf0e10cSrcweir virtual void SAL_CALL startRangeSelection( const ::com::sun::star::uno::Sequence< 347cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue >& aArguments ) 348cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 349cdf0e10cSrcweir virtual void SAL_CALL abortRangeSelection() throw(::com::sun::star::uno::RuntimeException); 350cdf0e10cSrcweir virtual void SAL_CALL addRangeSelectionListener( const ::com::sun::star::uno::Reference< 351cdf0e10cSrcweir ::com::sun::star::sheet::XRangeSelectionListener >& aListener ) 352cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 353cdf0e10cSrcweir virtual void SAL_CALL removeRangeSelectionListener( const ::com::sun::star::uno::Reference< 354cdf0e10cSrcweir ::com::sun::star::sheet::XRangeSelectionListener >& aListener ) 355cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 356cdf0e10cSrcweir virtual void SAL_CALL addRangeSelectionChangeListener( const ::com::sun::star::uno::Reference< 357cdf0e10cSrcweir ::com::sun::star::sheet::XRangeSelectionChangeListener >& aListener ) 358cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 359cdf0e10cSrcweir virtual void SAL_CALL removeRangeSelectionChangeListener( const ::com::sun::star::uno::Reference< 360cdf0e10cSrcweir ::com::sun::star::sheet::XRangeSelectionChangeListener >& aListener ) 361cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 362cdf0e10cSrcweir 363cdf0e10cSrcweir // XServiceInfo 364cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 365cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 366cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 367cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 368cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 369cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 370cdf0e10cSrcweir 371cdf0e10cSrcweir // XUnoTunnel 372cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< 373cdf0e10cSrcweir sal_Int8 >& aIdentifier ) 374cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 375cdf0e10cSrcweir 376cdf0e10cSrcweir static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); 377cdf0e10cSrcweir static ScTabViewObj* getImplementation( const com::sun::star::uno::Reference< 378cdf0e10cSrcweir com::sun::star::uno::XInterface> xObj ); 379cdf0e10cSrcweir 380cdf0e10cSrcweir // XTypeProvider 381cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() 382cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 383cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() 384cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 385cdf0e10cSrcweir 386cdf0e10cSrcweir //XTransferableSupplier 387cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getTransferable( ) throw (::com::sun::star::uno::RuntimeException); 388cdf0e10cSrcweir virtual void SAL_CALL insertTransferable( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans ) throw (::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::uno::RuntimeException); 389cdf0e10cSrcweir }; 390cdf0e10cSrcweir 391cdf0e10cSrcweir 392cdf0e10cSrcweir #endif 393cdf0e10cSrcweir 394