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 SW_UNOTEXTCURSOR_HXX 29*cdf0e10cSrcweir #define SW_UNOTEXTCURSOR_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 32*cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 33*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 34*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp> 35*cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertyStates.hpp> 36*cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp> 37*cdf0e10cSrcweir #include <com/sun/star/container/XContentEnumerationAccess.hpp> 38*cdf0e10cSrcweir #include <com/sun/star/util/XSortable.hpp> 39*cdf0e10cSrcweir #include <com/sun/star/document/XDocumentInsertable.hpp> 40*cdf0e10cSrcweir #include <com/sun/star/text/XSentenceCursor.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/text/XWordCursor.hpp> 42*cdf0e10cSrcweir #include <com/sun/star/text/XParagraphCursor.hpp> 43*cdf0e10cSrcweir #include <com/sun/star/text/XRedline.hpp> 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir #include <cppuhelper/implbase12.hxx> 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir #include <comphelper/uno3.hxx> 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir #include <unobaseclass.hxx> 50*cdf0e10cSrcweir #include <TextCursorHelper.hxx> 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir class SwDoc; 54*cdf0e10cSrcweir struct SwPosition; 55*cdf0e10cSrcweir class SwUnoCrsr; 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir typedef ::cppu::WeakImplHelper12 59*cdf0e10cSrcweir < ::com::sun::star::lang::XServiceInfo 60*cdf0e10cSrcweir , ::com::sun::star::beans::XPropertySet 61*cdf0e10cSrcweir , ::com::sun::star::beans::XPropertyState 62*cdf0e10cSrcweir , ::com::sun::star::beans::XMultiPropertyStates 63*cdf0e10cSrcweir , ::com::sun::star::container::XEnumerationAccess 64*cdf0e10cSrcweir , ::com::sun::star::container::XContentEnumerationAccess 65*cdf0e10cSrcweir , ::com::sun::star::util::XSortable 66*cdf0e10cSrcweir , ::com::sun::star::document::XDocumentInsertable 67*cdf0e10cSrcweir , ::com::sun::star::text::XSentenceCursor 68*cdf0e10cSrcweir , ::com::sun::star::text::XWordCursor 69*cdf0e10cSrcweir , ::com::sun::star::text::XParagraphCursor 70*cdf0e10cSrcweir , ::com::sun::star::text::XRedline 71*cdf0e10cSrcweir > SwXTextCursor_Base; 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir class SwXTextCursor 74*cdf0e10cSrcweir : public SwXTextCursor_Base 75*cdf0e10cSrcweir , public OTextCursorHelper 76*cdf0e10cSrcweir { 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir private: 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir class Impl; 81*cdf0e10cSrcweir ::sw::UnoImplPtr<Impl> m_pImpl; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir virtual ~SwXTextCursor(); 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir public: 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir SwXTextCursor( 88*cdf0e10cSrcweir SwDoc & rDoc, 89*cdf0e10cSrcweir ::com::sun::star::uno::Reference< 90*cdf0e10cSrcweir ::com::sun::star::text::XText > const& xParent, 91*cdf0e10cSrcweir const enum CursorType eType, 92*cdf0e10cSrcweir SwPosition const& rPos, 93*cdf0e10cSrcweir SwPosition const*const pMark = 0); 94*cdf0e10cSrcweir SwXTextCursor( 95*cdf0e10cSrcweir ::com::sun::star::uno::Reference< 96*cdf0e10cSrcweir ::com::sun::star::text::XText > const& xParent, 97*cdf0e10cSrcweir SwPaM const& rSourceCursor, 98*cdf0e10cSrcweir const enum CursorType eType = CURSOR_ALL); 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir SwUnoCrsr * GetCursor(); 101*cdf0e10cSrcweir const SwUnoCrsr * GetCursor() const; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir bool IsAtEndOfMeta() const; 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir void DeleteAndInsert(::rtl::OUString const& rText, 106*cdf0e10cSrcweir const bool bForceExpandHints); 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir // OTextCursorHelper 109*cdf0e10cSrcweir virtual const SwPaM* GetPaM() const; 110*cdf0e10cSrcweir virtual SwPaM* GetPaM(); 111*cdf0e10cSrcweir virtual const SwDoc* GetDoc() const; 112*cdf0e10cSrcweir virtual SwDoc* GetDoc(); 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir DECLARE_XINTERFACE() 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId(); 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir // XUnoTunnel 119*cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( 120*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier) 121*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir // XServiceInfo 124*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 125*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 126*cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( 127*cdf0e10cSrcweir const ::rtl::OUString& rServiceName) 128*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 129*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 130*cdf0e10cSrcweir getSupportedServiceNames() 131*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir // XPropertySet 134*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 135*cdf0e10cSrcweir ::com::sun::star::beans::XPropertySetInfo > SAL_CALL 136*cdf0e10cSrcweir getPropertySetInfo() 137*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 138*cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( 139*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 140*cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue) 141*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 142*cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 143*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 144*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 145*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 146*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 147*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName) 148*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 149*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 150*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 151*cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( 152*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 153*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 154*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener) 155*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 156*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 157*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 158*cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( 159*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 160*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 161*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener) 162*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 163*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 164*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 165*cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( 166*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 167*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 168*cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& xListener) 169*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 170*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 171*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 172*cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( 173*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 174*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 175*cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& xListener) 176*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 177*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 178*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir // XPropertyState 181*cdf0e10cSrcweir virtual ::com::sun::star::beans::PropertyState SAL_CALL 182*cdf0e10cSrcweir getPropertyState(const ::rtl::OUString& rPropertyName) 183*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 184*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 185*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< 186*cdf0e10cSrcweir ::com::sun::star::beans::PropertyState > SAL_CALL 187*cdf0e10cSrcweir getPropertyStates( 188*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< 189*cdf0e10cSrcweir ::rtl::OUString >& rPropertyNames) 190*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 191*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 192*cdf0e10cSrcweir virtual void SAL_CALL setPropertyToDefault( 193*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName) 194*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 195*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 196*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( 197*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName) 198*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 199*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 200*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 201*cdf0e10cSrcweir 202*cdf0e10cSrcweir // XMultiPropertyStates 203*cdf0e10cSrcweir virtual void SAL_CALL setAllPropertiesToDefault() 204*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 205*cdf0e10cSrcweir virtual void SAL_CALL setPropertiesToDefault( 206*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::rtl::OUString >& 207*cdf0e10cSrcweir rPropertyNames) 208*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 209*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 210*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > 211*cdf0e10cSrcweir SAL_CALL getPropertyDefaults( 212*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::rtl::OUString >& 213*cdf0e10cSrcweir rPropertyNames) 214*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 215*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 216*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir // XElementAccess 219*cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType() 220*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 221*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements() 222*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 223*cdf0e10cSrcweir 224*cdf0e10cSrcweir // XEnumerationAccess 225*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 226*cdf0e10cSrcweir ::com::sun::star::container::XEnumeration > SAL_CALL 227*cdf0e10cSrcweir createEnumeration() 228*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir // XContentEnumerationAccess 231*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 232*cdf0e10cSrcweir ::com::sun::star::container::XEnumeration > SAL_CALL 233*cdf0e10cSrcweir createContentEnumeration(const ::rtl::OUString& rServiceName) 234*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 235*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 236*cdf0e10cSrcweir getAvailableServiceNames() 237*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 238*cdf0e10cSrcweir 239*cdf0e10cSrcweir // XSortable 240*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< 241*cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue > SAL_CALL 242*cdf0e10cSrcweir createSortDescriptor() 243*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 244*cdf0e10cSrcweir virtual void SAL_CALL sort( 245*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< 246*cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue >& xDescriptor) 247*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir // XDocumentInsertable 250*cdf0e10cSrcweir virtual void SAL_CALL insertDocumentFromURL( 251*cdf0e10cSrcweir const ::rtl::OUString& rURL, 252*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< 253*cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue >& rOptions) 254*cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException, 255*cdf0e10cSrcweir ::com::sun::star::io::IOException, 256*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir // XTextRange 259*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > 260*cdf0e10cSrcweir SAL_CALL getText() 261*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 262*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 263*cdf0e10cSrcweir ::com::sun::star::text::XTextRange > SAL_CALL getStart() 264*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 265*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 266*cdf0e10cSrcweir ::com::sun::star::text::XTextRange > SAL_CALL getEnd() 267*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 268*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getString() 269*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 270*cdf0e10cSrcweir virtual void SAL_CALL setString(const ::rtl::OUString& rString) 271*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir // XTextCursor 274*cdf0e10cSrcweir virtual void SAL_CALL collapseToStart() 275*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 276*cdf0e10cSrcweir virtual void SAL_CALL collapseToEnd() 277*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 278*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isCollapsed() 279*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 280*cdf0e10cSrcweir virtual sal_Bool SAL_CALL goLeft(sal_Int16 nCount, sal_Bool bExpand) 281*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 282*cdf0e10cSrcweir virtual sal_Bool SAL_CALL goRight(sal_Int16 nCount, sal_Bool bExpand) 283*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 284*cdf0e10cSrcweir virtual void SAL_CALL gotoStart(sal_Bool bExpand) 285*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 286*cdf0e10cSrcweir virtual void SAL_CALL gotoEnd(sal_Bool bExpand) 287*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 288*cdf0e10cSrcweir virtual void SAL_CALL gotoRange( 289*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 290*cdf0e10cSrcweir ::com::sun::star::text::XTextRange >& xRange, 291*cdf0e10cSrcweir sal_Bool bExpand) 292*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 293*cdf0e10cSrcweir 294*cdf0e10cSrcweir // XWordCursor 295*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isStartOfWord() 296*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 297*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isEndOfWord() 298*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 299*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoNextWord(sal_Bool bExpand) 300*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 301*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoPreviousWord(sal_Bool bExpand) 302*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 303*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoEndOfWord(sal_Bool bExpand) 304*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 305*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoStartOfWord(sal_Bool bExpand) 306*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir // XSentenceCursor 309*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isStartOfSentence() 310*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 311*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isEndOfSentence() 312*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 313*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoNextSentence(sal_Bool Expand) 314*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 315*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoPreviousSentence(sal_Bool Expand) 316*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 317*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoStartOfSentence(sal_Bool Expand) 318*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 319*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoEndOfSentence(sal_Bool Expand) 320*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir // XParagraphCursor 323*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isStartOfParagraph() 324*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 325*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isEndOfParagraph() 326*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 327*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoStartOfParagraph(sal_Bool Expand) 328*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 329*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoEndOfParagraph(sal_Bool Expand) 330*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 331*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoNextParagraph(sal_Bool Expand) 332*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 333*cdf0e10cSrcweir virtual sal_Bool SAL_CALL gotoPreviousParagraph(sal_Bool Expand) 334*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 335*cdf0e10cSrcweir 336*cdf0e10cSrcweir // XRedline 337*cdf0e10cSrcweir virtual void SAL_CALL makeRedline( 338*cdf0e10cSrcweir const ::rtl::OUString& rRedlineType, 339*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< 340*cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue >& RedlineProperties) 341*cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException, 342*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 343*cdf0e10cSrcweir 344*cdf0e10cSrcweir }; 345*cdf0e10cSrcweir 346*cdf0e10cSrcweir #endif // SW_UNOTEXTCURSOR_HXX 347*cdf0e10cSrcweir 348