vclxaccessiblelistbox.cxx (0841af79) vclxaccessiblelistbox.cxx (15466770)
1/**************************************************************
1/**************************************************************
2 *
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
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 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
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.
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 *
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/vclxaccessiblelistbox.hxx>
27#include <accessibility/standard/vclxaccessiblelistitem.hxx>

--- 17 unchanged lines hidden (view full) ---

45#include <unotools/accessiblestatesethelper.hxx>
46
47using namespace ::com::sun::star;
48using namespace ::com::sun::star::lang;
49using namespace ::com::sun::star::uno;
50using namespace ::com::sun::star::accessibility;
51
52VCLXAccessibleListBox::VCLXAccessibleListBox (VCLXWindow* pVCLWindow)
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_accessibility.hxx"
26#include <accessibility/standard/vclxaccessiblelistbox.hxx>
27#include <accessibility/standard/vclxaccessiblelistitem.hxx>

--- 17 unchanged lines hidden (view full) ---

45#include <unotools/accessiblestatesethelper.hxx>
46
47using namespace ::com::sun::star;
48using namespace ::com::sun::star::lang;
49using namespace ::com::sun::star::uno;
50using namespace ::com::sun::star::accessibility;
51
52VCLXAccessibleListBox::VCLXAccessibleListBox (VCLXWindow* pVCLWindow)
53 : VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::LISTBOX, false)
53 : VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::LISTBOX, false)
54{
55}
56
57
58
59
60VCLXAccessibleListBox::~VCLXAccessibleListBox (void)
61{
62}
63
64
65
66
67bool VCLXAccessibleListBox::IsValid (void) const
68{
54{
55}
56
57
58
59
60VCLXAccessibleListBox::~VCLXAccessibleListBox (void)
61{
62}
63
64
65
66
67bool VCLXAccessibleListBox::IsValid (void) const
68{
69 return static_cast<ListBox*>(GetWindow()) != NULL;
70
69 return static_cast<ListBox*>(GetWindow()) != NULL;
70
71}
72
73
74
75
76void VCLXAccessibleListBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent)
77{
71}
72
73
74
75
76void VCLXAccessibleListBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent)
77{
78 VCLXAccessibleBox::ProcessWindowEvent( rVclWindowEvent );
78 VCLXAccessibleBox::ProcessWindowEvent( rVclWindowEvent );
79}
80
81
82
83
84//===== XServiceInfo ========================================================
85
79}
80
81
82
83
84//===== XServiceInfo ========================================================
85
86::rtl::OUString VCLXAccessibleListBox::getImplementationName (void)
87 throw (RuntimeException)
86::rtl::OUString VCLXAccessibleListBox::getImplementationName (void)
87 throw (RuntimeException)
88{
89 return ::rtl::OUString::createFromAscii("com.sun.star.comp.toolkit.AccessibleListBox");
90}
91
92
93
94
88{
89 return ::rtl::OUString::createFromAscii("com.sun.star.comp.toolkit.AccessibleListBox");
90}
91
92
93
94
95Sequence< ::rtl::OUString > VCLXAccessibleListBox::getSupportedServiceNames (void)
96 throw (RuntimeException)
95Sequence< ::rtl::OUString > VCLXAccessibleListBox::getSupportedServiceNames (void)
96 throw (RuntimeException)
97{
98 Sequence< ::rtl::OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames();
99 sal_Int32 nLength = aNames.getLength();
100 aNames.realloc( nLength + 1 );
101 aNames[nLength] = ::rtl::OUString::createFromAscii(
97{
98 Sequence< ::rtl::OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames();
99 sal_Int32 nLength = aNames.getLength();
100 aNames.realloc( nLength + 1 );
101 aNames[nLength] = ::rtl::OUString::createFromAscii(
102 "com.sun.star.accessibility.AccessibleListBox" );
102 "com.sun.star.accessibility.AccessibleListBox" );
103 return aNames;
104}
103 return aNames;
104}