diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-27 14:37:29 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-27 14:37:29 +0000 |
commit | a309c1ff6864cc1e894ae30feaa7c8e52a9262b2 (patch) | |
tree | bf77e98241b22affe62c9058677b2df0a0336d7a /accessibility | |
parent | 4205e5b40bac8f0a13074971c02ff277bc9ff204 (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:17 fs 1.1.2.2: manual resync (files have been moved herein from another location): licence change
2005/03/07 08:29:01 fs 1.1.2.1: #i44293# moved implementations herein from toolkit module
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblecombobox.cxx | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/accessibility/source/standard/vclxaccessiblecombobox.cxx b/accessibility/source/standard/vclxaccessiblecombobox.cxx new file mode 100644 index 000000000000..24ef6215b026 --- /dev/null +++ b/accessibility/source/standard/vclxaccessiblecombobox.cxx @@ -0,0 +1,119 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: vclxaccessiblecombobox.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: hr $ $Date: 2007-06-27 15:37:29 $ + * + * 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_VCLXACCESSIBLECOMBOBOX_HXX +#include <accessibility/standard/vclxaccessiblecombobox.hxx> +#endif + +#ifndef ACCESSIBILITY_STANDARD_VCLXACCESSIBLELIST_HXX +#include <accessibility/standard/vclxaccessiblelist.hxx> +#endif +#ifndef _COM_SUN_STAR_ACCESSIBILITY_STANDARD_ACCESSIBLESTATETYPE_HPP_ +#include <com/sun/star/accessibility/AccessibleStateType.hpp> +#endif +#ifndef _COM_SUN_STAR_ACCESSIBILITY_STANDARD_ACCESSIBLEEVENTID_HPP_ +#include <com/sun/star/accessibility/AccessibleEventId.hpp> +#endif + +#ifndef _SV_SVAPP_HXX +#include <vcl/svapp.hxx> +#endif +#ifndef _SV_COMBOBOX_HXX +#include <vcl/combobox.hxx> +#endif + +using namespace ::com::sun::star; +using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::lang; +using namespace ::com::sun::star::beans; +using namespace ::com::sun::star::accessibility; + + +VCLXAccessibleComboBox::VCLXAccessibleComboBox (VCLXWindow* pVCLWindow) + : VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::COMBOBOX, false) +{ +} + + + + +VCLXAccessibleComboBox::~VCLXAccessibleComboBox (void) +{ +} + + + + +bool VCLXAccessibleComboBox::IsValid (void) const +{ + return static_cast<ComboBox*>(GetWindow()) != NULL; + +} + + + + +void VCLXAccessibleComboBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent) +{ + VCLXAccessibleBox::ProcessWindowEvent( rVclWindowEvent ); +} + + + + +//===== XServiceInfo ======================================================== + +::rtl::OUString VCLXAccessibleComboBox::getImplementationName (void) + throw (RuntimeException) +{ + return ::rtl::OUString::createFromAscii ("com.sun.star.comp.toolkit.AccessibleComboBox"); +} + + + + +Sequence< ::rtl::OUString > VCLXAccessibleComboBox::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.AccessibleComboBox" ); + return aNames; +} |