Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <accessibility/standard/vclxaccessiblelistbox.hxx>
30 : : #include <accessibility/standard/vclxaccessiblelistitem.hxx>
31 : : #include <accessibility/helper/listboxhelper.hxx>
32 : :
33 : : #include <algorithm>
34 : :
35 : : #include <com/sun/star/accessibility/AccessibleEventId.hpp>
36 : : #include <com/sun/star/accessibility/AccessibleRole.hpp>
37 : : #include <com/sun/star/accessibility/AccessibleStateType.hpp>
38 : : #include <vcl/svapp.hxx>
39 : : #include <vcl/lstbox.hxx>
40 : : #include <vcl/unohelp.hxx>
41 : :
42 : : #include <toolkit/awt/vclxwindow.hxx>
43 : : #include <toolkit/helper/convert.hxx>
44 : :
45 : : #include <comphelper/sequence.hxx>
46 : : #include <cppuhelper/typeprovider.hxx>
47 : : #include <unotools/accessiblestatesethelper.hxx>
48 : :
49 : : using namespace ::com::sun::star;
50 : : using namespace ::com::sun::star::lang;
51 : : using namespace ::com::sun::star::uno;
52 : : using namespace ::com::sun::star::accessibility;
53 : :
54 : 0 : VCLXAccessibleListBox::VCLXAccessibleListBox (VCLXWindow* pVCLWindow)
55 : 0 : : VCLXAccessibleBox (pVCLWindow, VCLXAccessibleBox::LISTBOX, false)
56 : : {
57 : 0 : }
58 : :
59 : :
60 : :
61 : :
62 : 0 : VCLXAccessibleListBox::~VCLXAccessibleListBox (void)
63 : : {
64 [ # # ]: 0 : }
65 : :
66 : :
67 : :
68 : :
69 : 0 : bool VCLXAccessibleListBox::IsValid (void) const
70 : : {
71 : 0 : return static_cast<ListBox*>(GetWindow()) != NULL;
72 : :
73 : : }
74 : :
75 : :
76 : :
77 : :
78 : 0 : void VCLXAccessibleListBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent)
79 : : {
80 : 0 : VCLXAccessibleBox::ProcessWindowEvent( rVclWindowEvent );
81 : 0 : }
82 : :
83 : :
84 : :
85 : :
86 : : //===== XServiceInfo ========================================================
87 : :
88 : 0 : ::rtl::OUString VCLXAccessibleListBox::getImplementationName (void)
89 : : throw (RuntimeException)
90 : : {
91 : 0 : return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.toolkit.AccessibleListBox" ));
92 : : }
93 : :
94 : :
95 : :
96 : :
97 : 0 : Sequence< ::rtl::OUString > VCLXAccessibleListBox::getSupportedServiceNames (void)
98 : : throw (RuntimeException)
99 : : {
100 : 0 : Sequence< ::rtl::OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames();
101 : 0 : sal_Int32 nLength = aNames.getLength();
102 [ # # ]: 0 : aNames.realloc( nLength + 1 );
103 [ # # ][ # # ]: 0 : aNames[nLength] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.accessibility.AccessibleListBox" ));
104 : 0 : return aNames;
105 : : }
106 : :
107 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|