LCOV - code coverage report
Current view: top level - sw/source/core/access - accpara.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 10 14 71.4 %
Date: 2015-06-13 12:38:46 Functions: 4 5 80.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_ACCESS_ACCPARA_HXX
      20             : #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCPARA_HXX
      21             : 
      22             : #include <acccontext.hxx>
      23             : #include <com/sun/star/accessibility/XAccessibleEditableText.hpp>
      24             : #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
      25             : #include <com/sun/star/accessibility/XAccessibleHypertext.hpp>
      26             : #include <com/sun/star/accessibility/XAccessibleTextMarkup.hpp>
      27             : #include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp>
      28             : #include <com/sun/star/accessibility/XAccessibleTextSelection.hpp>
      29             : #include <txmsrt.hxx>
      30             : #include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
      31             : #include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
      32             : #include <accselectionhelper.hxx>
      33             : #include <calbck.hxx>
      34             : #include <unordered_map>
      35             : 
      36             : class SwField;
      37             : class SwTextFrm;
      38             : class SwTextNode;
      39             : class SwPaM;
      40             : class SwAccessiblePortionData;
      41             : class SwAccessibleHyperTextData;
      42             : class SwRangeRedline;
      43             : class SwXTextPortion;
      44             : class SwParaChangeTrackingInfo; //#i108125#
      45             : 
      46             : namespace com { namespace sun { namespace star {
      47             :     namespace i18n { struct Boundary; }
      48             :     namespace accessibility { class XAccessibleHyperlink; }
      49             :     namespace style { struct TabStop; }
      50             : } } }
      51             : 
      52             : typedef std::unordered_map< OUString,
      53             :                          ::com::sun::star::beans::PropertyValue,
      54             :                          OUStringHash,
      55             :                          ::std::equal_to< OUString > > tAccParaPropValMap;
      56             : 
      57             : class SwAccessibleParagraph :
      58             :         public SwClient, // #i108125#
      59             :         public SwAccessibleContext,
      60             :         public ::com::sun::star::accessibility::XAccessibleEditableText,
      61             :         public com::sun::star::accessibility::XAccessibleSelection,
      62             :         public com::sun::star::accessibility::XAccessibleHypertext,
      63             :         public com::sun::star::accessibility::XAccessibleTextMarkup,
      64             :         public com::sun::star::accessibility::XAccessibleMultiLineText,
      65             :         public ::com::sun::star::accessibility::XAccessibleTextAttributes,
      66             :         public com::sun::star::accessibility::XAccessibleTextSelection,
      67             :         public  com::sun::star::accessibility::XAccessibleExtendedAttributes
      68             : {
      69             :     friend class SwAccessibleHyperlink;
      70             : 
      71             :     OUString sDesc;  // protected by base classes mutex
      72             : 
      73             :     // data for this paragraph's text portions; this contains the
      74             :     // mapping from the core 'model string' to the accessible text
      75             :     // string.
      76             :     // pPortionData may be NULL; it should only be accessed through the
      77             :     // Get/Clear/Has/UpdatePortionData() methods
      78             :     SwAccessiblePortionData* pPortionData;
      79             :     SwAccessibleHyperTextData *pHyperTextData;
      80             : 
      81             :     sal_Int32 nOldCaretPos; // The 'old' caret pos. It's only valid as long
      82             :                             // as the cursor is inside this object (protected by
      83             :                             // mutex)
      84             : 
      85             :     bool bIsHeading;    // protected by base classes mutex
      86             :     sal_Int32 nHeadingLevel;
      87             : 
      88             :     // implementation for XAccessibleSelection
      89             :     SwAccessibleSelectionHelper aSelectionHelper;
      90             : 
      91             :     SwParaChangeTrackingInfo* mpParaChangeTrackInfo; // #i108125#
      92             : 
      93             :     /// get the SwTextNode (requires frame; check before)
      94             :     const SwTextNode* GetTextNode() const;
      95             : 
      96             :     /// get the (accessible) text string (requires frame; check before)
      97             :     OUString GetString();
      98             : 
      99             :     static OUString GetDescription();
     100             : 
     101             :     // get the current care position
     102             :     sal_Int32 GetCaretPos();
     103             : 
     104             :     // determine the current selection. Fill the values with
     105             :     // -1 if there is no selection in the this paragraph
     106             :     bool GetSelection(sal_Int32& nStart, sal_Int32& nEnd);
     107             : 
     108             :     // helper for GetSelection and getCaretPosition
     109             :     // #i27301# - add parameter <_bForSelection>, which indicates,
     110             :     // if the cursor is retrieved for selection or for caret position.
     111             :     SwPaM* GetCursor( const bool _bForSelection );
     112             : 
     113             :     // for cut/copy/paste: execute a particular slot at the view shell
     114             :     void ExecuteAtViewShell( sal_uInt16 nSlot );
     115             : 
     116             :     // helper method for get/setAttributes
     117             :     // (for the special case of (nEndIndex==-1) a single character will
     118             :     //  be selected)
     119             :     SwXTextPortion* CreateUnoPortion( sal_Int32 nStart, sal_Int32 nEnd );
     120             : 
     121             :     // methods for checking the parameter range:
     122             : 
     123             :     // does nPos point to a char?
     124             :     static bool IsValidChar(sal_Int32 nPos, sal_Int32 nLength);
     125             : 
     126             :     // does nPos point to a position? (may be behind the last character)
     127             :     static bool IsValidPosition(sal_Int32 nPos, sal_Int32 nLength);
     128             : 
     129             :     // is nBegin...nEnd a valid range? (nEnd points past the last character)
     130             :     static bool IsValidRange(sal_Int32 nBegin, sal_Int32 nEnd, sal_Int32 nLength);
     131             : 
     132             :     // Ensure ordered range (i.e. nBegin is smaller then nEnd)
     133           0 :     static void OrderRange(sal_Int32& nBegin, sal_Int32& nEnd)
     134             :     {
     135           0 :         if( nBegin > nEnd )
     136             :         {
     137           0 :             sal_Int32 nTmp = nBegin; nBegin = nEnd; nEnd = nTmp;
     138             :         }
     139           0 :     }
     140             : 
     141             :     const SwRangeRedline* GetRedlineAtIndex( sal_Int32 nPos );
     142             :     OUString GetFieldTypeNameAtIndex(sal_Int32 nIndex);
     143             : 
     144             :     // #i63870#
     145             :     void _getDefaultAttributesImpl(
     146             :             const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes,
     147             :             tAccParaPropValMap& rDefAttrSeq,
     148             :             const bool bOnlyCharAttrs = false );
     149             :     void _getRunAttributesImpl(
     150             :             const sal_Int32 nIndex,
     151             :             const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes,
     152             :             tAccParaPropValMap& rRunAttrSeq );
     153             : 
     154             :     void _getSupplementalAttributesImpl(
     155             :             const sal_Int32 nIndex,
     156             :             const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes,
     157             :             tAccParaPropValMap& rSupplementalAttrSeq );
     158             : 
     159             :     void _correctValues(
     160             :             const sal_Int32 nIndex,
     161             :             ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rValues );
     162             : 
     163             : public:
     164             :     SwTOXSortTabBase* GetTOXSortTabBase();
     165             : 
     166             :     bool IsHeading() const;
     167             : 
     168             : protected:
     169             : 
     170             :     // Set states for getAccessibleStateSet.
     171             :     // This derived class additionally sets MULTILINE(1), MULTISELECTABLE(+),
     172             :     // FOCUSABLE(+) and FOCUSED(+)
     173             :     virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet ) SAL_OVERRIDE;
     174             : 
     175             :     virtual void _InvalidateContent( bool bVisibleDataFired ) SAL_OVERRIDE;
     176             : 
     177             :     virtual void _InvalidateCursorPos() SAL_OVERRIDE;
     178             :     virtual void _InvalidateFocus() SAL_OVERRIDE;
     179             : 
     180             :     virtual ~SwAccessibleParagraph();
     181             : 
     182             :     // handling of data for the text portions
     183             : 
     184             :     // force update of new portion data
     185             :     void UpdatePortionData()
     186             :         throw( com::sun::star::uno::RuntimeException );
     187             : 
     188             :     // remove the current portion data
     189             :     void ClearPortionData();
     190             : 
     191             :     // get portion data; update if necessary
     192         508 :     SwAccessiblePortionData& GetPortionData()
     193             :         throw( com::sun::star::uno::RuntimeException )
     194             :     {
     195         508 :         if( pPortionData == NULL )
     196          79 :             UpdatePortionData();
     197         508 :         return *pPortionData;
     198             :     }
     199             : 
     200             :     // determine if portion data is currently available
     201             :     bool HasPortionData()   { return (pPortionData != NULL); }
     202             : 
     203             :     //helpers for word boundaries
     204             : 
     205             :     bool GetCharBoundary( com::sun::star::i18n::Boundary& rBound,
     206             :                               const OUString& rText,
     207             :                               sal_Int32 nPos );
     208             :     bool GetWordBoundary( com::sun::star::i18n::Boundary& rBound,
     209             :                               const OUString& rText,
     210             :                               sal_Int32 nPos );
     211             :     bool GetSentenceBoundary( com::sun::star::i18n::Boundary& rBound,
     212             :                                   const OUString& rText,
     213             :                                   sal_Int32 nPos );
     214             :     bool GetLineBoundary( com::sun::star::i18n::Boundary& rBound,
     215             :                               const OUString& rText,
     216             :                               sal_Int32 nPos );
     217             :     static bool GetParagraphBoundary( com::sun::star::i18n::Boundary& rBound,
     218             :                                    const OUString& rText,
     219             :                                    sal_Int32 nPos );
     220             :     bool GetAttributeBoundary( com::sun::star::i18n::Boundary& rBound,
     221             :                                    const OUString& rText,
     222             :                                    sal_Int32 nPos );
     223             :     bool GetGlyphBoundary( com::sun::star::i18n::Boundary& rBound,
     224             :                                const OUString& rText,
     225             :                                sal_Int32 nPos );
     226             : 
     227             :     // get boundaries of word/sentence/etc. for specified text type
     228             :     // Does all argument checking, and then delegates to helper methods above.
     229             :     bool GetTextBoundary( com::sun::star::i18n::Boundary& rBound,
     230             :                               const OUString& rText,
     231             :                               sal_Int32 nPos,
     232             :                               sal_Int16 aTextType )
     233             :         throw (
     234             :             ::com::sun::star::lang::IndexOutOfBoundsException,
     235             :             ::com::sun::star::lang::IllegalArgumentException,
     236             :             ::com::sun::star::uno::RuntimeException);
     237             : 
     238             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew) SAL_OVERRIDE;
     239             : 
     240             : public:
     241             : 
     242             :     SwAccessibleParagraph( SwAccessibleMap& rInitMap,
     243             :                            const SwTextFrm& rTextFrm );
     244             : 
     245             :     inline operator ::com::sun::star::accessibility::XAccessibleText *();
     246             : 
     247             :     virtual bool HasCursor() SAL_OVERRIDE;   // required by map to remember that object
     248             : 
     249             :     com::sun::star::uno::Sequence< ::com::sun::star::style::TabStop > GetCurrentTabStop( sal_Int32 nIndex  );
     250             :     virtual sal_Int16 SAL_CALL getAccessibleRole()     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     251             : 
     252             :     // XAccessibleContext
     253             : 
     254             :     // Return this object's description.
     255             :     virtual OUString SAL_CALL
     256             :         getAccessibleDescription()
     257             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     258             : 
     259             :     // Return the parents locale or throw exception if this object has no
     260             :     // parent yet/anymore.
     261             :     virtual ::com::sun::star::lang::Locale SAL_CALL
     262             :         getLocale()
     263             :         throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     264             : 
     265             :     // #i27138# - paragraphs are in relation CONTENT_FLOWS_FROM and/or CONTENT_FLOWS_TO
     266             :     virtual ::com::sun::star::uno::Reference<
     267             :             ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL
     268             :         getAccessibleRelationSet()
     269             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     270             : 
     271             :     // XAccessibleComponent
     272             : 
     273             :     virtual void SAL_CALL grabFocus()
     274             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     275             :     // #i71385#
     276             :     virtual sal_Int32 SAL_CALL getForeground()
     277             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     278             :     virtual sal_Int32 SAL_CALL getBackground()
     279             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     280             : 
     281             :     // XServiceInfo
     282             : 
     283             :     // Returns an identifier for the implementation of this object.
     284             :     virtual OUString SAL_CALL
     285             :         getImplementationName()
     286             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     287             : 
     288             :     // Return whether the specified service is supported by this class.
     289             :     virtual sal_Bool SAL_CALL
     290             :         supportsService (const OUString& sServiceName)
     291             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     292             : 
     293             :     // Returns a list of all supported services.  In this case that is just
     294             :     // the AccessibleContext service.
     295             :     virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
     296             :         getSupportedServiceNames()
     297             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     298             : 
     299             :     // XInterface
     300             : 
     301             :     // (XInterface methods need to be implemented to disambiguate
     302             :     // between those inherited through SwAcessibleContext and
     303             :     // XAccessibleEditableText).
     304             : 
     305             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
     306             :         const ::com::sun::star::uno::Type& aType )
     307             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     308             : 
     309        3299 :     virtual void SAL_CALL acquire(  ) throw () SAL_OVERRIDE
     310        3299 :         { SwAccessibleContext::acquire(); };
     311             : 
     312        3299 :     virtual void SAL_CALL release(  ) throw () SAL_OVERRIDE
     313        3299 :         { SwAccessibleContext::release(); };
     314             : 
     315             :     // XTypeProvider
     316             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     317             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     318             : 
     319             :     // XAccessibleText
     320             :     virtual sal_Int32 SAL_CALL getCaretPosition()
     321             :         throw (::com::sun::star::uno::RuntimeException,
     322             :                std::exception) SAL_OVERRIDE;
     323             :     virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     324             :     virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     325             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes )
     326             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     327             :                ::com::sun::star::uno::RuntimeException,
     328             :                std::exception) SAL_OVERRIDE;
     329             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     330             :     virtual sal_Int32 SAL_CALL getCharacterCount(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     331             :     virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     332             :     virtual OUString SAL_CALL getSelectedText(  )
     333             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     334             :     virtual sal_Int32 SAL_CALL getSelectionStart()
     335             :         throw (::com::sun::star::uno::RuntimeException,
     336             :                std::exception) SAL_OVERRIDE;
     337             :     virtual sal_Int32 SAL_CALL getSelectionEnd()
     338             :         throw (::com::sun::star::uno::RuntimeException,
     339             :                std::exception) SAL_OVERRIDE;
     340             :     virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     341             :     virtual OUString SAL_CALL getText(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     342             :     virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     343             :     virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     344             :     virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     345             :     virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     346             :     virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     347             : 
     348             :     // XAccessibleEditableText
     349             :     virtual sal_Bool SAL_CALL cutText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     350             :     virtual sal_Bool SAL_CALL pasteText( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     351             :     virtual sal_Bool SAL_CALL deleteText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     352             :     virtual sal_Bool SAL_CALL insertText( const OUString& sText, sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     353             :     virtual sal_Bool SAL_CALL replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString& sReplacement ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     354             :     virtual sal_Bool SAL_CALL setAttributes( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aAttributeSet ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     355             :     virtual sal_Bool SAL_CALL setText( const OUString& sText ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     356             : 
     357             :     // XAccessibleSelection
     358             :     virtual void SAL_CALL selectAccessibleChild(
     359             :         sal_Int32 nChildIndex )
     360             :         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
     361             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     362             : 
     363             :     virtual sal_Bool SAL_CALL isAccessibleChildSelected(
     364             :         sal_Int32 nChildIndex )
     365             :         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
     366             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     367             :     virtual void SAL_CALL clearAccessibleSelection(  )
     368             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     369             :     virtual void SAL_CALL selectAllAccessibleChildren(  )
     370             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     371             :     virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount(  )
     372             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     373             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(
     374             :         sal_Int32 nSelectedChildIndex )
     375             :         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
     376             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     377             : 
     378             :     // index has to be treated as global child index.
     379             :     virtual void SAL_CALL deselectAccessibleChild(
     380             :         sal_Int32 nChildIndex )
     381             :         throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
     382             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     383             : 
     384             :     // XAccessibleHypertext
     385             :     virtual sal_Int32 SAL_CALL getHyperLinkCount()
     386             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     387             :     virtual ::com::sun::star::uno::Reference<
     388             :             ::com::sun::star::accessibility::XAccessibleHyperlink >
     389             :         SAL_CALL getHyperLink( sal_Int32 nLinkIndex )
     390             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     391             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     392             :     virtual sal_Int32 SAL_CALL getHyperLinkIndex( sal_Int32 nCharIndex )
     393             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     394             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     395             : 
     396             :     // #i71360#
     397             :     // XAccesibleTextMarkup
     398             :     virtual sal_Int32 SAL_CALL getTextMarkupCount( sal_Int32 nTextMarkupType )
     399             :             throw (::com::sun::star::lang::IllegalArgumentException,
     400             :                    ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     401             : 
     402             :     virtual ::com::sun::star::accessibility::TextSegment SAL_CALL
     403             :             getTextMarkup( sal_Int32 nTextMarkupIndex,
     404             :                            sal_Int32 nTextMarkupType )
     405             :             throw (::com::sun::star::lang::IndexOutOfBoundsException,
     406             :                    ::com::sun::star::lang::IllegalArgumentException,
     407             :                    ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     408             : 
     409             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::accessibility::TextSegment > SAL_CALL
     410             :             getTextMarkupAtIndex( sal_Int32 nCharIndex,
     411             :                                   sal_Int32 nTextMarkupType )
     412             :             throw (::com::sun::star::lang::IndexOutOfBoundsException,
     413             :                    ::com::sun::star::lang::IllegalArgumentException,
     414             :                    ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     415             : 
     416             :     // XAccessibleTextSelection
     417             :     virtual sal_Bool SAL_CALL scrollToPosition( const ::com::sun::star::awt::Point& aPoint, sal_Bool isLeftTop )
     418             :         throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     419             :     virtual sal_Int32 SAL_CALL getSelectedPortionCount(  )
     420             :         throw (::com::sun::star::uno::RuntimeException,
     421             :                std::exception) SAL_OVERRIDE;
     422             :     virtual sal_Int32 SAL_CALL getSeletedPositionStart( sal_Int32 nSelectedPortionIndex )
     423             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     424             :                ::com::sun::star::uno::RuntimeException,
     425             :                std::exception) SAL_OVERRIDE;
     426             :     virtual sal_Int32 SAL_CALL getSeletedPositionEnd( sal_Int32 nSelectedPortionIndex )
     427             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     428             :                ::com::sun::star::uno::RuntimeException,
     429             :                std::exception) SAL_OVERRIDE;
     430             :     virtual sal_Bool SAL_CALL removeSelection( sal_Int32 selectionIndex )
     431             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     432             :                ::com::sun::star::uno::RuntimeException,
     433             :                std::exception) SAL_OVERRIDE;
     434             :     virtual sal_Int32 SAL_CALL  addSelection( sal_Int32 selectionIndex, sal_Int32 startOffset, sal_Int32 endOffset)
     435             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
     436             :                ::com::sun::star::uno::RuntimeException,
     437             :                std::exception) SAL_OVERRIDE;
     438             :     // XAccessibleExtendedAttributes
     439             :     virtual ::com::sun::star::uno::Any SAL_CALL getExtendedAttributes()
     440             :         throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
     441             :     bool GetSelectionAtIndex(sal_Int32& nIndex, sal_Int32& nStart, sal_Int32& nEnd);
     442             :     sal_Int32 GetRealHeadingLevel();
     443             :     // XAccessibleComponent
     444             :     bool m_bLastHasSelection;
     445             : 
     446             :     // #i89175#
     447             :     // XAccessibleMultiLineText
     448             :     virtual sal_Int32 SAL_CALL getLineNumberAtIndex( sal_Int32 nIndex )
     449             :             throw (::com::sun::star::lang::IndexOutOfBoundsException,
     450             :                    ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     451             : 
     452             :     virtual ::com::sun::star::accessibility::TextSegment SAL_CALL
     453             :             getTextAtLineNumber( sal_Int32 nLineNo )
     454             :             throw (::com::sun::star::lang::IndexOutOfBoundsException,
     455             :                    ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     456             : 
     457             :     virtual ::com::sun::star::accessibility::TextSegment SAL_CALL
     458             :             getTextAtLineWithCaret()
     459             :             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     460             : 
     461             :     virtual sal_Int32 SAL_CALL getNumberOfLineWithCaret()
     462             :             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     463             : 
     464             :     // #i63870#
     465             :     // XAccesibleTextAttributes
     466             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getDefaultAttributes( const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     467             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     468             : };
     469             : 
     470           3 : inline SwAccessibleParagraph::operator ::com::sun::star::accessibility::XAccessibleText *()
     471             : {
     472             :     return static_cast<
     473           3 :         ::com::sun::star::accessibility::XAccessibleEditableText * >( this );
     474             : }
     475             : 
     476             : #endif
     477             : 
     478             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11