1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _UNOTXVW_HXX 24cdf0e10cSrcweir #define _UNOTXVW_HXX 25cdf0e10cSrcweir #include <sfx2/sfxbasecontroller.hxx> 26cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp> 27cdf0e10cSrcweir #include <com/sun/star/text/XTextViewCursor.hpp> 28cdf0e10cSrcweir #include <com/sun/star/text/XTextViewCursorSupplier.hpp> 29cdf0e10cSrcweir #include <com/sun/star/text/XRubySelection.hpp> 30cdf0e10cSrcweir #include <com/sun/star/view/XFormLayerAccess.hpp> 31cdf0e10cSrcweir #include <com/sun/star/view/XScreenCursor.hpp> 32cdf0e10cSrcweir #include <com/sun/star/view/XViewSettingsSupplier.hpp> 33cdf0e10cSrcweir #include <com/sun/star/view/XSelectionSupplier.hpp> 34cdf0e10cSrcweir #include <com/sun/star/view/XLineCursor.hpp> 35cdf0e10cSrcweir #include <com/sun/star/view/XViewCursor.hpp> 36cdf0e10cSrcweir #include <com/sun/star/text/XPageCursor.hpp> 37cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 38cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySetInfo.hpp> 39cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp> 40cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 41cdf0e10cSrcweir #include <com/sun/star/datatransfer/XTransferableSupplier.hpp> 42cdf0e10cSrcweir #include <cppuhelper/implbase8.hxx> // helper for implementations 43cdf0e10cSrcweir #include <svl/itemprop.hxx> 44cdf0e10cSrcweir #include "calbck.hxx" 45cdf0e10cSrcweir #include "TextCursorHelper.hxx" 46cdf0e10cSrcweir #include <comphelper/uno3.hxx> 47cdf0e10cSrcweir 48cdf0e10cSrcweir #include <sfx2/objsh.hxx> 49cdf0e10cSrcweir 50cdf0e10cSrcweir class SdrObject; 51cdf0e10cSrcweir class SwView; 52cdf0e10cSrcweir 53cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > * XSelectionChangeListenerPtr; 54cdf0e10cSrcweir SV_DECL_PTRARR_DEL( SelectionChangeListenerArr, XSelectionChangeListenerPtr, 4, 4 ) 55cdf0e10cSrcweir 56cdf0e10cSrcweir /****************************************************************************** 57cdf0e10cSrcweir * 58cdf0e10cSrcweir ******************************************************************************/ 59cdf0e10cSrcweir class SwXTextView : 60cdf0e10cSrcweir public ::com::sun::star::view::XSelectionSupplier, 61cdf0e10cSrcweir public ::com::sun::star::lang::XServiceInfo, 62cdf0e10cSrcweir public ::com::sun::star::view::XFormLayerAccess, 63cdf0e10cSrcweir public ::com::sun::star::text::XTextViewCursorSupplier, 64cdf0e10cSrcweir public ::com::sun::star::text::XRubySelection, 65cdf0e10cSrcweir public ::com::sun::star::view::XViewSettingsSupplier, 66cdf0e10cSrcweir public ::com::sun::star::beans::XPropertySet, 67cdf0e10cSrcweir public ::com::sun::star::datatransfer::XTransferableSupplier, 68cdf0e10cSrcweir public SfxBaseController 69cdf0e10cSrcweir { 70cdf0e10cSrcweir SelectionChangeListenerArr aSelChangedListeners; 71cdf0e10cSrcweir 72cdf0e10cSrcweir SwView* m_pView; 73cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; // property map for SwXTextView properties 74cdf0e10cSrcweir // (not related to pxViewSettings!) 75cdf0e10cSrcweir 76cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxViewSettings; 77cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > * pxTextViewCursor; 78cdf0e10cSrcweir 79cdf0e10cSrcweir 80cdf0e10cSrcweir SdrObject* GetControl( 81cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model, 82cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& xToFill ); 83cdf0e10cSrcweir 84cdf0e10cSrcweir protected: 85cdf0e10cSrcweir virtual ~SwXTextView(); 86cdf0e10cSrcweir public: 87cdf0e10cSrcweir SwXTextView(SwView* pSwView); 88cdf0e10cSrcweir 89cdf0e10cSrcweir 90cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); 91cdf0e10cSrcweir virtual void SAL_CALL acquire( ) throw(); 92cdf0e10cSrcweir virtual void SAL_CALL release( ) throw(); 93cdf0e10cSrcweir 94cdf0e10cSrcweir //XTypeProvider 95cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); 96cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); 97cdf0e10cSrcweir 98cdf0e10cSrcweir //XSelectionSupplier 99cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getSelection(void) throw( ::com::sun::star::uno::RuntimeException ); 100cdf0e10cSrcweir virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& aInterface) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); 101cdf0e10cSrcweir virtual void SAL_CALL addSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException ); 102cdf0e10cSrcweir virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException ); 103cdf0e10cSrcweir 104cdf0e10cSrcweir // XFormLayerAccess 105cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFormController > SAL_CALL getFormController( const ::com::sun::star::uno::Reference< ::com::sun::star::form::XForm >& Form ) throw (::com::sun::star::uno::RuntimeException); 106cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL isFormDesignMode( ) throw (::com::sun::star::uno::RuntimeException); 107cdf0e10cSrcweir virtual void SAL_CALL setFormDesignMode( ::sal_Bool DesignMode ) throw (::com::sun::star::uno::RuntimeException); 108cdf0e10cSrcweir 109cdf0e10cSrcweir // XControlAccess 110cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL getControl(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException ); 111cdf0e10cSrcweir 112cdf0e10cSrcweir //XTextViewCursorSupplier 113cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > SAL_CALL getViewCursor(void) throw( ::com::sun::star::uno::RuntimeException ); 114cdf0e10cSrcweir 115cdf0e10cSrcweir //XViewSettings 116cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getViewSettings(void) throw( ::com::sun::star::uno::RuntimeException ); 117cdf0e10cSrcweir 118cdf0e10cSrcweir //XRubySelection 119cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< 120cdf0e10cSrcweir ::com::sun::star::uno::Sequence< 121cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue > > SAL_CALL getRubyList( sal_Bool bAutomatic ) 122cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 123cdf0e10cSrcweir 124cdf0e10cSrcweir virtual void SAL_CALL setRubyList( 125cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< 126cdf0e10cSrcweir ::com::sun::star::uno::Sequence< 127cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue > >& RubyList, sal_Bool bAutomatic ) 128cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 129cdf0e10cSrcweir 130cdf0e10cSrcweir //XPropertySet 131cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException); 132cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 133cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 134cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 135cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 136cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 137cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 138cdf0e10cSrcweir 139cdf0e10cSrcweir //XServiceInfo 140cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 141cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 142cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 143cdf0e10cSrcweir 144cdf0e10cSrcweir //XTransferableSupplier 145cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getTransferable( ) throw (::com::sun::star::uno::RuntimeException); 146cdf0e10cSrcweir 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); 147cdf0e10cSrcweir 148cdf0e10cSrcweir void NotifySelChanged(); 149cdf0e10cSrcweir void NotifyDBChanged(); 150cdf0e10cSrcweir GetView()151cdf0e10cSrcweir SwView* GetView() {return m_pView;} 152cdf0e10cSrcweir void Invalidate(); 153cdf0e10cSrcweir 154cdf0e10cSrcweir // temporary document used for PDF export of selections/multi-selections 155cdf0e10cSrcweir SfxObjectShellLock BuildTmpSelectionDoc(); 156cdf0e10cSrcweir }; 157cdf0e10cSrcweir 158cdf0e10cSrcweir /* -----------------17.09.98 12:52------------------- 159cdf0e10cSrcweir * 160cdf0e10cSrcweir * --------------------------------------------------*/ 161cdf0e10cSrcweir 162cdf0e10cSrcweir typedef cppu::WeakImplHelper8< 163cdf0e10cSrcweir ::com::sun::star::text::XTextViewCursor, 164cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo, 165cdf0e10cSrcweir ::com::sun::star::text::XPageCursor, 166cdf0e10cSrcweir ::com::sun::star::view::XScreenCursor, 167cdf0e10cSrcweir ::com::sun::star::view::XViewCursor, 168cdf0e10cSrcweir ::com::sun::star::view::XLineCursor, 169cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 170cdf0e10cSrcweir ::com::sun::star::beans::XPropertyState 171cdf0e10cSrcweir > SwXTextViewCursor_Base; 172cdf0e10cSrcweir 173cdf0e10cSrcweir class SwXTextViewCursor : public SwXTextViewCursor_Base, 174cdf0e10cSrcweir public SwClient, 175cdf0e10cSrcweir public OTextCursorHelper 176cdf0e10cSrcweir { 177cdf0e10cSrcweir SwView* m_pView; 178cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 179cdf0e10cSrcweir protected: 180cdf0e10cSrcweir sal_Bool IsTextSelection( sal_Bool bAllowTables = sal_True ) const; 181cdf0e10cSrcweir virtual ~SwXTextViewCursor(); 182cdf0e10cSrcweir public: 183cdf0e10cSrcweir SwXTextViewCursor(SwView* pVw); 184cdf0e10cSrcweir 185cdf0e10cSrcweir DECLARE_XINTERFACE() 186cdf0e10cSrcweir 187cdf0e10cSrcweir //XTextViewCursor 188cdf0e10cSrcweir virtual sal_Bool SAL_CALL isVisible(void) throw( ::com::sun::star::uno::RuntimeException ); 189cdf0e10cSrcweir virtual void SAL_CALL setVisible(sal_Bool bVisible) throw( ::com::sun::star::uno::RuntimeException ); 190cdf0e10cSrcweir virtual ::com::sun::star::awt::Point SAL_CALL getPosition(void) throw( ::com::sun::star::uno::RuntimeException ); 191cdf0e10cSrcweir 192cdf0e10cSrcweir //XTextCursor - neu 193cdf0e10cSrcweir virtual void SAL_CALL collapseToStart( ) throw(::com::sun::star::uno::RuntimeException); 194cdf0e10cSrcweir virtual void SAL_CALL collapseToEnd( ) throw(::com::sun::star::uno::RuntimeException); 195cdf0e10cSrcweir virtual sal_Bool SAL_CALL isCollapsed( ) throw(::com::sun::star::uno::RuntimeException); 196cdf0e10cSrcweir virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 197cdf0e10cSrcweir virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 198cdf0e10cSrcweir virtual void SAL_CALL gotoStart( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 199cdf0e10cSrcweir virtual void SAL_CALL gotoEnd( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 200cdf0e10cSrcweir virtual void SAL_CALL gotoRange( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); 201cdf0e10cSrcweir 202cdf0e10cSrcweir //XPageCursor 203cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToFirstPage(void) throw( ::com::sun::star::uno::RuntimeException ); 204cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToLastPage(void) throw( ::com::sun::star::uno::RuntimeException ); 205cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) throw( ::com::sun::star::uno::RuntimeException ); 206cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToNextPage(void) throw( ::com::sun::star::uno::RuntimeException ); 207cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException ); 208cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToEndOfPage(void) throw( ::com::sun::star::uno::RuntimeException ); 209cdf0e10cSrcweir virtual sal_Bool SAL_CALL jumpToStartOfPage(void) throw( ::com::sun::star::uno::RuntimeException ); 210cdf0e10cSrcweir virtual sal_Int16 SAL_CALL getPage(void) throw( ::com::sun::star::uno::RuntimeException ); 211cdf0e10cSrcweir 212cdf0e10cSrcweir //XTextRange 213cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException ); 214cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getStart(void) throw( ::com::sun::star::uno::RuntimeException ); 215cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getEnd(void) throw( ::com::sun::star::uno::RuntimeException ); 216cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getString(void) throw( ::com::sun::star::uno::RuntimeException ); 217cdf0e10cSrcweir virtual void SAL_CALL setString(const rtl::OUString& aString) throw( ::com::sun::star::uno::RuntimeException ); 218cdf0e10cSrcweir 219cdf0e10cSrcweir //XScreenCursor 220cdf0e10cSrcweir virtual sal_Bool SAL_CALL screenDown(void) throw( ::com::sun::star::uno::RuntimeException ); 221cdf0e10cSrcweir virtual sal_Bool SAL_CALL screenUp(void) throw( ::com::sun::star::uno::RuntimeException ); 222cdf0e10cSrcweir 223cdf0e10cSrcweir //XViewCursor 224cdf0e10cSrcweir virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); 225cdf0e10cSrcweir virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); 226cdf0e10cSrcweir // virtual sal_Bool goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); 227cdf0e10cSrcweir // virtual sal_Bool goRight(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); 228cdf0e10cSrcweir 229cdf0e10cSrcweir //XLineCursor 230cdf0e10cSrcweir virtual sal_Bool SAL_CALL isAtStartOfLine(void) throw( ::com::sun::star::uno::RuntimeException ); 231cdf0e10cSrcweir virtual sal_Bool SAL_CALL isAtEndOfLine(void) throw( ::com::sun::star::uno::RuntimeException ); 232cdf0e10cSrcweir virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); 233cdf0e10cSrcweir virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); 234cdf0e10cSrcweir 235cdf0e10cSrcweir //XPropertySet 236cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 237cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 238cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 239cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 240cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 241cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 242cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 243cdf0e10cSrcweir 244cdf0e10cSrcweir //XPropertyState 245cdf0e10cSrcweir virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 246cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 247cdf0e10cSrcweir virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); 248cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 249cdf0e10cSrcweir 250cdf0e10cSrcweir //XServiceInfo 251cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 252cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 253cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 254cdf0e10cSrcweir 255cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 256cdf0e10cSrcweir 257cdf0e10cSrcweir //XUnoTunnel 258cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 259cdf0e10cSrcweir Invalidate()260cdf0e10cSrcweir void Invalidate(){m_pView = 0;} 261cdf0e10cSrcweir 262cdf0e10cSrcweir // ITextCursorHelper 263cdf0e10cSrcweir virtual const SwPaM* GetPaM() const; 264cdf0e10cSrcweir virtual SwPaM* GetPaM(); 265cdf0e10cSrcweir virtual const SwDoc* GetDoc() const; 266cdf0e10cSrcweir virtual SwDoc* GetDoc(); 267cdf0e10cSrcweir }; 268cdf0e10cSrcweir #endif 269cdf0e10cSrcweir 270cdf0e10cSrcweir 271