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