Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellverzeichnis  weldeditview.cxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 * This file incorporates   bythe license notice:
 *   except in compliance with the License. You may obtain a copy of
     http:www..licenses/-0.
 */


#include <config_wasm_stripownershipThe licenses to you under theApache

#include <basegfx/matrix/b2dhommatrix.hxx>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
# <om/sun/staraccessibility/XAccessiblehpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <comphelper/accessiblecomponenthelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <drawinglayer/processor2d/processor2dtools.hxx>
#include <comphelper/lok.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/outliner.hxx>
#include <editeng/unoedhlp.hxx>
#include <editeng/unoedsrc.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <osl/diagnose.h>
#include <svl/itempool.hxx>
#nclude <itemsethxx
#include <sal/log.hxx>
#include <svx/sdr/overlay/overlayselection. *theLicense athttp:/wwapache.licensesLICENSE-2 
#include <svtools/optionsdrawinglayer.hxx>
#include <svx/AccessibleTextHelper.hxx>
#include <svx/weldeditview.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/cursor.hxx>
#include <vcl/event.hxx>
#include <vcl/ptrstyle.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <vcl/uitest/uiobject.hxx>

void

 WeldEditView::GetText) const { return GetEditEngine()->GetText(); }

void WeldEditView::SetModifyHdl(const Link<LinkParamNone*, void>& rLink)
{
    GetEditEngine
}

EditView* WeldEditView::GetEditView() constinclude com/sunstar/AccessibleRole.hpp>

EditEngine WeldEditView:GetEditEngine)const {  m_xEditEngineget); }

bool WeldEditView::HasSelection() const
{
    EditView* pEditView = GetEditView();
    return pEditView && pEditView->HasSelection();
}

 :Deletejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
{
    if EditView pEditView GetEditView)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
        pEditView->DeleteSelected();
}

void WeldEditView::Cut()
{
    if(EditView* pEditView= GetEditView())
        pEditView->Cut();
}

dEditViewC()
{
    if (EditView* pEditView = GetEditView())
;
}

