LCOV - code coverage report
Current view: top level - sw/source/core/inc - unoport.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 18 0.0 %
Date: 2014-04-14 Functions: 0 10 0.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_CORE_INC_UNOPORT_HXX
      20             : #define INCLUDED_SW_SOURCE_CORE_INC_UNOPORT_HXX
      21             : 
      22             : #include <memory>
      23             : #include <deque>
      24             : 
      25             : #include <com/sun/star/beans/XPropertySet.hpp>
      26             : #include <com/sun/star/text/XTextRange.hpp>
      27             : #include <com/sun/star/container/XEnumeration.hpp>
      28             : #include <com/sun/star/container/XContentEnumerationAccess.hpp>
      29             : #include <com/sun/star/container/XEnumerationAccess.hpp>
      30             : #include <com/sun/star/beans/XPropertyState.hpp>
      31             : #include <com/sun/star/beans/XMultiPropertySet.hpp>
      32             : #include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
      33             : #include <com/sun/star/text/XTextField.hpp>
      34             : #include <com/sun/star/text/XFootnote.hpp>
      35             : #include <com/sun/star/lang/XServiceInfo.hpp>
      36             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      37             : 
      38             : #include <cppuhelper/implbase8.hxx>
      39             : #include <cppuhelper/implbase3.hxx>
      40             : 
      41             : #include <svl/itemprop.hxx>
      42             : 
      43             : #include <unocrsr.hxx>
      44             : #include <calbck.hxx>
      45             : #include <unobaseclass.hxx>
      46             : 
      47             : class SwFmtFld;
      48             : class SwFrmFmt;
      49             : class SwRangeRedline;
      50             : class SwTxtRuby;
      51             : 
      52             : typedef ::std::deque<
      53             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > >
      54             :     TextRangeList_t;
      55             : 
      56             : enum SwTextPortionType
      57             : {
      58             :     PORTION_TEXT,
      59             :     PORTION_FIELD,
      60             :     PORTION_FRAME,
      61             :     PORTION_FOOTNOTE,
      62             :     PORTION_REFMARK_START,
      63             :     PORTION_REFMARK_END,
      64             :     PORTION_TOXMARK_START,
      65             :     PORTION_TOXMARK_END,
      66             :     PORTION_BOOKMARK_START,
      67             :     PORTION_BOOKMARK_END,
      68             :     PORTION_REDLINE_START,
      69             :     PORTION_REDLINE_END,
      70             :     PORTION_RUBY_START,
      71             :     PORTION_RUBY_END,
      72             :     PORTION_SOFT_PAGEBREAK,
      73             :     PORTION_META,
      74             :     PORTION_FIELD_START,
      75             :     PORTION_FIELD_END,
      76             :     PORTION_FIELD_START_END,
      77             :     PORTION_ANNOTATION,
      78             :     PORTION_ANNOTATION_END
      79             : };
      80             : 
      81             : class SwXTextPortion : public cppu::WeakImplHelper8
      82             : <
      83             :     ::com::sun::star::beans::XTolerantMultiPropertySet,
      84             :     ::com::sun::star::beans::XMultiPropertySet,
      85             :     ::com::sun::star::beans::XPropertySet,
      86             :     ::com::sun::star::text::XTextRange,
      87             :     ::com::sun::star::beans::XPropertyState,
      88             :     ::com::sun::star::container::XContentEnumerationAccess,
      89             :     ::com::sun::star::lang::XUnoTunnel,
      90             :     ::com::sun::star::lang::XServiceInfo
      91             : >,
      92             :     public SwClient
      93             : {
      94             : private:
      95             : 
      96             :     class Impl;
      97             :     ::sw::UnoImplPtr<Impl> m_pImpl;
      98             : 
      99             :     const SfxItemPropertySet *  m_pPropSet;
     100             :     const ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     101             :         m_xParentText;
     102             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >
     103             :         m_xRefMark;
     104             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >
     105             :         m_xTOXMark;
     106             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >
     107             :         m_xBookmark;
     108             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnote >
     109             :         m_xFootnote;
     110             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextField >
     111             :         m_xTextField;
     112             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >
     113             :         m_xMeta;
     114             :     SAL_WNODEPRECATED_DECLARATIONS_PUSH
     115             :     ::std::auto_ptr< ::com::sun::star::uno::Any > m_pRubyText;
     116             :     ::std::auto_ptr< ::com::sun::star::uno::Any > m_pRubyStyle;
     117             :     ::std::auto_ptr< ::com::sun::star::uno::Any > m_pRubyAdjust;
     118             :     ::std::auto_ptr< ::com::sun::star::uno::Any > m_pRubyIsAbove;
     119             :     SAL_WNODEPRECATED_DECLARATIONS_POP
     120             : 
     121             :     const SwDepend              m_FrameDepend;
     122             :     SwFrmFmt *                  m_pFrameFmt;
     123             :     const SwTextPortionType     m_ePortionType;
     124             : 
     125             :     bool                        m_bIsCollapsed;
     126             : 
     127             :     SwFmtFld * GetFldFmt(bool bInit = false);
     128             : 
     129             :     void init(const SwUnoCrsr* pPortionCursor);
     130             : 
     131             : protected:
     132             : 
     133             :     void SAL_CALL SetPropertyValues_Impl(
     134             :         const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames,
     135             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
     136             :             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             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl(
     138             :         const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames )
     139             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     140             : 
     141             :     void        GetPropertyValues( const OUString *pPropertyNames,
     142             :                                     ::com::sun::star::uno::Any *pValues,
     143             :                                     sal_Int32 nLength );
     144             : 
     145             :     void GetPropertyValue( ::com::sun::star::uno::Any &rVal,
     146             :                 const SfxItemPropertySimpleEntry& rEntry, SwUnoCrsr *pUnoCrsr, SfxItemSet *&pSet );
     147             : 
     148             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::GetDirectPropertyTolerantResult > SAL_CALL GetPropertyValuesTolerant_Impl(
     149             :         const ::com::sun::star::uno::Sequence< OUString >& rPropertyNames,
     150             :         sal_Bool bDirectValuesOnly ) throw (::com::sun::star::uno::RuntimeException);
     151             : 
     152             :     virtual ~SwXTextPortion();
     153             : 
     154             :     //SwClient
     155             :    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
     156             : 
     157             : public:
     158             :     SwXTextPortion(const SwUnoCrsr* pPortionCrsr, ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > const& rParent, SwTextPortionType   eType   );
     159             :     SwXTextPortion(const SwUnoCrsr* pPortionCrsr, ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > const& rParent, SwFrmFmt& rFmt );
     160             : 
     161             :     // for Ruby
     162             :     SwXTextPortion(const SwUnoCrsr* pPortionCrsr,
     163             :         SwTxtRuby const& rAttr,
     164             :         ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     165             :             const& xParent,
     166             :         sal_Bool bIsEnd );
     167             : 
     168             :     //XTextRange
     169             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >  SAL_CALL getText() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     170             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL  getStart() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     171             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL   getEnd() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     172             :     virtual OUString SAL_CALL  getString() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     173             :     virtual void SAL_CALL  setString(const OUString& aString) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     174             : 
     175             :     //XTolerantMultiPropertySet
     176             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::SetPropertyTolerantFailed > SAL_CALL setPropertyValuesTolerant( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     177             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::GetPropertyTolerantResult > SAL_CALL getPropertyValuesTolerant( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     178             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::GetDirectPropertyTolerantResult > SAL_CALL getDirectPropertyValuesTolerant( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     179             : 
     180             :     //XMultiPropertySet
     181             :     virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     182             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     183             :     virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     184             :     virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     185             :     virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     186             : 
     187             :     //XPropertySet
     188             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     189             :     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;
     190             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     191             :     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;
     192             :     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;
     193             :     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;
     194             :     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;
     195             : 
     196             :     //XPropertyState
     197             :     virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     198             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     199             :     virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     200             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     201             : 
     202             :     //XTextContent
     203             :     virtual void SAL_CALL attach(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
     204             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getAnchor(  ) throw(::com::sun::star::uno::RuntimeException);
     205             : 
     206             :     //XComponent
     207             :     virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException );
     208             :     virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
     209             :     virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
     210             : 
     211             :     //XUnoTunnel
     212             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     213             :     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;
     214             : 
     215             :     //XServiceInfo
     216             :     virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     217             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     218             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     219             : 
     220             :     //XContentEnumerationAccess
     221             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration >  SAL_CALL createContentEnumeration(const OUString& aServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     222             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     223             : 
     224           0 :     void SetRefMark( ::com::sun::star::uno::Reference<
     225             :                         ::com::sun::star::text::XTextContent >  xMark)
     226           0 :     { m_xRefMark = xMark; }
     227             : 
     228           0 :     void SetTOXMark( ::com::sun::star::uno::Reference<
     229             :                         ::com::sun::star::text::XTextContent >  xMark)
     230           0 :     { m_xTOXMark = xMark; }
     231             : 
     232           0 :     void SetBookmark( ::com::sun::star::uno::Reference<
     233             :                         ::com::sun::star::text::XTextContent >  xMark)
     234           0 :     { m_xBookmark = xMark; }
     235             : 
     236           0 :     void SetFootnote( ::com::sun::star::uno::Reference<
     237             :                         ::com::sun::star::text::XFootnote > xNote)
     238           0 :     { m_xFootnote = xNote; }
     239             : 
     240           0 :     void SetTextField( ::com::sun::star::uno::Reference<
     241             :                         ::com::sun::star::text::XTextField> xField)
     242           0 :     { m_xTextField = xField; }
     243             : 
     244           0 :     void SetMeta( ::com::sun::star::uno::Reference<
     245             :                         ::com::sun::star::text::XTextContent >  xMeta)
     246           0 :     { m_xMeta = xMeta; }
     247             : 
     248             :     bool IsCollapsed() const { return m_bIsCollapsed; }
     249           0 :     void SetCollapsed(bool bSet)        { m_bIsCollapsed = bSet;}
     250             : 
     251           0 :     SwTextPortionType GetTextPortionType() const { return m_ePortionType; }
     252             : 
     253           0 :     SwUnoCrsr* GetCursor() const
     254           0 :     {return static_cast<SwUnoCrsr*>(const_cast<SwModify*>(GetRegisteredIn()));}
     255             : };
     256             : 
     257             : class SwXTextPortionEnumeration
     258             :     : public ::cppu::WeakImplHelper3
     259             :         < ::com::sun::star::container::XEnumeration
     260             :         , ::com::sun::star::lang::XServiceInfo
     261             :         , ::com::sun::star::lang::XUnoTunnel
     262             :         >
     263             :    , public SwClient
     264             : {
     265             :     TextRangeList_t m_Portions; // contains all portions, filled by ctor
     266             : 
     267           0 :     SwUnoCrsr*          GetCursor() const
     268           0 :     {return static_cast<SwUnoCrsr*>(const_cast<SwModify*>(GetRegisteredIn()));}
     269             : 
     270             : protected:
     271             :     virtual ~SwXTextPortionEnumeration();
     272             : 
     273             : public:
     274             :     SwXTextPortionEnumeration(SwPaM& rParaCrsr,
     275             :             ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     276             :                 const & xParent,
     277             :             const sal_Int32 nStart, const sal_Int32 nEnd );
     278             : 
     279             :     SwXTextPortionEnumeration(SwPaM& rParaCrsr,
     280             :         TextRangeList_t const & rPortions );
     281             : 
     282             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     283             : 
     284             :     //XUnoTunnel
     285             :     virtual sal_Int64 SAL_CALL getSomething(
     286             :             const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier )
     287             :         throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     288             : 
     289             :     //XEnumeration
     290             :     virtual sal_Bool SAL_CALL hasMoreElements()
     291             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     292             :     virtual ::com::sun::star::uno::Any SAL_CALL nextElement()
     293             :         throw( ::com::sun::star::container::NoSuchElementException,
     294             :                ::com::sun::star::lang::WrappedTargetException,
     295             :                ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     296             : 
     297             :     //XServiceInfo
     298             :     virtual OUString SAL_CALL getImplementationName()
     299             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     300             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
     301             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     302             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
     303             :         getSupportedServiceNames()
     304             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     305             : protected:
     306             :     //SwClient
     307             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
     308             : };
     309             : 
     310             : class SwXRedlinePortion : public SwXTextPortion
     311             : {
     312             : private:
     313             :     SwRangeRedline const& m_rRedline;
     314             : 
     315             :     void Validate() throw (::com::sun::star::uno::RuntimeException);
     316             : 
     317             :     using SwXTextPortion::GetPropertyValue;
     318             : 
     319             :     virtual ~SwXRedlinePortion();
     320             : 
     321             : public:
     322             :     SwXRedlinePortion(
     323             :         SwRangeRedline const& rRedline,
     324             :         SwUnoCrsr const* pPortionCrsr,
     325             :         ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     326             :             const& xParent,
     327             :         bool const bIsStart);
     328             : 
     329             :     static ::com::sun::star::uno::Any  GetPropertyValue(
     330             :             OUString const& PropertyName, SwRangeRedline const& rRedline) throw();
     331             :     static ::com::sun::star::uno::Sequence<
     332             :         ::com::sun::star::beans::PropertyValue > CreateRedlineProperties(
     333             :                 SwRangeRedline const& rRedline, sal_Bool const bIsStart) throw();
     334             : 
     335             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
     336             :         getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     337             : 
     338             :     // XPropertySet
     339             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
     340             :             const OUString& rPropertyName)
     341             :         throw (::com::sun::star::beans::UnknownPropertyException,
     342             :                 ::com::sun::star::lang::WrappedTargetException,
     343             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     344             : };
     345             : 
     346             : #endif
     347             : 
     348             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10