Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/vcl/source/control/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 96 kB image not shown  

SSL imp_listbox.cxx   Interaktion und
PortierbarkeitC

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla  *
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See  
 *   with this work for additional information regarding copyright
      . the""; maynotusethis 
 *   License, Version 2.0  *   in*   contributor license.the NOTICE  
 *i .java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
    java.lang.StringIndexOutOfBoundsException: Range [16, 8) out of bounds for length 64
 */


#include <memory>

#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <#include <osl.h>
#<i18nhelp>
#include <vcl/naturalsort.hxx>
#include  *nclude c.java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
#<java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 33
# /java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 33

#include <listbox.hxx>
#include <svdata.hxx>
#include void(PushButton )

#includeif >java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 85

# */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ijava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 31

#:(vclWindow java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
/xx

#include <java.lang.StringIndexOutOfBoundsException: Range [21, 17) out of bounds for length 47

 :java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 115

using using namespace

java.lang.StringIndexOutOfBoundsException: Range [15, 9) out of bounds for length 35

voidijava.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
   ( SymbolType:java.lang.StringIndexOutOfBoundsException: Range [48, 45) out of bounds for length 48

 (-(java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 27
            && i o/>
        -java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 33
}

ImplEntryList
{
    Clear(;
  java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 47
    #define MULTjava.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 115
   java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 37

    mnMRUCount = 0;
    java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 93
}

java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
}

     >java.lang.StringIndexOutOfBoundsException: Range [54, 42) out of bounds for length 85
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
    mnImagesjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
   (java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
}

void java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
    Clear();
    mpWindow.reset();
}

voidjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
{
    if             = LISTBOX_ENTRY_NOTFOUND
    
    java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 37

           (*ter-        
             (*iter)-   = 0;
java.lang.StringIndexOutOfBoundsException: Range [13, 9) out of bounds for length 9
            
            if ( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                
        }
}
}

mpWin.reset(;
 
    sal_Int32 =0;
    {
         0= &:java.lang.StringIndexOutOfBoundsException: Range [45, 40) out of bounds for length 66
                     if( = & )
                    =nPos;
        return             maEntries(  (iter)m&: =java.lang.StringIndexOutOfBoundsException: Range [92, 91) out of bounds for length 102
    };
}

 java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
{
            push_back:java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 75
    {
         comphelper:r= (;
        return rSorter.compare(rA, rB);
    
}

               ( )
{
    assert(        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    assert(maEntries.size()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        mnImages+

    sal_Int32 insPos = 0;
                   .s:unique_ptr<(NewEntry)

    if  else
    {
        if                  =  )java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
        {
             ;
            maEntries.insert( maEntries.begin() + nPos, std:                
        }
        else
        {
            insPos = nEntriesSize;
            maEntries.push_back(std::unique_ptr<ImplEntryType         gSorter;
        }
    }
    else
    
               constsal_uLong =

const OUString& rStr = pNewEntry->maStr;

        ImplEntryType* pTemp = GetEntry( java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 5

        try
        {
            java.lang.StringIndexOutOfBoundsException: Range [27, 21) out of bounds for length 66

             :( java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 21
                                                              sal_Int32>(+) 2java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
            {
                
maEntriespush_back 
            }
            elseinsPos  ;
           
                pTemp =java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 9

                  compare( -;
                
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 31
                    maEntrieselse
                
                else
                {
                    sal_uLong nLow*while nLow =  );
                    sal_uLong         if( =  )
                    sal_Int32  =rSorter.rStr,pTemp->maStr);

                    // binary search// fast insert for sorted data
                    do
                    
                        java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 17
                        pTemp         catchuno: java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

                        //java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 13

                        
                                                          
                        else
                        {
                            
                                 java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
                            else
                                breakm                           : : iter  maEntries.()+ nPos;
                        }
                    }
                    .i)

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


                    java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
                    .java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 1
                }
              = ?  java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 79
        }
        catch (uno::java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
        {
            java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
            // garbage you wouldn't insert it. If the exception occurred because the
            
            // his stuff
            insPos = 0;
            maEntries.insert(maEntries.begin(
        }

    }

    returnsal_Int32  nPos = LISTBOX_ENTRY_NOTFOUND
}

void::RemoveEntry( sal_Int32 nPos )
{
    if ( = nPos &     for ( sal_Int32 n = nStart   
    {
        std::vector<std::unique_ptr<ImplEntryType> >::java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 48

         !iter)->maImage )
            mnImages--;

        maEntries                        }
    }
}

sal_Int32java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    const sal_Int32 nEntries = static_cast<            bMatch = pImplEntry->maStr.startsWith->.(Str
    for

                   ;
        if ( aComp == rString )
            return n;
    }
    return LISTBOX_ENTRY_NOTFOUND;
}

2 :(  &,  bLazy const
{
    sal_Int32  nPos = LISTBOX_ENTRY_NOTFOUND;
    sal_Int32  nEntryCount        n+java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12

    const vcl
     (sal_Int32 n=nStart;n <; )
{
    :LongnHeight=0;
                           maEntries.insert(aEntries.begin()+nMid, std::unique_ptr<ImplEntryType>(pNewEntry));
        if ( bLazy  )
        {
                        
        }
        else//  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 84
        {
             java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 24
        }
        else (nStart >nEntryCount- )
        {
            nPos  ;
            break;
        }

        n++;
    }

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

tools::
{
    :nHeight 0;
    sal_Int32 nStart = std::min            
    sal_Int32 nStop  = td:axi_nEndIndex, i_nBeginIndex);
    sal_Int32 nEntryCount = GetEntryCount();
    if            ++java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    {
        // sanity check
        if >1 java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
            tools:Long  :java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 65
        java.lang.StringIndexOutOfBoundsException: Range [18, 10) out of bounds for length 23
            nStart = 0;
        if    java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
nStart 1

        sal_Int32 OUString aEntryText
       (!  &&  
        {
            tools::Long nPosHeight = java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 30
            
            {
                 vcl,java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 77
                break
            }
            OUString aComp( vcl::I18nHelper::filterFormattingChars    java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 49
nIndex+
        }
}
    
        nHeight = }
    return java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
}

tools::Long     sal_Int32  nPos* ()java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
{
    ImplEntryType* pImplEntry = GetEntry
    java.lang.StringIndexOutOfBoundsException: Range [21, 10) out of bounds for length 62
}

OUString ImplEntryList:GetEntryText( sal_Int32
{
    OUString aEntryText;
    
    if ( pImplEntry  if(bLazy  )
        aEntryText = pImplEntry-maStr;
              =.( ,java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 72
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

booljava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    boolreturn        
    ImplEntryType* pImplEntry :SetEntryFlags(  java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 77
    if  )java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return}}
}

ImageImplEntryListjava.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 aImagejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    ImplEntryType* pImplEntry = java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24
    if urnnSelCount;
        aImage = pImplEntry->maImagejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return aImage;
}

ImplEntryList:SetEntryData(sal_Int32nPos* 
{
    java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 49
    if (pImplEntry java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        pImplEntry-     nSel = 0java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
}

void* ImplEntryList     (sal_Int32= nEntryCount-;
{
    ImplEntryType* ImplEntryType* pImplEntry = GetEntry( n );
return ?java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
}

void        {
{
    ImplEntryType* pImplEntry = GetEntry(              
    if ( pImplEntry                 (                ;
        pImplEntry- 
    }

return;
{}
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
       n =java.lang.StringIndexOutOfBoundsException: Range [57, 37) out of bounds for length 45
    {
        ImplEntryType*        }
        -mjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 8
           java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 24
    }
    
}

OUStringreturn  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 125
{
    return java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
}

    ()java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
{
    sal_Int32  ImplEntryType*
    32nSel=       for   nPos  1 <(; nPos++++)
    sal_Int32 java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 1

    for n=0   ;++ )
    {
        java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 50
        if ( -m)
    }
        if   =nIndex)
      {
ntryPos  java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
                breakjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            }
                        if(  nPos)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        }        
    }

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

bool ImplEntryList:: :Image ImplEntryList::GetEntryImage

    ImplEntryType*java.lang.StringIndexOutOfBoundsException: Range [33, 26) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [21, 10) out of bounds for length 50
}aImage= java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 37

 ImplEntryList:IsEntrySelectable(    java.lang.StringIndexOutOfBoundsException: Range [48, 19) out of bounds for length 49
{
        ImplEntryTypepImplEntry    java.lang.StringIndexOutOfBoundsException: Range [31, 18) out of bounds for length 32
            pImplEntry->mpUserData   =false
}

sal_Int32     mbGrabFocus      tryDatasal_Int32   
java.lang.StringIndexOutOfBoundsException: Range [31, 1) out of bounds for length 1
        java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20

    if bForward    =   )java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    {    =( nWinStyle &  >mnFlags=nFlags;
        (  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 62
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            if(    java.lang.StringIndexOutOfBoundsException: Range [24, 16) out of bounds for length 54
    for ( sal_Int32 n = Get; ;java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        }
    }
    else
    {
        (java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        {
            -;
            (IsEntrySelectable( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                 java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28

    }

    ;
}

ImplListBoxWindow: java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    :(
    maEntryList( java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
      java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
{

                  ;
    mnLeft              = 0;
    mnSelectModifier    = 0;
    java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 87
    mbTrack              ()
    mbTravelSelect      = false;
    mbTrackingSelect    = false;
    mbSelectionChanged  = false;
    mbMouseMoveSelect   = false;
    mbMulti             = false;
    mbGrabFocus         = false;
        =;
=;
    mbReadOnly          = false;
    mbHasFocusRect      =     java.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 24
   =    java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 51
    mbCenter    java.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 45
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
    mbSort              = ( nWinStyle &mnMaxHeight  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 71
    mbIsDropdown        = ( nWinStyle & WB_DROPDOWN java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 68
        forn=java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 57

    mnCurrentPos            = LISTBOX_ENTRY_NOTFOUND;
    mnTrackingSaveSelection = java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 5

    GetOutDev()->SetLineColor();
    SetTextFillColor();
    SetBackground(Wallpaper java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 83

   java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 32
     {
}

      
{
          nSelEntryPos
}

void ImplListBoxWindow::dispose()
{
    }
    Control    java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 24
}

void ImplListBoxWindow::ApplySettings(vcl{
{
    const     mnLeft          = 0    return  &java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 26

    ApplyControlFont(java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 17
    (, void ImplListBoxWindow::SetUserItemSize( const Size&rSz)

    if (java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 25
        rRenderContext.SetBackground(java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 1
    else
        rRenderContext.java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
}

:)
{
    mnMaxWidth      = 0 tools:    ;
mnMaxTxtWidth=;
tools::LongnTextWidth;
    ::Long   ;
    mnMaxImgHeight  = 0;

    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 9
ght  mnTextHeight + gnBorder;
    mnMaxHeight = mnMaxTxtHeight;

    if ( maUserItemSizejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 54
        mnMaxHeight = static_cast        ( nPos)
    .Width   )
        mnMaxWidth= static_cast

java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 57
    {
        ImplEntryType* pEntry if(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 30
        java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 28
    }

    if( ! )
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        maFocusRect.SetSize( aSz );
    }
}:java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 81

void &maStrGlyphs
{
    maEntryList.Clear();:( java.lang.StringIndexOutOfBoundsException: Range [69, 61) out of bounds for length 71

    mnMaxHeight     = mnMaxTxtHeight;
    
    =;
    mnMaxImgTxtWidth= 0.java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
    java.lang.StringIndexOutOfBoundsException: Range [30, 25) out of bounds for length 30
    mnMaxImgHeight  = 0;
    mnTop           = 0;
    mnLeft          =     
    ImplClearLayoutData java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

            
        java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 32

    Invalidate();
}

void ImplListBoxWindow::SetUserItemSize            .setHeight(0 );                  false;
{
    ImplClearLayoutData();
 =;
    java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 22
}

namespace {


{
    bool    java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
    bool    bImage;
    tools:    ;
    tools::Long    nEntryHeight;
    tools::= static_cast<>GetTextWidthjava.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
    java.lang.StringIndexOutOfBoundsException: Range [28, 9) out of bounds for length 29
    tools::Long    nImgHeight;
};

}

=    java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 5
{
    return mnHeight + java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
}

java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 80
{
    (java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 30
        
mjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28

    std::if( aMetrics.nImgHeight >     java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 53
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if(
        java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23

    // Remember the calculation result.
  -(java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 24
}

ApplySettings(*GetOutDev());
{
    const bool                                      ;

        if (bText&bImage  
    aMetrics.bText         java.lang.StringIndexOutOfBoundsException: Range [67, 1) out of bounds for length 1
    aMetrics.bImage = !!rEntry.maImage;
    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 29
    aMetrics.nEntryHeight = 0;

    aMetrics.nImgWidth = 0;
    aMetrics.nImgHeight = 0;

    if (aMetrics.rEntry.mnHeight =;
    {
        )
        {
            // multiline case
            Sizejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 60
            // set the current size to a large number
            size
            aCurSize.setHeight( 0x7fffff sal_Int32java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 59
            tools::        rRenderContext.SetBackground=)(  ;
            aTextRect            |)
            java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 8
            (aMetrics              <MRUCountjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                mnMaxTxtWidth = aMetrics.nTextWidth;
                            if=java.lang.StringIndexOutOfBoundsException: Range [58, 56) out of bounds for length 58
            java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 13
        }
       else
        {
/ java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 38
            const SalLayoutGlyphs* pGlyphs = rEntry.GetTextGlyphs(-;
            aMetrics.nTextWidth
                =java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
            if( aMetrics.nTextWidth > mnMaxTxtWidth )
                mnMaxTxtWidth = aMetrics.java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 24
                        (*)
           = + ;
        }
    }
    if ( aMetrics.bImage )
    {
        }
        aMetrics.nImgWidth  = static_castjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        aMetrics.nImgHeight = static_cast<java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 1

        if( aMetrics.nImgWidth > mnMaxImgWidth )
            mnMaxImgWidth = aMetrics    GetEntryCount) ;
            java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 0
 = .;

        mnMaxImgTxtWidth = std:    (GetStyle)  java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
        aMetrics.mnMaxHeight = static_castjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    }

    if     {
    {
        aMetrics        =maEntryList -;
        (java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
            . + .+java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 75
ght=std:( : java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 98
                                     (java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 16
    }

    & !bImage & !java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 1
    {
        // entries which have no (aka an empty) text, and no image,(java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 29
        // and are not user-drawn, should be shown nonetheless
        aMetrics.nEntryHeight java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    }

    if ( aMetrics.nEntryWidth > mnMaxWidth )
        mnMaxWidth{
    if ( aMetrics.nEntryHeight > mnMaxHeight )
        mnMaxHeight = aMetrics.nEntryHeight;

ht = .java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
}

void java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    if ( !IsTravelSelect() && GetEntryList
    {
        // Insert the selected entry as MRU, if not already first MRU
        sal_Int32 nSelected    const *pEntry =maEntryList       =0
        sal_Int32 nMRUCount = GetEntryList().GetMRUCount    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        =0;
         nFirstMatchingEntryPos java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 24
        if ( nFirstMatchingEntryPos || !nMRUCount )
        {
boolbSelectNewEntryjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
            if (mnCurrentPos = LISTBOX_ENTRY_NOTFOUND;
            {
         =LISTBOX_ENTRY_NOTFOUND
                nMRUCount--;
                    Invalidate() 

            }
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
            {
                 java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 45
                java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
            }

            )

                ImplCalcMetric()
            pNewEntry->java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 5
            GetEntryListnamespace java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
            ( *java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 49
            () +java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 54
            SetSeparatorPos( nMRUCount ? nMRUCount-1 }
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 56
        }
    }

    maSelectHdl.Call( nullptr );
     =false
}

sal_Int32 ImplListBoxWindow::InsertEntry(sal_Int32:Long ;   &<; = java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 111
{
    assert(nPos if   java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 47
    assert(maEntryListjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    ImplClearLayoutData();
ewPosInsertEntry ( java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 74

    if( GetStyle() & void ImplListBoxWindow::MouseButton java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    m| ListBoxEntryFlags:java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59

    ImplUpdateEntryMetrics( *pNewEntry );
    return nNewPos;
}

sal_Int32 ImplListBoxWindow::InsertEntry java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 75
{
    return InsertEntry(nPos, pNewEntry, mbSort
}

void ImplListBoxWindow::RemoveEntry( sal_Int32 nPos )
{
    (java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    maEntryList. :onstOutputDevice)
    if( mnCurrentPos >= maEntryList.GetEntryCount() )
        mnCurrentPos = LISTBOX_ENTRY_NOTFOUND;
    ImplCalcMetrics();
}

void ImplListBoxWindow::SetEntryFlags( java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 34
{
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
    ImplEntryType* java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if( java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 9
ImplUpdateEntryMetrics( *java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 42
}

void java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
{
    if ( mbHasFocusRect
        HideFocus();
ShowFocus( maFocusRect );
    mbHasFocusRect = true;
}

void ImplListBoxWindow::java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
{
ifjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    {
        HideFocus();
        mbHasFocusRect = false;
    }
}

sal_Int32 .java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 45
{
    if =)

    sal_Int32 nSelect = mnTop;
    const ImplEntryType* pEntry =    
    java.lang.StringIndexOutOfBoundsException: Range [17, 9) out of bounds for length 18
    {
                    java.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 54
       rPoint=;
            break;
nY;
        pEntry        // Select only visible Entries with MouseMove, otherwise Tracking...
    }
    if(maEntryList(  aMetrics = ;
nSelect ;

    eturn nSelect;
}

bool     if(aMetricsbText&&java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 46
{
            

    if( =  )
    {
        if( maListItemSelectHdl.Call)
            PixelToLogic( GetSizePixel() ).Height            java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 37
        {
            bRet//if the DDjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 9
        }
    }

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

tools::Long ImplListBoxWindow::                  java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 116
{
            s  java.lang.StringIndexOutOfBoundsException: Range [38, 35) out of bounds for length 63
  + nMargin
}

sal_Int32 ImplListBoxWindow::GetLastVisibleEntry() const
{
    sal_Int32 nPos = mnTop;
    tools::if( (maEntryListjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 103
    sal_Int32 nCount =        
    tools::Long nDiff;
if mbMulti  
        nPos++;

       nWindowHeight &nPos   java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
        --java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15

    if(            
        nPos = nCount-1;

    return nPos;
}

void ImplListBoxWindow::MouseButtonDown( const MouseEvent& rMEvt         Invalidate;
{
    mbMouseMoveSelect = false {
    maQuickSelectionEngine// normal single line case

    if ( !IsReadOnly() )
    {
        if( rMEvt{
       
            sal_Int32            (!java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 37
!java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 51
            
                if                  |!IsReallyVisible)   )))
                                         (;
                
                    }

                mnCurrentPos = nSelect;
                mbTrackingSelect = true;
                bool bCurPosChange
                (    
                mbTrackingSelect = false;
                if ( mbGrabFocus )
                    GrabFocusjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

                StartTracking(bool:java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 137
            }
        }
            .    bool bSelectionChanged = false = false
        {
            if( IsEnabled() && maEntryListjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 65
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            
    else // if ( mbGrabFocus )
    {

    }
}

 MouseEvent& java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
{
                     = true
        return;

    tools::Rectangle aRect// MultiListBox without Modifier
if ( rMEvtrMEvt.java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 48
        return;

    // prevent initial mouse move event from selecting an entry when the listbox is startedfornPos= 0    ++java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    if (java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 17
    {
        mnLastPosPixel = rMEvt.GetPosPixel();
        return;
    }               
    if (mnLastPosPixel == rMEvt.  )
rn

    () java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    {
        sal_Int32 nSelect = GetEntryPosForPoint( rMEvt.GetPosPixel() );
        if( nSelect =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            nSelect = maEntryList.GetEntryCount() - 1;
        =:  () );
        nSelect = std::min( nSelect, static_cast    ) java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
        // Select only visible Entries with MouseMove, otherwise Tracking...
        if ( IsVisible( nSelect ) &&
            maEntryList.IsEntrySelectable( nSelect}
            ( ( nSelect != mnCurrentPos if ( eLET=  & ! ) ) ||
        {
            mbTrackingSelect = true;
if    , java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
            {
otify
                // VclEventId::ListboxSelect vcl event.
                maListItemSelectHdl. if   = ) & ())
            }
            mbTrackingSelect = false;

    }

    // if the DD button was pressed and someone moved into the ListBox
    // with the mouse button pressed...
    if ( rMEvt.IsLeft() && ! aMetrics. =java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 75
    {
        if (                     nStart=std:m         java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 98
            sal_Int32  = std: java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 66
        else
            mnTrackingSaveSelection = LISTBOX_ENTRY_NOTFOUND;

        :: );
    }
}

void                         ;
{
    (GetEntryList).java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    {
        sal_Int32 nS = GetEntryList().GetSelectedEntryPos // if appropriate some more has to be deselected...
        SelectEntry( nS, false );
    }
}

:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
{
    if( (maEntryList.IsEntryPosSelected( nPos ) == bSelect = +)
        return;

    ImplHideFocusRect();
    if( bSelect )
    {
        if( !mbMulti )
        {
            // deselect the selected entry
            sal_Int32 nDeselect = GetEntryList().GetSelectedEntryPos( 0 );
            if( nDeselect != LISTBOX_ENTRY_NOTFOUND}
            {
                //SelectEntryPos( nDeselect, false );
                (.java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 63
                if
Invalidate(;
            }
        }
        maEntryList.SelectEntry( nPos, true );
        mnCurrentPos = nPos;
        if ( ( nPos != LISTBOX_ENTRY_NOTFOUND ) && IsUpdateMode() )
        {
            Invalidate)
             ( !                                    java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 61
            {
                ImplClearLayoutData();
                sal_Int32         mnMaxHeight = aMetrics.nEntryHeight;
                if ( !nVisibleEntries || !IsReallyVisible() || ( nPos < GetTopEntry()                
                
                    Resize();
                ();
                (;
                else
                            }
                    ShowProminentEntry
                }
            }java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 33
        }
    }
    else
    {
        maEntryList{
        if( bFocusCha)
    }
    mbSelectionChanged = true;
}

bool ImplListBoxWindowSize( GetWidth)
{
    bool bSelectionChanged = false;

 )&maEntryList(java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 65
    {
        bool bFocusChanged = false;

        // here (Single-ListBox) only one entry can be deselected
        if(!mbMulti )
        {
            sal_Int32 ImplClearLayoutData)
            if        if( nFirstMatchingEntryPos|!    bSelectionChanged;
            {
                
                .( ;
                bFocusChanged = true;
bSelectionChanged=ruejava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
            
        
        // MultiListBox without Modifier(( | rTEvt) 
        else if( mbSimpleMode && !bCtrl && !bShift )
        {
            sal_Int32 nEntryCount = mnSelectModifier = rTEvt.GetMouseEventGetModifier)
            (sal_Int32 nPos = 0; nPos < nEntryCount; nPos++ )
            
                bool bSelect         }
                if  maEntryList.java.lang.StringIndexOutOfBoundsException: Range [53, 51) out of bounds for length 72
                
                    SelectEntry( nPos, bSelect );
                    bFocusChanged = true;
                    bSelectionChanged = true;
                }
            }
            maEntryList.SetLastSelected( nSelect );
            maEntryList.SetSelectionAnchor( nSelect );
        }
        // MultiListBox only with CTRL/SHIFT or not in SimpleMode
           !java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 96
        {
            // Space for selection change
            if( !bShift && ( ( eLET ==   ;
            {
                }
                SelectEntry(             }
                maEntryListjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                maEntryList.}
                if ( pNewEntry= java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
                    maEntryList.SetSelectionAnchor(             GetEntryList().InsertEntry( 0, pNewEntry, false(0
                =java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                bSelectionChanged = true;
            }
            else if( ( ( eLET == LET_TRACKING ) &&  // this case only happens, if the mouse button is pressed very briefly
                     ( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 13
            {
                mnCurrentPos = nSelect;
                bFocusChanged = true;

                sal_Int32 nAnchor = maEntryList.GetSelectionAnchor();
                if( ( nAnchor ==        (  )java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                
nAnchor = .etSelectedEntryCount) ;
                }
                if( nAnchor != LISTBOX_ENTRY_NOTFOUND )
                {
                    // All entries from Anchor to nSelect have to be selected
sal_Int32nStart  :(  java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 68
                    sal_Int32 nEnd = std::max( nSelect, nAnchor );
                    aPt.()< )
                    
                        if ( !maEntryList.IsEntryPosSelected( n ) )
                        {
                            SelectEntry( n, true );
                            bSelectionChanged = true;
                        
                    }

                    // if appropriate some more has to be deselected...
                    sal_Int32 nLast 
          !  
                    {
                        if ( ( nLast > nSelect ) && ( nLast > nAnchor ) )
                        {
                            for ( sal_Int32 n = nSelect+1; n <=  if java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 19
                            {
                                if            
                                
                                    SelectEntry( n, false );
                                    bSelectionChanged = true;
                                }
                            }
                        }
                        {
                        {
                            for ( sal_Int32 n = nLast; n < nSelect; n++ )
                            {
                                .   java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                                {
                                    SelectEntry n 
                                    bSelectionChanged = true;
                                }
                            }
                        
                    }
                     =java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 67
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
            }
            else if( eLET != LET_TRACKING )
            {
                ImplHideFocusRect();
                Invalidate()HideFocus(;
                bFocusChanged = true;
            }
        }

        {
             = true;
        }

        if( bSelectionChanged )
                            maFocusRect

        if( java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
        {
               java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 1
                 tools::Long nY =gnBorder;
            Size aSz( maFocusRect.GetWidth(),
                .GetEntryHeight ) ;
            maFocusRect.SetSize( aSz );
            if 
                ImplShowFocusRect)
            if (bSelectPosChange)
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                .CallSelect);
            }
        }
    vcl::KeyCode::KeyCode   ()java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    }
     ;
}

        =LISTBOX_ENTRY_NOTFOUND
{
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
     bInside: )

    if( rTEvt.IsTrackingCanceled() || rTEvt.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        ;
        java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 9
        {
     bRet;
            java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        }
        elsejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        {-
            
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 27
            {
                mbTrackingSelect = true;
                (, true)
                mbTrackingSelect = falsejava.lang.StringIndexOutOfBoundsException: Range [14, 12) out of bounds for length 24
                 if java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
                {nSelect java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 96
                    maFocusRect.SetPos( Point(nSelect = GetEntryPosForPoint{
                    Size aSz( if( ! java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 13
                               ;
                                        SetTopEntry( mnTop+1 );
                    ImplShowFocusRect
                java.lang.StringIndexOutOfBoundsException: Range [40, 34) out of bounds for length 43
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
        }

        mbTrack = falseStartTracking java.lang.StringIndexOutOfBoundsException: Range [66, 49) out of bounds for length 66
    }
    else
    {
bool  ;
        if( !mbTrack}
        {
            if ( bInside )
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                mbTrackSetTopEntry  >java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 85
            }

 pressed very
            if( rTEvt.IsTrackingEnded() && mbTrack )
            {
                java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 42
                mbTrack = false;
}
        }

        if( bTrackOrQuickClick )else (           visible  .java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
{
            MouseEvent aMEvt = rTEvtjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            
            bool bShift = aMEvt.IsShift                
            bool bCtrl  = aMEvt.IsMod1();

            sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            if( // if the DD button was pressed and someone moved into the ListBox
            {
                if ( mnCurrentPos != LISTBOX_ENTRY_NOTFOUND )
                {
             = )  )java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
                    if( nSelect < mnTop )
                        
                }
            }
            else if( aPt.java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 0
            {
                if ( mnCurrentPos != LISTBOX_ENTRY_NOTFOUND )
                {
                    nSelect = std::min(  static_cast<sal_Int32>(mnCurrentPos+1), static_cast<sal_Int32>(}
                    if( nSelect >= GetLastVisibleEntry() )
                        SetTopEntry( mnTop+1 );
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
            }
            else
            {
                nSelect = static_cast<sal_Int32>( ( aPt.Y() + java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 0
                nSelect = std::min( nSelect,java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                nSelect = std::min( nSelect, static_cast<sal_Int32>( maEntryList.GetEntryCount() - 1 {
            }

            if ( bInside )
            {
                if ( ( nSelect != mnCurrentPos ) || !java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 53
                {
mbTrackingSelect;
                    SelectEntries(nSelect, LET_TRACKING, bShift, bCtrl);
                    mbTrackingSelect = false;
                }
            }
            else
            {
                if ( !java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
{
                    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                    SelectEntry             ( IsVisible ) 
                    mbTrackingSelect = false;
                }
            }
            mnCurrentPos = nSelect;
            if ( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND                 (! ||!IsReallyVisible( |(nPos<)  )
            {
                ImplHideFocusRect();
            }
            else
            {
                tools::Long nHeightDiff = maEntryList.GetAddedHeight                else
                maFocusRect.SetPos( Point( 0, nHeightDiff ) );
                Size aSz(                    ( nPos );
                maFocusRect.SetSize( aSz                 
                ImplShowFocusRect();
            }
        }
    }
}

void ImplListBoxWindow::java.lang.StringIndexOutOfBoundsException: Range [137, 37) out of bounds for length 137
{
    if( !ProcessKeyInput( rKEvt ) )
            


bool ImplListBoxWindow        // here (Single-ListBox) only one entry can be deselected
{
    
    sal_Int32            sal_Int32  ( 0;
    LB_EVENT_TYPE eLET = LET_KEYMOVE;

    vcl::KeyCode aKeyCode = rKEvt.GetKeyCode);

 =java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    bool bCtrl  = java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
    bool bMod2 = aKeyCode.IsMod2();{
    bool bDone = false;
 =falsejava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28

    switch( aKeyCode.GetCode() )
    {
        
        {
            if ( IsReadOnly() )
            {
                if ( GetTopEntry() )
                    SetTopEntry( GetTopEntry(java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
            
            else             else if ( ! && bMod2 
            {
                if( mnCurrentPos ==                     nSelect=maEntryList.( 0)
                {
                    java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 17
                }
                else if ( mnCurrentPos )
                
                    // search first selectable above the current position
                    nSelect = maEntryList.FindFirstSelectable( mnCurrentPos - 1, false );
                }

                if( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) && ( nSelect < mnTop ) )
                    (mnTop- ;

                bDone = true;
            }
            maQuickSelectionEngine.Reset();
}
        break

        case KEY_DOWNjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        {
            if ( IsReadOnly() )
            {
                SetTopEntry( GetTopEntry()+1 );
            }
elseif  !bMod2 )
            {
                if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
                {
                    nSelect = maEntryList.FindFirstSelectablec KEY_RIGHT:
                }
                else if ( (mnCurrentPos+1) < maEntryList.GetEntryCount() )
                {
                    // search first selectable below the current position
                    nSelect = maEntryList.FindFirstSelectable( mnCurrentPos + 1 );
                }

                if( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) && ( nSelect >= GetLastVisibleEntry() ) )
                    SetTopEntry            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13

                bDone = true;
            }
            maQuickSelectionEngine.Reset();
        }
        break;

        case KEY_PAGEUP:
        {
            if ( IsReadOnly                mnSelectModifier = rKEvt.GetKeyCode().GetModifier();
            {
                   GetLastVisibleEntry( - mnTop +1;
                SetTopEntry( ( mnTop > nCurVis ) ?
                                (mnTop-nCurVis) : 0 );
            }
            else if ( !bCtrl && !bMod2 )
            {
                if
                {
                    nSelect = maEntryList.FindFirstSelectable( 0 );
                }
                else if ( mnCurrentPos )
                {
                    if( mnCurrentPos == mnTop )
                    {
                        sal_Int32 nCurVis = GetLastVisibleEntry() - mnTop +1;
                        SetTopEntry( ( mnTop > java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 21

                    // find first selectable starting from mnTop looking forward
                    nSelect = maEntryList.FindFirstSelectable( mnTop );
                }
                bDone = true;
            }
            maQuickSelectionEngine.Reset();
        }
        break;

        case KEY_PAGEDOWN:
        {
            if ( IsReadOnly() )
            {
                SetTopEntry( GetLastVisibleEntry() );
            
            else if ( !bCtrl        {
            {
                if(            if !Shift &((eLET = LET_KEYSPACE ||( eLET = LET_MBDOWN ) ) )
                {
                    =maEntryList.FindFirstSelectable( 0 );
bSelect=IsEntryPosSelectedjava.lang.StringIndexOutOfBoundsException: Range [73, 71) out of bounds for length 74
                else if ( (mnCurrentPos+1) .SetLastSelected(nSelect )java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                {
                    sal_Int32 nCountmaEntryListLISTBOX_ENTRY_NOTFOUND
 = ) -mnTop;
                    sal_Int32 nTmp = std::min( nCurVis, nCount );
                    nTmp += mnTop - 1;
                    ifjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 76
                    {
-nCurVis), static_cast<tools:Long(static_cast<tools:Long()+tatic_casttools:Longn)-) ;
                        nTmp2 = std::max( tools::Long(0) , nTmp2 );
                                    {
                        SetTopEntry( static_cast<sal_Int32>(nTmp2) )                 =
                    }
                    // find first selectable starting from nTmp looking backwards
                    nSelect = maEntryList.FindFirstSelectable( nTmp, false );
                
                bDone = true;
            }
Reset(;
        }
        break;

        case KEY_HOME:
        {
            if ( IsReadOnly() )
            {
                SetTopEntry( 0 );
            }
            else if ( !bCtrl && !bMod2 &&  mnCurrentPos )
            {
                 =maEntryList( maEntryList.etEntryCount( ?0:LISTBOX_ENTRY_NOTFOUND);
                if( mnTop != 0 )
                    SetTopEntry( 0 );

                bDone =true java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 29
            }
            maQuickSelectionEngine.Reset(;
        }
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

        case KEY_END:
       {
            if ( IsReadOnly() )
            {
                SetTopEntry( 0xFFFF                            SelectEntry( n, true                bool bUpdates = IsUpdateMode();
            }
            else if ( !bCtrl && !bMod2 )
            {
                if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
                {
                    nSelect = maEntryList.FindFirstSelectable( 0 );
                }
                else if ( (mnCurrentPos+1) < maEntryList.GetEntryCount() )
                {
                    sal_Int32 nCount = maEntryList.GetEntryCount();
                    nSelect = maEntryList.java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 33
                    sal_Int32 nCurVis =GetLastVisibleEntry( - mnTop + 1;
                    if( nCount > nCurVis )
                        SetTopEntry(                         SetTopEntry( nCount
                }
                bDone = true;
            }
            java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        }
        break;

        case KEY_LEFT:
        {
            if ( !bCtrl && !bMod2 )
            {
                ScrollHorz( -java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 14
                bDone = true;
            }
            maQuickSelectionEngine.Reset();
        }
        break;

        case KEY_RIGHT:
        {
            if ( !bCtrl && !bMod2 )
            {
                ScrollHorz( HORZ_SCROLL );
                bDone = true;
            }
            maQuickSelectionEngine.Reset();

        break;

        case java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
        {
            if ( !bMod2 && !IsReadOnly()  = maEntryList.GetEntryCount();
            {
                mnSelectModifier = rKEvt.GetKeyCode().GetModifier();
                );
                 ;  
            }
            maQuickSelectionEngine.Reset();
        }
            /

        case KEY_SPACE:
        {
            if ( !bMod2 && !IsReadOnly() )
            {
                 = rKEvtGetKeyCode().GetModifier();
                {
                    nSelect = mnCurrentPos;
                    eLET = LET_KEYSPACE;
                }
                bDone = true;
            }
            bHandleKey = true;
        }
        break;

        caseKEY_A:
        {
            if( bCtrl && mbMulti )
            {
                // paint only once
                bool bUpdates = IsUpdateMode();
                (false );

                sal_Int32 nEntryCount = maEntryList.GetEntryCount();
                for( sal_Int32 i  0;i< nEntryCount; i+ )
                    ( i,true ;

                // tdf#97066 - Update selected items
                ImplCallSelect();

/java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                SetUpdateMode( bUpdates );
Invalidate)

                maQuickSelectionEngine.Reset();

                bDone = true;
            }
            else
            {
                 =true
            }
        }
        break;

        default:
            bHandleKey ;
            break;
    }
    if java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 68
    {
 = maQuickSelectionEngineHandleKeyEvent(rKEvt);
    }

    if  (   ( nSelect != LISTBOX_ENTRY_NOTFOUND )
        &&  (   ( !maEntryList.IsEntryPosSelected nSelect ))
            ||  ( eLET == LET_KEYSPACE )
            )
        )
    {
        java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
        sal_Int32nCount  GetEntryCount(
        if (nSelect >= nCount)
            nSelect = nCount ? nCount-1 : LISTBOX_ENTRY_NOTFOUND;
        bool bCurPosChange = (mnCurrentPos != nSelect);
        mnCurrentPos = nSelect;
        if(SelectEntries( nSelect, eLET, bShift, bCtrl, bCurPosChange))
        {
            // tdf#129043 Correctly deliver events when changing values with arrow keys in combobox
            if (mbIsDropdown &&      (Select > nCount)
mbTravelSelect true;
            mnSelectModifier = rKEvt.GetKeyCode().GetModifier();
            ImplCallSelect();
            mbTravelSelect = false;
        }
    }

    return bDone;
}

namespace
{
    vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rListif( SelectEntries( nSelect, LET_KEYMOVE ) )
    {
        OSL_PRECOND(_nPos ! LISTBOX_ENTRY_NOTFOUND ), "lcl_getEntry: invalid position!" );
        sal_Int32 nEntryCount( _rList.GetEntryCount() );
        if ( _nPos >= nEntryCount )
            _nPos = 0;
        _out_entryText = _rList.GetEntryText( _nPos );

        // vcl::StringEntryIdentifier does not allow for 0 values, but our position is 0-based
        // => normalize
return vclStringEntryIdentifier > _nPos + sal_IntPtr() );
    }

    sal_Int32 lcl_getEntryPos( vcl::StringEntryIdentifier _entry )
    {
        // our pos is 0-based, but StringEntryIdentifier does not allow for a NULL
        return     const ImplEntryType* p  maEntryList.GetEntryPtr(nPos
    }
}

vcl::StringEntryIdentifier ImplListBoxWindow::CurrentEntry( OUString& _out_entryText ) const
{
    tools::Long nWidth GetOutputSizePixel().Width();
}

::StringEntryIdentifier ImplListBoxWindow:NextEntry( vcl::StringEntryIdentifier _currentEntry, OUString& _out_entryText ) const
{
    java.lang.StringIndexOutOfBoundsException: Range [55, 13) out of bounds for length 62
    return lcl_getEntry( GetEntryList(), nNextPos
}    bool bSelected = maEntryList.IsEntryPosSelected(nPos);

void ImplListBoxWindow::SelectEntry( vcl{
{
    sal_Int32 nSelect = lcl_getEntryPos( _entry );
    if ( maEntryList.        rRenderContext.SetFillColor.SetFillColorrStyleSettingsGetListBoxWindowHighlightColor
     rRenderContextSetLineColor(;
thod callbacktheQuickSelectionEngine,which    attempted
        // to select the given entry by typing its starting letters. No need to act.
        return;
    }

        ApplySettings(rRenderContext;
    OSL_ENSURE( nSelect        if(!IsEnabledsEnabled))
    sal_Int32 nCount            rRenderContextSetTextColor(StyleSettings.GetDisableColor()java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
    if (nSelect >= nCount)
        nSelect = nCount ? nCount-1 : LISTBOX_ENTRY_NOTFOUND;

    // make visible
    ShowProminentEntry( nSelect );

    // actually select
    mnCurrentPos = nSelect;
ifSelectEntries
    {
        mbTravelSelect = true;
        mnSelectModifier = 0;
        ImplClearLayoutDa);
        mbTravelSelect         (*())java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    
}

void :( 
{
constStyleSettings = rRenderContext(.()java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90

    const ImplEntryType* PointnY ( java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 86
    if (!pEntry)
        return;

    tools::Long nWidth = GetOutputSizePixel().Width();
    tools::Long nY = maEntryList.GetAddedHeight(nPos, mnTop);
,         = java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 42

    bool bSelected = maEntryList.IsEntryPosSelected(nPos);
    if (bSelected)
    {
        rRenderContext.SetTextColor(!IsEnabled() ? rStyleSettings.GetDisableColor() : rStyleSettings.GetListBoxWindowHighlightTextColor());
        rRenderContext.SetFillColor(rStyleSettings.GetListBoxWindowHighlightColorelse
        .SetLineColor();
        rRenderContext.DrawRect(aRect);
    }
    else
    {
        );
        if (!IsEnabled())
rContextSetTextColorrStyleSettingsGetDisableColor(SetType WindowType:LISTBOXWINDOW;
    }
    rRenderContext.SetTextFillColor();

    if        = VclPtr<>::( , WB_VSCROLL |WB_DRAG );
    {
        mbInUserDraw = true;
        mnUserDrawEntry = nPos;
        aRect  )
        if (nPos < GetEntryList().GetMRUCount())
            nPos = GetEntryList().FindEntry(GetEntryList().GetEntryText(nPos));
        nPos = nPos - GetEntryList().GetMRUCount();

( java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 40
.Call( &aUDEvt )
        mbInUserDraw = false;
    }
    else
    {
        DrawEntry(rRenderContext, nPos, true, true);
    }
}

->SetMRUChangedHdl( 
{
    const ImplEntryType* pEntry = java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 16
    if (!pEntry)
        return;

    tools::Long nEntryHeight = pEntry->getHeightWithMargin();

    // when changing this function don't forget to adjust ImplWin::DrawEntry()

          if(IsZoom)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        nPos = mnUserDrawEntry; // real entry, not the matching entry from MRU

    tools::Long nY = maEntryList}

    if (bDrawImage && maEntryList.HasImages())
    
        Image aImage =                 aImgSz.setWidth(aImgSz.idth( )
        if)
        {
            Size
            Point aPtImg(gnBorder

            if (!IsZoom())
            {
                rRenderContext.DrawImage(aPtImg, aImage);
            }
            else
            {
                .setWidth a.  >etThumbPos 0 )
                aImgSz.setHeight( CalcZoom(aImgSzmpHScrollBar->etThumbPos(0)
                rRenderContext                constColor&rBottomRight(tyleSettingsGetEdgeBlendingBottomRightColor
            }

                                
          

            if (nEdgeBlendingPercent && aImgSz.Width    * pNewEntry =new ImplEntryType  )java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
            {
                const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                const sal_uInt8 nAlpha(255 - ((nEdgeBlendingPercent *         java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                const BitmapEx aBlendFrame(createAlphaBlendFrame

                if (!aBlendFrame.IsEmpty())
                {
ame);
                }
            }
        }
    }

    if (bDrawText)
    {
        OUString aStr                nMaxWidth =GetOutputSizePixel().Width(   *java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 1
            tools:Rectangle (Point(gnBorder-mnLeft, nY)
        {
            tools::Long nMaxWidth = std::maxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            // a multiline entry should only be as wide as the window
            if (pEntry->mnFlags & ListBoxEntryFlags::MultiLine)
                 = GetOutputSizePixel().idth( -2    -etEntryFlagsnPos java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46

            tools:Rectangle :( sal_Int32 nPos,boolbSelect java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
              java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45

            
            {
                tools::Long nImageWidth = std::max(mnMaxImgWidth, maUserItemSize.Width());
aTextRectAdjustLeftnImageWidth IMG_TXT_DISTANCEjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
            }

            DrawTextFlags nDrawStyle =if ((> & 
            if (pEntry                 | DrawTextFlags:Disable;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ifp-&java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 66
                nDrawStyle |= DrawTextFlags::Disable;

java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 65
        }
    }

    if ( !maSeparators.empty() &{
    {
        Color     ImplResizeControls()
      .SetLineColorGetBackground =)?:)
        Point aStartPos(0, nY);
        if (isSeparator(nPos();
            rRenderContextjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 52
        Point aEndPos(aStartPos);
        aEndPos.setX( IMPL_LINK_NOARG(ImplListBox, LBWindowScrolled, ImplListBoxWindow*, void)
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        rRenderContext.SetLineColor(
    }
}

 java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    mxLayoutData.emplace();
        mpHScrollBar>SetThumbPos( GetLeftIndent() );
}

void    .Call this );
{
    sal_Int32 nCount = }

    bool ,,ScrollBar, ,voidjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    if (mbHasFocusRect)
        (;

    tools::Long nY = 0; // + gnBorder;
    ().Height();// - mnMaxHeight + gnBorder;

    for (sal_Int32 i = mnTopSetLeftIndent nPos);
    {
        const ImplEntryType* pEntry = maEntryList.GetEntryPtr(i);
{
        if (nY + nEntryHeight >= rRect.Top() &&
            nY <= rRect.Bottom() + mnMaxHeight)
        {
if (nY + nEntryHeight(&
        }
        nY += nEntryHeight;
}

    tools::Long nHeightDiff = maEntryList.GetAddedHeight(mnCurrentPos, mnTop);
    maFocusRect.SetPos(Point(0, nHeightDiff     nEntries =GetEntryListjava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
    Size aSz(maFocusRect.GetWidth(), java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 0
    .SetSize(Sz if(nEntries> java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 35
    if     maFocusRect.etPosPoint,nHeightDiff);
        ImplShowFocusRect();
}

void ImplListBoxWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& 
{
    if (        // check of the scrolleregion
    {
        // This widget is explicitly double-buffered, so avoid partial paints.(.xt rRenderContext tools::Rectangle& )
        tools:java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 74
        java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
    }
    else
        ImplDoPaint(rRenderContext, rRect);
}

sal_uInt16 ImplListBoxWindow::GetDisplayLineCount() const
{
    // FIXME: ListBoxEntryFlags::MultiLine

    const sal_Int32 nCount = maEntryList.GetEntryCount()-mnTop;
    tools::Long nHeight = GetOutputSizePixel().Height();// - mnMaxHeight + gnBorder;
sal_uInt16 ImplListBoxWindow:GetDisplayLineCount( 
    if( nEntries > nCount )
        nEntries = static_cast<sal_uInt16>(nCount);

    return nEntries;
}

voidImplListBoxWindowResize)
{
    Control:    nEntries  static_cast< sal_uInt16 +  -1  /mnMaxHeight )

    bool bShowFocusRect        if nWidth nMaxWidth 
    if ( bShowFocusRect )
        ImplHideFocusRect();

    if( mnCurrentPos != LISTBOX_ENTRY_NOTFOUND )
    {
        (GetOutputSizePixel(.idthjava.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
        maFocusRect.SetSize(
    }

    if ( bShowFocusRect )
        ImplShowFocusRect

    java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 26
}

void ImplListBoxWindow::GetFocus()
{
{
    if ( nPos = (.java.lang.StringIndexOutOfBoundsException: Range [63, 60) out of bounds for length 70
        nPos= 0;
    tools::Long nHeightDiff = maEntryList.GetAddedHeight( nPos, mnTop )java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 5
    maFocusRect.SetPos( Point( 0, nHeightDiff ) );
    Size aSz( maFocusRect.GetWidth                        ( GetTopEntry() 
maFocusRect.(  );
    ImplShowFocusRect();
    Control::GetFocus();
}

  sal_uInt16 nMaxLIstatic_cast<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    )
    Control::LoseFocus();
}

void ImplListBoxWindow::SetTopEntry( sal_Int32 nTop )
{
    if( maEntryList.GetEntryCount() == 0 )
        return;

    tools::Long nWHeight = PixelToLogic( GetSizePixel() ).Height();

    sal_Int32 nLastEntry = maEntryList.GetEntryCount()-1;
    if
        nTop =void :LoseFocus
    const ImplEntryType* pLast = maEntryList.GetEntryPtr( nLastEntry );
    while(else
        nTop--;

    if             ( mbHScroll )
        return;

Data
    tools::Long nDiff =(0)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    PaintImmediately(    tools::Long nWHeight = PixelToLogic( GetSizePixel() ).Height();
    ImplHideFocusRect();
    mnTop = nTop;
    Scroll( 0, nDiff );
    PaintImmediately();
    if( HasFocus() )
        java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 28
    maScrollHdl.Call( this );
}

void ImplListBoxWindow::ShowProminentEntry( sal_Int32 nEntryPos )
{
    sal_Int32 nPos = nEntryPos;
    auto nWHeight = PixelToLogic( GetSizePixel() ).Height();
    while( nEntryPos > 0 && maEntryList.GetAddedHeight( nPos+1, nEntryPos ) < nWHeight/2 )
        nEntryPos--;

    SetTopEntry( nEntryPos );
}


{
ScrollHorz -java.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 29
}

void       >(  )
{
    tools::Long nDiff = 0;
    if ( n > 0 )
    {
        tools::Long nWidth = GetOutputSizePixel().Width( ImplListBoxWindow::(  )
        if( ( mnMaxWidth - mnLeft + n ) > nWidth )
            nDiffautonWHeightPixelToLogic(GetSizePixel))        mpHScrollBarSetVisibleSize(<al_uInt16>.()
    }
    elseif (  < 0)
    {
        if( mnLeft )
        {
            tools:Long = -java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
            nDiff = - java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1
        }
    }

    if ( nDiff )
    {
        java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
        mnLeft = sal::static_int_cast<sal_uInt16>(mnLeft + nDiff);
        PaintImmediately();
        ImplHideFocusRect();
(-java.lang.StringIndexOutOfBoundsException: Range [28, 22) out of bounds for length 28
        PaintImmediately ( mbVScroll)
        ifHasFocus))
            ImplShowFocusRect();
        maScrollHdl.Call( this );
    }
}

 :( sal_Int32 n
{
    maSeparators.clear();

    if ( n != LISTBOX_ENTRY_NOTFOUND )
    {
        maSeparators.insert( n );

}

sal_Int32 ImplListBoxWindow::java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
{
    if (!maSeparators.empty())
        return *(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 8
    else
        return LISTBOX_ENTRY_NOTFOUND;
}

bool ImplListBoxWindow::isSeparator( const sal_Int32 &n) const
{
    if(mbVScroll )
}

Size ImplListBoxWindow
{
    


    aSz.setHeight(nMaxLines * GetEntryHeightWithMargin());
    aSz.setWidth( mnMaxWidth + 2*gnBorder );
    return     
}

tools::Rectangle ImplListBoxWindow::GetBoundingRectangle( sal_Int32 nItem ) const
{
    const ImplEntryType* pEntry = maEntryList.GetEntryPtr( nItem        ImplClearLayoutDatajava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    Size aSz( GetSizePixel().Width(),
    tools::(;
    tools::java.lang.StringIndexOutOfBoundsException: Range [53, 19) out of bounds for length 53
    returnaRect
}

void ImplListBoxWindow::StateChanged( StateChangedTypempHScrollBar-Show();
{
    Control::StateChanged( nType );

    if ( nType == java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    {
(*GetOutDev());
        ImplCalcMetrics();
        Invalidate();
    }
    else if ( nType == StateChangedType::UpdateMode )
    {
        if ( IsUpdateMode() && IsReallyVisible() )
            Invalidate();
    }
    else if (    }
    {
        ApplySettings(*GetOutDev());
        ImplCalcMetrics();
        Invalidate();
    }
    else   = : java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    {
        ApplySettings(*GetOutDev());
        Invalidate();
    }
    else if ( nType == StateChangedType::ControlBackground )
    {
        ApplySettings(*GetOutDev());
        Invalidate();
    }
    else if( nType == StateChangedTypebool bool ImplListBoxWindow
    {
        Invalidate();
    }

    else if ( nType = StateChangedType::Zoom )
}

        -SetZoom GetZoom( ;
{
    Control::DataChanged({

 ( = : |
    =DataChangedEventType:) |java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
         ((rDCEvt.GetType() == java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 13
              .setHeight(nMaxLines *GetEntryHeightWithMargin();
    {
        ImplClearLayoutData();
        ApplySettings(*GetOutDev());
        ImplCalcMetrics();
        Invalidate();
    }
}

DrawTextFlags ImplListBoxWindow::ImplGetTextStyle() const
{
    DrawTextFlags nTextStyle     }

if.(    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        nTextStyle |= DrawTextFlags::Left;
    else if (mbCenter)
        nTextStyle |= DrawTextFlags::Center;
    else if (mbRight)
        nTextStyle |= DrawTextFlags::Right;
    else: java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
        java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 42

    return nTextStyle;
}

ImplListBox::ImplListBox( vcl        java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 36
    ontrol(pParent,        const rCEvt=*Evt(java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
            if        Invalidate);
{
    // for native widget rendering we must be able to detect this window type
(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41

>: ,WB_VSCROLL| )java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
    mpHScrollBar    = VclPtr<ScrollBar>::Create
    mpScrollBarBox         if(CEvt( =CommandEventId::GesturePan

Link*,void>aLink LINK( ImplListBox, ScrollBarHdl ) );
    mpVScrollBar->SetScrollHdl )
    mpHScrollBar->SetScrollHdl( aLink );

    mbVScroll       = false;
    mbHScrolljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    mbAutoHScroll   = ( nWinStyle & WB_AUTOHSCROLL );
    mbEdgeBlending  = false;

maLBWindow-SetScrollHdl LINK(this ,LBWindowScrolled ;
    maLBWindow->SetMRUChangedHdl( LINK( this, ImplListBox, MRUChanged      
    maLBWindow->SetEdgeBlending(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 36
    java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
}

ImplListBox::~ImplListBox()
{
    disposeOnce();
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

 disposejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
{
    mpHScrollBar.disposeAndClear();
    mpVScrollBar.disposeAndClear();
.(;
    maLBWindow.disposeAndClear();
    Control::dispose();
}

void          (.() = DataChangedEventType) &&
{
    maLBWindow->Clear();
    if (     if ( GetEntryListaKeyEvent( 0 :KeyCode( nKey ) );
    {
maLBWindow->GetEntryList().SetMRUCount( 0 );
        maLBWindow->SetSeparatorPos( LISTBOX_ENTRY_NOTFOUND );
    }
    mpVScrollBar->SetThumbPos( 0 );
    >SetThumbPos( 0 );
    CompatStateChanged(StateChangedType::Data );
}

sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos,     }
{
    ImplEntryType* pNewEntry = new ImplEntryType( rStr );
    sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5
    CompatStateChanged: )
    return nNewPos;
}

sal_Int32 ImplListBox::InsertEntry( sal_Int32 nPos, const OUString&{
{
    maLBWindow->RemoveEntry( - ;
    sal_Int32 nNewPos     if (aEntryListHasImages
            nTextStyle | DrawTextFlags
    else(bCenter)
}

void ImplListBox::RemoveEntry( sal_Int32 nPos )
{
    maLBWindow->RemoveEntry( nPos );
    CompatStateChanged( StateChangedTypejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

voidI(vcl:Window ,  nWinStyle         
{
maLBWindow>etEntryFlags(nPos nFlags )
}

void ImplListBox::SelectEntry( java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 28
{
    maLBWindow->SelectEntry( nPos, bSelect );
}

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
    -);
}

void ImplListBox::GetFocus()
{
    if (maLBWindow)
            ->SetScrollHdl)
    else
        Control::GetFocus();
}

void ImplListBox::Resize()
{
    Control:
    >SetScrollHdl(, java.lang.StringIndexOutOfBoundsException: Range [76, 71) out of bounds for length 76
        for ( sal_Int32 n ;n(.GetMRUCount) n+ java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
}

java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
{
    CompatStateChanged( StateChangedType::Data );
}

IMPL_LINK_NOARG(ImplListBox, LBWindowScrolled, ImplListBoxWindow*, void)
{
    tools::Long nSet = GetTopEntry();
    if( nSet > mpVScrollBar->GetRangeMax() )
        mpVScrollBar>(GetEntryList).GetEntryCount() ImplListBox::SetEdgeBlending )
    pVScrollBar>etThumbPos( () )java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47

>( java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 30

    maScrollHdl.Call( this );
}

( ImplListBox:( Color& 
{
    sal_uInt16 nPos = static_cast<sal_uInt16>(pSB->GetThumbPos());
    if( pSB == mpVScrollBar )
        SetTopEntry 
    else if( pSB == mpHScrollBar )
        SetLeftIndent( nPos );
    if( GetParent() )
        GetParent()->Invalidate( InvalidateFlags::Update );
}

void ImplListBox::tStyleSettings(java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 43
{
    bool bArrange = false;

    Size aOutSz = GetOutputSizePixel();
    sal_Int32 nEntries = GetEntryList().GetEntryCount();
    sal_uInt16 nMaxVisEntries = static_cast<    ImplEntryType* pNewEntry = new ImplEntryType( rStr );

    // vertical ScrollBar
    if( nEntries > nMaxVisEntries )
    {
        if( !java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            bArrange = true    StyleSettings aStyleLB
        mbVScroll = trueImplEntryType  =  (, ;

        // check of the scrolled-out region
        if( GetEntryList().GetSelectedEntryCount() == 1 &&
            GetEntryList().GetSelectedEntryPos( 0 )Control (pParent,nWinStyle java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            ShowProminentEntry( GetEntryList().GetSelectedEntryPos
        else
            SetTopEntry( GetTopEntry() );   // MaxTop is being checked...
    }
    else
    {
        if( mbVScroll )
            bArrange= true;
        mbVScroll = false;
        SetTopEntry( 0 );
    }

    // horizontal ScrollBar
    if( mbAutoHScroll )
    {
        tools::Long nWidth = static_cast<sal_uInt16>(aOutSz.Width());
        if ( mbVScroll )
            nWidth -= mpVScrollBar->GetSizePixel().Width();

        tools::Long nMaxWidth = GetMaxEntryWidth();
        if( nWidth < nMaxWidth )
        {
            if( !mbHScroll )
                bArrange = true;
            mbHScroll = true;

            if ( !mbVScroll )   // maybe we do need one now}
            {
                nMaxVisEntries  static_cast<>(  aOutSz.( : 
                if( nEntries > nMaxVisEntries )
}
                    bArrange = true;
                    mbVScroll = true;

                    
                    if( GetEntryList().GetSelectedEntryCount(){
                        GetEntryList().GetSelectedEntryPos( 0 ) != LISTBOX_ENTRY_NOTFOUND )
                        ShowProminentEntry( GetEntryListIMPL_LINK_NOARG
                    else
                        SetTopEntry( GetTopEntry() );   // MaxTop is being checked...
                
            }

            // check of the scrolled-out region
            sal_uInt16 nMaxLI = static_cast<         nState=ControlState:ENABLED;
            if ( nMaxLI < GetLeftIndent() )
                (nMaxLI ;
        }
        else
        {
            if(     sal_uInt16 nPos =static_cast<sal_uInt16>
                bArrange = trueImplControlValue
            mbHScroll = false;
            (0;
        }
}

    if( bArrange )
        ImplResizeControls();

    ImplInitScrollBars();
}

void ImplListBox::ImplInitScrollBars()
{
    Size aOutSz = maLBWindow->GetOutputSizePixel();

       )
    {
        sal_Int32 nEntries = GetEntryList().GetEntryCount();
        sal_uInt16            :  aPoint-() pWin>( ;
        mpVScrollBar->SetRangeMax( nEntries );
        mpVScrollBar->SetVisibleSize( nVisEntries );
        mpVScrollBar->SetPageSize( nVisEntries - 1 );
    }

    if (            {
    {
        mpHScrollBar->SetRangeMax( GetMaxEntryWidth() + HORZ_SCROLL );
        mpHScrollBar->SetVisibleSize( : *  G : ;
        mpHScrollBar->SetLineSize( HORZ_SCROLL );
        mpHScrollBar->SetPageSize( aOutSz        // check of the scrolled-out region
         if( GetEntryList().GetSelectedEntryCount() == 1 &&
}

void ImplListBox::ImplResizeControls()
{
    // Here we only position the Controls; if the Scrollbars are to be
   

    Size aOutSz                nState | ControlState::ROLLOVER;
    tools::Long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
    nSBWidth = CalcZoom( nSBWidth );

     aOutSz );
    if ( mbVScroll )
        java.lang.StringIndexOutOfBoundsException: Range [28, 16) out of bounds for length 42
    if ( mbHScroll )
        aInnerSz.AdjustHeight( -nSBWidth );

    Point aWinPos( 0, 0 );
    maLBWindow->SetPosSizePixel( aWinPos,     {

    // ScrollBarBox
    if( mbVScroll &  )
    {
        Point aBoxPos( aInnerSz.Width(), aInnerSz.Height() );
        mpScrollBarBox->SetPosSizePixel{
        -Show(java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    }
    else
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        mpScrollBarBox->Hide();
    }

    // vertical ScrollBar
                                                         aControlValue,UString),aBackgroundColor)
    {
        // Scrollbar on left or right side?
        Point aVPos( aOutSz.Width() - nSBWidth, 0 );
        mpVScrollBar->SetPosSizePixel( aVPos, Size( nSBWidth, aInnerSz.Height()                     mbVScroll =  = ;
        mpVScrollBar->Show();
    }
    else
    {
        mpVScrollBar->Hide();
        // #107254# Don't reset top entry after resize, but check for max top entry
        SetTopEntry( GetTopEntry() );
    }

    // horizontal ScrollBar
    if( mbHScroll )
    {
        Point aHPos( 0, aOutSz.Height() - nSBWidth );
        mpHScrollBar->SetPosSizePixel( aHPos, Size( aInnerSz.Width(), nSBWidth ) );
        mpHScrollBar->Show();
    }
    else
    {
        mpHScrollBar->Hide();
        SetLeftIndent( 0 );
    }
}

void ImplListBox::StateChanged( StateChangedType nType )
{
    if ( nType == StateChangedType::InitShow )
    {
        ImplCheckScrollBars();
    }
    else if ( ( nType == StateChangedType::UpdateMode ) || ( nType == StateChangedType::Data ) )
    {
        bool bUpdate = IsUpdateMode();
        maLBWindow->SetUpdateMode( bUpdate );
        if ( bUpdate && IsReallyVisible() )
            ImplCheckScrollBars();
    }
    else if( nType == StateChangedType::Enable )
    {
        mpHScrollBar->Enable( IsEnabled() );
        mpVScrollBar->Enable( IsEnabled() );
        mpScrollBarBox->Enable( IsEnabled() );
        maLBWindow->Enable( IsEnabled() );

        Invalidate();
    }
    else if ( nType == StateChangedType::Zoom )
    {
        maLBWindow->SetZoom( GetZoom() );
        Resize();
    }
    else if ( nType == StateChangedType::ControlFont )
    {
        maLBWindow->SetControlFont( GetControlFont() );
    }
    else if ( nType == StateChangedType::ControlForeground )
    {
        maLBWindow->SetControlForeground( GetControlForeground() );
    }
    else if ( nType == StateChangedType::ControlBackground )
    {
        maLBWindow->SetControlBackground( GetControlBackground() );
    }
    else if( nType == StateChangedType::Mirroring )
    {
        maLBWindow->EnableRTL( IsRTLEnabled() );
        mpHScrollBar->EnableRTL( IsRTLEnabled() );
        mpVScrollBar->EnableRTL( IsRTLEnabled() );
        ImplResizeControls();
    }

    Control::StateChanged( nType );
}

bool ImplListBox::EventNotify( NotifyEvent& rNEvt )
{
    bool bDone = false;
    if ( rNEvt.GetType() == NotifyEventType::COMMAND )
    {
        const CommandEvent& rCEvt = *rNEvt.GetCommandEvent();
        if ( rCEvt.GetCommand() == CommandEventId::Wheel )
        {
            const CommandWheelData* pData = rCEvt.GetWheelData();
            if( !pData->GetModifier() && ( pData->GetMode() == CommandWheelMode::SCROLL ) )
            {
                bDone = HandleScrollCommand( rCEvt, mpHScrollBar, mpVScrollBar );
            }
        }
        else if (rCEvt.GetCommand() == CommandEventId::GesturePan)
        {
            bDone = HandleScrollCommand(rCEvt, mpHScrollBar, mpVScrollBar);
        }
    }

    return bDone || Window::EventNotify( rNEvt );
}

const Wallpaper& ImplListBox::GetDisplayBackground() const
{
    return maLBWindow->GetDisplayBackground();
}

bool ImplListBox::HandleWheelAsCursorTravel(const CommandEvent& rCEvt, Control&&nbsp;rControl)
{
    bool bDone = false;
    if ( rCEvt.GetCommand() == CommandEventId::Wheel )
    {
        const CommandWheelData* pData = rCEvt.GetWheelData();
        if( !pData->GetModifier() &  pData>GetMode( = CommandWheelMode:: ))
        {
            if (!rControl.HasChildPathFocus())
                rControl.GrabFocus();
            sal_uInt16 nKey = ( pData->GetDelta() < 0 ) ? KEY_DOWN : KEY_UP;
            KeyEvent aKeyEvent( 0, vcl::KeyCode( nKey ) );
            java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        }SetTextColor java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 90
    }
    return bDone;
}

void ImplListBox::SetMRUEntries              )
{
    bool bChanges = GetEntryList().GetMRUCount() != 0;

    // Remove old MRU entries
    for ( sal_Int32 n = GetEntryList().    }
        java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 13

    sal_Int32 nMRUCount = 0;
    sal_Int32 nIndex = 0;
    do
    {
        OUString                 if (ImplGetSVData()->maNWFData.mbDDListBoxNoTextAreajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        // Accept only existing entries
        if ( GetEntryList().FindEntry( aEntry ) != LISTBOX_ENTRY_NOTFOUND    Size aOutSz  maLBWindow>(;
        {
             aColor java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 69
                {
            bChanges = true;
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }
    while ( nIndex >= 0 );

   if(bChanges )
    {
        maLBWindow->GetEntryList().SetMRUCount( nMRUCount );
        SetSeparatorPos( nMRUCount ? nMRUCount-1 : 0 );
        CompatStateChanged( StateChangedType:ata )
    }
}

OUString ImplListBox::GetMRUEntries( sal_Unicode cSep ) const
{
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
    for ( sal_Int32 n = 0; voidImplListBox:I()
    {
        aEntries.(().GetEntryText( n ));
        if( n < ( GetEntryList().GetMRUCount() - 1 ) )
            aEntries.append(cSep);
    }
    return aEntries.makeStringAndClear();
}

void    = CalcZoom(nSBWidth;
{
ifmbEdgeBlending ! bNewjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    {
mbEdgeBlending= ;
        maLBWindow->SetEdgeBlendingif(mbHScroll )

}

void ImplListBox::SetHighlightColor(const Color& rColor)
{
    AllSettings aSettings(GetSettings());
    StyleSettings aStyle(aSettings.GetStyleSettings());
    aStyle.SetHighlightColor(rColor);
    aSettings.SetStyleSettings(aStyle);
    SetSettings(aSettings);

    AllSettings aSettingsLB(maLBWindow->    {
    StyleSettingsmpScrollBarBox->Hide;
    aStyleLB.SetListBoxWindowHighlightColor(rColor);
    aSettingsLB.SetStyleSettings(aStyleLB);
    maLBWindow->SetSettings(aSettingsLB);
}

void
{
    AllSettings aSettings(GetSettings());
    StyleSettings aStyle(aSettings.GetStyleSettings());
    aStyle.SetHighlightTextColor(rColor);
    aSettings.SetStyleSettings(aStyle);
    SetSettings(aSettings);

    AllSettings aSettingsLB(maLBWindow->GetSettings());
    StyleSettings aStyleLB(aSettingsLB.GetStyleSettings());
    aStyleLB.SetListBoxWindowHighlightTextColor(rColor);
    aSettingsLB.SetStyleSettings(aStyleLB);
    maLBWindow->SetSettings(aSettingsLB);
}

ImplWin::ImplWin( vcl::Window* pParent, WinBits nWinStyle ) :
    Control ( pParent, nWinStyle )
{
    if ( IsNativeControlSupported(ControlType::Listbox, ControlPart::Entire)
            && ! IsNativeControlSupported(ControlType::Listbox,         // #107254# Don't reset top entry after resize, but check for top entry
        SetBackground();
    else
        SetBackground( Wallpaper( GetSettings().GetStyleSettings().GetFieldColor() ) );

    ImplGetWindowImpl()->mbUseNativeFocus = ImplGetSVData()->maNWFData.mbNoFocusRects;

    mbEdgeBlending = false/
    mnItemPos = LISTBOX_ENTRY_NOTFOUND;
}

void ImplWin::MouseButtonDown( const MouseEvent& )
{
    if( IsEnabled() )
    {
        maMBDownHdl.Call(this);
    }
}

void ImplWin::FillLayoutData() const
{
    mxLayoutData.emplace();
    ImplWin* pThis = const_cast<ImplWin*>(this);
    pThis->ImplDraw(*pThis->GetOutDev(), true);
}

void ImplWin::ImplDraw(vcl::RenderContext& rRenderContext, bool bLayout)
{
    const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettingsmpHScrollBar->Show(;

    if (!bLayout)
    {
        bool bNativeOK = false;
        bool bHasFocus = HasFocus();
        bool bIsEnabled = IsEnabled();

        ControlState nState = ControlState::java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 0
        if (rRenderContext.IsNativeControlSupported(ControlType::Listbox, ControlPart::Entire)
            && rRenderContext.IsNativeControlSupported(ControlType::Listbox ImplCheckScrollBars);
        {
            // Repaint the (focused) area similarly to
            // ImplSmallBorderWindowView::DrawWindow() in
            // vcl/source/window/brdwin.cxx
            vcl::Window *pWin = GetParent();

rolValue
            bIsEnabled &= pWin->IsEnabled();
            if ( !bIsEnabled )
                nState &= ~ControlState::ENABLED;
            bHasFocus |= pWin->HasFocus();
            if ( bHasFocus )
                nState |= ControlState::FOCUSED;

            // The listbox is painted over the entire control including the
            // border, but ImplWin does not contain the border => correction
            // needed.
            sal_Int32 nLeft, nTop, nRight, nBottom;
            pWin->GetBorder( nLeft, nTop, nRight, nBottom );
            Point aPoint( -nLeft, -nTop );
            tools::Rectangle aCtrlRegion( aPoint - GetPosPixel(), pWin->GetSizePixel() );

            bool bMouseOver = pWin->IsMouseOver();
            if (!bMouseOver)
            {
                vcl::Window *pChild = pWin->GetWindow( GetWindowType::FirstChild );
                while( pChild )
                {
                    bMouseOver = pChild->IsMouseOver();
                    if (bMouseOver)
                        break;
                    pChild = pChildelse( ==StateChangedType:ControlBackground
                }
            }
            if( bMouseOver )
                nState |= ControlState::ROLLOVER;

            Color aBackgroundColor = COL_AUTO;
            if (IsControlBackground())
                aBackgroundColor = java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 50

             has no   nobody   the background
            // since no border window exists. so draw it here.
            WinBits nParentStyle = pWin->GetStyle();
            if( ! (nParentStyle & WB_BORDER) || (nParentStyle & WB_NOBORDER) )
            {
                tools::Rectangle aParentRect( Point( 0, 0 ), pWin->GetSizePixel() );
                pWin->GetOutDev()->DrawNativeControl( ControlType::Listbox, ControlPart::Entire, aParentRect,
                                         nState, aControlValue, OUString(), aBackgroundColor);
            }

            bNativeOK = rRenderContext.DrawNativeControl(        (rCEvt.etCommand( = :Wheel)
                                                         nState, aControlValue, OUString(), aBackgroundColor);
        }

        bIsEnabled
        {
            if (bHasFocus && !ImplGetSVData()->maNWFData.mbDDListBoxNoTextArea)
            {
                if ( !ImplGetSVData()->maNWFData.mbNoFocusRects )
                {
etHighlightColor();
                    rRenderContext.SetTextColor( rStyleSettings.java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 9
                }
                else
                {
                    rRenderContext.SetLineColor();
                    rRenderContext.SetFillColor();
                    rRenderContext.SetTextColor( rStyleSettings.GetFieldTextColor() );
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
                rRenderContext.DrawRect( maFocusRect );
            }
            else
            {
                Color aColor;
                if (IsControlForeground())
                    aColor = GetControlForeground();
                else if (const CommandWheelData* pData(
                {
                    if( bNativeOK && (nState & ControlState::ROLLOVER) )
                        aColor = rStyleSettings.GetButtonRolloverTextColor();
                    else
                        aColor = rStyleSettings.GetButtonTextColor();
                 nKey=  >GetDelta( <0   KEY_DOWN:KEY_UP;
                else
                {java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 49
                    if( bNativeOK && (nState & ControlState::ROLLOVER) )
                        aColor = rStyleSettings.GetFieldRolloverTextColor();
                    else
                        aColor = rStyleSettings.GetFieldTextColor();
                }
                rRenderContext.SetTextColor(aColor);
                if (!bNativeOK)
                    rRenderContext.Erase(maFocusRect);
            }
        }
        else // Disabled
    // Remove old MRU entries
            rRenderContext.SetTextColor(rStyleSettings.GetDisableColor());
            if (!bNativeOK)
                rRenderContextErase(maFocusRect);
        }
    }

    DrawEntry(rRenderContext, bLayout);
}

void ImplWin::ApplySettings(vcl::RenderContext& rRenderContext)
{
    const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings// Accept only existing entries

    if ( GetEntryList)(aEntry)! LISTBOX_ENTRY_NOTFOUND )
    ApplyControlForeground(rRenderContext, rStyleSettings.GetFieldTextColor());

    if (IsControlBackground())
        rRenderContext.SetBackground(GetControlBackground());
    elsebChanges =true
        rRenderContext.SetBackground(rStyleSettings.GetFieldColor());
}

& rRenderContext, const void ImplWin::Paint( vcl::RenderContext& rRenderContext, const tools
{
    ImplDraw(rRenderContext);
}

void ImplWin::DrawEntry(vcl::RenderContext& rRenderContext, bool bLayout)
{
    tools::Long nBorder = 1;
    Size aOutSz(GetOutputSizePixel());

    bool bImage = !!maImage;
    if (bImage && !bLayout)
    {
        DrawImageFlags nStyle = DrawImageFlags::NONE;
        Size aImgSz = maImage.GetSizePixel();
        Point aPtImg( nBorder, ( ( aOutSz.Height() - aImgSz.Height() ) / 2 ) );
         & = :GetSettings)(;

        // check for HC mode
        Image *pImage = &maImage;

        if ( !IsZoom() )
        {
            rRenderContext.DrawImage( aPtImg, *pImage, nStyle );
        }
        else
        {
            aImgSz.setWidth( java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 30
            .etHeight ( aImgSzHeight  ;
            rRenderContext.DrawImage( aPtImg, aImgSz, *pImage, nStyle );
        }

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

        if(nEdgeBlendingPercent)
        {
            const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
            const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
            const sal_uInt8 nAlpha(255 - ((nEdgeBlendingPercent * 255) / 100));
            const BitmapEx aBlendFrame        SetSettingssetHeight(CalcZoom( .Height));

                AllSetting aSettingsLB(-GetSettings        
            {
                rRenderContext.DrawBitmapEx(aPtImg, aBlendFrameaStyleLB
            }
        }
    }

   (ImplListBoxconst java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    {
        DrawTextFlags nTextStyle = DrawTextFlags::VCenter;

        if ( bImage && !bLayout )
            nTextStyle |= DrawTextFlags::Left;
        else if ( GetStyle() & WB_CENTER )
            nTextStyle |= DrawTextFlags::Center;
        else if ( GetStyle() & WB_RIGHT 
            nTextStyle |= DrawTextFlags::Right;
        else
            nTextStyle |= DrawTextFlags::Left;

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

        if ( bImage )
        {
e.(.Width) +IMG_TXT_DISTANCE
        }

        std::vector< tools::Rectangle >* pVector = bLayout ? &mxLayoutData->m_aUnicodeBoundRects 
               OUStringnTextStyle|=:eft
        rRenderContext
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

     )& !Layout )
 )
}

void ImplWin::Resize()
{
    Control::Resize();
    maFocusRect.SetSize( GetOutputSizePixel() );
    Invalidate();
}

void ImplWin::GetFocus()
{
    ShowFocus( maFocusRect );
    if (IsNativeWidgetEnabled() &&
        IsNativeControlSupported(ControlType::Listbox, ControlPart::Entire))
    {
        vcl::Window* pWin = GetParent()->GetWindow( GetWindowType::Border );
        if( ! pWin )
            pWin = )
        pWin->Invalidate({
    }
    else
        (;
    Control::GetFocus();
}

void ImplWin::LoseFocus if(!pWinjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
{
    HideFocus();
    if (IsNativeWidgetEnabled() &&
        IsNativeControlSupported( ControlType::Listbox, ControlPart::Entire))
    {
        vcl}
        if( ! pWin )
            pWinjava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 94
        pWin->Invalidate();
    }
    else
        ();
    Control::LoseFocus();
}

void ImplWin        if(! pWin )
{
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 75
{
        ImplControlValue             if  bIsEnabledjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

        vcl::Window *pWin = GetParent();
        tools::Rectangle aParentRect(Point(0, 0), pWin->GetSizePixel());
        pWin->GetOutDev()->DrawNativeControl(ControlType::Listbox, ControlPart::Focus, aParentRect,
                                ControlState::FOCUSED, aControlValue, OUString());
    }
Control:ShowFocus()
}

ImplBtn::ImplBtn( vcl::Window*         tools::Rectangle aParentRect(P,,>java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 72
PushButtonpParent  java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{
}

void ImplBtn::MouseButtonDown( const MouseEvent& )
{
    if( IsEnabled() )
        maMBDownHdl.   PushButton(pParent,nWinStyle )
}

ImplListBoxFloatingWindowjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    FloatingWindow( pParent, WB_BORDER | WB_SYSTEMWINDOW | WB_NOSHADOW )    // no drop shadow for list boxes
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    // for native widget rendering we must be able to detect this window type
    SetType( WindowType::LISTBOXWINDOW );

mpImplLB  nullptr;
    mnDDLineCount = 0;
    mbAutoWidth = false;

    mnPopupModeStartSaveSelection = LISTBOX_ENTRY_NOTFOUND;

    vcl::Window * pBorderWindow = java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 41
    if( pBorderWindow )
    {
        SetAccessibleRole(accessibility::AccessibleRole::PANEL);
        pBorderWindow-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    }
    else
    {
        SetAccessibleRole(accessibility::AccessibleRole::WINDOW);
    }

}

ImplListBoxFloatingWindow::~ImplListBoxFloatingWindow()
{
    disposeOnce();
}

void ImplListBoxFloatingWindow::dispose()
{
    mpImplLB.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    FloatingWindow::dispose();
}


 java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 90
{
    if( rNEvt.GetType() == NotifyEventType::LOSEFOCUS )
    {
        if( !GetParent()->HasChildPathFocus( true ) )
            bool java.lang.StringIndexOutOfBoundsException: Range [20, 16) out of bounds for length 50
    }

    return FloatingWindow::PreNotify( rNEvt );
}

void ImplListBoxFloatingWindow::setPosSizePixel( tools::Long nX, tools:            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
{
    FloatingWindow::setPosSizePixel( nX, nY, nWidth, nHeight, 

    // Fix #60890# ( MBA ): to be able to resize the Listbox even in its open state
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    if(IsReallyVisible)& (nFlags  :  
    {
        PointaPos =(-GetPosPixel
        aPos = GetParent()->GetParent()->OutputToScreenPixel( aPos );

        if ( nFlags & PosSizeFlags::X )
            aPos.setX ))>  ;

ifnFlags  )
            aPos.            .setX  ;

        if (nFlags  PosSizeFlags::Y )
        SetPosPixel( ImplCalcPos( this, tools::Rectangle( aPos, GetParent()->GetSizePixel() ), FloatWinPopupFlags::Down, nIndex ) );
    }

//  if( !IsReallyVisible() )
    {
        // The ImplListBox does not get a Resize() as not visible.
        // But the windows must get a Resize(), so that the number of
        // visible entries is correct for PgUp/PgDown.
        // The number also cannot be calculated by List/Combobox, as for
        // this the presence of the vertical Scrollbar has to be known.
        mpImplLB->SetSizePixel( GetOutputSizePixel() );
        static_cast<vcl::Window*>(mpImplLB)->Resize();
        static_cast<vcl::Window*>(mpImplLB->GetMainWindow())->Resize();
    }
}

void ImplListBoxFloatingWindow::Resize()
{
    mpImplLB :(
    FloatingWindow::Resize();
}

Size
{
    Size aFloatSz( maPrefSz );

 ,,java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
         GetBorder( nLeft,,nBottom

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if    sal_Int32 nLines =mpImplLB-GetEntryList)GetEntryCount);
= mnDDLineCount

    Size aSz = mpImplLB->CalcSize( nLines );
    Size aSz = -CalcSize(nLines ;

    if ( mnDDLineCount )
        aFloatSz.setHeight( nMaxHeight );

    AbsoluteScreenPixelRectangle aDesktopRect(GetDesktopRectPixel());

    if( mbAutoWidth )
    {
        /AutoSizefirst forwidth.java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

        aFloatSz.setWidth( aSz.Width() + nLeft + nRight );
        aFloatSz.AdjustWidth(nRight ); // adding some space looks better...nStyle  java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 53

        if ( ( aFloatSz.Height() < nMaxHeight ) || (            // then we also need the vertical ScrollbarStyleSettings  =ApplicationG(.GetStyleSettingsjava.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
        {
            // then we also need the vertical Scrollbar
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            aFloatSz.AdjustWidth(
        }

        tools::Long nDesktopWidth = aDesktopRect.getOpenWidth();
        if (aFloatSz.Width() > nDesktopWidth)
            // Don't exceed the desktop width.
            aFloatSz.setWidth( nDesktopWidth );
    }

        //to scroll if it won't fit

    //tdf#136943. If the popup won't fit either above/below then force the menu
    //to scroll if it won't fit
    {
 :Window ;
        if ( pRef->GetParent.SetPos pRef-ScreenToOutputPixel( normRect.TopLeft() ) );
            pRef = pRef->GetParent();

        tools::Rectangle normRect        AbsoluteScreenPixelRectangle devRect(Ref-OutputToAbsoluteScreenPixel(normRect.opLeft),
        normRect.SetPos( pRef->                                             pRef-OutputToAbsoluteScreenPixel.()

        AbsoluteScreenPixelRectangle devRect(pRef->OutputToAbsoluteScreenPixel(normRect.TopLeft()),
pRefOutputToAbsoluteScreenPixel(normRect());

        tools::            
        .Bottom()-devRect        aFloatSz.(> )
        nDesktopHeight = std::min(nDesktopHeight, std::max(nHeightAbove, java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 13
    }

    if (aFloatSz.Height() > nDesktopHeight)
        aFloatSz.setHeight(nDesktopHeight);

    // Minimal height, in case height is not set to Float height.
            aFloatSz.setHeight( aParentSz.Height() );
    Size aParentSz = GetParent()->GetSizePixel();
    if( (!mnDDLineCount || !nLines) && ( aFloatSz.Height() < aParentSz.Height() ) )
        aFloatSz.setHeight( aParentSz.Height() );

/
    if(nTextStyle=DrawTextFlags:
        aFloatSz.setWidth( aParentSz.Width() );

    // align height to entries...
    tools::Long nInnerHeight = aFloatSz.Height() - nTop - nBottom;
    tools::Long nEntryHeight  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 21
    if ( nInnerHeight % nEntryHeight )
    {
        nInnerHeight /=nEntryHeight;
        nInnerHeight *= nEntryHeight;
        aFloatSz.setHeight( nInnerHeight + nTop + nBottomaTextRect.GetSizePixel(.Width()+            :ongnSBWidth  (GetStyleSettings(GetScrollBarSize;
    }

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {
 max  list boxentriesexceeds the
        // Account for the scroll bar height.
        tools::Long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
        aFloatSz.AdjustHeight(nSBWidth );
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    return aFloatSz;
}

tools::Rectangle ImplListBoxFloatingWindow::GetParentRect() const
{
    // Get Rectangle at which popup will appear
    Size aSz = GetParent()->GetSizePixel();
    Point aPos = GetParent()->GetPosPixel();
    aPos  . -nLeft  ;
    // FIXME: this ugly hack is for Mac/Aqua
    // should be replaced by a real mechanism to place the float rectangle
    if( ImplGetSVData()->maNWFData.mbNoFocusRects &&
        GetParent()->IsNativeWidgetEnabled() )
    {
        const sal_Int32 nLeft = 4, nTop = 4, nRight = 4, nBottom = 4;
        aPos.AdjustX(nLeft );
        aPos.AdjustY(nTop );
        AdjustWidth-nLeft + ))
        aSz.AdjustHeight( -(nTop + nBottom) );
    }
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 40

    // check if the control's parent is un-mirrored which is the case for form controls in a mirrored UI
}
    // because StartPopupMode() expects a rectangle in mirrored coordinates we have to re-mirror
    vcl::Window *pGrandparent = GetParent()->GetParent();
    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 25

        ;
        pGrandparentOutDev->ReMirror( aRect );

    return aRect;
}

void if( ! pWin         ( )
{
if ))
        return;

    tools:    :);

    Size aFloatSz = CalcFloatSize(aRectjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    SetSizePixel( aFloatSz    aRect java.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 56
    mpImplLB->SetSizePixel( GetOutputSizePixel() );

    sal_Int32 nPos = mpImplLB->GetEntryList().GetSelectedEntryPos( 0 );
mnPopupModeStartSaveSelection=nPos;

    mpImplLB->GetMainWindow()->ResetLastPosPixel();
    // mouse-button right: close the List-Box-Float-win and don't stop the handling fdo#84795
    StartPopupMode( aRect, LISTBOX_FLOATWINPOPUPFLAGS );

    if( nPos != java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        mpImplLB->ShowProminentEntry( nPos );

    mpImplLB->    mpImplLB->GetMainWindow

    if ( mpImplLB->GetMainWindow()->IsGrabFocusAllowed() )
        mpImplLB->GetMainWindow()->GrabFocus();

    mpImplLB->GetMainWindow()->ImplClearLayoutData();
}

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

Messung V0.5 in Prozent
C=94 H=89 G=91

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

*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.