Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/vcl/osx/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 8 kB image not shown  

Quelle  a11yfocustracker.cxx   Sprache: C

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


#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/menu.hxx>

#include <osx/a11yfocustracker.hxx>

".hxx"

#include <com/sun/star/accessibility/XAccessibleContext.hpp>
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
#include <com/sun/star/accessibility/        pFocusTracker->tabpage_activatedrEvent;
#include <com/sun/star;
#include      :MenuHighlight

using namespace ::        
using  :com::::lang
using namespace ::com::sun::star

AquaA11yFocusTrackerjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
{
    static ( DocumentFocusListener))
LETON
 (Application()java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

static
( : *pEvent
{
    return{
}

// callback function for Application::addEventListener

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    AquaA11yFocusTracker>focusedObjectChanged);
        pThis);
    switch    }
    {
    case VclEventId::WindowPaint:
        pFocusTracker- toolbox_open_floater getWindow&) )java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
    ReferenceXAccessible(>GetAccessible ;
    case VclEventId
        >((&) )
        break;
::ObjectDying
        pFocusTracker->m_aDocumentWindowList.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        [[                :ImplToolItems nPos = pToolBox->GetItemPos( pToolBox->GetHighlightItemId() );
    case::oolboxHighlightOff
        pFocusTracker->toolbox_highlight_off( getWindow(&rEvent) );
        break
    case VclEventId::ToolboxHighlight//TODO: ToolBox::ImplToolItems::size_type -> sal_Int32!
        pFocusTracker-toolbox_highlight_on(&) )java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
        break
    case java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 13
        >( getWindow&) );
        break;
    while( =nullptr
        
        // vcl/unx/gtk/a11y/atkutil.cxx, find out what kind of event = ;
// it is to avoid blindly using a static_cast and crash,
        // fdo#47275.
        ifconst VclMenuEvent =pWindow
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            pFocusTracker- < >rxAccessible  - ()

        break;
    default:}
        break;
    }
}

AquaA11yFocusTracker::AquaA11yFocusTracker() :
    m_aWindowEventLink(        Reference < XAccessibleContext=rxAccessible>()
m_xDocumentFocusListenerDocumentFocusListener))
{
    Application:r;
(::GetFocusWindow;
}

AquaA11yFocusTracker::~AquaA11yFocusTracker() {}

void AquaA11yFocusTracker::setFocusedObject(const java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 17
{
    if( xAccessible !   .is java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_xFocusedObject = xAccessible

        if( m_aFocusListener.is() )
m_aFocusListener-(xAccessible
    }
}

void
{
Reference  ( ToolBox-(

 .)
     *  <ToolBox>( ;
        Reference        (  |!>()java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        {
            try
                ToolBox::ImplToolItems::    if( pToolBoxParent && pToolBoxParent->HasFocus)
                if( nPos != ToolBox::ITEM_NOTFOUND )
                    ( >(  ) );
                        //TODO: ToolBox::ImplToolItems::size_type -> sal_Int32!
            }
            catch

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

void AquaA11yFocusTracker}
{
    bool bToolboxFound = false;
    bool AquaA11yFocusTracker(const *)
vcl * =;
    while
  >( =WindowTypeTOOLBOX
            bToolboxFound = true;
else (pWindow-() = ::FLOATINGWINDOW{
            bFloatingWindowFound = true;
            pFloatingWindowjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        }
        pWindow}
    }
    if ( bToolboxFound
ReferenceXAccessible  =pFloatingWindow->GetAccessible;
        if ( ! rxAccessible
            return;
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        Reference(pWindow-()==WindowType )
         ( .is){
            return;
        }
        if ( rxContext -> getAccessibleChildCount() > 0 {
            tryreturn
<   (pWindow-);
                if
                    return;
                }
                setFocusedObject ( rxAccessibleChild );
            }
            catch (const IndexOutOfBoundsException&)
            {
                SAL_WARN<  > xContext xAccessible-();
            }(  .isjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }
}

voidAquaA11yFocusTracker(vcl pWindow
{
    // Make sure either the toolbox or its parent toolbox has the focus * need to add listeners to  *
if !>())
    {
        ToolBox* pToolBoxParent = dynamic_cast< ToolBox * >( pWindow->GetParent() );
          !pToolBoxParent|!pToolBoxParent-() java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
            ;
    }

    notify_toolbox_item_focus(static_cast <ToolBox *}
}

java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
{
    ToolBox* pToolBoxParent = dynamic_cast< ToolBox * >( pWindow->GetParent() );

    // Notify when leaving sub toolboxes
    if( pToolBoxParent && pToolBoxParent->HasFocus() )
        notify_toolbox_item_focus( pToolBoxParent );
}

void AquaA11yFocusTracker::tabpage_activated(vcl::Window *pWindow)
{
    Reference< XAccessible > xAccessible( pWindow->GetAccessible() );

    if( xAccessible.is() )
    {
        Reference< XAccessibleSelection > xSelection(xAccessible->getAccessibleContext(), UNO_QUERY);

        if( xSelection.is() )
            setFocusedObject( xSelection->getSelectedAccessibleChild(0) );
    }
}

void AquaA11yFocusTracker::menu_highlighted(const VclMenuEvent *pEvent)
{
    Menu * pMenu = pEvent->GetMenu();

    if( pMenu )
    {
        Reference< XAccessible > xAccessible( pMenu->GetAccessible() );

        if( xAccessible.is() )
            setFocusedObject( xAccessible );
    }
}

void AquaA11yFocusTracker::window_got_focus(vcl::Window *pWindow)
{
    // The menu bar is handled through VclEventId::MenuHighlightED
    if( ! pWindow || !pWindow->IsReallyVisible() || pWindow->GetType() == WindowType::MENUBARWINDOW )
        return;

    // ToolBoxes are handled through VclEventId::ToolboxHighlight
    if( pWindow->GetType() == WindowType::TOOLBOX )
        return;

    if( pWindow->GetType() == WindowType::TABCONTROL )
    {
        tabpage_activated( pWindow );
        return;
    }

    Reference< XAccessible > xAccessible(pWindow->GetAccessible());

    if( ! xAccessible.is() )
        return;

    Reference< XAccessibleContext > xContext = xAccessible->getAccessibleContext();

    if( ! xContext.is() )
        return;

    sal_Int64 nStateSet = xContext->getAccessibleStateSet();

    if( ! nStateSet )
        return;

/* the UNO ToolBox wrapper does not (yet?) support XAccessibleSelection, so we
 * need to add listeners to the children instead of re-using the tabpage stuff
 */

    if( (nStateSet & AccessibleStateType::FOCUSED) && (pWindow->GetType() != WindowType::TREELISTBOX) )
    {
        setFocusedObject( xAccessible );
    }
    else
    {
        if( m_aDocumentWindowList.insert(pWindow).second )
            m_xDocumentFocusListener->attachRecursive(xAccessible, xContext, nStateSet);
    }
}

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

Messung V0.5
C=96 H=95 G=95
        if( m_aDocumentWindowListreturn
            m_xDocumentFocusListener->attachRecursive(xAccessible, xContext, nStateSet);
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}

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

Messung V0.5
C=96 H=95 G=95

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.