xref: /AOO41X/main/sw/source/ui/inc/unotxvw.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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 #ifndef _UNOTXVW_HXX
28*cdf0e10cSrcweir #define _UNOTXVW_HXX
29*cdf0e10cSrcweir #include <sfx2/sfxbasecontroller.hxx>
30*cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp>
31*cdf0e10cSrcweir #include <com/sun/star/text/XTextViewCursor.hpp>
32*cdf0e10cSrcweir #include <com/sun/star/text/XTextViewCursorSupplier.hpp>
33*cdf0e10cSrcweir #include <com/sun/star/text/XRubySelection.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/view/XFormLayerAccess.hpp>
35*cdf0e10cSrcweir #include <com/sun/star/view/XScreenCursor.hpp>
36*cdf0e10cSrcweir #include <com/sun/star/view/XViewSettingsSupplier.hpp>
37*cdf0e10cSrcweir #include <com/sun/star/view/XSelectionSupplier.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/view/XLineCursor.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/view/XViewCursor.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/text/XPageCursor.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySetInfo.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp>
44*cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
45*cdf0e10cSrcweir #include <com/sun/star/datatransfer/XTransferableSupplier.hpp>
46*cdf0e10cSrcweir #include <cppuhelper/implbase8.hxx>	// helper for implementations
47*cdf0e10cSrcweir #include <svl/itemprop.hxx>
48*cdf0e10cSrcweir #include "calbck.hxx"
49*cdf0e10cSrcweir #include "TextCursorHelper.hxx"
50*cdf0e10cSrcweir #include <comphelper/uno3.hxx>
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir #include <sfx2/objsh.hxx>
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir class SdrObject;
55*cdf0e10cSrcweir class SwView;
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > * XSelectionChangeListenerPtr;
58*cdf0e10cSrcweir SV_DECL_PTRARR_DEL( SelectionChangeListenerArr, XSelectionChangeListenerPtr, 4, 4 )
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir /******************************************************************************
61*cdf0e10cSrcweir  *
62*cdf0e10cSrcweir  ******************************************************************************/
63*cdf0e10cSrcweir class SwXTextView :
64*cdf0e10cSrcweir 	public ::com::sun::star::view::XSelectionSupplier,
65*cdf0e10cSrcweir 	public ::com::sun::star::lang::XServiceInfo,
66*cdf0e10cSrcweir 	public ::com::sun::star::view::XFormLayerAccess,
67*cdf0e10cSrcweir 	public ::com::sun::star::text::XTextViewCursorSupplier,
68*cdf0e10cSrcweir 	public ::com::sun::star::text::XRubySelection,
69*cdf0e10cSrcweir 	public ::com::sun::star::view::XViewSettingsSupplier,
70*cdf0e10cSrcweir     public ::com::sun::star::beans::XPropertySet,
71*cdf0e10cSrcweir     public ::com::sun::star::datatransfer::XTransferableSupplier,
72*cdf0e10cSrcweir 	public SfxBaseController
73*cdf0e10cSrcweir {
74*cdf0e10cSrcweir 	SelectionChangeListenerArr aSelChangedListeners;
75*cdf0e10cSrcweir 
76*cdf0e10cSrcweir     SwView*                     m_pView;
77*cdf0e10cSrcweir     const SfxItemPropertySet*   m_pPropSet;   // property map for SwXTextView properties
78*cdf0e10cSrcweir                                         // (not related to pxViewSettings!)
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * 		pxViewSettings;
81*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > * 	pxTextViewCursor;
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir     SdrObject* GetControl(
85*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model,
86*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& xToFill  );
87*cdf0e10cSrcweir 
88*cdf0e10cSrcweir protected:
89*cdf0e10cSrcweir 	virtual ~SwXTextView();
90*cdf0e10cSrcweir public:
91*cdf0e10cSrcweir 	SwXTextView(SwView* pSwView);
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir     virtual 	::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
95*cdf0e10cSrcweir     virtual void SAL_CALL acquire(  ) throw();
96*cdf0e10cSrcweir     virtual void SAL_CALL release(  ) throw();
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir     //XTypeProvider
99*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
100*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
101*cdf0e10cSrcweir 
102*cdf0e10cSrcweir 	//XSelectionSupplier
103*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getSelection(void) throw( ::com::sun::star::uno::RuntimeException );
104*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& aInterface) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
105*cdf0e10cSrcweir 	virtual void SAL_CALL addSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException );
106*cdf0e10cSrcweir 	virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException );
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir     // XFormLayerAccess
109*cdf0e10cSrcweir     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);
110*cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL isFormDesignMode(  ) throw (::com::sun::star::uno::RuntimeException);
111*cdf0e10cSrcweir     virtual void SAL_CALL setFormDesignMode( ::sal_Bool DesignMode ) throw (::com::sun::star::uno::RuntimeException);
112*cdf0e10cSrcweir 
113*cdf0e10cSrcweir     // XControlAccess
114*cdf0e10cSrcweir 	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 );
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir 	//XTextViewCursorSupplier
117*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor >  SAL_CALL getViewCursor(void) throw( ::com::sun::star::uno::RuntimeException );
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir 	//XViewSettings
120*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >  SAL_CALL getViewSettings(void) throw( ::com::sun::star::uno::RuntimeException );
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir 	//XRubySelection
123*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence<
124*cdf0e10cSrcweir 			::com::sun::star::uno::Sequence<
125*cdf0e10cSrcweir 			::com::sun::star::beans::PropertyValue > > SAL_CALL getRubyList( sal_Bool bAutomatic )
126*cdf0e10cSrcweir 				throw(::com::sun::star::uno::RuntimeException);
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir 	virtual void SAL_CALL setRubyList(
129*cdf0e10cSrcweir 		const ::com::sun::star::uno::Sequence<
130*cdf0e10cSrcweir 		::com::sun::star::uno::Sequence<
131*cdf0e10cSrcweir 		::com::sun::star::beans::PropertyValue > >& RubyList, sal_Bool bAutomatic )
132*cdf0e10cSrcweir 			throw(::com::sun::star::uno::RuntimeException);
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir     //XPropertySet
135*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
136*cdf0e10cSrcweir     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);
137*cdf0e10cSrcweir     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);
138*cdf0e10cSrcweir     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);
139*cdf0e10cSrcweir     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);
140*cdf0e10cSrcweir     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);
141*cdf0e10cSrcweir     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);
142*cdf0e10cSrcweir 
143*cdf0e10cSrcweir 	//XServiceInfo
144*cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
145*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
146*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
147*cdf0e10cSrcweir 
148*cdf0e10cSrcweir     //XTransferableSupplier
149*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getTransferable(  ) throw (::com::sun::star::uno::RuntimeException);
150*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);
151*cdf0e10cSrcweir 
152*cdf0e10cSrcweir 	void					NotifySelChanged();
153*cdf0e10cSrcweir     void                    NotifyDBChanged();
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir     SwView*                 GetView() {return m_pView;}
156*cdf0e10cSrcweir     void                    Invalidate();
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir     // temporary document used for PDF export of selections/multi-selections
159*cdf0e10cSrcweir     SfxObjectShellLock      BuildTmpSelectionDoc();
160*cdf0e10cSrcweir };
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir /* -----------------17.09.98 12:52-------------------
163*cdf0e10cSrcweir  *
164*cdf0e10cSrcweir  * --------------------------------------------------*/
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir typedef cppu::WeakImplHelper8<
167*cdf0e10cSrcweir                             ::com::sun::star::text::XTextViewCursor,
168*cdf0e10cSrcweir 							::com::sun::star::lang::XServiceInfo,
169*cdf0e10cSrcweir 							::com::sun::star::text::XPageCursor,
170*cdf0e10cSrcweir 							::com::sun::star::view::XScreenCursor,
171*cdf0e10cSrcweir 							::com::sun::star::view::XViewCursor,
172*cdf0e10cSrcweir 							::com::sun::star::view::XLineCursor,
173*cdf0e10cSrcweir 							::com::sun::star::beans::XPropertySet,
174*cdf0e10cSrcweir 							::com::sun::star::beans::XPropertyState
175*cdf0e10cSrcweir 							> SwXTextViewCursor_Base;
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir class SwXTextViewCursor : public SwXTextViewCursor_Base,
178*cdf0e10cSrcweir public SwClient,
179*cdf0e10cSrcweir public OTextCursorHelper
180*cdf0e10cSrcweir {
181*cdf0e10cSrcweir     SwView*                         m_pView;
182*cdf0e10cSrcweir     const SfxItemPropertySet*       m_pPropSet;
183*cdf0e10cSrcweir protected:
184*cdf0e10cSrcweir     sal_Bool    IsTextSelection( sal_Bool bAllowTables = sal_True ) const;
185*cdf0e10cSrcweir     virtual     ~SwXTextViewCursor();
186*cdf0e10cSrcweir public:
187*cdf0e10cSrcweir 	SwXTextViewCursor(SwView* pVw);
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir 	DECLARE_XINTERFACE()
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir 	//XTextViewCursor
192*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isVisible(void) throw( ::com::sun::star::uno::RuntimeException );
193*cdf0e10cSrcweir 	virtual void SAL_CALL setVisible(sal_Bool bVisible) throw( ::com::sun::star::uno::RuntimeException );
194*cdf0e10cSrcweir 	virtual ::com::sun::star::awt::Point SAL_CALL getPosition(void) throw( ::com::sun::star::uno::RuntimeException );
195*cdf0e10cSrcweir 
196*cdf0e10cSrcweir 	//XTextCursor - neu
197*cdf0e10cSrcweir     virtual void SAL_CALL collapseToStart(  ) throw(::com::sun::star::uno::RuntimeException);
198*cdf0e10cSrcweir     virtual void SAL_CALL collapseToEnd(  ) throw(::com::sun::star::uno::RuntimeException);
199*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isCollapsed(  ) throw(::com::sun::star::uno::RuntimeException);
200*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException);
201*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException);
202*cdf0e10cSrcweir     virtual void SAL_CALL gotoStart( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException);
203*cdf0e10cSrcweir     virtual void SAL_CALL gotoEnd( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException);
204*cdf0e10cSrcweir     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);
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir 	//XPageCursor
207*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToFirstPage(void) throw( ::com::sun::star::uno::RuntimeException );
208*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToLastPage(void) throw( ::com::sun::star::uno::RuntimeException );
209*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) throw( ::com::sun::star::uno::RuntimeException );
210*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToNextPage(void) throw( ::com::sun::star::uno::RuntimeException );
211*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException );
212*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToEndOfPage(void) throw( ::com::sun::star::uno::RuntimeException );
213*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL jumpToStartOfPage(void) throw( ::com::sun::star::uno::RuntimeException );
214*cdf0e10cSrcweir 	virtual sal_Int16 SAL_CALL getPage(void) throw( ::com::sun::star::uno::RuntimeException );
215*cdf0e10cSrcweir 
216*cdf0e10cSrcweir 	//XTextRange
217*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >  SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException );
218*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL  getStart(void) throw( ::com::sun::star::uno::RuntimeException );
219*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL   getEnd(void) throw( ::com::sun::star::uno::RuntimeException );
220*cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL  getString(void) throw( ::com::sun::star::uno::RuntimeException );
221*cdf0e10cSrcweir 	virtual void SAL_CALL  setString(const rtl::OUString& aString) throw( ::com::sun::star::uno::RuntimeException );
222*cdf0e10cSrcweir 
223*cdf0e10cSrcweir 	//XScreenCursor
224*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL screenDown(void) throw( ::com::sun::star::uno::RuntimeException );
225*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL screenUp(void) throw( ::com::sun::star::uno::RuntimeException );
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir 	//XViewCursor
228*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
229*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
230*cdf0e10cSrcweir //    virtual sal_Bool goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
231*cdf0e10cSrcweir //    virtual sal_Bool goRight(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir 	//XLineCursor
234*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAtStartOfLine(void) throw( ::com::sun::star::uno::RuntimeException );
235*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAtEndOfLine(void) throw( ::com::sun::star::uno::RuntimeException );
236*cdf0e10cSrcweir     virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
237*cdf0e10cSrcweir     virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir 	//XPropertySet
240*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
241*cdf0e10cSrcweir     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);
242*cdf0e10cSrcweir     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);
243*cdf0e10cSrcweir     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);
244*cdf0e10cSrcweir     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);
245*cdf0e10cSrcweir     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);
246*cdf0e10cSrcweir     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);
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir 	//XPropertyState
249*cdf0e10cSrcweir     virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
250*cdf0e10cSrcweir     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);
251*cdf0e10cSrcweir     virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
252*cdf0e10cSrcweir     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);
253*cdf0e10cSrcweir 
254*cdf0e10cSrcweir 	//XServiceInfo
255*cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
256*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
257*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
258*cdf0e10cSrcweir 
259*cdf0e10cSrcweir     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
260*cdf0e10cSrcweir 
261*cdf0e10cSrcweir 	//XUnoTunnel
262*cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
263*cdf0e10cSrcweir 
264*cdf0e10cSrcweir     void    Invalidate(){m_pView = 0;}
265*cdf0e10cSrcweir 
266*cdf0e10cSrcweir 	// ITextCursorHelper
267*cdf0e10cSrcweir 	virtual const SwPaM*		GetPaM() const;
268*cdf0e10cSrcweir 	virtual SwPaM*				GetPaM();
269*cdf0e10cSrcweir 	virtual const SwDoc* 		GetDoc() const;
270*cdf0e10cSrcweir 	virtual SwDoc* 				GetDoc();
271*cdf0e10cSrcweir };
272*cdf0e10cSrcweir #endif
273*cdf0e10cSrcweir 
274*cdf0e10cSrcweir 
275