LCOV - code coverage report
Current view: top level - sw/source/core/inc - unoport.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 17 18 94.4 %
Date: 2014-11-03 Functions: 9 10 90.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             :     ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyText;
     115             :     ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyStyle;
     116             :     ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyAdjust;
     117             :     ::std::unique_ptr< ::com::sun::star::uno::Any > m_pRubyIsAbove;
     118             : 
     119             :     const SwDepend              m_FrameDepend;
     120             :     SwFrmFmt *                  m_pFrameFmt;
     121             :     const SwTextPortionType     m_ePortionType;
     122             : 
     123             :     bool                        m_bIsCollapsed;
     124             : 
     125             :     SwFmtFld * GetFldFmt(bool bInit = false);
     126             : 
     127             :     void init(const SwUnoCrsr* pPortionCursor);
     128             : 
     129             : protected:
     130             : 
     131             :     void SAL_CALL SetPropertyValues_Impl(
     132             :         const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames,
     133             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
     134             :             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);
     135             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl(
     136             :         const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames )
     137             :             throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
     138             : 
     139             :     void        GetPropertyValues( const OUString *pPropertyNames,
     140             :                                     ::com::sun::star::uno::Any *pValues,
     141             :                                     sal_Int32 nLength );
     142             : 
     143             :     void GetPropertyValue( ::com::sun::star::uno::Any &rVal,
     144             :                 const SfxItemPropertySimpleEntry& rEntry, SwUnoCrsr *pUnoCrsr, SfxItemSet *&pSet );
     145             : 
     146             :     css::uno::Sequence<css::beans::GetDirectPropertyTolerantResult> SAL_CALL GetPropertyValuesTolerant_Impl(
     147             :         const css::uno::Sequence< OUString >& rPropertyNames, bool bDirectValuesOnly )
     148             :             throw (css::uno::RuntimeException, std::exception);
     149             : 
     150             :     virtual ~SwXTextPortion();
     151             : 
     152             :     //SwClient
     153             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
     154             : 
     155             : public:
     156             :     SwXTextPortion(const SwUnoCrsr* pPortionCrsr, ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > const& rParent, SwTextPortionType   eType   );
     157             :     SwXTextPortion(const SwUnoCrsr* pPortionCrsr, ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > const& rParent, SwFrmFmt& rFmt );
     158             : 
     159             :     // for Ruby
     160             :     SwXTextPortion(const SwUnoCrsr* pPortionCrsr,
     161             :         SwTxtRuby const& rAttr,
     162             :         ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     163             :             const& xParent,
     164             :         bool bIsEnd );
     165             : 
     166             :     //XTextRange
     167             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >  SAL_CALL getText() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     168             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL  getStart() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     169             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL   getEnd() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     170             :     virtual OUString SAL_CALL  getString() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     171             :     virtual void SAL_CALL  setString(const OUString& aString) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     172             : 
     173             :     //XTolerantMultiPropertySet
     174             :     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;
     175             :     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;
     176             :     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;
     177             : 
     178             :     //XMultiPropertySet
     179             :     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;
     180             :     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;
     181             :     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;
     182             :     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;
     183             :     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;
     184             : 
     185             :     //XPropertySet
     186             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     187             :     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;
     188             :     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;
     189             :     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;
     190             :     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;
     191             :     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;
     192             :     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;
     193             : 
     194             :     //XPropertyState
     195             :     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;
     196             :     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;
     197             :     virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     198             :     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;
     199             : 
     200             :     //XTextContent
     201             :     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 );
     202             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getAnchor(  ) throw(::com::sun::star::uno::RuntimeException);
     203             : 
     204             :     //XComponent
     205             :     virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException );
     206             :     virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
     207             :     virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
     208             : 
     209             :     //XUnoTunnel
     210             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     211             :     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;
     212             : 
     213             :     //XServiceInfo
     214             :     virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     215             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     216             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     217             : 
     218             :     //XContentEnumerationAccess
     219             :     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;
     220             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     221             : 
     222          92 :     void SetRefMark( ::com::sun::star::uno::Reference<
     223             :                         ::com::sun::star::text::XTextContent >  xMark)
     224          92 :     { m_xRefMark = xMark; }
     225             : 
     226          90 :     void SetTOXMark( ::com::sun::star::uno::Reference<
     227             :                         ::com::sun::star::text::XTextContent >  xMark)
     228          90 :     { m_xTOXMark = xMark; }
     229             : 
     230        4052 :     void SetBookmark( ::com::sun::star::uno::Reference<
     231             :                         ::com::sun::star::text::XTextContent >  xMark)
     232        4052 :     { m_xBookmark = xMark; }
     233             : 
     234          42 :     void SetFootnote( ::com::sun::star::uno::Reference<
     235             :                         ::com::sun::star::text::XFootnote > xNote)
     236          42 :     { m_xFootnote = xNote; }
     237             : 
     238         256 :     void SetTextField( ::com::sun::star::uno::Reference<
     239             :                         ::com::sun::star::text::XTextField> xField)
     240         256 :     { m_xTextField = xField; }
     241             : 
     242         290 :     void SetMeta( ::com::sun::star::uno::Reference<
     243             :                         ::com::sun::star::text::XTextContent >  xMeta)
     244         290 :     { m_xMeta = xMeta; }
     245             : 
     246             :     bool IsCollapsed() const { return m_bIsCollapsed; }
     247        3388 :     void SetCollapsed(bool bSet)        { m_bIsCollapsed = bSet;}
     248             : 
     249           0 :     SwTextPortionType GetTextPortionType() const { return m_ePortionType; }
     250             : 
     251       48702 :     SwUnoCrsr* GetCursor() const
     252       48702 :     {return static_cast<SwUnoCrsr*>(const_cast<SwModify*>(GetRegisteredIn()));}
     253             : };
     254             : 
     255             : class SwXTextPortionEnumeration
     256             :     : public ::cppu::WeakImplHelper3
     257             :         < ::com::sun::star::container::XEnumeration
     258             :         , ::com::sun::star::lang::XServiceInfo
     259             :         , ::com::sun::star::lang::XUnoTunnel
     260             :         >
     261             :    , public SwClient
     262             : {
     263             :     TextRangeList_t m_Portions; // contains all portions, filled by ctor
     264             : 
     265        1934 :     SwUnoCrsr*          GetCursor() const
     266        1934 :     {return static_cast<SwUnoCrsr*>(const_cast<SwModify*>(GetRegisteredIn()));}
     267             : 
     268             : protected:
     269             :     virtual ~SwXTextPortionEnumeration();
     270             : 
     271             : public:
     272             :     SwXTextPortionEnumeration(SwPaM& rParaCrsr,
     273             :             ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     274             :                 const & xParent,
     275             :             const sal_Int32 nStart, const sal_Int32 nEnd );
     276             : 
     277             :     SwXTextPortionEnumeration(SwPaM& rParaCrsr,
     278             :         TextRangeList_t const & rPortions );
     279             : 
     280             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     281             : 
     282             :     //XUnoTunnel
     283             :     virtual sal_Int64 SAL_CALL getSomething(
     284             :             const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier )
     285             :         throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     286             : 
     287             :     //XEnumeration
     288             :     virtual sal_Bool SAL_CALL hasMoreElements()
     289             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     290             :     virtual ::com::sun::star::uno::Any SAL_CALL nextElement()
     291             :         throw( ::com::sun::star::container::NoSuchElementException,
     292             :                ::com::sun::star::lang::WrappedTargetException,
     293             :                ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     294             : 
     295             :     //XServiceInfo
     296             :     virtual OUString SAL_CALL getImplementationName()
     297             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     298             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
     299             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     300             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
     301             :         getSupportedServiceNames()
     302             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     303             : protected:
     304             :     //SwClient
     305             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
     306             : };
     307             : 
     308             : class SwXRedlinePortion : public SwXTextPortion
     309             : {
     310             : private:
     311             :     SwRangeRedline const& m_rRedline;
     312             : 
     313             :     void Validate() throw (::com::sun::star::uno::RuntimeException);
     314             : 
     315             :     using SwXTextPortion::GetPropertyValue;
     316             : 
     317             :     virtual ~SwXRedlinePortion();
     318             : 
     319             : public:
     320             :     SwXRedlinePortion(
     321             :         SwRangeRedline const& rRedline,
     322             :         SwUnoCrsr const* pPortionCrsr,
     323             :         ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
     324             :             const& xParent,
     325             :         bool const bIsStart);
     326             : 
     327             :     static ::com::sun::star::uno::Any  GetPropertyValue(
     328             :             OUString const& PropertyName, SwRangeRedline const& rRedline) throw();
     329             :     static ::com::sun::star::uno::Sequence<
     330             :         ::com::sun::star::beans::PropertyValue > CreateRedlineProperties(
     331             :                 SwRangeRedline const& rRedline, bool const bIsStart) throw();
     332             : 
     333             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
     334             :         getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     335             : 
     336             :     // XPropertySet
     337             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
     338             :             const OUString& rPropertyName)
     339             :         throw (::com::sun::star::beans::UnknownPropertyException,
     340             :                 ::com::sun::star::lang::WrappedTargetException,
     341             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     342             : };
     343             : 
     344             : #endif
     345             : 
     346             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10