d5d69069ed
2007/02/28 07:29:10 fs 1.1.2.3: #i10000# 2005/09/28 11:35:25 fs 1.1.2.2: manual resync (files have been moved herein from another location): licence change 2005/03/07 08:29:03 fs 1.1.2.1: #i44293# moved implementations herein from toolkit module
149 lines
4.2 KiB
C++
149 lines
4.2 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: vclxaccessiblelistbox.cxx,v $
|
|
*
|
|
* $Revision: 1.2 $
|
|
*
|
|
* last change: $Author: hr $ $Date: 2007-06-27 15:38:40 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************/
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
#include "precompiled_accessibility.hxx"
|
|
|
|
#ifndef ACCESSIBILITY_STANDARD_VCLXACCESSIBLELISTBOX_HXX
|
|
#include <accessibility/standard/vclxaccessiblelistbox.hxx>
|
|
#endif
|
|
#ifndef ACCESSIBILITY_STANDARD_VCLXACCESSIBLELISTITEM_HXX
|
|
#include <accessibility/standard/vclxaccessiblelistitem.hxx>
|
|
#endif
|
|
#ifndef ACCESSIBILITY_HELPER_LISTBOXHELPER_HXX
|
|
#include <accessibility/helper/listboxhelper.hxx>
|
|
#endif
|
|
|
|
#include <algorithm>
|
|
|
|
#ifndef _COM_SUN_STAR_ACCESSIBILITY_STANDARD_ACCESSIBLEEVENTID_HPP_
|
|
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
|
|
#endif
|
|
#ifndef _COM_SUN_STAR_ACCESSIBILITY_STANDARD_ACCESSIBLEROLE_HPP_
|
|
#include <com/sun/star/accessibility/AccessibleRole.hpp>
|
|
#endif
|
|
#ifndef _COM_SUN_STAR_ACCESSIBILITY_STANDARD_ACCESSIBLESTATETYPE_HPP_
|
|
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
|
|
#endif
|
|
|
|
#ifndef _TOOLS_DEBUG_HXX
|
|
#include <tools/debug.hxx>
|
|
#endif
|
|
|
|
#ifndef _SV_SVAPP_HXX
|
|
#include <vcl/svapp.hxx>
|
|
#endif
|
|
#ifndef _SV_LSTBOX_HXX
|
|
#include <vcl/lstbox.hxx>
|
|
#endif
|
|
#ifndef _VCL_UNOHELP_HXX
|
|
#include <vcl/unohelp.hxx>
|
|
#endif
|
|
|
|
#ifndef _TOOLKIT_AWT_VCLXWINDOW_HXX
|
|
#include <toolkit/awt/vclxwindow.hxx>
|
|
#endif
|
|
#ifndef _TOOLKIT_HELPER_CONVERT_HXX_
|
|
#include <toolkit/helper/convert.hxx>
|
|
#endif
|
|
|
|
#ifndef _COMPHELPER_SEQUENCE_HXX
|
|
#include <comphelper/sequence.hxx>
|
|
#endif
|
|
#ifndef _CPPUHELPER_TYPEPROVIDER_HXX
|
|
#include <cppuhelper/typeprovider.hxx>
|
|
#endif
|
|
#ifndef _UTL_ACCESSIBLESTATESETHELPER_HXX
|
|
#include <unotools/accessiblestatesethelper.hxx>
|
|
#endif
|
|
|
|
using namespace ::com::sun::star;
|
|
using namespace ::com::sun::star::lang;
|
|
using namespace ::com::sun::star::uno;
|
|
using namespace ::com::sun::star::accessibility;
|
|
|
|
VCLXAccessibleListBox::VCLXAccessibleListBox (VCLXWindow* pVCLWindow)
|
|
: VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::LISTBOX, false)
|
|
{
|
|
}
|
|
|
|
|
|
|
|
|
|
VCLXAccessibleListBox::~VCLXAccessibleListBox (void)
|
|
{
|
|
}
|
|
|
|
|
|
|
|
|
|
bool VCLXAccessibleListBox::IsValid (void) const
|
|
{
|
|
return static_cast<ListBox*>(GetWindow()) != NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void VCLXAccessibleListBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent)
|
|
{
|
|
VCLXAccessibleBox::ProcessWindowEvent( rVclWindowEvent );
|
|
}
|
|
|
|
|
|
|
|
|
|
//===== XServiceInfo ========================================================
|
|
|
|
::rtl::OUString VCLXAccessibleListBox::getImplementationName (void)
|
|
throw (RuntimeException)
|
|
{
|
|
return ::rtl::OUString::createFromAscii("com.sun.star.comp.toolkit.AccessibleListBox");
|
|
}
|
|
|
|
|
|
|
|
|
|
Sequence< ::rtl::OUString > VCLXAccessibleListBox::getSupportedServiceNames (void)
|
|
throw (RuntimeException)
|
|
{
|
|
Sequence< ::rtl::OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames();
|
|
sal_Int32 nLength = aNames.getLength();
|
|
aNames.realloc( nLength + 1 );
|
|
aNames[nLength] = ::rtl::OUString::createFromAscii(
|
|
"com.sun.star.accessibility.AccessibleListBox" );
|
|
return aNames;
|
|
}
|