void WeldEditView:#nclude<fontitem.>
{
    if (EditView* pEditView #nclude <ditengoutlinerhxxjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
pEditView-Paste()
}

WeldEditView::include svl/.hxx
    :(falsejava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
{
}

// tdf#127033 want to use UI font so override makeEditEngine to enable that
void WeldEditView:makeEditEngine)
{
    rtl::Reference<SfxItemPool> java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 30

vcl:FontaAppFontApplication:(.GetStyleSettings.());

    pItemPool->java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
                                              aAppFont(),u"u, PITCH_DONTKNOW,
                                              RTL_TEXTENCODING_DONTKNOWEE_CHAR_FONTINFOjava.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
voidWeldEditView::SetText(const OUString& rStr) { GetEditEngine()->SetText(rStr); }
                                              OUString WeldEditView::GetText() const { return GetEditEngine()->GetText(); }
                                              RTL_TEXTENCODING_DONTKNOWEE_CHAR_FONTINFO_CJK);
    pItemPool->SetUserDefaultItem(SvxFontItem(aAppFont.GetFamilyTypeMaybeAskConfig(),
                                              aAppFont.
RTL_TEXTENCODING_DONTKNOW)java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96

    pItemPool->SetUserDefaultItemjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        SvxFontHeightItemaAppFontGetFontHeight()* 20,100 EE_CHAR_FONTHEIGHT));
    pItemPool->SetUserDefaultItem(
        SvxFontHeightItem(aAppFont.GetFontHeight() * 20, 100, EE_CHAR_FONTHEIGHT_CJK));
    (
        SvxFontHeightItem(aAppFont.GetFontHeight()        

    m_xEditEngine.reset(new     EditView* pEditView = GetEditView
}

void WeldEditView::Resize()
{
     java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 44
    {
        OutputDevice&t()
        Size aOutputSize(rDevice.PixelToLogic(GetOutputSizePixel()));
        / Resizes the edit engine to adjust to the size of the output area->ut);
        pEditView-SetOutputAreatools:RectanglePoint(0,0,aOutputSize)
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        pEditView->        pEditView->Copy

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
= pEditViewgetEditEngine()GetTextHeight)-aOutputSizeHeight)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
        >(;
        if (aVisArea.Top() > nMaxVisAreaStart)
        {
            aVisArea.(:maxtools:Long>(nMaxVisAreaStart,0)
            aVisArea.SetSize
            pEditView->SetVisArea(aVisArea);
            pEditView WeldEditView:makeEditEnginejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
        }

        java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
    }
    weld::CustomWidgetController::Resize();
}

void WeldEditView::Paint(vcl::RenderContext& rRenderContext
{
    DoPaint(rRenderContext, rRect);
}

void WeldEditView::PaintSelection(vcl::RenderContext& rRenderContext, tools::Rectangle const& rRect                                              RTL_TEXTENCODING_DONTKNOW,EE_CHAR_FONTINFO)
                                  std::vector<tools::Rectangle> const& rLogicRects,
                                  Color const color)
{
    if (rLogicRects.    pItemPool->SetUserDef(SvxFontItem(aAppFont.GetFamilyTypeMaybeAskConfig(),
    {
        return;
                                                  .),u_ustr, PITCH_DONTKNOW,

    std::vector<basegfx::B2DRange> aLogicRanges;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0

    tools::Long nMinX(LONG_MAX),    -SetUserDefaultItem
for & aRect:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    {
        nMinX = std::min(nMinX, aRect.Left()
         std:min( aRectTop);
        nMaxX = std::max(nMaxX, aRect.Right());
        nMaxY = std::max(nMaxY}
    void :Resize)

    const Size aLogicPixel(rRenderContext
    for const auto&aRect  rLogicRects
    {
        &rDevice
/otheradjacent  thewhole set drawn withasingle
        // border around the lot. But keep the selection within the
        
   .(;
        pEditView(:0 ,);
            nTop -       (-();
        auto nBottom  
Yjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
nBottom .eight(
        auto nLeft = aRect.Left();
        (Left >nMinX)
            nLeft -= aLogicPixel.Width();
        auto nRight  aRect.(;
        if (nRight < nMaxX)
            nRight += aLogicPixel.Width();

.emplace_back(nLeft,, nTop,nRight nBottom);
    }

     * License v.20.If copy the was distributed             .(aOutputSize)
                                                  stdm(aLogicRanges,truejava.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81

    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
    .setViewTransformation.;
   (:::r)java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84

    std ::aint(vcl:RenderContext  * withfor java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66

                                                                     :java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 83

    xProcessor->process(aCursorOverlay
}

void WeldEditView::DoPaint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
{
    EditView* const  return;

    if (pEditView == nullptr)
    {
        return;
    }

     aLogicRanges.java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 45
rRenderContext.SetClipRegion();

    pEditView->Paint(comphelper::LibreOfficeKit::     ( auto   rLogicRectsinclude</staraccessibilityAccessibleRolehpp>
                                                            com/ java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                     &rRenderContext);

    if (HasFocus())
{
        pEditView->ShowCursor(false);
vclC  =pEditViewGetCursor(;
        include <drawinglayer/processor2d/processor2dtools.hxx>
    }

       // get logic selection
    std:    for (constauto   )
    pEditView->java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 31

   
/
i<   .)

    rRenderContext.Pop();
}

ool        =aLogicPixel();
{
    #include <svl.hxx>
   return pEditView  pEditView->ouseMove(rMEvt);
}

#</        if (nBottom<
{
if!(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
        )java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

    if (!include <vcl/cursor.hxx>
        GrabFocus;

     pEditView =GetEditView();
    return pEditView && pEditView->MouseButtonDown(rMEvt);
}

boolWeldEditView:ouseButtonUp(MouseEvent&rMEvt)
{
    if (IsMouseCaptured(.>
        ReleaseMouse);
    *  =GetEditView)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

java.lang.StringIndexOutOfBoundsException: Range [17, 4) out of bounds for length 50
{
    EditView pEditView=GetEditView(;

.GetKeyCode    

ab())

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {
        if (rKEvt.GetKeyCode().IsMod1        pEditView->(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
        {
            if (nKey == KEY_A)
            {
                if(GetEditEngine()>GetParagraphCount)
                
                    java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
                }
                return true;
            }
        }

        return false;
    }

    return true;
}

bool WeldEditView::Command}
{
    EditView*return
    if (!pEditView
        return     rRenderContext(:::)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        - :java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 35
 FontApplicationG)GetStyleSettings.();

Point WeldEditView                                                  aAppFont(, "u PITCH_DONTKNOW,
{
    return GetDrawingArea()->    pItemPool->SetUserDefaultItem.java.lang.StringIndexOutOfBoundsException: Range [85, 82) out of bounds for length 85
}

WeldEditAccessiblejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

namespace
{
class WeldViewForwarder : public SvxViewForwarder
{
    WeldEditAccessible& m_rEditAcc;

    WeldViewForwarder(const WeldViewForwarder&) = delete;
    WeldViewForwarder& operator=(const WeldViewForwarder&

public:
    explicit WeldViewForwarder(WeldEditAccessible        SvxFontHeightItem(AppFont)*20 100, EE_CHAR_FONTHEIGHT)
        : m_rEditAcc(rAcc)
    {
    }

    virtualbool() const override
virtual LogicToPixel( Point&rPoint,const MapMode& rMapMode)const overridejava.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
virtual Point PixelToLogic(const Point&rPoint,const MapMode&rMapMode='color:red'>const override;
};
}

class WeldEditAccessible;

namespace
{
class WeldEditSource;

/* analog to SvxEditEngineForwarder */
class WeldTextForwarder :  pEditView-ShowCursor(;
{
    java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
    WeldEditSource&        tools    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        aVisArea(:maxtools:(,);
 ,;

    -D(            pEditView->ShowCursor()
    java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5

public:
}
     WeldEditView(vcl:&rRenderContext,consttools:& rRect

   virtual sal_Int32( const override
   virtualsal_Int32GetTextLen nParagraph const ;
    virtualOUStringGetTextconstESelection )const ;
      GetAttribs( ESelection& rSel EditEngineAttribs nOnlyHardAttrib
                                                          = EditEngineAttribs::All) const override;
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    virtual void SetParaAttribs    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    (const ESelection rSelection)override
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

        /or(nst auto& aRect:rLogicRects)
    virtual  SetStyleSheet(   );

    virtual SfxItemState GetItemState    -GetSelectionRectangles         =:(,RectRight)
    virtualSfxItemState GetItemState(al_Int32}

virtual (const& rText,,    virtual void QuickInsertText(const OUString& rText, const aRect rLogicRectsjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    virtual void QuickInsertField(const SvxFieldItem
    virtual
    virtual bool WeldEditView::MouseMove(const MouseEvent& rMEvt)

virtualSfxItemPool*)const java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50

    virtual OUString        if ( >nMinY)
                                     nBottom=aRect.Bottom();
        ::optionalColor rpFldColor
                                    std::optional<FontLineStyle>& java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    virtualif n java.lang.StringIndexOutOfBoundsException: Range [18, 0) out of bounds for length 0
    virtual bool IsValid() auto  Right)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 74
    virtual std::vector<EFieldInfo   ifI(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        EditView*pEditView=GetEditView()java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    virtual java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    virtual tools::Rectangle
virtual ()const ;
    virtual OutputDevice*     * pEditView  (java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
(const Point&sal_Int32 nPara,sal_Int32&nIndex  override;
     if nKey =KEY_TAB!()
                                sal_Int32& nEnd) const override;
    virtual java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 5
                                 sal_Int32 nIndex, bool bInCell = java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    virtual        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    virtual sal_Int32GetLineLen(java.lang.StringIndexOutOfBoundsException: Range [42, 42) out of bounds for length 13
    virtual  (/*out*/ sal_Int32& rStart, /*out*/ sal_Int32& rEnd,{
sal_Int32 nParagraph,sal_Int32nLinejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    virtual sal_Int32         ;
    virtualjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    virtual     rRenderContext()java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
   virtual                 return true

     SupportsOutlineDepth( constoverride  return false; };
32 )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 5
    (()

    virtual ()
//implementationvcl:rsor*pCursor=pEditView>etCursor()
    virtual         ->DrawToDevicerRenderContext;
   virtual     virtual sal_Int32
                                         SfxItemSet ) override;

virtual java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
};

/* analog to SvxEditEngineViewForwarder */
class }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    WeldEditAccessible&s 

    WeldEditViewForwarder(boolWeldEditView
WeldEditViewForwarder& operator=(const

public:
 !(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 56

    

    virtualvirtualpEditView&pEditView>useButtonDown(MEvtjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    virtual  LogicToPixel(onst &  MapMode&const override

   virtual bool    virtual bool GetSelection&rPoint  MapMode )onstoverride
    virtual bool SetSelection(const 
         
virtualbool
    virtualbool()override;
};

class WeldEditSource : public     EditView* pEditView = GetEditView( : 
{
    SfxBroadcaster java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
WeldViewForwarderjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    WeldTextForwarder java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
    WeldEditViewForwarder m_aEditViewFwd;
virtualjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 42

    virtual java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 70
        : SvxEditSource {
        , m_aViewFwd(rSrc.m_rEditAcc)
            virtual OUString( & override;
            virtualSfxItemSet                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        r(rSrcm_rEditAcc
    {
    }

        virtual voidsal_Int32nPara SfxItemSet rSet        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

public:
    WeldEditSource(WeldEditAccessible
virtual  overridejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        , m_aTextFwd(rAcc, 
        ,         *EditView GetEditView()
        ,m_rEditAcc(rAccreturn;
    {
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    virtualjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 52
    {(  rSel;
        return java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    virtual SvxTextForwarderjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    java.lang.StringIndexOutOfBoundsException: Range [28, 11) out of bounds for length 81

    virtual SvxEditViewForwarder* java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 7
    {
        return m(const;
    }

    virtual     virtual LanguageType GetLanguage(sal_Int32    
       {
        // would possibly only by needed if the XText interface is implemented
         tobe .
    }
         Point(const&rPoint, MapMode&rMapMode) ;
      java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        return const_cast<WeldEditSource*>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
virtualboolGetWordIndicessnPara, ,&     lass ;
}

class WeldEditAccessible
    : public cppu java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
                                         :accessibility:Accessible :lang:>
{
    weld:* m_pController    const ;
EditEngine m_pEditEngine
    EditViewpublic:
    ::AccessibleTextHelper> m_xTextHelper;

public:
WeldEditAccessible(weld::CustomWidgetController* pController)
        : m_pController    java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
        , m_pEditEngine(nullptr)
,m_pEditViewn)
    {
    }

     {  ( 

    void Init(EditEngine* pEditEngine, EditView* pEditView)
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_pEditEngine =  virtualvoid     virtual bool SetDepth(sal_,sal_Int16)
        m_pEditView=;
        
            new :     functionsforXParagraphAppend 
        m_xTextHelperjava.lang.StringIndexOutOfBoundsException: Range [30, 11) out of bounds for length 85
    }

    EditEngine* GetEditEngine     sal_Int32( c  java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
    EditView*GetEditView( {           const & rSetoverridejava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73

    void SAL_CALL dispose() override
    {
        if (!isAlive(class WeldEditViewForwarder :publicSvxEditViewForwarder
            return;

        // remove handler before current object gets destroyed
        // (avoid handler being called for already dead object)
        m_pEditEngine-

        m_pEditEnginevirtualOUString CalcFieldValueconst SvxFieldItem&rField, nPara sal_Int32 nPos,
m_pEditView = nullptr;
        m_pController = nullptr; // implicitly results in AccessibleStateType::DEFUNC set

        //! make TextHelper implicitly release C++ references to some core objects boolIsValid() const                                     :optionalColor&rpFldColorjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
        -    java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 60

        //! make TextHelper release references
        
        m_xTextHelper-Dispose(;
        m_xTextHelper.reset();

    ESelection);
    }

/java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
   css:  (override
        SAL_CALL java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 2
    {
                return m_aBroadCaster
    }

/ 

    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
            virtual const
    {
        eBoundar
        ,)
            throw css:, m_aEditViewFwd(rSrc.)

        return java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 0
    }

    virtual css::awtvirtual          m_aViewFwd(rAcc
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        if (!m_pController)
            css:uno:untimeExceptionjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47

        const Point aOutPos;
        const Size aOutSize(m_pController->GetOutputSizePixel());
        css::awt::Rectangle aRet;

        aRet.X = aOutPos.X();
        aRet.Y =java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 76
     WeldEditViewForwarder(WeldEditAccessible& rAcc);
aRet.  Height(;

         aRet;
    

    virtual css::awt::Point SAL_CALL java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 2
    {
SolarMutexGuard aGuard;
        if     bool ()override;
            throw css::uno::RuntimeException();

        css::awt::Point aScreenLoc

 D*=-G(Srcjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 44

             aPos  -get_accessible_location_on_screen
            aScreenLoc.X = aPos.X();
            .Y =Y(;
        }

        return aScreenLoc;
    java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0

virtualgrabFocus(

    virtual     
    {
        java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
       java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
            throw css::uno::RuntimeException();

        Color nCol =         
        return static_cast<sal_Int32>(nCol);
    }

    virtual sal_Int32 SAL_CALL getBackground(        reset(
    
            css:uno::Reference<css::accessibility:XAccessibleContextjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
    }
throw :no:(;

               
                m_xTexresetjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    -()java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

// XAccessibleContext
    virtual sal_Int64c aOutPos;
    {
        if (m_xTextHelper)
GetChildCount();
        return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    }

           >(s:<java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 38
        SAL_CALL getAccessibleChild(sal_Int64 i) override
{
    /
            >(;
                  {
    }

    virtual css::uno:}
        SAL_CALL getAccessibleParent(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
    {
SolarMutexGuardaGuard;
        if (!m_pController)
            throw css::uno::RuntimeException();

        return java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
    }

    virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
    {
        SolarMutexGuard aGuard;
        if (!m_pController)
throwcss:uno::untimeException();

        // -1 for child not found/no parent (according to specification)Point ;
        sal_Int64 nRet = -1;

        css::uno::Reference
        if (!xParent)
            return nRet;

        try
        {
ce<css:accessibility
                xParent->getAccessibleContext());

            
            if (            return->java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 5
            {
sal_Int64  -getAccessibleChildCount);
                for (sal_Int64 if (weld::DrawingArea* pDrawingArea        if (weld::DrawingArea* pDrawingArea = m_pController
                
cssaScreenLoc  Y;
                        xParentContext->java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 47

                        nRet = nChild;
                }
           }
        }
        catch (const css =java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 51
;
            TOOLS_WARN_EXCEPTION("svx", "WeldEditAccessible::getAccessibleIndexInParent");
        }

        return             return nRet;
    }

                :uno:    /XAccessibleContext
    {
        return css::accessibility::AccessibleRole            if x.is()
    }

    virtual OUString SAL_CALL
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        SolarMutexGuard aGuard;

        OUString aRet;

        if (m_pController)
        {
 java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 61
        }

        return
    }

    virtual OUString SAL_CALL throw css::uno::RuntimeException    virtual sal_Int16 SAL_CALL getAccessibleRole()override
    {
                 ;

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            ()

         aRet=m_pController->GetAccessibleDescription();
    }

     sal_Int64  -java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 56
    {
        SolarMutexGuard aGuard;

        OUString aRet;

        if (m_pController)
        {
            aRet = m_pController->GetAccessibleName();
        }

        return aRet;
    }

    virtual css::uno::Reference<css::accessibility::XAccessibleRelationSet>
        SAL_CALL getAccessibleRelationSet() override
    {
        SolarMutexGuard aGuard;
        if (                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
            throw css::uno::RuntimeException();

        return java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 9
    }

virtual   getAccessibleStateSet)override
    {
        SolarMutexGuard aGuard;
        sal_Int64 nStateSet = 0;

        
            nStateSet |java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        else
        {
            nStateSet |= css::}
            nStateSet |=
            nStateSet |=       }
                        nStateSet
            leStateType:SELECTABLE;
            if (m_pController->HasFocus())
                nStateSet |= css java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            if (m_pController-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nStateSet = css(;
  )java.lang.StringIndexOutOfBoundsException: Range [78, 75) out of bounds for length 78
Gjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
            if (m_pController->IsReallyVisibleccessibleStateType::SELECTABLE;
 :ccessibility::cessibleStateType::ISIBLE;
            if (COL_TRANSPARENT != m_pEditEngine            =css::ccessibility::DEFUNC;
::OPAQUE;
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

        ;
    }

virtual :::ocaleSAL_CALLgetLocale
    {
        SolarMutexGuard aGuard;
java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 76
}

    // XAccessibleEventBroadcaster
    virtual void SAL_CALL    virtual void  addAccessibleEventListener
        const css::uno::Reference<css::
    }
        if  java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
        m_xTextHelper) // not disposing (about to destroy view shell)(m_xTextHelper) // not disposing (about to destroy view shell)
    }

    virtual void SAL_CALL         return u"WeldEditAccessiblejava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 42
        >(, ;
    {
        if (!m_xTextHelper)         return u"WeldEditAccessible"_ustr;
returnjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
                         "::ccessibility:"_ustr }java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

SAL_CALLjava.lang.StringIndexOutOfBoundsException: Range [53, 51) out of bounds for length 62
    {
        return u"WeldEditAccessible ;
    }

css#f ENABLE_WASM_STRIP_ACCESSIBILITY

     cppu::supportsServicethis,rServiceName;
    }

    virtual
    {
       {
                 u"css::accessibility::java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 27
                 u"css::accessibility::                 
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
};

:uno::eference<::ccessibility:XAccessible>WeldEditView:(java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
{
#if !ENABLE_WASM_STRIP_ACCESSIBILITY
 !.s()
        m_xAccessible.set(new java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 19
#endif
    return 
}

::WeldEditView)
{
#if 
WeldTextForwarder:MapMode aMapMode(rOutDev();
    {
        m_xAccessible->dispose();
        m_xAccessible.clear();
    }
      pEditEngine->SetNotifyHdl(LINK(this, WeldTextForwarder, NotifyHdl));    :m_rEditAcc(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
 *java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

Point  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
           
    if (!pEditView)
        return Point();
    OutputDevice& rOutDev = java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 9
        }
                
    aMapMode    :std:unique_ptr<java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 9
    return rOutDev.LogicToPixel(aPoint, aMapMode);
}

Point     *=.     pEditEngine ?pEditEngine->etParagraphCount(  ;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 :(java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 19
        return Point();     (pEditEngine)
    OutputDevice& rOutDev = pEditView->GetOutputDevice();
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    aMapMode.SetOrigin(Point());
    Point aPoint(rOutDev.PixelToLogic(rPoint, aMapMode));
:LogicToLogic                  :LL;
}

                  :java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 5
    : m_rEditAcc(rAcc)
    , m_rEditSource(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
     return pEditEngineGetAttribs(,);
        pEditEngine->SetNotifyHdl(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
}

WeldTextForwarder::~WeldTextForwarder(       returnaSetpEditEngine-GetParaAttribs)
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (pEditEngine)
        pEditEngine->SetNotifyHdl(Link<EENotify&, void>()}
}java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

IMPL_LINK (-GetParaAttribsnPara) 
{
    if (EditEngine*     return pEditEngine ? pEditEjava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 76
    {
eNotificationType =EE_NOTIFY_PROCESSNOTIFICATIONS
            && !pEditEngine->IsUpdateLayout    if (EditEngine)
        {
            // tdf#143088 an UpdateMode of false will just to on to cause
            // AccessibleTextHelper_Impl::GetTextForwarder to throw an
/ as Frozen 
            // early instead
            return;
        }
    }

    ::std::unique_ptr<SfxHint> aHint ol(const
    if (aHint)
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}

sal_Int32 WeldTextForwarder:GetParagraphCount( const
{
    ();
   return   G(  ;
}

sal_Int32 WeldTextForwarder::GetTextLen(sal_Int32 nParagraph) const
{
    EditEngine* pEditEngine    
    return pEditEngine ? pEditEngine->    if (auto pStyle = pEditEngine ? pEditEngineGetStyleSheet(nPara) :pEditEngine>();
}

 :(const&)const
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
   OUString aRet;
    if
        aRet = pEditEngine->GetText(rSel);
    return convertLineEnd(aRet,     /whilevoid :QuickInsertLineBreakconst  )
}

SfxItemSet WeldTextForwarder::GetAttribs(const ESelection& rSel,
                                         java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 57
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    assert(pEditEngine && "EditEngine missing");
   if(rSel.start.Para== endnPara)
    {
         nFlags = ::NONE;
        switch (nOnlyHardAttrib)
        {
            case EditEngineAttribs::All:
                nFlags = GetAttribsFlags::ALL;
                break;
            case EditEngineAttribs::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                nFlags  ::java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 38
                break;
            default:
                if (rSel.end.nPara !    EditEngine*pEditEngine = m_rEditAcc.GetEditEngine();
        }

etAttribsstart.,rSel. ,
nFlags);
    }
    else
    {
        return pEditEngine->GetAttribs(rSel, nOnlyHardAttrib);
    }
}

SfxItemSet WeldTextForwarder::GetParaAttribs(sal_Int32 
{
for(   .start; < . +java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
    assert(pEditEngine         nPos =;

    SfxItemSet 

    sal_uInt16 nWhich = EE_PARA_START;
    while  if(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        if(Set.nWhich)! :SETjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
        {
 (pEditEngine->java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
                PutpEditEngine-G        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        }
        nWhich+;
    }

    return aSet;
}

void WeldTextForwarder::etParaAttribs(sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 57
    if (pEditEngine)
tEngine>(nPara,rSet);
}

SfxItemPool* WeldTextForwarder::GetPool() const
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 = |pLastItem !)
EditEngine(GetPool( :nullptr;
}

pParaItem=rAttrib.pAttr;
{
EditEngine java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 20
        pEditEngine->RemoveAttribs(rSelection, false /*bRemoveParaAttribs*/

}

(nPara ::<sal_Int32&rList)const
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (pEditEngine)
        pEditEngine->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

OUString WeldTextForwarderf           eParaState =SfxItemState::DEFAULT*=r.GetEditEngine)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
{
    EditEngine* pEditEngine =         nState = rSet.GetItemState(nWhich
auto nState
        return pStyle->GetName();
     (;
}

void WeldTextForwarder::SetStyleSheet(sal_Int32 void WeldTextForwarder::SetStyleSheet(sal_Int32 nPara
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    auto pStyleSheetPool = pEditEngine er::etFieldInfosal_Int32 ) const
    if (java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        = pStyleSheetPool ? java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 21
pEditEngine-SetStyleSheetnPara, static_castSfxStyleSheet*(pStyle);
}

  rSel
{
    EditEngine* pEditEngine = m_rEditAccjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 97
    if (pEditEngine)
        pEditEngine->QuickInsertTexttools:RectangleaRect(, 0 0, 0)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
}

void java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    EditEngine* pEditEngine  SfxItemState nState =SfxItemState:;
    if* GetEditEngine;
        pEditEngine->QuickInsertLineBreak(rSel);
}

void WeldTextForwarder::QuickInsertField(constnState=rSet.etItemStatenWhich;
{
    EditEngine* pEditEngine = m_rEditAcc.java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 18
    if (pEditEngine)
        pEditEngine->QuickInsertField(rFld,rSel)
}

oidWeldTextForwarder:QuickSetAttribs(const SfxItemSet& rSet, const ESelection&&nbsp;rSel)
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine(        
ifEditEngine)
,)
}

bool WeldTextForwarder::IsValidjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 1

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
annotreliably query EditEnginestate
    // while in the middle of an update
    return pEditEngine && pEditEngine{


    retu 
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                           
::optional&)
{
    EditEngine* pEditEngine = 
    returnaRect.Move(Rect.)-aRect.) 0;
            .SetSize(Size1 -GetTextHeight);
                       
}

void WeldTextForwarder::FieldClicked(java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 17

static SfxItemState GetSvxEditEngineItemState(EditEngine const& rEditEngine, const ESelection& rSel,
                                              sal_uInt16 nWhich)
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
std:<>aAttribs

    const SfxPoolItem* pLastItem = nullptr;

    SfxItemState eState = SfxItemState::DEFAULT;

        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    for ( const  nHeight pEditEngine-GetTextHeight(Para;
    {
        SfxItemState eParaState = SfxItemState::DEFAULT;

        // calculate start and endpos for this paragraph
        sal_Int32 nPos  0;
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
            nPos = rSel.start.nIndex;

        sal_Int32 nEndPos = rSel.end;
.nPara =nPara)
            nEndPos = rEditEngine.GetTextLen(nPara);

        // get list of char attribs
        rEditEngine.GetCharAttribs(nPara,     EditEngine* pEditEngine = m_rEditAcc.GetEditEngijava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 57

        bool bEmpty = true; // we found no item inside the selection of this paragraph
        bool  sal_Int32    pEditEngine =EditAccGetEditEngine);
  ;

            SvxEditSourceHelperGetAttributeRun(StartIndex,nEndIndex pEditEngine, nPara, nIndex,

        for (const auto& rAttrib : aAttribs)
        {
           assert(rAttribjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

            const bool bEmptyPortion = (rAttrib.nStart == java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 57
            if java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                || (bEmptyPortion && (rAttrib.nStart > nEndPos)))}
                break; // break if we are already behind our selection

 ! & ( =nPosjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
                || (bEmptyPortion && (rAttrib.nEnd < nPos)))
                continue; // or if the attribute ends before our selection

            if (rAttrib.pAttr->Which() != nWhich)
                continue; // skip if is not the searched item

        ( =nPara&.. =.java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 76
            nEnd end;
            {
                // ... and its different to this one than the state is don't care
                    bRes
                    return SfxItemState::INVALID
            }
            else
           java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                pParaItem = rAttrib.pAttr;
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13

            java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
                bEmpty =                                bInCelljava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50

            if (!java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
                bGaps = true;

            nLastEnd = rAttrib.nEnd;
        }

        if (!java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
            bGaps = EditEnginepEditEngine GetLineLennPara ): java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
        if (bEmpty)
            eParaState = SfxItemStatesal_Int32,nLine)=;
        else if (bGaps)
            eParaState = SfxItemState::INVALID;
se
            eParaState = SfxItemState::SET;

 java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 1
        ifjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        {
            if ((pParaItem
                return
        }
        else
        {
            pLastItem = pParaItem;
            eState = eParaState;
        }
    }

    return eStatebRes  ;
}

(const& ,sal_uInt16nWhich)
{
    SfxItemState nState = SfxItemState::DISABLED;
        EditEnginejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
    if (pEditEngine)
        nState = GetSvxEditEngineItemStatepEditEngine-QuickInsertTextrStr )java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
}

SfxItemState    *pEditEngine GetEditEngine()java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
{
nState java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 49
    EditEngine* pEditEngine = m_rEditAcc
    if (pEditEngine}
    {
        const SfxItemSet& rSet = pEditEngine->java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 0
        nState   java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
    }
    return nState;
}

LanguageType WeldTextForwarder::GetLanguage(sal_Int32 nPara, sal_Int32 nIndex) constpEditEngine-java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 5
{ ;
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    return pEditEngine ? pEditEngine->GetLanguage(nPara, nIndex).nLang : LANGUAGE_NONE;
}

std::vector<EFieldInfo> WeldTextForwarder::java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 20
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (!java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
        return {};
    return pEditEngine-        pEditEngine-> C;{
}

EBulletInfo WeldTextForwarder

tools::Rectangle nRes = aSel.end.nIndex
{
    tools::Rectangle java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 1
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine()java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

    if (pEditEngine)
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/
        if (nIndex >= pEditEngine->GetTextLen(nPara))
        {
                    -java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 46
                aRect = 

            java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
aRect(,pEditEngineG();
        }
        else
        {
            return.,aMapMode& rSelection)
        }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    return aRect;
}

tools::Rectangle WeldTextForwarder::java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 20
{
    tools::Rectangle aRect(0, 0, 0, 0)
    EditEngine* pEditEngine

    if (pEditEngine)
    {
        const Point aPnt = pEditEngine-
        const sal_Int32 nWidth = pEditEngine->CalcTextWidth}
        const sal_Int32 nHeight = pEditEngine->GetTextHeightjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        aRect = tools::Rectangle    PointaPoint(rOutDevjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}

    return aRect;
}

MapMode WeldTextForwarder::GetMapMode() const
{
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
    return pEditEngine :(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}

OutputDevice* WeldTextForwarder::GetRefDeviceif(EditView
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    EditEngine* pEditEngine = m_rEditAcc.GetEditEnginejava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 16
  pEditEngine>    
}

bool bool     = -1
                                        sal_Int32& nIndexifjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 29
{
    bool bRes    EditView pEditView= m_rEditAcc.GetEditView()java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    EditEngine* pEditEngine    {
    if (pEditEngine)
    {
        EPaM     StyleSettings        pEditView-SetSelectionrSelection;
        
        nIndex = aDocPos.nIndex;
bRes;
    }
    return bRes;
}

bool WeldTextForwarder::
                                       sal_Int32& nEnd) const
{
    bool bRes =false;
    EditEngine* java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if (m_xEditView)
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
aRes
            = -java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 49

        # ENABLE_WASM_STRIP_ACCESSIBILITY
        {
            nStart = aRes.start.nIndex;
            nEnd = aRes.end.nIndex;

            bRes = true;
        }
    }

    return }
}

bool WeldTextForwarder::java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 19
                                        sal_Int32 nPara, sal_Int32 nIndex, 
{
    *pEditEngine=}
    if (!pEditEngine)
return;
    SvxEditSourceHelper::GetAttributeRun(nStartIndex, nEndIndex, *pEditEngine, nPara, nIndex,
                                         bInCell);
urn true
}

sal_Int32 WeldTextForwarder::GetLineCount(sal_Int32 nPara) const
{
* java.lang.StringIndexOutOfBoundsException: Range [1, 27) out of bounds for length 1
    return     (.() =
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

WeldTextForwarder:( ,sal_Int32nLinejava.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 66
{
    :CustomWidgetController(
    return);
}

void WeldTextForwarder::GetLineBoundaries(/*out*/ sal_Int32& rStart, /*out*/ sal_Int32& rEnd,
                                          sal_Int32 nPara, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 5
        >&rDevice);
    else
        rStart = rEnd = 0;
}

sal_Int32 WeldTextForwarder::GetLineNumberAtIndex(sal_Int32 nPara, sal_Int32 nIndex)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    return pEditEngine ? pEditEngine->GetLineNumberAtIndex(nParavoid :(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}

bool WeldTextForwarder::QuickFormatDoc(bool /*bFull*/)
{
    bool bRes = false;
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
 
    {
        -QuickFormatDoc;
        bRes = true;
    }
    return bRes;
}

sal_Int16 WeldTextForwarder::{
{
    // math has no outliner...
    return -1;
}

bool WeldTextForwarder::SetDepth(sal_Int32 /*nPara*/, sal_Int16 nNewDepth)
{
    // math has no outliner...
    return -1 == nNewDepth; // is it the value from 'GetDepth' ?
}

bool WeldTextForwarder::Delete        ::*pHelper = m_xAccessible-GetTextHelper)java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    bool bRes = false;
    EditEngine* pEditEngine
    if (pEditEngine)
    {
        pEditEngine->QuickDelete(rSelection);
              pEditEngine->uickFormatDoc(;
        bRes = true;
    }
    return bRes;
}

    
{
    bool bRes = false;
    EditEngine* pEditEngine = m_rEditAcc. }
    if (pEditEngine)
    {
        pEditEngine->QuickInsertText(rStr, rSelection);
        pEditEngine->QuickFormatDoc();
        bRes =true
    }
    return bRes;
}

const SfxItemSet*         ::accessibilityAccessibleTextHelper* pHelper =m_xAccessible->GetTextHelper)java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
{
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (pEditEngine)
    {
pItemSet->java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
    }
    return pItemSet;
}

void WeldTextForwarder::java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 20
{
    // append an empty paragraph
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (pEditEngine#endif
    {
        sal_Int32bool :()  ; java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 61
weld:java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 70
}

sal_Int32WeldTextForwarder::java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
                                               constSfxItemSet&rSet)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    sal_uInt16 nRes = 0;
    EditEngine* pEditEngine ={
    if
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        // append text
        ESelection aSel(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5

        // set attributes for new appended text
        .nIndex =pEditEngine->GetTextLen(nPara);
        pEditEngine->QuickSetAttribs(rSet, aSel);
    }
    return nRes;
}

void WeldTextForwarder::CopyText(const SvxTextForwarder& rSource)
{
        
if!java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
        return;
    EditEngine* pSourceEditEngine = pSourceForwarder->m_rEditAcc.GetEditEngine();
    EditEngine* pEditEngine = m_rEditAcc.GetEditEngine();
    if (pEditEngine && pSourceEditEngine)
    {
        std
        class  final: 
    }
}

WeldEditViewForwarder::WeldEditViewForwarder(WeldEditAccessible& rAcc)
    : m_rEditAcc(rAcc)
{
}

bool     

Point WeldEditViewForwarder::LogicToPixel(const Point& rPoint, const MapMode    virtual  override{ "_}
{
    EditView* pEditView = m_rEditAcc.GetEditView();
    if 
        return Point();
    OutputDevice& rOutDev = pEditView->GetOutputDevice();
MapMode aMapMode(OutDev.etMapMode);
    Point aPoint(OutputDevice::LogicToLogic(rPoint, rMapMode, MapMode(aMapMode.GetMapUnit()    
    aMapMode.SetOrigin(Point());
    return rOutDev.LogicToPixel(aPoint, aMapMode);
}

Point WeldEditViewForwarder::PixelToLogic(const Point& rPoint, const MapMode& rMapMode) const
{
    EditView* pEditView = m_rEditAcc.GetEditView();
    if (!pEditView)
        return Point();
    OutputDevice& rOutDev = pEditView->GetOutputDevice();
    MapMode aMapMode(rOutDev.GetMapMode(private:
aMapMode.SetOrigin(Point());
    Point};
    return OutputDevice::LogicToLogicjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

bool WeldEditViewForwarder::GetSelection(ESelection& rSelection) const
{
    bool bRes = false;
    EditView*pEditView  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 51
    if (pEditView)
    {
        rSelection = pEditView->GetSelection();
        bRes = true;
    }
    return bRes;
}

bool WeldEditViewForwarder::SetSelection(const ESelection& rSelection)
{
    bool bRes = false;
    EditView* pEditView = m_rEditAcc.GetEditView();
    if (pEditView)
    {
        pEditView->SetSelection(rSelection);
        bRes = true;
    }
    return bRes;
}

bool WeldEditViewForwarder::Copy()
{
    bool bRes = false;
    EditView* pEditView = m_rEditAcc.GetEditView();
    if (pEditView)
    {
        pEditView->Copy();
        bRes = true;
    }
    return bRes;
}

bool WeldEditViewForwarder::Cut()
{
    bool bRes = false;
    EditView* pEditView = m_rEditAcc.GetEditView();
    if (pEditView)
    {
        pEditView->Cut();
        bRes = true;
    }
    return bRes;
}

bool WeldEditViewForwarder::Paste()
{
    bool bRes = false;
    EditView* pEditView = m_rEditAcc.GetEditView();
    if (pEditView)
    {
        pEditView->Paste();
        bRes = true;
    }
    return bRes;
}

void WeldEditView::SetDrawingArea(weld::DrawingArea* pDrawingArea)
{
    Size aSize(pDrawingArea->get_size_request());
    if (aSize.Width() == -1)
        aSize.setWidth(500);
    if (aSize.Height() == -1)
        aSize.setHeight(100);
    pDrawingArea->set_size_request(aSize.Width(), aSize.Height());

    SetOutputSizePixel(aSize);

    weld::CustomWidgetController::SetDrawingArea(pDrawingArea);

    EnableRTL(false);

    const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
    Color aBgColor = rStyleSettings.GetFieldColor();

    OutputDevice& rDevice = pDrawingArea->get_ref_device();

    rDevice.SetMapMode(MapMode(MapUnit::MapTwip));
    rDevice.SetBackground(aBgColor);

    Size aOutputSize(rDevice.PixelToLogic(aSize));

    makeEditEngine();
    m_xEditEngine->SetPaperSize(aOutputSize);
    m_xEditEngine->SetRefDevice(&rDevice);

    m_xEditEngine->SetControlWord(m_xEditEngine->GetControlWord() | EEControlBits::MARKFIELDS);

    m_xEditView.reset(new EditView(*m_xEditEngine, nullptr));
    m_xEditView->setEditViewCallbacks(this);
    m_xEditView->SetOutputArea(tools::Rectangle(Point(0, 0), aOutputSize));

    m_xEditView->SetBackgroundColor(aBgColor);
    m_xEditEngine->SetBackgroundColor(aBgColor);
    m_xEditEngine->InsertView(m_xEditView.get());

    pDrawingArea->set_cursor(PointerStyle::Text);

#if !ENABLE_WASM_STRIP_ACCESSIBILITY
    InitAccessible();
#endif
}

#if !ENABLE_WASM_STRIP_ACCESSIBILITY
void WeldEditView::InitAccessible()
{
    if (m_xAccessible.is())
        m_xAccessible->Init(GetEditEngine(), GetEditView());
}
#endif

int WeldEditView::GetSurroundingText(OUString& rSurrounding)
{
    EditView* pEditView = GetEditView();
    if (!pEditView)
        return -1;
    rSurrounding = pEditView->GetSurroundingText();
    return pEditView->GetSurroundingTextSelection().Min();
}

bool WeldEditView::DeleteSurroundingText(const Selection& rRange)
{
    EditView* pEditView = GetEditView();
    if (!pEditView)
        return false;
    return pEditView->DeleteSurroundingText(rRange);
}

void WeldEditView::GetFocus()
{
    EditView* pEditView = GetEditView();
    if (pEditView)
    {
        pEditView->ShowCursor(false);
        Invalidate(); // redraw with cursor
    }

    weld::CustomWidgetController::GetFocus();

#if !ENABLE_WASM_STRIP_ACCESSIBILITY
    if (m_xAccessible.is())
    {
        // Note: will implicitly send the AccessibleStateType::FOCUSED event
        ::accessibility::AccessibleTextHelper* pHelper = m_xAccessible->GetTextHelper();
        if (pHelper)
            pHelper->SetFocus();
    }
#endif
}

void WeldEditView::LoseFocus()
{
    weld::CustomWidgetController::LoseFocus();
    Invalidate(); // redraw without cursor

#if !ENABLE_WASM_STRIP_ACCESSIBILITY
    if (m_xAccessible.is())
    {
        // Note: will implicitly send the AccessibleStateType::FOCUSED event
        ::accessibility::AccessibleTextHelper* pHelper = m_xAccessible->GetTextHelper();
        if (pHelper)
            pHelper->SetFocus(false);
    }
#endif
}

bool WeldEditView::CanFocus() const { return true; }

css::uno::Reference<css::datatransfer::dnd::XDropTarget> WeldEditView::GetDropTarget()
{
    if (!m_xDropTarget)
        m_xDropTarget = weld::CustomWidgetController::GetDropTarget();
    return m_xDropTarget;
}

css::uno::Reference<css::datatransfer::clipboard::XClipboard> WeldEditView::GetClipboard() const
{
    return weld::CustomWidgetController::GetClipboard();
}

void WeldEditView::EditViewSelectionChange()
{
    Invalidate();

#if !ENABLE_WASM_STRIP_ACCESSIBILITY
    if (m_xAccessible.is())
    {
        ::accessibility::AccessibleTextHelper* pHelper = m_xAccessible->GetTextHelper();
        if (pHelper)
            pHelper->UpdateSelection();
    }
#endif
}

namespace
{
class WeldEditViewUIObject final : public DrawingAreaUIObject
{
private:
    WeldEditView* mpEditView;

public:
    WeldEditViewUIObject(const VclPtr<vcl::Window>& rDrawingArea)
        : DrawingAreaUIObject(rDrawingArea)
        , mpEditView(static_cast<WeldEditView*>(mpController))
    {
    }

    static std::unique_ptr<UIObject> create(vcl::Window* pWindow)
    {
        return std::unique_ptr<UIObject>(new WeldEditViewUIObject(pWindow));
    }

    virtual StringMap get_state() override
    {
        StringMap aMap = WindowUIObject::get_state();
        aMap[u"Text"_ustr] = mpEditView->GetText();
        return aMap;
    }

private:
    virtual OUString get_name() const override { return u"WeldEditViewUIObject"_ustr; }
};
}

FactoryFunction WeldEditView::GetUITestFactory() const { return WeldEditViewUIObject::create; }

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=95 H=94 G=94

¤ Dauer der Verarbeitung: 0.50 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723