LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - unotxvw.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 2 2 100.0 %
Date: 2014-04-11 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_SW_SOURCE_UI_INC_UNOTXVW_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_UNOTXVW_HXX
      21             : #include <sfx2/sfxbasecontroller.hxx>
      22             : #include <cppuhelper/interfacecontainer.hxx>
      23             : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      24             : #include <com/sun/star/text/XTextViewCursor.hpp>
      25             : #include <com/sun/star/text/XTextViewCursorSupplier.hpp>
      26             : #include <com/sun/star/text/XRubySelection.hpp>
      27             : #include <com/sun/star/view/XFormLayerAccess.hpp>
      28             : #include <com/sun/star/view/XScreenCursor.hpp>
      29             : #include <com/sun/star/view/XViewSettingsSupplier.hpp>
      30             : #include <com/sun/star/view/XSelectionSupplier.hpp>
      31             : #include <com/sun/star/view/XLineCursor.hpp>
      32             : #include <com/sun/star/view/XViewCursor.hpp>
      33             : #include <com/sun/star/text/XPageCursor.hpp>
      34             : #include <com/sun/star/beans/XPropertySet.hpp>
      35             : #include <com/sun/star/beans/XPropertySetInfo.hpp>
      36             : #include <com/sun/star/beans/XPropertyState.hpp>
      37             : #include <com/sun/star/lang/XServiceInfo.hpp>
      38             : #include <com/sun/star/datatransfer/XTransferableSupplier.hpp>
      39             : #include <cppuhelper/implbase8.hxx>
      40             : #include <svl/itemprop.hxx>
      41             : #include "calbck.hxx"
      42             : #include "TextCursorHelper.hxx"
      43             : #include <comphelper/uno3.hxx>
      44             : 
      45             : #include <sfx2/objsh.hxx>
      46             : 
      47             : class SdrObject;
      48             : class SwView;
      49             : 
      50             : class SwXTextView :
      51             :     public ::com::sun::star::view::XSelectionSupplier,
      52             :     public ::com::sun::star::lang::XServiceInfo,
      53             :     public ::com::sun::star::view::XFormLayerAccess,
      54             :     public ::com::sun::star::text::XTextViewCursorSupplier,
      55             :     public ::com::sun::star::text::XRubySelection,
      56             :     public ::com::sun::star::view::XViewSettingsSupplier,
      57             :     public ::com::sun::star::beans::XPropertySet,
      58             :     public ::com::sun::star::datatransfer::XTransferableSupplier,
      59             :     public SfxBaseController
      60             : {
      61             :     ::cppu::OInterfaceContainerHelper m_SelChangedListeners;
      62             : 
      63             :     SwView*                     m_pView;
      64             :     const SfxItemPropertySet*   m_pPropSet;   // property map for SwXTextView properties
      65             :                                         // (not related to pxViewSettings!)
      66             : 
      67             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > *         pxViewSettings;
      68             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > *   pxTextViewCursor;
      69             : 
      70             :     SdrObject* GetControl(
      71             :         const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model,
      72             :         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& xToFill  );
      73             : 
      74             : protected:
      75             :     virtual ~SwXTextView();
      76             : public:
      77             :     SwXTextView(SwView* pSwView);
      78             : 
      79             :     virtual     ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             :     virtual void SAL_CALL acquire(  ) throw() SAL_OVERRIDE;
      81             :     virtual void SAL_CALL release(  ) throw() SAL_OVERRIDE;
      82             : 
      83             :     //XTypeProvider
      84             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             : 
      87             :     //XSelectionSupplier
      88             :     virtual ::com::sun::star::uno::Any SAL_CALL getSelection()
      89             :         throw (::com::sun::star::uno::RuntimeException,
      90             :                std::exception) SAL_OVERRIDE;
      91             :     virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& rInterface)
      92             :         throw (::com::sun::star::lang::IllegalArgumentException,
      93             :                ::com::sun::star::uno::RuntimeException,
      94             :                std::exception) SAL_OVERRIDE;
      95             :     virtual void SAL_CALL addSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      96             :     virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      97             : 
      98             :     // XFormLayerAccess
      99             :     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, std::exception) SAL_OVERRIDE;
     100             :     virtual sal_Bool SAL_CALL isFormDesignMode(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     101             :     virtual void SAL_CALL setFormDesignMode( sal_Bool DesignMode ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     102             : 
     103             :     // XControlAccess
     104             :     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, std::exception ) SAL_OVERRIDE;
     105             : 
     106             :     //XTextViewCursorSupplier
     107             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor >  SAL_CALL getViewCursor(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     108             : 
     109             :     //XViewSettings
     110             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >  SAL_CALL getViewSettings(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     111             : 
     112             :     //XRubySelection
     113             :     virtual ::com::sun::star::uno::Sequence<
     114             :             ::com::sun::star::uno::Sequence<
     115             :             ::com::sun::star::beans::PropertyValue > > SAL_CALL getRubyList( sal_Bool bAutomatic )
     116             :                 throw (::com::sun::star::uno::RuntimeException,
     117             :                        std::exception) SAL_OVERRIDE;
     118             : 
     119             :     virtual void SAL_CALL setRubyList(
     120             :         const ::com::sun::star::uno::Sequence<
     121             :         ::com::sun::star::uno::Sequence<
     122             :         ::com::sun::star::beans::PropertyValue > >& RubyList, sal_Bool bAutomatic )
     123             :             throw (::com::sun::star::uno::RuntimeException,
     124             :                    std::exception) SAL_OVERRIDE;
     125             : 
     126             :     //XPropertySet
     127             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     128             :     virtual void SAL_CALL setPropertyValue( const 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, std::exception) SAL_OVERRIDE;
     129             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
     130             :         throw (::com::sun::star::beans::UnknownPropertyException,
     131             :                ::com::sun::star::lang::WrappedTargetException,
     132             :                ::com::sun::star::uno::RuntimeException,
     133             :                std::exception) SAL_OVERRIDE;
     134             :     virtual void SAL_CALL addPropertyChangeListener( const 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, std::exception) SAL_OVERRIDE;
     135             :     virtual void SAL_CALL removePropertyChangeListener( const 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, std::exception) SAL_OVERRIDE;
     136             :     virtual void SAL_CALL addVetoableChangeListener( const 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, std::exception) SAL_OVERRIDE;
     137             :     virtual void SAL_CALL removeVetoableChangeListener( const 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, std::exception) SAL_OVERRIDE;
     138             : 
     139             :     //XServiceInfo
     140             :     virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     141             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     142             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     143             : 
     144             :     //XTransferableSupplier
     145             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getTransferable(  )
     146             :         throw (::com::sun::star::uno::RuntimeException,
     147             :                std::exception) SAL_OVERRIDE;
     148             :     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, std::exception) SAL_OVERRIDE;
     149             : 
     150             :     void                    NotifySelChanged();
     151             :     void                    NotifyDBChanged();
     152             : 
     153         198 :     SwView*                 GetView() {return m_pView;}
     154             :     void                    Invalidate();
     155             : 
     156             :     // temporary document used for PDF export of selections/multi-selections
     157             :     SfxObjectShellLock      BuildTmpSelectionDoc();
     158             : };
     159             : 
     160             : typedef cppu::WeakImplHelper8<
     161             :                             ::com::sun::star::text::XTextViewCursor,
     162             :                             ::com::sun::star::lang::XServiceInfo,
     163             :                             ::com::sun::star::text::XPageCursor,
     164             :                             ::com::sun::star::view::XScreenCursor,
     165             :                             ::com::sun::star::view::XViewCursor,
     166             :                             ::com::sun::star::view::XLineCursor,
     167             :                             ::com::sun::star::beans::XPropertySet,
     168             :                             ::com::sun::star::beans::XPropertyState
     169             :                             > SwXTextViewCursor_Base;
     170             : 
     171             : class SwXTextViewCursor : public SwXTextViewCursor_Base,
     172             : public SwClient,
     173             : public OTextCursorHelper
     174             : {
     175             :     SwView*                         m_pView;
     176             :     const SfxItemPropertySet*       m_pPropSet;
     177             : protected:
     178             :     sal_Bool    IsTextSelection( sal_Bool bAllowTables = sal_True ) const;
     179             :     virtual     ~SwXTextViewCursor();
     180             : public:
     181             :     SwXTextViewCursor(SwView* pVw);
     182             : 
     183             :     DECLARE_XINTERFACE()
     184             : 
     185             :     //XTextViewCursor
     186             :     virtual sal_Bool SAL_CALL isVisible(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     187             :     virtual void SAL_CALL setVisible(sal_Bool bVisible) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     188             :     virtual ::com::sun::star::awt::Point SAL_CALL getPosition(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     189             : 
     190             :     //XTextCursor - neu
     191             :     virtual void SAL_CALL collapseToStart()
     192             :         throw (::com::sun::star::uno::RuntimeException,
     193             :                std::exception) SAL_OVERRIDE;
     194             :     virtual void SAL_CALL collapseToEnd()
     195             :         throw (::com::sun::star::uno::RuntimeException,
     196             :                std::exception) SAL_OVERRIDE;
     197             :     virtual sal_Bool SAL_CALL isCollapsed()
     198             :         throw (::com::sun::star::uno::RuntimeException,
     199             :                std::exception) SAL_OVERRIDE;
     200             :     virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand )
     201             :         throw (::com::sun::star::uno::RuntimeException,
     202             :                std::exception) SAL_OVERRIDE;
     203             :     virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand )
     204             :         throw (::com::sun::star::uno::RuntimeException,
     205             :                std::exception) SAL_OVERRIDE;
     206             :     virtual void SAL_CALL gotoStart( sal_Bool bExpand )
     207             :         throw (::com::sun::star::uno::RuntimeException,
     208             :                std::exception) SAL_OVERRIDE;
     209             :     virtual void SAL_CALL gotoEnd( sal_Bool bExpand )
     210             :         throw (::com::sun::star::uno::RuntimeException,
     211             :                std::exception) SAL_OVERRIDE;
     212             :     virtual void SAL_CALL gotoRange( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, sal_Bool bExpand )
     213             :         throw (::com::sun::star::uno::RuntimeException,
     214             :                std::exception) SAL_OVERRIDE;
     215             : 
     216             :     //XPageCursor
     217             :     virtual sal_Bool SAL_CALL jumpToFirstPage()
     218             :         throw (::com::sun::star::uno::RuntimeException,
     219             :                std::exception) SAL_OVERRIDE;
     220             :     virtual sal_Bool SAL_CALL jumpToLastPage()
     221             :         throw (::com::sun::star::uno::RuntimeException,
     222             :                std::exception) SAL_OVERRIDE;
     223             :     virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     224             :     virtual sal_Bool SAL_CALL jumpToNextPage(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     225             :     virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     226             :     virtual sal_Bool SAL_CALL jumpToEndOfPage(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     227             :     virtual sal_Bool SAL_CALL jumpToStartOfPage(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     228             :     virtual sal_Int16 SAL_CALL getPage()
     229             :         throw (::com::sun::star::uno::RuntimeException,
     230             :                std::exception) SAL_OVERRIDE;
     231             : 
     232             :     //XTextRange
     233             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >  SAL_CALL getText()
     234             :         throw (::com::sun::star::uno::RuntimeException,
     235             :                std::exception) SAL_OVERRIDE;
     236             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL  getStart()
     237             :         throw (::com::sun::star::uno::RuntimeException,
     238             :                std::exception) SAL_OVERRIDE;
     239             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL   getEnd()
     240             :         throw (::com::sun::star::uno::RuntimeException,
     241             :                std::exception) SAL_OVERRIDE;
     242             :     virtual OUString SAL_CALL  getString()
     243             :         throw (::com::sun::star::uno::RuntimeException,
     244             :                std::exception) SAL_OVERRIDE;
     245             :     virtual void SAL_CALL  setString(const OUString& aString)
     246             :         throw (::com::sun::star::uno::RuntimeException,
     247             :                std::exception) SAL_OVERRIDE;
     248             : 
     249             :     //XScreenCursor
     250             :     virtual sal_Bool SAL_CALL screenDown()
     251             :         throw (::com::sun::star::uno::RuntimeException,
     252             :                std::exception) SAL_OVERRIDE;
     253             :     virtual sal_Bool SAL_CALL screenUp()
     254             :         throw (::com::sun::star::uno::RuntimeException,
     255             :                std::exception) SAL_OVERRIDE;
     256             : 
     257             :     //XViewCursor
     258             :     virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand)
     259             :         throw (::com::sun::star::uno::RuntimeException,
     260             :                std::exception) SAL_OVERRIDE;
     261             :     virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand)
     262             :         throw (::com::sun::star::uno::RuntimeException,
     263             :                std::exception) SAL_OVERRIDE;
     264             : 
     265             :     //XLineCursor
     266             :     virtual sal_Bool SAL_CALL isAtStartOfLine()
     267             :         throw (::com::sun::star::uno::RuntimeException,
     268             :                std::exception) SAL_OVERRIDE;
     269             :     virtual sal_Bool SAL_CALL isAtEndOfLine()
     270             :         throw (::com::sun::star::uno::RuntimeException,
     271             :                std::exception) SAL_OVERRIDE;
     272             :     virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand)
     273             :         throw (::com::sun::star::uno::RuntimeException,
     274             :                std::exception) SAL_OVERRIDE;
     275             :     virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand)
     276             :         throw (::com::sun::star::uno::RuntimeException,
     277             :                std::exception) SAL_OVERRIDE;
     278             : 
     279             :     //XPropertySet
     280             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     281             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
     282             :         throw (::com::sun::star::beans::UnknownPropertyException,
     283             :                ::com::sun::star::beans::PropertyVetoException,
     284             :                ::com::sun::star::lang::IllegalArgumentException,
     285             :                ::com::sun::star::lang::WrappedTargetException,
     286             :                ::com::sun::star::uno::RuntimeException,
     287             :                std::exception) SAL_OVERRIDE;
     288             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
     289             :         throw (::com::sun::star::beans::UnknownPropertyException,
     290             :                ::com::sun::star::lang::WrappedTargetException,
     291             :                ::com::sun::star::uno::RuntimeException,
     292             :                std::exception) SAL_OVERRIDE;
     293             :     virtual void SAL_CALL addPropertyChangeListener( const 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, std::exception) SAL_OVERRIDE;
     294             :     virtual void SAL_CALL removePropertyChangeListener( const 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, std::exception) SAL_OVERRIDE;
     295             :     virtual void SAL_CALL addVetoableChangeListener( const 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, std::exception) SAL_OVERRIDE;
     296             :     virtual void SAL_CALL removeVetoableChangeListener( const 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, std::exception) SAL_OVERRIDE;
     297             : 
     298             :     //XPropertyState
     299             :     virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName )
     300             :         throw (::com::sun::star::beans::UnknownPropertyException,
     301             :                ::com::sun::star::uno::RuntimeException,
     302             :                std::exception) SAL_OVERRIDE;
     303             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< OUString >& aPropertyName )
     304             :         throw (::com::sun::star::beans::UnknownPropertyException,
     305             :                ::com::sun::star::uno::RuntimeException,
     306             :                std::exception) SAL_OVERRIDE;
     307             :     virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName )
     308             :         throw (::com::sun::star::beans::UnknownPropertyException,
     309             :                ::com::sun::star::uno::RuntimeException,
     310             :                std::exception) SAL_OVERRIDE;
     311             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName )
     312             :         throw (::com::sun::star::beans::UnknownPropertyException,
     313             :                ::com::sun::star::lang::WrappedTargetException,
     314             :                ::com::sun::star::uno::RuntimeException,
     315             :                std::exception) SAL_OVERRIDE;
     316             : 
     317             :     //XServiceInfo
     318             :     virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     319             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     320             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     321             : 
     322             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     323             : 
     324             :     //XUnoTunnel
     325             :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     326             : 
     327          28 :     void    Invalidate(){m_pView = 0;}
     328             : 
     329             :     // ITextCursorHelper
     330             :     virtual const SwPaM*        GetPaM() const SAL_OVERRIDE;
     331             :     virtual SwPaM*              GetPaM() SAL_OVERRIDE;
     332             :     virtual const SwDoc*        GetDoc() const SAL_OVERRIDE;
     333             :     virtual SwDoc*              GetDoc() SAL_OVERRIDE;
     334             : };
     335             : 
     336             : #endif
     337             : 
     338             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10