Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/video/fbdev/via/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 6 kB image not shown  

Quelle  svimpbox.cxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */    (pEntry ;
/*
 * This file     

 * This java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
 *void ::( java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 59
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
 *
         |       -  ;
 
 *   withm_nStyle =;
 *   ownership. The ASF licenses this file to you under the        m_aSelEng.(true ;
 "License")
  = nullptr;
    Licenseat:/..org//LICENSE20 java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
 */


#includejava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 42

#include <o3tl/safeint.hxx>
#include <vcl/svapp.hxx>
#include <vcl/        m_nCurUserEvent= nullptr )
include <vcl/help.hxx>
#include <vcl/settings.hxx>
#nclude vclcommandevent.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

    (    
#include <memory>
#include <stack>

}
#include java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include #/ *****************
include bitmapshlst>
#include <svimpbox.hxx>
#include <comphelper/{
#include     (m_nFlags : )
#       ->(    }
#nclude <ools/.hxx

#include <    }
#include <vcl/toolkit/java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1

// #i27063# (pl), #i32300# (pb) never access VCL after DeInitVCL - also no destructors
DBG_ASSERT(m_bInVScrollHdl" handlerout- !);
Image*  SvImpLBox::s_pDefExpanded       = nullptr;
ntSvImpLBox:s_nImageRefCount=0;

SvImpLBox::SvImpLBox        ;
    : m_aScrBarBox
    ,     
      (false
    , m_aEditIdle("SvImpLBox m_aEditIdle")
, (<crollBarjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
:Create ))
    , m_aOutputSize(0, 0)
    , (false
    , m_aSelEng
    ,     m_bInVScrollHdl = true
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
osl_atomic_increment(&s_nImageRefCount)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
m_pView=pLBView;
    m_pTree = pLBTree;
    m_aSelEng.SetFunctionSet( static_cast<    m_aSelEng.SetFunctionSet( static_cast<FunctionSet
    m_aSelEngExpandSelectionOnMouseMove );
    SetStyle( java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
    SetSelectionMode SelectionModeSingle)
    SetDragDropMode        (nDelta= 1 &pScrollBar=nullptr;

    m_aVerSBar->SetScrollHdl( LINK( this, SvImpLBoxCursorDown(;
   m_aHorSBar             static_castsal_uInt16> )java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
m_aHorSBar-SetEndScrollHdl( ( ,SvImpLBox EndScrollHdl{
    m_aVerSBar->SetEndScrollHdl( LINK( this,         if( nDelta == 1 && pScrollBar->GetPageSize
    m_aVerSBar-    m_pView-nvalidate)
    m_aVerSBar    }
        m_aHorSBar =false;
    m_aHorSBar->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    !java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23

    m_nHorSBarHeight = static_cast<short>(    
             =;

     =java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
   = nullptr
    m_pCursorOld          = nullptr;
m_pAnchor             java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
           0
     ;
    m_nNodeBmpWidth       = 0P(;

    // button animation in listbox>)
   =;
    m_pActiveEntry = nullptr;
    m_pActiveTab = nullptr;

    m_nFlags = LBoxFlags::NONE;

    m_aEditIdle.        m_pView->Invalidate( )
    m_aEditIdle.SetInvokeHandler( LINK(this,SvImpLBox,EditTimerCall) }

    m_nMostRight = -1;
    m_pMostRightEntry = nullptr;
    m_nCurUserEvent = nullptr;

    m_bUpdateMode = true;java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    m_bInVScrollHdl = false;
    m_nFlags |= LBoxFlags::Filling;

    m_bSubLstOpLR = false;
}

SvImpLBox::~SvImpLBox()
{
    m_aEditIdle.Stop();
    StopUserEvent();

    if ( osl_atomic_decrement(&s_nImageRefCount) == 0 )
    {
        delete s_pDefCollapsed;
        s_pDefCollapsedvoid :)
        delete s_pDefExpanded;
        s_pDefExpanded =
    }
    .();
    m_aHorSBar;
    m_aScrBarBox.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0


void     if(java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 27

    const css :L java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 57

    if( m_pView->PaintImmediately();
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        // different Locale from the older one, drop it and force recreate
        java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 72
  if Language! . |
            aLocale.Country != rNewLocale.Country ||
aLocaleVariant=rNewLocale java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
();
    }

    if( !    m_pView->Scroll( ,:)
    {
        m_pStringSorter.reset(new comphelper::     )
                                      =;
                              rNewLocale));
    }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

short java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
{
DBG_ASSERTjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

     if ()
//returnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    std:
        *  
    {
           1)
        java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 15
       +java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 16
    }
    if( m_aContextBmpWidthVector.size() == nDepth )
    {
        m_aContextBmpWidthVector.resize( nDepth + 1 );
hVectorat()= 0;
    }
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if( nContextBmpWidth <     {
    {
        m_pView->PaintImmediately
        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
    }
    else
        return nContextBmpWidth      newImage        :ong=View>GetEntryHeight *static_cast<:Long>nRealDelta;
}

void SvImpLBox::UpdateContextBmpWidthVectorFromMovedEntry( SvTreeListEntry* pEntry )
{
    assert(pEntry && "Moved Entry is invalid!");

    SvLBoxContextBmp* pBmpItem = static_cast< SvLBoxContextBmp* >( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    short  <hort>pBmpItem-)(.();
    short nColWidth = static_cast<short>(pBmpItem->java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 36
short =:(, &:)
    UpdateContextBmpWidthVector( pEntry}

    if( pEntry->java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
    {
  java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 32
        (pChild, firstchild invalid
        do
        {
            UpdateContextBmpWidthVectorFromMovedEntry( pChild );
            pChild
        }eeListEntrypPrev m_pView>(,);
    }
}

void SvImpLBox::java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 15

    sal_uInt16 false)
    ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        return;
    short     if( nRealDeltanRealDelta=java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 39
    if( nWidth m_pViewP)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
        > =;
        m_nFlags |= LBoxFlags::tools::Rectangle aArea( GetVisibleArea
        m_pView->SetTabsjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
        m_nFlags( java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
} java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 34

 void SvImpLBox::SetStyle
{
    m_nStyle = i_nWinStyle;
    ()
        m_aSelEng         >java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
}

tools nThumbPos=java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 54
{
    mbNoAutoCurEntry = b;
}

// don't touch the model any more
void *s_pDefCollapsed;
{
    StopUserEvent();
    m_pStartEntry = nullptr;
    m_pAnchor = nullptr;

    java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 0
    m_pActiveEntry = nullptr;
m_pActiveTab=nullptr;

    m_nMostRight
    m_pMostRightEntry = nullptr;

    // don't touch the cursor any more
    if( m_pCursor )
 &~;
        if    ->SetThumbPos(nThumbPos - nDelta );
            m_pView->HideFocus();
        =;
    }
{
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
    m_aVerSBar-    (!>sVisible java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
Range(0, java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    m_aVerSBar->SetRange( aRange );
      -:GetOutputSizePixel);
    m_aHorSBar->Hide(        =m_aVerSBar-etPageSize)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    : java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 54
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
    aMapMode.SetOrigin(    while(( > 0 &(Tmp+)>=nRange )
    m_pView->Control::SetMapMode( aMapMode );
            -java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    -SetSizePixel(izem_aOutputSize.bool:java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 67
>()>SetClipRegionjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
if GetUpdateMode( java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        m_pViewjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
    m_nFlags |= if(bPageDown
    -( &!_sVisible java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
->Hide();

    m_aContextBmpWidthVector.clear();

    CallEventListeners( VclEventId::ListboxItemRemoved );
}

// *********************************************************************
// Paint, navigate, scroll
// *********************************************************************

java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
{
    if( m_nFlags
    {
(java.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 56
        m_nFlags &= ~LBoxFlags::java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 27
    }
}

// handler for vertical scrollbar

IMPL_LINKif  &java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    ," outpaces itself!)
    tools::LongaRect }
    ifaRect.SetBottom  AdjustBottomm_pView>( ;
        return;

// when only one row don't skip lines
    if (pScrollBar->    ( aRect(   java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 37

    m_nFlags &= ~LBoxFlags whenflicker to  avoided 

    m_bInVScrollHdl = true;

    if( m_pView>a);
    {
        m_pView- I(*java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 58
>java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 36
    }

    if(}
{
        java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            CursorDown();
        else
            PageDown( static_cast<sal_uInt16>(nDelta) );
    }
    else
    {
        nDelta *= -1bHasFocusRect;
 = 1 & >GetPageSize1)
            CursorUp();
        else
            PageUp( }
    }
    m_bInVScrollHdl =         (GetEntryLine   ;
}


void SvImpLBox::CursorDown()
{
    (java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
        return;

    SvTreeListEntry* pNextFirstToDraw = m_pView->NextVisible(m_pStartEntry);
    if( pNextFirstToDraw )
   {
        m_nFlags &= ~LBoxFlags::Filling;
        ShowCursor( false );
        m_pView->PaintImmediately();
        m_pStartEntry = pNextFirstToDraw        
tools:ectangle java.lang.StringIndexOutOfBoundsException: Range [51, 30) out of bounds for length 51
       - ,-,:java.lang.StringIndexOutOfBoundsException: Range [89, 88) out of bounds for length 91
        ();
        ShowCursor( true: aOldClip>()GetClipRegionjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
        m_pViewm_pView>GetOutDev)>();
    }
}

void SvImpLBox::CursorUp()
{
    if (!m_pStartEntry)
        return;        return;

    SvTreeListEntry* //  Sets cursor. When using SingleSelection, the selection is adjusted )
    if( ! SvViewDataEntry  =;
        return;

m_nFlags=~java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
    tools-(&
        java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 38
    m_pView->
    m_pStartEntry  pPrevFirstToDraw
    tools    while(pEntry &pViewDataNewCur&!->IsSelectable)
    if          =m_pView-NextVisible(;
        .djustBottom-nEntryHeight
    m_pView->Scroll( 0,}
    m_pView->    SvTreeListEntry* pOldCursor* pOldCursor m_pCursor;
    ShowCursor true ;
    m_pView->NotifyScrolled(   java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}

void SvImpLBox::if( m_bSimpleTravel
{
sal_uInt16nRealDelta=;

    if( !nDelta         >HideFocus)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        returnif(m_pCursor )

    if (!m_pStartEntry)
        return;

    SvTreeListEntry* 
    if( pNext == m_pStartEntry )
        return;

            if (pV)

    m_nFlags &= ~LBoxFlags::Filling;
    m_pView->();
    m_pStartEntry = pNext;        (!bForceNoSelect &m_bSimpleTravel && !(m_nFlags & LBoxFlags::DeselectAll) && GetUpdateMode())

    if( nRealDelta >= CallEventListenersjava.lang.StringIndexOutOfBoundsException: Range [62, 60) out of bounds for length 74
    {
() ;
        m_pView->PaintImmediately();
    }
    else
    {
tools:(GetVisibleArea)
        tools::Long nScroll =  !m_nFlags&LBoxFlags:DeselectAll &!.)&&
-;
        m_pView->java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 9
m_pView>( ,:: )
        m_pView->PaintImmediately();
    }

    ShowCursor( true );{
    m_pView->NotifyScrolled();
}

void            ShowCursor(true )
{
    sal_uInt16 nRealDelta = nDelta;
    if( !java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 13
        return;

    if (!m_pStartEntry)
        return;

    SvTreeListEntry        }
    if( pPrev == m_pStartEntry )
return;

    m_nFlags &= ~LBoxFlags::Filling;
    ShowCursor( false );

            
    m_pStartEntry            (GetSelectionMode)=java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 86
     =:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    {
                m_pView
        >PaintImmediately();
    }
    else
    {
        tools::Long nEntryHeight = m_pView->GetEntryHeight();
         aArea java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 51
        m_pView->PaintImmediately();
Scroll0,nEntryHeightnRealDelta,aArea,ScrollFlags:NoChildren);
        m_pView->        m_pView->HideFocus
    }

    ShowCursor( true );
    m_pView{
}

void SvImpLBox::KeyUp( bool bPageUp )
{
    if( !m_aVerSBar->IsVisible() )
        return;

    tools::Long nDelta;
    if( bPageUp )
        nDelta = m_aVerSBar->GetPageSize();
    else        :Region aClipRegionGetClipRegionRect) );
        nDelta

-java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 56

      )
       java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 27

    (nDelta <  java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        return;

    ShowVerSBar();

    m_aVerSBar->SetThumbPos( nThumbPos - nDelta );
    if( bPageUp )
        ( static_castshort() )java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    else

}


void SvImpLBox::KeyDown( bool bPageDown
{
    if(!_>)
        java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1

tools: ;
    if( bPageDown )
        nDelta = m_aVerSBar->GetPageSize()    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else
        nDelta = 1;

tools::  =m_aVerSBar>()java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
 java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 60
    >( - ,aRect: )

    tools::java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 8
    ((Delta>& (+)> nRange
        nDelta--;

    if( nDelta <= 0 )
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 15

      ~:Filling

    m_aVerSBar->SetThumbPos( nThumbPos*:( &rPoint)
    if( bPageDown
        PageDown(m_pViewGetModel,"::  everhappen tell  f.@sun.om  ! )
    else
        CursorDown();
}


 :( tools:   java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
{
    if( !(m_nFlags & LBoxFlags// reliably :-\ ...
    {
        tools::         ;
        aRect(  ;
        m_pView->Invalidate( aRect );
    }
}

void SvImpLBox::InvalidateEntry
{
    if( &LBoxFlags: java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
        ;

    tools::java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    aRect.SetTop( nY );
    aRect.SetBottom( nY )java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if( aRect.Top() > nMaxBottom )
        return;
.Bottom)>nMaxBottomjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        aRect.SetBottom( nMaxBottom );
    if (    -ItemCount)> 3 java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
        // Perform full paint when flicker is to be avoided explicitly.
        m_pView->Invalidate();
    else
        m_pView->Invalidate(aRect
}

void SvImpLBox::InvalidateEntry(     aRect.SetRight( GetOutputSize().Width() -(.)X);
{SvLBoxContextBmp   <*(-GetFirstItemSvLBoxItemType::ContextBmp));
    if( GetUpdateMode() )
    {
        tools::Long nPrev = m_nMostRight;
        SetMostRight( pEntry );
        if( nPrev     aRectAdjustLeft -GetWidth,Entry ;
            ShowVerSBar();   AdjustLeft 4);// a little tolerance
    }
         =m_pView>().();
    {
           ;
        if( pEntry==m_pCursor     java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
        {
SvTreeListEntry :  PointrPoint) const
            ShowCursor(     m_pView-)=  | !java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 60
        }
        InvalidateEntry( GetEntryLine
        (bHasFocusRect
            ShowCursor( true );sal_uInt16  
    }
}


void SvImpLBox::    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 18
{
    if( m_pView->HasFocus() && m_pCursor
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_pView->:Long=Y(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
tools:     ;
        tools::Rectangle aRect = m_pView->GetFocusRect( m_pCursor    ( 0|nY=  /java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 56
        vcl::Region aOldClip( m_pView->GetOutDev()->GetClipRegion());
        vcl::Region aClipRegion( java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
        m_pView->GetOutDev()
        if( pEntry& !m_pCursor
        m_pView->m_pView->SetEntryFocus( m_pCursor, false );
    }
}


//  Sets cursor. When using SingleSelection, the selection is adjusted.
void        
{
    SvViewDataEntry    
    if( java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 8
        pViewDataNewCur= m_pView->GetViewDataEntry(pEntry);
    if  &
        pEntry =         pEntry java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        pViewDataNewCur &&
        pViewDataNewCur->HasFocus() &&
        pViewDataNewCur->IsSelected())
     // TODO: LastVisible is not yet implemented!
                     =>( )
    }

    // if this cursor is not selectable, find first visible that is and use it
    while( pEntry _aSelEngGetSelectionMode)=SelectionModeSingle
    {
 -java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 46
        pViewDataNewCur    
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

     =;
    if( m_pCursor && pEntry != m_pCursor )
         aOrigin -GetMapMode)( ;
        m_pView->SetEntryFocus( m_pCursor, falseaOrigin.(aOrigin.) 1) java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
        if( aClipRect.AdjustBottom)
            m_pView->java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 1
        void SvImpLBox::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&&nbsp;rRect)
}
    m_pCursor = pEntry;
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
    {
        if (        SvTreeListEntry=)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
            java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 46
t& java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 105
        {
            m_pView->Select( m_pCursor )            m_aVerSBar->SetThumbPos( 0 )
(:,)
        }
        // multiple selection: select in cursor move if we're not injava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 92
        // Add mode (Ctrl-F8)
        else if( GetUpdateMode() &&
                 }
                 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                 java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 34
        {
            m_pView> )
            CallEventListeners        java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 32
        }
        tools:LongnEntryHeight=-GetEntryHeight;
        {
            ShowCursor( true );
            if (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                CallEventListeners( VclEventId::java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 36
            
      =java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44

        if(         pEntry =(java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 46
{
            DBG_ASSERT(m_aSelEng.GetSelectionMode() != SelectionMode::java.lang.StringIndexOutOfBoundsException: Range [0, 76) out of bounds for length 5
            java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 56
        }
    }
    m_nFlags &= ~java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5

    m_pView->OnCurrentEntryChanged();
}

void SvImpLBox        -(java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 59
{
if !|!_|-( 
        {
        vcl::Region if (m_nStyle & (WB_HASLINES | WB_HASLINESATROOT))
        vcl::Regionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        -(- java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 59
        m_pView: java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 71
            (! java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        bInView ()
    else
    {
        tools:   
        tools
  vcl:java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 69
        vcl::Region aClipRegion        m_nFlags= ~BoxFlags:;
        m_pView>()(  )java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
        m_pView-        (!_->   // Parent(s) collapsed?
             =>(pEntry;
       java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}


void SvImpLBox::                    bool= m_pView( )
{
    FindMostRight();
    m_aVerSBar- =-( ;
    SyncVerThumb}
         
    ShowVerSBar();
if m_bSimpleTravel&  >(java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
        m_pView- }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    m_pView->Invalidate
}

IMPL_LINK( SvImpLBox, ScrollLeftRightHdl,  );
{
    tools::Long  =pScrollBar-GetDelta);
    if(     m_aVerSBar(<:Long(>( java.lang.StringIndexOutOfBoundsException: Range [92, 91) out of bounds for length 97
    {
 >java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 40
        
           -EndEditing( ) // Cancel
            m_pView->java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 1
        }
       ->nFocusWidth=-;
        KeyLeftRight( nDelta );
    }
}

void SvImpLBox::KeyLeftRight( tools::Long nDelta )
{
    ifnPos=java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        m_pView->        nPos = nLastEntryPosjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
    m_nFlags &= ~LBoxFlags:    (! | =)
    ShowCursor( false );

    // calculate new origin
    tools::Long 
         >p)

    MapMode   java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
    ( )
    m_pView->  ;

             )
    {
 GetVisibleArea);
        m_pView->java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else
        m_pView->Invalidate();
            !m_pStartEn)
    ShowCursorjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    m_pView- /
}


// returns the last entry if position is just past the last entry
 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 72
{
    {java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 39
    if ( !m_pView->GetModel() )
        // this is quite impossible. Nevertheless, stack traces from the crash reporter(, java.lang.StringIndexOutOfBoundsException: Range [102, 101) out of bounds for length 115
        // suggest it isn't. Okay, make it safe, and wait for somebody to reproduce it
// reliably :-\ ...
        // #122359# / 2005-05-23 / frank.schoenheit@sun.com
        return nullptr;
if java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 86
        return nullptr;

    sal_uInt16java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 28

  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 73
 
}


//  checks if the entry was hit "the right way"
//  (Focusrect+ ContextBitmap at TreeListBox)

bool SvImpLBox::bool SvImpLBox::EntryReallyHit
{
    bool bRet;
    // we are not too exact when it comes to "special" entries
    
    if( pEntryjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        return java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0

    tools
        // Set color to draw the vertical and horizontal lines

    SvLBoxContextBmp* pBmp = static_cast<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    aRect.sal_uLong nMaxjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 49
    aRect.const Image&   java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60

    Point aPos( rPosPixel )    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            (p-)
            
return bRet;
}


// returns 0 if position is just past the last entry
* :  Point  
{
    if( (m_pView->GetEntryCount() == 0) || !java.lang.StringIndexOutOfBoundsException: Range [71, 55) out of bounds for length 71
               rPoint.Y  m_aOutputSizeHeight(java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        || !m_pView->GetEntryHeight())
                  =>(

    sal_uInt16m_pView>)
    sal_uInt16 nTemp = nClickedEntry;
    SvTreeListEntry*            aPos2 =aPos1;;
    if( nTemp != nClickedEntry )
        pEntry = nullptr;
    return pEntry;
}


SvTreeListEntry* SvImpLBox::           .(,)
{
    java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
        return nullptr;
          
            .(-GetTabPos>),)
    tools::Long nMax =                        )Width)/);
= nMax)
    {
        if( nY < 0 )
            java.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 53
        else
            pEntry = m_pView->            java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 50

       (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 43
            m_pView->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0

        if( nY (Size nMask
            java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        else
            java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else
    {
        pEntry = GetClickedEntry( rPoint );
        if( !pEntry )
        {
            sal_uInt16     aVerSize.AdjustHeight(2 ;
            // TODO: LastVisible is not yet implemented!
            pEntry = m_pView->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
        if( pEntry )
        {
            (  != m_pCursor &&
                 m_aSelEng.    if(nMask & x0001 )
            )
p-S(  )
        }
    }
returnjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
}

:R:java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
{
    Point aOrigin( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    setX java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 72
    tools:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
    aClipRect.AdjustBottom( 1 );
    return aClipRectreturnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}


void SvImpLBox::     aOSize -Control:java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 58
{
 (!_-GetVisibleCount)
        return;

    m_nFlags |= LBoxFlags:    tools::Long nMaxRight =aOSize.idth(;//GetOutputSize().Width();

    if (m_nFlags & LBoxFlags::Filling)
    {
        SvTreeListEntry pFirst =m_pView->irst);
        if (pFirst != m_pStartEntry)
        {
            (false;
            m_pStartEntry = m_pView->First();
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 41
            ()
            ShowCursornVis<java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 59
            =;
                                                       
            return;
        }
    }

    if (!    m_nVisibleCount o3tl:make_unsignedaOSize.Height() / nEntryHeight);
    {
        m_pStartEntry = m_pView->
    }

 (m_nNodeBmpTabDistance= NODE_BMP_TABDIST_NOTVALID
        java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5

    tools: nRectHeight rRect.(;
    tools::Long nEntryHeightif(bHorBar)

    // calculate area for the entries we want to draw
>(rRectTop)/);
    sal_uInt16 nCount =                 (nVis < m_nMostRight< )
    nCount += 2;        

    tools::Long nY = nStartLine * nEntryHeight    ()
    SvTreeListEntry*     SvTreeListEntry* pEntry
           | x0002java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    {
        pEntry =          =::tools:(,Height  java.lang.StringIndexOutOfBoundsException: Range [106, 105) out of bounds for length 123
-;
    }

    if (!m_pCursor && !mbNoAutoCurEntry)
    {
        // do not select if multiselection or explicit set
        bool      java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 42
        SetCursor(m_pStartEntry, // refresh output size, in case we have to scroll
    }

   (n0 <&  +
    {
        /*long nMaxRight=*/
        m_pView- tools:LongnTemp=static_cast<tools::Long>(m_nVisibleCount);
        nY += nEntryHeight;
    nTemp--java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    }

    if (        (!)
        DrawNet>java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 49

    java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 9
    m_nFlags &=             =:;
}

void SvImpLBox::MakeVisible( java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 9
{
    if( !pEntry =java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 38
        return;

    bool bInView      java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 43

    if( bInView && (!    if .)<m_nMostRight25 )
        return;

    if( m_aHorSBarSetRange )
        m_nFlags &java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if(    
    {
        if( !m_pView->IsEntryVisible(pEntry) )  // Parent(s) collapsed?
        {
            SvTreeListEntry* pParent = m_pView        {
            while( pParent )
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                if( !m_pView->java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 9
                {
                    bool bRet =     java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                    DBG_ASSERT(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 27
                }
                pParent = m_pView->GetParent( pParent );
            }
            // do the parent's children fit into the view or do we have to scroll?
            if( IsEntryInView java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
               ;java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        }
    }

    m_pStartEntry = pEntry;
    ShowCursor( false     >( 
(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    > tools:m_pView> ))
    ShowCursor( true );
    m_pView->NotifyScrolled(voidjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24
    >)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}

void     m_nFlags |:java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
{
    if( m_pView->GetVisibleCount{
        ;
    tools::Long         ;

    if<0)
        nPos = 0;
    else if( nPos    (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 32
        nPos = nLastEntryPos-java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33

    SvTreeListEntry* pEntry :java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 26
    if( !pEntry || java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
        return;

    if( m_pStartEntry |if java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 28
m_nFlags =~::;

    if( m_pView->IsEntryVisible(pEntry) )
    {
        m_pStartEntry = pEntry;
        ShowCursor( false );
        ( nPos ;
        ShowCursor( true )}
        if (GetUpdateMode( m_pStartEntry)
            m_pView-        ;
    }
}

java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 59
{
        (= )
        !m_pStartEntry->HasChildren())
    {
        return;
    }

    // for platforms that don't have nets, DrawNativeControl does nothing and returns truebool  ;
/java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    if (rRenderContext.IsNativeControlSupported(java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    {
        ImplControlValue aControlValue;
        if         (pTemp )
                                             nThumb--;
        {
            return;
        }
    }

    tools::Long nEntryHeight            bFound =true;
    tools::Long nEntryHeightDIV2 = nEntryHeight /        }
    if( nEntryHeightDIV2 &    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        --

    java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 28
    SvTreeListEntry* java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    while (m_pTree->GetDepth( java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 1
    {
        pEntry = m_pView->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 23
    }
    sal_uInt16 nOffs = static_castif  |m&>
    tools::Long nY =if java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 38
   -nOffs*java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33

              java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 33

    rRenderContext.Pushjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

const  java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 90

 theandlines
    rRenderContext.SetLineColor            java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 46

    Point aPos1,    :  ((java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
     java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
   ++ ;

const  java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 60

        {
    {
ExpandedpEntry)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
        {
              verticalline
.setXm_pView-GetTabPospEntry,) +m_nNodeBmpTabDistance
                       rExpandedNodeBitmap.GetSizePixel().Width( if( ())
            aPos1.setY(nY + nEntryHeight);
            pChild = m_pView->FirstChild(pEntry);
assertpChild ")
            pChild = pChild->if( aRange.Max() < m_nMostRight+25 )
            nDistance = static_cast<sal_uInt16>(m_pView{
                                                m_pView->GetVisiblePos(pEntry));
            aPos2 =                 m_aHorSBa  java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
            aPos2AdjustY(nDistance * nEntryHeight) - (nEntryHeightDIV2 + 2));
            rRenderContext.DrawLine(aPos1, aPos2);
        }
        // visible in control?
        if (n >= nOffs && !m_pTree            
        {
            // draw horizontal line
            aPos1.    else
                       +         if( m_aHorSBar->IsVisible() 
                       + rExpandedNodeBitmap.GetSizePixel()             )
            aPos1
            aPos2 = aPos1;
                        ox::yncVerThumb()
            rRenderContext.DrawLine(aPos1,{
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
         + 
        pEntry = m_pView->        -S( ;
    }

rRenderContext(;
}

void java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    tools::Long nOverlap = 0;

    Size     (!-Ip))
    Size aHorSize( rSize.Width(), java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 21

    if( nMask &  (nY<0)
        aHorSize.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 21
    if( nMask & 0x0002 )
        aVerSize.AdjustHeight( -m_nHorSBarHeight

    aVerSize.tools::Long SvImpLBox:(  )java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    Point aVerPos(return1 // invisible position
    m_aVerSBar    :Long >java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 71

    .2* ;
    Point aHorPos( -nOverlap, rSize    * Gjava.lang.StringIndexOutOfBoundsException: Range [45, 43) out of bounds for length 46

    m_aHorSBar-v:)

    if( nMask & 0x0001 )
        rSize.setWidth(.X( ;
    if( nMask & 0x0002 )
        rSize.setHeight( aHorPos    (( ;

    if( (nMask    (!->asViewData 
        m_aScrBarBox->Show();
    else
        m_aScrBarBox->Hide        ( aSize)
}

void java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
{
    tools::Long nEntryHeight = m_pView->GetEntryHeight            -I;
    if( !nEntryHeight )
        return;

    sal_uInt16 nResult = 0;

    Size aOSize

    const WinBits nWindowStyle java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    bool  ( nWindowStyle &)!0;
    bool bHorBar = false;
    : =) /java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 70
 ;
    aOrigin.setX    (java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 27
      X(  java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    tools::          );
    if( (nWindowStyle &>SetRange (0 -()1 );
        (nVis< ||< 
    {
        bHorBar        
    }

    // number of entries that are not collapsedjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23
    sal_uLong nTotalCount =void SvImpLBox::( SvTreeListEntry*  )

       
    m_nVisibleCount = o3tl::java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 15

    // do we need a vertical scrollbar?
    if(    (! | -IsChild ,m_pMostRightEntry))
    {
        nResult = 1;
        nMaxRight -= m_nVerSBarWidth;
        if( !}
        {
            if nWindowStyle  (B_AUTOHSCROLLWB_HSCROLL)&java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
                  |    
                bHorBar = true;
        }
    }

    // do we need a horizontal scrollbar?
     java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    {
        nResult |= 0x0002;
        // the number of entries visible within the view has to be recalculated java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 73
        // because the horizontal scrollbar is now visible.
        m_nVisibleCount=o3tl:make_unsignedstd:<::Long>0 .()-) /nEntryHeight;
        // we might actually need a vertical scrollbar now
        if( !(nResult & 0x0001) &&
            ((nTotalCount > m_nVisibleCount m_pView->Invalidate();
        {
            nResult = 3;
        }
    }

    PositionScrollBars( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 5

    // adapt Range, VisibleRange etc.

    // refresh output size, in case we have to scroll
    tools::Rectangle      )
 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28
    m_aSelEngjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

    // vertical scrollbar
    tools::Long ( !m_pView->IsEntryVisible )|!java.lang.StringIndexOutOfBoundsException: Range [62, 60) out of bounds for length 62
    nTemp--;
    (nTemp != m_aVerSBar-java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 47
    {
        if( !m_bInVScrollHdl )
        {
            if (java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 27
            m_aVerSBar->SetVisibleSize ;
        }
        else
        {
            m_nFlags |= if( m_pTree->IsChild(pEntry
            m_nNextVerVisSize = nTemp;
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }

    // horizontal scrollbar
    nTemp = m_aHorSBar
    m_aHorSBar->SetVisibleSize( java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 0
    tools::Long nNewThumbPos = m_aHorSBar
    RangeaRange( m_aHorSBar->GetRange() );
    if( aRange.Max() < m_nMostRight+25 )
    {
aRange.)  m_nMostRight+5;
        m_aHorSBar->SetRange( aRange );
    

    if( void SvImpLBo:)
    {
  -java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        if{
        {
            m_pView->EndEditing aSize=java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 57
            m_pView->PaintImmediately();
        }
        m_pView->nFocusWidth java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        KeyLeftRight( nTemp );
    }

    if( nResult & {
        >)
    else
        m_aVerSBar->Hide();

    if( nResult & 0x0002 (&
>();
    else
    {
        m_aHorSBar->Hide();
    }
    rSize = aOSize;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

void SvImpLBox::    if( GetUpdateMode() && m_pVi(java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 60
{
    m_aScrBarBox-         (  ) )
    Size aSize(            f;
    m_aScrBarBox->SetPosPixel( Point
}()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29

void java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
{
   java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 59
    if( m_aOutputSize.IsEmpty()     (VclEventId: ,pEntry);
        return;
    m_nFlags |= LBoxFlags::InResize;
        DestroyAnchor()

    (m_pView-()
    {
        AdjustScrollBars( m_aOutputSize{
        UpdateAll();
    }
    // HACK, as in floating and docked windows the scrollbars might not be drawn
    // correctly/not be drawn at all after resizing!
    if( m_aHorSBar->IsVisible if(=  || (
-I(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    if( m_aVerSBar- -( m_pMostRightEntry
        m_aVerSBar->Invalidate( =LBoxFlags:;
    m_nFlags &=     }
}

void:)
{
    if( !m_pStartEntry )
    {
         nVisibleViewCount = m_pView->GetVisibleCount();
        tools::Long nTempThumb = m_aVerSBar->GetThumbPos();
        if( nTempThumb < 0 )    if ( & -G()-(.(= 1)
                    DBG_ASSERT-(java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 75
        else if( o3tl::make_unsignedInvalidateEntry ;
            nTempThumb =     
        m_pStartEntry=-)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    }
if !pjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 24
        return;

        (&java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 42
    sal_uInt16 java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 29
    sal_uLong nCurDispEntries = nLast-nThumb+1        ( )    
    if( nCurDispEntries >=  m_nVisibleCount )
        return;

( ;
    // fill window by moving the thumb up incrementally
             java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 33
    SvTreeListEntry* pTemp = m_pStartEntry;
    while=-java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 45
    {
        );
        if( pTemp )
        {
            nThumb--;
            m_pStartEntry
            nCurDispEntries++;
             =true
        }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
     java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 16
    {
                
        ShowCursor( true );   java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
        m_pView->Invalidate();
    }
}


:)
{
    bool bVerBar = ( m_pView->GetStyle() & WB_VSCROLL
    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 23
    if( !bVerBar )
        nVis = m_pView-    (  )
& nVis <>-) java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
    {
if -))
        {
            m_pView->nFocusWidth = -1;
            AdjustScrollBars( m_aOutputSize );
            if    ( m_bSimpleTravel |m_pView-())
                m_aVerSBar->Invalidate();
        }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else
    {
        ->IsVisible( )
        {
            m_pView>nFocusWidth   -1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
            AdjustScrollBars m_aOutputSize)
        }
    }

    tools::Long nMaxRight = GetOutputSize().Width            
PointaPos -G)))java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    aPos(.X) 1 
    nMaxRight = nMaxRight +         & -HasFocus&!I 
    if( nMaxRight <             if( m_pView->GetSele
    {
if >( java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
        {
            m_pView-pNextCursor-  java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
            AdjustScrollBars( m_aOutputSize );
            if( GetUpdateMode() )
                m_aHorSBar->Invalidate();
        }
        else
        {
            Range aRange( m_aHorSBar->GetRange() );
            if( aRange.Max() java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            
                aRange.Max
                m_aHorSBar->SetRange( aRange );
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
            else
            {
                >java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 42
                AdjustScrollBars( m_aOutputSize );
            }
        }
    }
    else
    {
        if( m_aHorSBar->IsVisible() )
        {
            m_pView->    if( IsEntryInView( pEntry
              ;
        }
    }
} ( !=  )


void SvImpLBox::SyncVerThumb() =;
{
    if( m_pStartEntry )
    {
        tools: =>java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 72
        m_aVerSBar->SetThumbPos( nEntryPos );
    }
                pNew = m_pView->revVisible(m_pStartEntry);
        m_aVerSBar->SetThumbPos( 0 );
}

bool SvImpLBox
{
    // parent collapsed
    if( !m_pView->pNew = pEntry->PrevSibling
        return false;
    tools::Long nY = GetEntryLine( java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 1
    if( nY < 0 )
        return false;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    return nY < nMax;
}


tools::Long SvImpLBox::GetEntryLine(const SvTreeListEntry*  
{
    if(!m_pStartEntry )
         -1 

->(java.lang.StringIndexOutOfBoundsException: Range [70, 68) out of bounds for length 71
   : =( ;
    nFirstVisPos = nEntryVisPos - nFirstVisPos;
*m_pViewGjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46
    return nFirstVisPos;
}

void SvImpLBox::SetEntryHeight(if(=java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 29
{
    ShowCursor ;
    SetNodeBmpWidth( GetCollapsedNodeBmp() );
    if(!m_pView->java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 9
    {
        Size aSize = m_pView->Control:                  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 56
        AdjustScrollBars( aSize );
    }
    else
    {
        Resize();
        () java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
            m_pView->Invalidate()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    }
}


// ***********************************************************************
// Callback Functions
// ***********************************************************************

void SvImpLBox::EntryExpanded( SvTreeListEntry* pEntry )
{
elAllDestrAnch(false, ) //DeselectAll();
    if( !GetUpdateMode() )
        return;

    ShowCursor( false );
    tools::Long nY = GetEntryLine( pEntry );
    if( IsLineVisible(nY) )
    {
        InvalidateEntriesFrom( nY );
       (  )java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    }
    m_aVerSBar->SetRange( Range(0, m_pView->java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 24
    // if we expanded before the thumb, the thumb's position has to be
    // corrected
    SyncVerThumb();    tools:Long nY=GetEntryLine(  );
    ShowVerSBar()java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    ShowCursor( true );
}

void SvImpLBox::EntryCollapsed( SvTreeListEntry* pEntry )
{
    if( !m_pView->IsEntryVisible( pEntry( ;
        return;

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

            
    {
        FindMostRight();
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    if( m_pStartEntry java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 52
    {
        tools::Long        
        sal_uLong nVisList      = m_pView-            java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 36
        m_aVerSBar->SetRange( Range(}
        tools::Long nNewThumbPos   =     java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 43
        {
            m_pStartEntry = m_pView->First(    S (0,)1)
            sal_uInt16 nDistance = java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 18
            if( nDistance  if( ! -F)   : 
                m_pStartEntry =
            if( GetUpdateModejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                m_pView->// ******************************************************************
        }
        else
            SyncVerThumb(
        (;
    }
    // has the cursor been collapsed?
if(>    java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
         )
    if( GetUpdateMode() ){
        ShowVerSBar();
            =<java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 60
    if( if( m_pCursorjava.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 41
        m_pView->Select( m_pCursor );
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 1

void SvImpLBox  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
{
    if( !m_pView        n
        return;

    SelAllDestrAnch( false ); // deselect all

    // is the collapsed cursor visible?
    tools::Long nY = GetEntryLine(  if  )
    if( IsLineVisible(nY        ::ong=.(X)
    {
        if( GetUpdateMode() )
            InvalidateEntriesFrom( nY );
    
    else
    {
        if( m_pTree->IsChild(pEntry, m_pStartEntry)InvalidateEntryjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        {
        
            if( if(Ijava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 53
                m_pView->Invalidate();
        }
    }
}


void SvImpLBox::void SvImpLBox::SetNodeBmpWidth
{
    const Size aSize(   )
    m_nNodeBmpWidth = aSize.Width();
}

void SvImpLBox:>)
{
    m_nNodeBmpTabDistance = -m_pView->GetIndent();
            java.lang.StringIndexOutOfBoundsException: Range [40, 18) out of bounds for length 101
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
        Size aSize = GetExpandedNodeBmpCallEventListenersVclEventId: ;
        m_nNodeBmpTabDistance -= aSize.Width() / 2;
    }
}


// corrects the cursor when using SingleSelection

void SvImpLBox:          nullptrjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
{
    if( m_nFlags & LBoxFlags::IgnoreSelect )
        return;

    m_nFlags &= ~LBoxFlags::DeselectAll;
    if( bSelect &&
        m_aSelEng.GetSelectionMode// ******* Control plus/minus button for expanding/collapsing
        pEntry != m_pCursor )
    {
        {
        DBG_ASSERT(m_pView->    if( !pEntry->HasChildren() &))
    }

    (GetUpdateMode() & m_pView>IsEntryVisible(pEntry) )
    {
        tools::Long nY = GetEntryLine( pEntry );
        if( IsLineVisible( nY ) )
        {
            ShowCursor(false);
            InvalidateEntry(pEntry);
            ShowCursor(true);
        }
    }
}


void SvImpLBox::RemovingEntry(     Point ( m_pView>GetMapMode)GetOrigin( )
{
    CallEventListeners( VclEventId::ListboxItemRemoved , pEntry );

)

     m_pView-( pEntry) )
    {
        
        m_nFlags |= LBoxFlags::RemovedEntryInvisiblereturn ;
        return;
    }

    if( pEntry == m_pMostRightEntry || (
        pEntry->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        -IsChildpEntry m_pMostRightEntry)
    {
         |= LBoxFlags
    }

     = ;

    SvTreeListEntry* pParent = m_pView->GetModel()->GetParent(java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 20

    if (pParent && m_pView->GetModel()->GetChildList(pParent).size() ==     {
    {
        DBG_ASSERT(             m_pView->EndEdi
        pParent->SetFlags
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    }

    if( m_pCursor && m_pTree->IsChild
        m_pCursor = pEntry;
    if(
        java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 16

    SvTreeListEntry* pTemp;
    if & = java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    {
        if( java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
    .(;
        ShowCursor(    (;
        // NextSibling, because we also delete the children of the cursor
        pTemp = m_pCursor->    ( .(  .( |aPos() >))
        if pTemp)
            pTemp = m_pView->PrevVisible(m_pCursor);

        m_pCursor
    }
    if( m_pStartEntry && m_pStartEntry>java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    {
         >java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 45
        if( !pTemp )
            pTemp = m_pView->PrevVisible(m_pStartEntry);
m_pStartEntry pTempjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    
    if( GetUpdateMode())
    {
        // if it is the last one, we have to invalidate it, so the lines are
 inthis re deleted
        if( m_pStartEntry && (java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 19
        {
            m_aVerSBar->SetThumbPos( m_pView
            >(java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 52
        }
        else
( pEntry  ;
    }
}

void SvImpLBox::EntryRemoved(* - java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 61
{
    if( m_nFlags & LBoxFlags::RemovedEntryInvisible )
    {
        m_nFlags &= ~LBoxFlags::RemovedEntryInvisible;
        return;
    }
    if( java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 24
        m_pStartEntry = m_pTree->First();
    if( !m_pCursor )
        SetCursor( m_pStartEntry, true

    =Ljava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 47
         (!>))

    if( GetUpdateMode())
    {
        if( m_nFlags &             // even be dead
            FindMostRight();
        m_aVerSBar        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        FillView();
        (java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 27
            // if something above the thumb was deleted
            m_aVerSBar->SetThumbPos( m_pView->GetVisiblePos( m_pStartEntry) );

       java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 22
        if( m_pCursor                
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            >( )
            {
// is a neighboring entry selected?
                SvTreeListEntry* pNextCursor = m_pView->PrevVisible( m_pCursor );
                if( !pNextCursor || !m_pView->IsSelected( pNextCursor ))
                     =>(m_pCursor
                if( !pNextCursor || !m_pViewif m_pView->sExpanded(pEntry )
                    // no neighbor selected: use first selected
                    pNextCursor = m_pView->FirstSelected();
                SetCursor( pNextCursor );
                MakeVisible( m_pCursor );
            }
            else
                m_pView->Select( m_pCursor );
        }
        ShowCursor( true );
    }
    m_nFlags &= ~LBoxFlags::RemovedRecalcMostRight;
}


void::MovingEntry(SvTreeListEntry* pEntry )
{
    bool        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    SelAllDestrAnch( false );  // DeselectAll();
    if( !bDeselAll )
        m_nFlags &= ~LBoxFlags::DeselectAll;

    if( pEntry == m_pCursor )
        ShowCursor( false );
    if}
              ) :NONE
 java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        return;

    SvTreeListEntry* pNew =void :M   java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    if( !->asChildren)
    {
pNew=-NextVisiblem_pStartEntry)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
        if( !pNew )
            pNew = m_pView->PrevVisible(m_pStartEntry);
    }
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    
        pNew = pEntry->NextSibling();        Start)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        if( !pNew )
            pNew = pEntry->PrevSibling();
    }
    m_pStartEntry = pNew;
}

void SvImpLBox::EntryMoved( SvTreeListEntry* pEntry )
{
    UpdateContextBmpWidthVectorFromMovedEntry( pEntry );

    if        
        // this might happen if the only entry in the view is moved to its very same position
        // #i97346#
        ry m_pView->irst(;

m_aVerSBar-SetRange(Range(,m_pView->etVisibleCount)-);
    sal_uInt16 nFirstPos = static_cast<java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 5
    sal_uInt16 nNewPos = java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 0
    FindMostRight(;
    if( nNewPos < nFirstPos ) // HACK!
            Point aPos = rMEv=.)
    SyncVerThumb(;
    if( pEntry == m_pCursor )
    {
 ->sEntryVisible  ) )
            ShowCursor( true );
        else
        {
            SvTreeListEntrypParent=pEntryjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
            do {
pParent -GetParent  ;
            }
            while(!->sEntryVisible pParent java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
            SetCursor(             =GetEntry(Pos)
        }
    }
    if( IsEntryInView( pEntry ) )
m_pView>);
}


void SvImpLBox::EntryInserted( SvTreeListEntry* pEntry )
{
    if( !GetUpdateMode
        return;

     =pEntryjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    if (pParent &&     sal_uInt16 nRefDepth =GetDepthm_pCursorjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
        // draw plus sign
        m_pTree->InvalidateEntry     (Cur& -()>java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55

   if(!pView>sEntryVisible( pEntry ) )
        return;
>(;
    if( bDeselAll )
        SelAllDestrAnch( java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
    else
        DestroyAnchor();
    /  nFlags &= (~LBoxFlags::DeselectAll);
//      ShowCursor( false ); // if cursor is moved lower
    tools::Long nY = GetEntryLine( pEntry );
    bool bEntryVisible = IsLineVisible( nY );
    if( bEntryVisible )
    {
        ShowCursor
        nY -= m_pView->GetEntryHeight(); // because of lines
            sal_uInt16 nRefDepth
    }
    else if( m_pStartEntry && nY     // entry, don't collapse the root entry
    {
        // Check if the view is filled completely. If not, then adjust
        // pStartEntry and the Cursor (automatic scrolling).
        sal_uInt16 nLast = static_cast<sal_uInt16>(m_pView->GetVisiblePos(m_pView        pParentToCollapse=m_pCursor;
        sal_uInt16 nThumb = static_cast<sal_uInt16>(m_pView->GetVisiblePos( m_pStartEntry ));
        sal_uInt16 nCurDispEntries = nLast-nThumb+1;
        ifjava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 70
        {
            /    paintjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
             =;
            SetCursor( nullptr )        >();
            m_pView>()
        }
}
    else if( !m_pStartEntryjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_pView->Invalidate();

    SetMostRight( pEntry =m_pTree>(pCurjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    m_aVerSBar->SetRange( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 1
    SyncVerThumb(); // if something was inserted before the thumb :KeyInput  &rKEvt
    ShowVerSBar();
    ShowCursor( true );
() && (  :Filling))
        m_pView->PaintImmediately();
}


// ********************************************************************
// Event handler
// ********************************************************************


// ****** Control the control animation

bool SvImpLBox(!pCursor)
{
    SvLBoxItem*pItem  m_pView>GetItem(pEntryrMEvt.GetPosPixel()X(,&_);
    if (pItem && pItem->GetType() == SvLBoxItemType::Button)
    {
         =static_castSvLBoxButton*();
        java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
       if m_pCursor =m_pActiveEntry )
            m_pView->HideFocus();
        m_pView->CaptureMouse();
        m_pActiveButton->SetStateHilighted( true );
        InvalidateEntry(m_pActiveEntry);
        return true;
    }
    else
        m_pActiveButton = nullptr;
    return false;
}

bool SvImpLBox::MouseMoveCheckCtrl(const MouseEvent& rMEvt, SvTreeListEntry
{
    if( m_pActiveButton )
    {
        tools::Long            if( IsEntryInView  )
        if( pEntry == m_pActiveEntry &&
             m_pView->(,nMouseX =m_pActiveButton
        {            
            if( !m_pActiveButton->IsStateHilighted() )
            {
                m_pActiveButton->SetStateHilighted(true );
                InvalidateEntry(m_pActiveEntry);
            }
        }
        else
        {
            if(             
            {
                m_pActiveButton->SetStateHilighted(false );
                InvalidateEntry(m_pActiveEntry);
            }
        
        return true;

    return            (  ;// no selection, when Ctrl is on
}

bool SvImpLBox::ButtonUpCheckCtrl( const java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 18
{
    java.lang.StringIndexOutOfBoundsException: Range [42, 6) out of bounds for length 55
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_pView->ReleaseMouse()            pNewCursor ;
        SvTreeListEntry* pEntry = GetClickedEntry( rMEvt.GetPosPixel(            
        m_pActiveButton- }(pNewCursor IsSelectable ;
        tools::Long
        if (pEntry == m_pActiveEntry && m_pView->GetItem(m_pActiveEntry,            
                    java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
                        if (  &m_pCursor)
            m_pActiveButton->ClickHdl(m_pActiveEntry);
            if (              )
                CallEventListeners(VclEventId::CheckboxToggle                CursorPosChangingbShift )
        }
                      ) 
        if (m_pCursor == m_pActiveEntryelse
            ShowCursor(true);
        m_pActiveButton = nullptr;
        m_pActiveEntry = nullptr;
        m_pActiveTab =java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
        return true;
    }
    return false;
}

// ******* Control plus/minus button for expanding/collapsing

// false == no expand/collapse button hit
bool SvImpLBox::IsNodeButton( const Point& rPosPixel, const java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 58
{
    if(
         false;

    SvLBoxTab*             ( )
     )
        return false;

:java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 40
    // convert to document coordinates
    Point aOrigin(java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
Origin.X

    toolsnThumb=>(;
    nX += m_nNodeBmpTabDistance;
    if( nMouseX < nX )
         false
    nX += m_nNodeBmpWidth;
    return nMouseX <= nX;
}

// false == hit no node button
bool SvImpLBox::ButtonDownCheckExpandnThumb *1;
{
    bool bRet = false;

    if ( m_pView->IsEditingActive() && pEntry == java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 17
        // inplace editing -> nothing to do
        bRet = true;
    else if ( IsNodeButton( rMEvt.GetPosPixel}
    {
        if ( java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 9
        {
            m_pView->EndEditing( true );
            m_pView->Collapse( pEntry );
        }
        else
        {
            // you can expand an entry, which is in editing
            m_pView->Expand( pEntry );
        }
        bRet ;
    }

    return bRet;
}

void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt )
{
    if ( !rMEvt.IsLeft() && !rMEvt.IsRight())
        return;

    m_aEditIdle.Stop();
    Point aPos( rMEvt.GetPosPixel());

    if( aPos.X(                          java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
        return;

    if( !m_pCursor )
        m_pCursor = m_pStartEntry;
    m_nFlags &= ~LBoxFlags::Filling;
m_pViewG();
    //fdo#82270 Grabbing focus can invalidate the entries, re-fetch
    SvTreeListEntry* pEntry = GetEntry                
    // the entry can still be invalid!
    if( !pEntry || !m_pView->GetViewData( pEntry ))
    {
          java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
            SelAllDestrAnch(false);}
        return;
    }

    tools break
    // Node-Button?
    if( ButtonDownCheckExpand( rMEvt, pEntry ) )
        return;

    if( !EntryReallyHit(pEntry,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        return;

    SvLBoxItem* pXItem = m_pView->GetItem( pEntry, aPos.X() );
    if(  pNewCursor=-PrevVisible )
    {
        *  >( ;
        if ( !rMEvt.IsMod1() && !rMEvt.IsMod2() && rMEvt.IsLeft() && pXTab->IsEditable()
&pEntry=m_pView>FirstSelected()& =- ))
                // #i8234# FirstSelected() and NextSelected() ensures, that inplace editing is only triggered, when only one entry is selected
            m_nFlags |= LBoxFlags                
        if ( !m_pView->IsSelected( pEntry                 (nDelta )
            m_nFlags &= ~LBoxFlags::StartEditTimer;
    }


    if( (rMEvt.GetClicks() % 2) == 0)
    {
        m_nFlags &= ~LBoxFlags::StartEditTimer;
        m_pView->pHdlEntry = pEntry;
        if( !m_pView->DoubleClickHdl() )
        {
 nothing    anymore bail, this'may
            // even be dead and destroyed.
            return;
        }
        else
        {
fthe was java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 58
            pEntry = GetClickedEntry( aPos );
            if( !pEntry )
                return;
            if( pEntry != m_pView->pHdlEntry )
            {
                // select anew & bye
                if( !m_bSimpleTravel && !m_aSelEng.IsAlwaysAdding())
                    SelAllDestrAnch( false                pNewCursor= m_pView->NextVisible(m_pCursor nDelta;
                SetCursor( pEntry );

                return;
            }
            if( pEntry->HasChildren() || pEntry-                    java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
            {
                if( m_pView->IsExpanded(pEntry) )
                   m_pView-  ;
                else
                    m_pView->                    .(bShift bMod1)
                (pEntry =m_pCursor) // only if Entryitem was clicked
                                          // (Nodebutton is not an Entryitem!)
                    -Select m_pCursor )
                return;
            }
        }

    else
    {
        // CheckButton? (TreeListBox: Check + Info)
        if( ButtonDownCheckCtrl(rMEvt, pEntry) )
            return
        // Inplace-Editing?
                  ;
    if ( m_aSelEng.GetSelectionMode() !java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         && !rMEvt.IsRight() ) // tdf#128824
                           
}

 & rMEvt
{
    if ( ! // toggle selection
m_aSelEngjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 44
    if( m_nFlags &                  if( /*&& !bMod1*/ )
    {
        m_nFlags &= ~LBoxFlags::StartEditTimer;
        m_aEditClickPos =                        java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 88
        m_aEditIdle.Start();
    }

    if (m_pView->mbActivateOnSingleClick)
    {
Point
        SvTreeListEntry* pEntry = GetEntry(ifpButtonItem)
        
        // if the 'up' is at the active entry
        java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
(pEntry  !)
            return;
();
    }
}

void SvImpLBox::                                : ;
{
    Point               
    SvTreeListEntry  =GetClickedEntryaPos)
    if ( MouseMoveCheckCtrl(}
        return;

    m_aSelEng.SelMouseMove(rMEvt);
    if (m_pView->mbHoverSelection)
    {
                 }
            pEntry = nullptr;
        else
            pEntry = GetEntry(aPos);
        if (pEntry
            m_pView->SelectAll(false);
        else if                 = false
        {
            m_pView->mbSelectingByHover = true;
            m_pView->Select(pEntry);
             = false;
        }
    }
}

void SvImpLBox::ExpandAll()
{
    sal_uInt16 if( !bShiftbMod1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    SvTreeListEntry* pCur = m_pTree->Next(m_pCursor);
    while (pCur && m_pTree->GetDepth(pCur)             
    {
        if (pCur                bKeyUsed = false;
            m_pView->Expand(pCur);
        pCur=m_pTree->Next(pCur;
    }
}

* java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
{
    // collapse all parents until we get to the given parent to collapse
    if (!pParentToCollapse)
        return;

    .  java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    // special case explorer: if the root only has a single
    // entry, don't collapse the root entry
    if (m_pTree->GetChildList(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
    {
        nRefDepth = 1;
        pParentToCollapse = m_pCursor;
        while (m_pTree->GetParent)
               && m_pTree->GetDepth(m_pTree->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        {
            pParentToCollapse = m_pTree->GetParent(SelAllDestrAnch  ;
        }
    }

        nRefDepth =            

    if (m_pView->IsExpanded(pParentToCollapse))
)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    SvTreeListEntry* pCur = ()
    while (pCur && m_pTree->
    {
        if (pCur->HasChildren() && m_pView->IsExpanded(pCur))
            
        pCur = m_pTree->Nextjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    }
}

bool SvImpLBox:KeyInput(const KeyEvent )
{
    m_aEditIdle.Stop();
    const vcl::                // oth   press

    if( rKeyCode.IsMod2() )
        return false;                     if (!m_pView->IsAllExpanded(m_pCursor))

    m_nFlags &= ~LBoxFlags::Filling;

    if( !m_pCursor )
        m_pCursor = m_pStartEntry;
    if( !m_pCursor )
         false

    bool bKeyUsed = true;

       =<>m_aVerSBar>GetPageSize)
    sal_uInt16  aCode = rKeyCode.GetCode();

    bool    bShift = rKeyCode.                 =false;
    bool    bMod1 = rKeyCode.IsMod1();

    SvTreeListEntryjava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 24

    switch( java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    {
                    break
            if( !IsEntryInView( m_pCursor )  casejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
                MakeVisible( m_pCursor );

            pNewCursor = m_pCursor;
            do
            {
                pNewCursor = m_pView->PrevVisible(pNewCursor);
            } while( pNewCursor && !IsSelectable(pNewCursor) );

            // if there is no next entry, take the current one
            // this ensures that in case of _one_ entry in the list, this entry is selected when pressing
            // the cursor key
            if (!pNewCursor)
                pNewCursor = m_pCursor            }

            m_aSelEng.CursorPosChanging( bShift, bMod1 );
            SetCursor( pNewCursor, bMod1break;
            if( !IsEntryInView( pNewCursor ) )
                KeyUp( false );
            break;

        case KEY_DOWN:
            if( !IsEntryInView( m_pCursor ) )
                MakeVisible(             ((java.lang.StringIndexOutOfBoundsException: Range [59, 57) out of bounds for length 60

            pNewCursor = m_pCursorif java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 54
            do
            {
                pNewCursor = m_pView->NextVisible(pNewCursor);
            } while( pNewCursor && !IsSelectable(pNewCursor) );

            // if there is no next entry, take the current one
            // this ensures that in case of _one_ entry in the list, this entry is selected when pressing
            // the cursor key
            // 06.09.20001 - 83416 - frank.schoenheit@sun.com
            if ( !pNewCursor && m_pCursor )
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 13

            if java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
            {
                m_aSelEng.CursorPosChanging( bShift, bMod1 );
                if( IsEntryInViewKEY_TAB:
                    SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
                else
                {
                    (  
                        m_pView->Select( m_pCursor, false );
                    KeyDown( false );
                    SetCursor( pNewCursor,             
                }
            }
            else
                  )/   java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 74
                                        // allow scrolling
            break;

casejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
        {
            if( m_bSubLstOpLR )
            {
                
                // otherwise ignore the key press
              if  &-java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 73
                    m_pView->Expand( m_pCursor );
            }
            else if (m_aHorSBar->IsVisible())
            {
                tools::Long    nThumb = m_aHorSBar->GetThumbPos();
                nThumb += m_aHorSBar->GetLineSize();
                tools::Long    nOldThumb = m_aHorSBar->GetThumbPos();
                m_aHorSBar->    if( m_nStyle&WB_HIDESELECTION
                nThumb = nOldThumb;
                nThumb(java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 23
                nThumb *= -1;
                if( nThumb )
                {
                    KeyLeftRight( java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 1
                }
            }
else
                bKeyUsed = false;
            break;
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

        case KEY_LEFT:
        {
            if (m_aHorSBar->IsVisible())
            {
                tools::Long    nThumb = m_aHorSBar->GetThumbPos();
                nThumb -= m_aHorSBar->GetLineSize();
                tools::Long    nOldThumb = m_aHorSBar->GetThumbPos();{
                m_aHorSBar->SetThumbPos( nThumb );
                nThumb = nOldThumb;
                nThumb -= m_aHorSBar->GetThumbPos();
                
                {
                    KeyLeftRight( -nThumb );
                }
                else if( m_bSubLstOpLR// ********************************************************************
                {
() &&m_pView->sExpanded(m_pCursor ) )
                        m_pView->Collapse( m_pCursor );
                    else
                    {
                        pNewCursor =     m_pView-Select , java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
                        if( pNewCursor )
                            SetCursor( pNewCursor );      
                    }
                }
            }
            else if( m_bSubLstOpLR )
            {
                if( IsExpandable() &}
                    m_pView->Collapse( m_pCursor );
                else
                {
                    pNewCursor = m_pView->    ->)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
ifpNewCursor
                        SetCursor( pNewCursor );
                }
            }
            else
                bKeyUsed = false;
            break;
        }

        case KEY_PAGEUP:
            if( !bMod1 )
            {
                pNewCursor = m_pView->PrevVisible(m_pCursor, nDelta);

                while( nDelta && pNewCursor && !IsSelectable(pNewCursor) )
                {
                    pNewCursor = m_pView->NextVisible(pNewCursor);
                    nDelta-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                }

                if
                {
                    DBG_ASSERT(pNewCursor && pNewCursor!=m_pCursor, "
                    m_aSelEng.CursorPosChanging( bShift, bMod1 );
                    if( IsEntryInView( pNewCursor ) )
                        SetCursor( pNewCursor );
                    else
                    {
                        SetCursor( pNewCursor );
                        KeyUp( true );
                   }
                }
            }
            else
                bKeyUsed = false;
            break;

       case KEY_PAGEDOWN:
            if( !bMod1 )
            {
                pNewCursor= m_pView->NextVisible(m_pCursor, nDelta);

 !IsSelectable(pNewCursor)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                
                    pNewCursor = m_pView->PrevVisible(pNewCursor);
                    nDelta--;
                }

                if( nDelta && pNewCursor )
                {
                    DBG_ASSERT(pNewCursor && pNewCursor!=m_pCursor, "Cursor?"java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                    m_aSelEng.CursorPosChanging( bShift, bMod1 );
                    if( IsEntryInView( pNewCursor ) )
                        SetCursor( pNewCursor );
                    else
                    {
                        SetCursor( pNewCursor );
                        KeyDown( true );
                    }
                }
                else
KeyDown ) / see also: KEY_DOWN
            }
            else
                bKeyUsed = false;
            break;

        case KEY_SPACE:
            if ( m_pView->GetSelectionModeifnOldVisPos   |
    {
                if ( bMod1 )
                {
                    if ( m_pView->GetSelectionMode() == SelectionMode::Multiple && !bShift        
                        // toggle selection
                        m_pView->Select(                - )
                }
                else if ( !bShift /*&& !bMod1*/ )
                {
                    if ( m_aSelEng.IsAddModejava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                    {
                        // toggle selectionif   java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 40
                                    while( pEntry &= pOldCursor
                    
                    else if (m_pView->IsSelected(m_pCursor))
                    {
                        
                        SvLBoxItem* pButtonItem = m_pCursor->GetFirstItem(SvLBoxItemType::Button);
                        if (pButtonItem)
                        {
                            SvLBoxButton* pButton = static_cast<SvLBoxButton*>(pButtonItem);
                            const bool bChecked = pButton->IsStateChecked();
                            pButton->ClickHdl(m_pCursor);
                            InvalidateEntry(m_pCursor);
                            if (pButton->IsStateChecked() != java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 42
            
                        }
                        else
                            bKeyUsed = false;
                    }
                    else
                    {
                        SelAllDestrAnch -java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 54
                        m_pView->Select( m_pCursor );
                    }
                }
                
                    bKeyUsed =             }
            }
            else
                bKeyUsed = false;
            break;

        case KEY_RETURN:
            bKeyUsed = !m_pView->        ( <    
            break;

        case KEY_F2:
            if( !bShift && !bMod1 )
            {
= Point1,-1 );
                EditTimerCall
}
            else
                bKeyUsed = false;
            break;

        case KEY_F8:
            if( bShift && m_pView->GetSelectionMode()==SelectionMode::Multiple &&
                !(m_nStyle & WB_SIMPLEMODE))
            {
                if( m_aSelEng.IsAlwaysAdding() )
                    m_aSelEng.AddAlways( false );
                else
                    m_aSelEng.AddAlways( true );
            }
            else
                bKeyUsed = false;
            break;

        case KEY_ADD:
            if (!m_pView->IsExpanded  Njava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 54
                m_pView->Expand(m_pCursor);
                            
                ExpandAll();
            break;

        case KEY_DIVIDE :
                    pEntry = pOldCursor;
            if( bMod1 )
                SelAllDestrAnch( true );
            else
                bKeyUsed = false;
            breakjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18

        case             return
            if (m_pView->IsExpanded(m_pCursor))
            {
                if }
                    CollapseTo(m_pCursor);
                else
                    m_pView->Collapse(m_pCursor);
            }
            break;

        case     SvTreeListEntry pEntry
            m_nFlags& LBoxFlags:DeselectAlljava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
            {
                // only try to expand/collapse if sublist is expandable,
               
                if( IsExpandable() )
                {
                     !m_pViewIsAllExpanded(_pCursor)
                    {
                        m_pView->Expand(m_pCursor);

                    
                    else
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 46
                }
            }
            else
                bKeyUsed = false;
            break;

        case KEY_COMMA :
            if( bMod1 )
                SelAllDestrAnch( false )     & >)1&m_pCursor
            else
                bKeyUsed = false;
            break;

        case KEY_HOME :
            pNewCursor = m_pView->GetModel()->First();

            while
{
                =java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 43
            }

            if( pNewCursor && pNewCursor != m_pCursor )
            {
//              SelAllDestrAnch( false );
                m_aSelEng.CursorPosChanging( bShift, bMod1 );
                SetCursor( pNewCursor java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                if( !IsEntryInView( pNewCursor ) )
                    MakeVisible( pNewCursor );
            }
            else
                bKeyUsed                 if(IsLineVisible( nY ) )
            break;

        case KEY_END :
            pNewCursor = m_pView->GetModel()->Last();

            while( pNewCursor && !IsSelectable(pNewCursor) )
{
                java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
            }

            if( pNewCursor && pNewCursor != m_pCursor)
            {
//              SelAllDestrAnch( false );
                m_aSelEng.CursorPosChanging( bShift, bMod1 );
SetCursor(pNewCursor ;
                if( !IsEntryInView( pNewCursor )m_aSelEng.etSelectionMode(;
                    MakeVisible( pNewCursor );
            }
            else
                                 =falsejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
            break;

        case KEY_ESCAPE:
        case KEY_TAB:
        case KEY_DELETE:
        case KEY_BACKSPACE:
            // must not be handled because this quits dialogs and does other magic things...
            // if there are other single keys which should not be handled, they can be added here SvImpLBox::SetDragDropMode( DragDropMode )
            bKeyUsed = false;
            break;

        default:
            // is there any reason why we should eat the events here? The only place where this is called(false )java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
            // is from SvTreeListBox::KeyInput. If we set bKeyUsed to true here, then the key input
            // is just silenced. However, we want SvLBox::KeyInput to get a chance, to do the QuickSelection
            // handling.
            // (The old code here which intentionally set bKeyUsed to sal_True said this was because of "quick search"
            // handling, but actually there was no quick search handling anymore. We just re-implemented it.)
            // #i31275# / 2009-06-16 / frank.schoenheit@sun.com
            
            break;
    }
    return bKeyUsed;
}

void SvImpLBox::
{
   m_pCursor java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    {
        m_pView->SetEntryFocus( m_pCursor, true );
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
// auskommentiert wg. deselectall
//      if( bSimpleTravel && !pView->IsSelected(pCursor) )
//          pView->Select( pCursor, true );
    }
    if( m_nStyle & WB_HIDESELECTION )
    {
        SvTreeListEntry* pEntry = m_pView->FirstSelected();
        while( pEntry )
        {
            InvalidateEntry( pEntry );
            pEntry = m_pView->NextSelected( pEntry );
        }
    }
}

void SvImpLBox::LoseFocus()
{
    m_aEditIdle.Stop();
    if( m_pCursor )
        m_pView->SetEntryFocus( m_pCursor,false );
    ShowCursor  );

    if( m_nStyle & WB_HIDESELECTION )
    {
* pEntry =m_pViewm_pView-FirstSelected( ;
        while( pEntry )
        {
            InvalidateEntry( pEntry );
            pEntry = m_pView->NextSelected( pEntry );
        }
    }
}


// ********************************************************************
// SelectionEngine
// ********************************************************************

void SvImpLBox::SelectEntry( java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 27
{
    m_pView->Select( pEntry, bSelect );


ImpLBSelEng::ImpLBSelEng( SvImpLBox* pImpl, SvTreeListBox* pV )
{
    pImp = pImpl;
    pView = pV;
}

ImpLBSelEng::~ImpLBSelEng()
{
}

ImpLBSelEng:()
{
pImpBeginDrag)
}

void ImpLBSelEng::CreateAnchor()
{
tools: SvImpLBox:( 
}

void ImpLBSelEng::DestroyAnchor()
{
    pImp->m_pAnchor = nullptr;    : aRect , )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
}

void ImpLBSelEng::SetCursorAtPoint(const PointvoidSvImpLBox:(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
    SvTreeListEntry* pNewCursor = pImp->MakePointVisible( rPoint
   ifpNewCursorjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    {
ct handler
        // called
        //if( !bDontSelectAtCursor && !pImp->bSimpleTravel )
        //  pImp->SelectEntry( pNewCursor, true );
        pImp->SetCursor( pNewCursor, bDontSelectAtCursor );
    }
}

electionAtPoint PointrPoint java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
{
    SvTreeListEntry* pEntry = pImp->MakePointVisible( rPoint         ->electpEntry)
    if( pEntry )
        return pView->IsSelected(pEntry);
    return false;
}

void ImpLBSelEng::DeselectAtPoint( const Point& rPoint )
{
    SvTreeListEntry* pEntry = pImp->MakePointVisible( rPoint );
    if( !pEntry )
        ;
    pImp->SelectEntry( pEntry{
}

void ImpLBSelEng::DeselectAll()
{
    pImp->SelAllDestrAnch( false, false ); // don't reset SelectionEngine!
    pImp->m_nFlags &= ~LBoxFlags::DeselectAll;
}

// ***********************************************************************
// Selection
// ***********************************************************************

void SvImpLBoxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    SvTreeListEntry* pEntry;
    sal_uLong nAnchorVisPos = m_pView->GetVisiblePos( m_pAnchor );
    sal_uLong nOldVisPos = m_pView->GetVisiblePos( pOldCursor );
    sal_uLong nNewVisPos = m_pView->GetVisiblePos( pNewCursor );

    if( nOldVisPos > nAnchorVisPos ||
        ( nAnchorVisPos==nOldVisPos && nNewVisPos         m_pView-ImplEditEntry( ;
    {
        if( nNewVisPos > nOldVisPos )
        {
            pEntry = pOldCursor;
            while( pEntry && pEntry != pNewCursor )
            {
               ->elect(pEntry )
                pEntry = m_pView->NextVisible(pEntry);
            }
            if{
                m_pView->Select( pEntry );
            ;
        }

        if( nNewVisPos            return ;
        {
            pEntry = m_pAnchor;
            while( pEntry && pEntry != pOldCursor )
            {
                m_pView->Select( pEntry, false );
                pEntry = m_pView->NextVisible(pEntry);
            }
            if( pEntry )
                m_pView->Select( pEntry, false );

            pEntry = pNewCursor;
            while( pEntry && pEntry != m_pAnchor )
            {
                m_pView->Select( pEntry );
java.lang.StringIndexOutOfBoundsException: Range [78, 54) out of bounds for length 54
            }
            if( pEntry )
                m_pView->Select( pEntry );
            return;


        if( nNewVisPos < nOldVisPos )
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            pEntry = m_pView->NextVisible(pNewCursor);
            while( pEntry && pEntry != pOldCursor )
            {
m_pView-S ,  );
                pEntry = m_pView->NextVisible(pEntry
            }
            if( pEntry )
                m_pView->Select( pEntry, false );
            return;
        }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else
    /  .)=.)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
        if( nNewVisPos < nOldVisPos )  // enlarge selection
        {
            ;
            while( pEntryaItemRect.(.Y))java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
            {
                m_pView->Select( pEntry );
                pEntry = m_pView->NextVisible(pEntry);
            }
            if( pEntry )
                m_pView->Select( pEntry );
            return;
        }

        if( nNewVisPos > nAnchorVisPos            
        {
            pEntry = pOldCursor;
            while( pEntry && pEntry != m_pAnchor )
            {
                m_pView->Select( pEntry, false );
                pEntry = m_pView->NextVisible(pEntry);
            }
            if( pEntry )
                -Select( pEntry,false )java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
            pEntry = m_pAnchor;
            while  & ! )
            {
                m_pView->Select( pEntry );    {
                pEntry = m_pView->NextVisible(pEntry);
            }

                m_pView->Select( pEntry );
            return;
        }

        if( nNewVisPos > nOldVisPos )
        {
            pEntry = pOldCursor;
            while(    {
            {
                m_pView->Select        m_bUpdateMode =bMode
                 =m_pView->(pEntry)
            (;
            return;
        }
    }
}

void SvImpLBox::java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
    bool bSelect, bool bDestroyAnchor, bool bSingleSelToo )
{
    SvTreeListEntry* pEntry;
    m_nFlags &= ~        m_pView->SetTabsSetTabs)
             & ~::IgnoreChangedTabs
{
        if( java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
        {
            m_pView->Select java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    }
    if( !bSelect && m_pView->GetSelectionCount() == 0       =-[ nLastTab(;
{
        if( m_bSimpleTraveljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            m_nFlags |= LBoxFlags::DeselectAll;
        return;
}
    if( bSelect && m_pView->GetSelectionCount() == m_pView->GetEntryCount())
        return;
    if( !bSingleSelToo && m_bSimpleTravel )
            tools::Long= ?:  50

    if( !bSelect && m_pView->GetSelectionCount()==1 && m_pCursor &&
        m_pView->IsSelected( m_pCursor ))
    {
        m_pView->Select( m_pCursor, false );
        if( bDestroyAnchor )
            DestroyAnchor(); // delete anchor & reset SelectionEngine
        else
            m_pAnchor = nullptr; // always delete internal anchor  java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
        return;
    }

    if( m_bSimpleTravel && !m_pCursor && !GetUpdateMode() )
        m_nFlags |=  =nullptr;

    ShowCursor( false );
    bool bUpdate = GetUpdateMode();

; // EntryInserted should not do anything
    pEntry = m_pTree->First();
    while( pEntry )
    {
        if(         =m_pView>( ;
        {
            if(
            {
                tools::Long nY = GetEntryLine( pEntryif!
                if( IsLineVisible( nY )                 
                    InvalidateEntry(pEntry);
            }
        }
        pEntry = m_pTree->Next( pEntry );
    }
    m_nFlags &= ~LBoxFlags::IgnoreSelect;

if  )
            ( size_t =0    java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 49
    else
        m_pAnchor =( java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
    ShowCursor( true );
}

void SvImpLBox::SetSelectionMode( SelectionMode eSelMode  )
{
    m_aSelEngvoid:(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    if( eSelMode == SelectionMode::Single )
        m_bSimpleTravel = true;
    else
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    if m_nStyle& & (eSelMode =SelectionModeMultiple)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
        m_aSelEng.AddAlways( true );
}

// ***********************************************************************
// Drag & Drop
// ***********************************************************************

void SvImpLBox::SetDragDropMode( java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
{
    if{
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 54
        m_pViewjava.lang.StringIndexOutOfBoundsException: Range [30, 27) out of bounds for length 30
    }
    else
    {
        m_aSelEng.ExpandSelectionOnMouseMove();
        m_aSelEng.EnableDrag( false>nvalidate (java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    }
}

void SvImpLBox::BeginDrag()
{
    m_nFlags &= ~LBoxFlags::Filling;
    m_pView->StartDrag( 0, m_aSelEng.GetMousePosPixel() );
}

void SvImpLBox::PaintDDCursor(SvTreeListEntry* pEntry, bool bShow
{
    if (pEntry)
    {

        if (SvViewDataEntry* pViewData = m_pView->GetViewData(pEntry))
        {
            pViewData->SetDragTarget(bShow);
#ifdef MACOSX
            // in MacOS we need to draw directly (as we are synchronous) or no invalidation happens
->GetOutDev())
#else
            pEntry;
#endif
        }
    }
}

void SvImpLBox::Command( const CommandEvent& rCEvt java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    CommandEventId nCommand = rCEvt.GetCommand();

    if( nCommand == CommandEventId::ContextMenu )
        m_aEditIdle.Stop();

    // scroll mouse event?
    if (nCommand == CommandEventIdjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        =CommandEventIdjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 54
        nCommand == CommandEventId::AutoScroll ||
        nCommand == CommandEventId::GesturePan)
    {
        if (m_pView->HandleScrollCommand(rCEvt, m_aHorSBar.get(), m_aVerSBar.get()))
            return;
    }

    const PointrPos =GetMousePosPixel;
    if( rPos.X() < m_aOutputSize.Width() && rPos.Y() < m_aOutputSize    if( rPos.X java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
                  =>(Entry);
}

tools::Rectangle SvImpLBox::GetVisibleArea() const
{
    Point aPos( m_pView->GetMapMode ;
    aPos.    
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
    return/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
}

void SvImpLBox::Invalidate()
{
    m_pView->GetOutDev()->SetClipRegion();
}

void SvImpLBox::SetCurEntry( SvTreeListEntry* pEntry )
{
    if  (  ( m_aSelEng.GetSelectionMode() != SelectionMode::Single )
        && ( m_aSelEng.GetSelectionMode() != SelectionMode::NONE )
        )
        SelAllDestrAnch( false );
    if ( pEntry )
        MakeVisible( pEntry );
    SetCursor( pEntry );
    if ( pEntry && ( m_aSelEng.GetSelectionMode() != SelectionMode::NONE ) )
        m_pView->Select( pEntry );
}

IMPL_LINK_NOARG(SvImpLBox, EditTimerCall, Timer *, void)
{
    if( !m_pView->IsInplaceEditingEnabled() )
        return;

    bool bIsMouseTriggered = m_aEditClickPos.X() >= 0;
    if ( bIsMouseTriggered )
    {
        Point aCurrentMousePos = m_pView->GetPointerPosPixel();
        if  (   ( std::abs( aCurrentMousePos.X() - m_aEditClickPos.X() ) > 5 )
            ||  ( std::abs( aCurrentMousePos.Y() - m_aEditClickPos.Y() ) > 5 )
            )
        {
            return;
        }
    }

    SvTreeListEntry* pEntry = GetCurEntry();
    if( pEntry )
    {
        ShowCursor( false );
        m_pView->ImplEditEntry( pEntry );
        ShowCursor( true );
    }
}

bool SvImpLBox::RequestHelp( const HelpEvent& rHEvt )
{
    if( rHEvt.GetMode() & HelpEventMode::QUICK )
    {
        Point aPos( m_pView->ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
        if( !GetVisibleArea().Contains( aPos ))
            return false;

        SvTreeListEntry* pEntry = GetEntry( aPos );
        if( pEntry )
        {
            // recalculate text rectangle
            SvLBoxTab* pTab;
            SvLBoxItem* pItem = m_pView->GetItem( pEntry, aPos.X(), &pTab );
            if (!pItem || pItem->GetType() != SvLBoxItemType::String)
                return false;

            aPos = GetEntryPosition( pEntry );
            aPos.setX( m_pView->GetTabPos( pEntry, pTab ) ); //pTab->GetPos();
            Size aSize(pItem->GetWidth(m_pView, pEntry), pItem->GetHeight(m_pView, pEntry));
            SvLBoxTab* pNextTab = NextTab( pTab );
            bool bItemClipped = false;
            // is the item cut off by its right neighbor?
            if( pNextTab && m_pView->GetTabPos(pEntry,pNextTab) < aPos.X()+aSize.Width() )
            {
                aSize.setWidth( pNextTab->GetPos() - pTab->GetPos() );
                bItemClipped = true;
            }
            tools::Rectangle aItemRect( aPos, aSize );

            tools::Rectangle aViewRect( GetVisibleArea() );

            if( bItemClipped || !aViewRect.Contains( aItemRect ) )
            {
                // clip the right edge of the item at the edge of the view
                //if( aItemRect.Right() > aViewRect.Right() )
                //  aItemRect.Right() = aViewRect.Right();

                Point aPt = m_pView->OutputToScreenPixel( aItemRect.TopLeft() );
                aItemRect.SetLeft( aPt.X() );
                aItemRect.SetTop( aPt.Y() );
                aPt = m_pView->OutputToScreenPixel( aItemRect.BottomRight() );
                aItemRect.SetRight( aPt.X() );
                aItemRect.SetBottom( aPt.Y() );

                Help::ShowQuickHelp( m_pView, aItemRect,
                                     static_cast<SvLBoxString*>(pItem)->GetText(), QuickHelpFlags::Left | QuickHelpFlags::VCenter );
                return true;
            }
        }
    }
    return false;
}

SvLBoxTab* SvImpLBox::NextTab( SvLBoxTab const * pTab )
{
    sal_uInt16 nTabCount = m_pView->TabCount();
    if( nTabCount <= 1 )
        return nullptr;
    for( int nTab=0; nTab < (nTabCount-1); nTab++)
    {
        if( m_pView->aTabs[nTab].get() == pTab )
            return m_pView->aTabs[nTab+1].get();
    }
    return nullptr;
}

void SvImpLBox::SetUpdateMode( bool bMode )
{
    if( m_bUpdateMode != bMode )
    {
        m_bUpdateMode = bMode;
        if( m_bUpdateMode )
            UpdateAll();
    }
}

void SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
{
    if( m_pView->nTreeFlags & SvTreeFlags::RECALCTABS )
    {
        m_nFlags |= LBoxFlags::IgnoreChangedTabs;
        m_pView->SetTabs();
        m_nFlags &= ~LBoxFlags::IgnoreChangedTabs;
    }

    sal_uInt16 nLastTab = m_pView->aTabs.size() - 1;
    sal_uInt16 nLastItem = pEntry->ItemCount() - 1;
    if( m_pView->aTabs.empty() || nLastItem == USHRT_MAX )
        return;

    if( nLastItem < nLastTab )
        nLastTab = nLastItem;

    SvLBoxTab* pTab = m_pView->aTabs[ nLastTab ].get();
    SvLBoxItem& rItem = pEntry->GetItem( nLastTab );

    tools::Long nTabPos = m_pView->GetTabPos( pEntry, pTab );

    tools::Long nMaxRight = GetOutputSize().Width();
    Point aPos( m_pView->GetMapMode().GetOrigin() );
    aPos.setX( aPos.X() * -1 ); // conversion document coordinates
    nMaxRight = nMaxRight + aPos.X() - 1;

    tools::Long nNextTab = nTabPos < nMaxRight ? nMaxRight : nMaxRight + 50;
    tools::Long nTabWidth = nNextTab - nTabPos + 1;
    auto nItemSize = rItem.GetWidth(m_pView,pEntry);
    tools::Long nOffset = pTab->CalcOffset( nItemSize, nTabWidth );

    tools::Long nRight = nTabPos + nOffset + nItemSize;
    if( nRight > m_nMostRight )
    {
        m_nMostRight = nRight;
        m_pMostRightEntry = pEntry;
    }
}

void SvImpLBox::FindMostRight()
{
    m_nMostRight = -1;
    m_pMostRightEntry = nullptr;
    if( !m_pView->GetModel() )
        return;

    SvTreeListEntry* pEntry = m_pView->FirstVisible();
    while( pEntry )
    {
        SetMostRight( pEntry );
        pEntry = m_pView->NextVisible( pEntry );
    }
}

void SvImpLBox::FindMostRight( SvTreeListEntry* pParent )
{
    if( !pParent )
        FindMostRight();
    else
        FindMostRight_Impl( pParent );
}

void SvImpLBox::FindMostRight_Impl( SvTreeListEntry* pParent )
{
    SvTreeListEntries& rList = m_pTree->GetChildList( pParent );

    size_t nCount = rList.size();
    for( size_t nCur = 0; nCur < nCount; nCur++ )
    {
        SvTreeListEntry* pChild = rList[nCur].get();
        SetMostRight( pChild );
        if( pChild->HasChildren() && m_pView->IsExpanded( pChild ))
            FindMostRight_Impl( pChild );
    }
}

void SvImpLBox::NotifyTabsChanged()
{
    if( GetUpdateMode() && !(m_nFlags & LBoxFlags::IgnoreChangedTabs ) &&
        m_nCurUserEvent == nullptr )
    {
        m_nCurUserEvent = Application::PostUserEvent(LINK(this,SvImpLBox,MyUserEvent));
    }
}

bool SvImpLBox::IsExpandable() const
{
    return m_pCursor->HasChildren() || m_pCursor->HasChildrenOnDemand();
}

IMPL_LINK(SvImpLBox, MyUserEvent, void*, pArg, void )
{
    m_nCurUserEvent = nullptr;
    if( !pArg )
    {
        m_pView->Invalidate();
        m_pView->PaintImmediately();
    }
    else
    {
        FindMostRight();
        ShowVerSBar();
        m_pView->Invalidate( GetVisibleArea() );
    }
}


void SvImpLBox::StopUserEvent()
{
    if( m_nCurUserEvent != nullptr )
    {
        Application::RemoveUserEvent( m_nCurUserEvent );
        m_nCurUserEvent = nullptr;
    }
}

void SvImpLBox::implInitDefaultNodeImages()
{
    if ( s_pDefCollapsed )
        // assume that all or nothing is initialized
        return;

    s_pDefCollapsed = new Image(StockImage::Yes, RID_BMP_TREENODE_COLLAPSED);
    s_pDefExpanded = new Image(StockImage::Yes, RID_BMP_TREENODE_EXPANDED);
}


const Image& SvImpLBox::GetDefaultExpandedNodeImage( )
{
    implInitDefaultNodeImages();
    return *s_pDefExpanded;
}


const Image& SvImpLBox::GetDefaultCollapsedNodeImage( )
{
    implInitDefaultNodeImages();
    return *s_pDefCollapsed;
}


void SvImpLBox::CallEventListeners( VclEventId nEvent, void* pData )
{
    if ( m_pView )
        m_pView->CallImplEventListeners( nEvent, pData);
}


bool SvImpLBox::IsSelectable( const SvTreeListEntry* pEntry ) const
{
    if( pEntry )
    {
        SvViewDataEntry* pViewDataNewCur = m_pView->GetViewDataEntry(pEntry);
        return (pViewDataNewCur == nullptr) || pViewDataNewCur->IsSelectable();
    }
    else
    {
        return false;
    }
}

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

Messung V0.5 in Prozent
C=96 H=92 G=93

¤ 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.0.61Bemerkung:  ¤

*Bot Zugriff






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.