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