diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-27 14:37:52 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-27 14:37:52 +0000 |
commit | 986f776f2357ca1bc74cd597e74eecff7925ddda (patch) | |
tree | f886c014962f0d16e3d7a5a4e8dfa41defd918c2 | |
parent | a364a8973dcf1df149c47640a857d1742803aadb (diff) |
INTEGRATION: CWS a11ysep (1.1.2); FILE ADDED
2007/02/28 07:29:09 fs 1.1.2.3: #i10000#
2005/09/28 11:35:20 fs 1.1.2.2: manual resync (files have been moved herein from another location): licence change
2005/03/07 08:29:02 fs 1.1.2.1: #i44293# moved implementations herein from toolkit module
-rw-r--r-- | accessibility/source/standard/vclxaccessibledropdownlistbox.cxx | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx b/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx new file mode 100644 index 000000000..3e1030cc7 --- /dev/null +++ b/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx @@ -0,0 +1,152 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: vclxaccessibledropdownlistbox.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: hr $ $Date: 2007-06-27 15:37:52 $ + * + * 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/vclxaccessibledropdownlistbox.hxx> +#endif +#ifndef ACCESSIBILITY_STANDARD_VCLXACCESSIBLELISTBOX_HXX +#include <accessibility/standard/vclxaccessiblelistbox.hxx> +#endif +#ifndef ACCESSIBILITY_HELPER_TKARESMGR_HXX +#include <accessibility/helper/accresmgr.hxx> +#endif +#ifndef ACCESSIBILITY_HELPER_ACCESSIBLESTRINGS_HRC_ +#include <accessibility/helper/accessiblestrings.hrc> +#endif + +#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; + + +VCLXAccessibleDropDownListBox::VCLXAccessibleDropDownListBox (VCLXWindow* pVCLWindow) + : VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::LISTBOX, true) +{ +} + + + + +VCLXAccessibleDropDownListBox::~VCLXAccessibleDropDownListBox() +{ +} + + + + +bool VCLXAccessibleDropDownListBox::IsValid (void) const +{ + return static_cast<ListBox*>(GetWindow()) != NULL; + +} + + + + +void VCLXAccessibleDropDownListBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) +{ + VCLXAccessibleBox::ProcessWindowEvent (rVclWindowEvent); +} + + + + +//===== XServiceInfo ======================================================== + +::rtl::OUString VCLXAccessibleDropDownListBox::getImplementationName() + throw (RuntimeException) +{ + return ::rtl::OUString::createFromAscii("com.sun.star.comp.toolkit.AccessibleDropDownListBox"); +} + + + + +Sequence< ::rtl::OUString > VCLXAccessibleDropDownListBox::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.AccessibleDropDownListBox" ); + return aNames; +} |