1c82f2877SAndrew Rist /************************************************************** 2*09e0ec10Smseidel * 3c82f2877SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4c82f2877SAndrew Rist * or more contributor license agreements. See the NOTICE file 5c82f2877SAndrew Rist * distributed with this work for additional information 6c82f2877SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7c82f2877SAndrew Rist * to you under the Apache License, Version 2.0 (the 8c82f2877SAndrew Rist * "License"); you may not use this file except in compliance 9c82f2877SAndrew Rist * with the License. You may obtain a copy of the License at 10*09e0ec10Smseidel * 11c82f2877SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*09e0ec10Smseidel * 13c82f2877SAndrew Rist * Unless required by applicable law or agreed to in writing, 14c82f2877SAndrew Rist * software distributed under the License is distributed on an 15c82f2877SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c82f2877SAndrew Rist * KIND, either express or implied. See the License for the 17c82f2877SAndrew Rist * specific language governing permissions and limitations 18c82f2877SAndrew Rist * under the License. 19*09e0ec10Smseidel * 20c82f2877SAndrew Rist *************************************************************/ 21c82f2877SAndrew Rist 22c82f2877SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_accessibility.hxx" 26cdf0e10cSrcweir #include <accessibility/standard/vclxaccessiblecombobox.hxx> 27cdf0e10cSrcweir #include <accessibility/standard/vclxaccessiblelist.hxx> 28cdf0e10cSrcweir #include <com/sun/star/accessibility/AccessibleStateType.hpp> 29cdf0e10cSrcweir #include <com/sun/star/accessibility/AccessibleEventId.hpp> 30cdf0e10cSrcweir #include <vcl/svapp.hxx> 31cdf0e10cSrcweir #include <vcl/combobox.hxx> 32cdf0e10cSrcweir 33cdf0e10cSrcweir using namespace ::com::sun::star; 34cdf0e10cSrcweir using namespace ::com::sun::star::uno; 35cdf0e10cSrcweir using namespace ::com::sun::star::lang; 36cdf0e10cSrcweir using namespace ::com::sun::star::beans; 37cdf0e10cSrcweir using namespace ::com::sun::star::accessibility; 38cdf0e10cSrcweir 39cdf0e10cSrcweir VCLXAccessibleComboBox(VCLXWindow * pVCLWindow)40cdf0e10cSrcweirVCLXAccessibleComboBox::VCLXAccessibleComboBox (VCLXWindow* pVCLWindow) 41*09e0ec10Smseidel : VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::COMBOBOX, false) 42cdf0e10cSrcweir { 43cdf0e10cSrcweir } 44cdf0e10cSrcweir 45cdf0e10cSrcweir 46cdf0e10cSrcweir 47cdf0e10cSrcweir ~VCLXAccessibleComboBox(void)48cdf0e10cSrcweirVCLXAccessibleComboBox::~VCLXAccessibleComboBox (void) 49cdf0e10cSrcweir { 50cdf0e10cSrcweir } 51cdf0e10cSrcweir 52cdf0e10cSrcweir 53cdf0e10cSrcweir 54cdf0e10cSrcweir IsValid(void) const55cdf0e10cSrcweirbool VCLXAccessibleComboBox::IsValid (void) const 56cdf0e10cSrcweir { 57*09e0ec10Smseidel return static_cast<ComboBox*>(GetWindow()) != NULL; 58*09e0ec10Smseidel 59cdf0e10cSrcweir } 60cdf0e10cSrcweir 61cdf0e10cSrcweir 62cdf0e10cSrcweir 63cdf0e10cSrcweir ProcessWindowEvent(const VclWindowEvent & rVclWindowEvent)64cdf0e10cSrcweirvoid VCLXAccessibleComboBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent) 65cdf0e10cSrcweir { 66*09e0ec10Smseidel VCLXAccessibleBox::ProcessWindowEvent( rVclWindowEvent ); 67cdf0e10cSrcweir } 68cdf0e10cSrcweir 69cdf0e10cSrcweir 70cdf0e10cSrcweir 71cdf0e10cSrcweir 72cdf0e10cSrcweir //===== XServiceInfo ======================================================== 73cdf0e10cSrcweir getImplementationName(void)74*09e0ec10Smseidel::rtl::OUString VCLXAccessibleComboBox::getImplementationName (void) 75*09e0ec10Smseidel throw (RuntimeException) 76cdf0e10cSrcweir { 77cdf0e10cSrcweir return ::rtl::OUString::createFromAscii ("com.sun.star.comp.toolkit.AccessibleComboBox"); 78cdf0e10cSrcweir } 79cdf0e10cSrcweir 80cdf0e10cSrcweir 81cdf0e10cSrcweir 82cdf0e10cSrcweir getSupportedServiceNames(void)83*09e0ec10SmseidelSequence< ::rtl::OUString > VCLXAccessibleComboBox::getSupportedServiceNames (void) 84*09e0ec10Smseidel throw (RuntimeException) 85cdf0e10cSrcweir { 86cdf0e10cSrcweir Sequence< ::rtl::OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames(); 87cdf0e10cSrcweir sal_Int32 nLength = aNames.getLength(); 88cdf0e10cSrcweir aNames.realloc( nLength + 1 ); 89cdf0e10cSrcweir aNames[nLength] = ::rtl::OUString::createFromAscii( 90*09e0ec10Smseidel "com.sun.star.accessibility.AccessibleComboBox" ); 91cdf0e10cSrcweir return aNames; 92cdf0e10cSrcweir } 93