1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVTOOLS_ACCESSIBLEFACTORY_HXX
21 #define INCLUDED_SVTOOLS_ACCESSIBLEFACTORY_HXX
23 #include <svtools/AccessibleBrowseBoxObjType.hxx>
24 #include <svtools/accessibletableprovider.hxx>
26 #include <com/sun/star/uno/Reference.hxx>
28 #include <rtl/ref.hxx>
29 #include <salhelper/simplereferenceobject.hxx>
31 namespace com
{ namespace sun
{ namespace star
{
32 namespace accessibility
{
34 class XAccessibleContext
;
40 class SvHeaderTabListBox
;
41 class SvtIconChoiceCtrl
;
58 class IAccessibleTable
;
59 class IAccessibleTableControl
;
62 /** a function which is able to create a factory for the standard Accessible/Context
63 components needed for standard toolkit controls
65 The returned pointer denotes an instance of the IAccessibleFactory, which has been acquired
66 <em>once</em>. The caller is responsible for holding this reference as long as it needs the
67 factory, and release it afterwards.
69 typedef void* (SAL_CALL
* GetSvtAccessibilityComponentFactory
)( );
72 //= IAccessibleFactory
74 class IAccessibleFactory
: public virtual ::salhelper::SimpleReferenceObject
77 virtual IAccessibleTabListBox
*
78 createAccessibleTabListBox(
79 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& rxParent
,
80 SvHeaderTabListBox
& rBox
83 virtual IAccessibleBrowseBox
*
84 createAccessibleBrowseBox(
85 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& _rxParent
,
86 IAccessibleTableProvider
& _rBrowseBox
88 virtual table::IAccessibleTableControl
*
89 createAccessibleTableControl(
90 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& _rxParent
,
91 table::IAccessibleTable
& _rTable
94 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
95 createAccessibleIconChoiceCtrl(
96 SvtIconChoiceCtrl
& _rIconCtrl
,
97 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& _xParent
100 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
101 createAccessibleTabBar(
105 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleContext
>
106 createAccessibleTextWindowContext(
107 VCLXWindow
* pVclXWindow
, TextEngine
& rEngine
, TextView
& rView
110 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
111 createAccessibleTreeListBox(
112 SvTreeListBox
& _rListBox
,
113 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& _xParent
116 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
117 createAccessibleBrowseBoxHeaderBar(
118 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& rxParent
,
119 IAccessibleTableProvider
& _rOwningTable
,
120 AccessibleBrowseBoxObjType _eObjType
123 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
124 createAccessibleBrowseBoxTableCell(
125 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& _rxParent
,
126 IAccessibleTableProvider
& _rBrowseBox
,
127 const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
>& _xFocusWindow
,
133 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
134 createAccessibleBrowseBoxHeaderCell(
135 sal_Int32 _nColumnRowId
,
136 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& rxParent
,
137 IAccessibleTableProvider
& _rBrowseBox
,
138 const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
>& _xFocusWindow
,
139 AccessibleBrowseBoxObjType _eObjType
142 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
143 createAccessibleCheckBoxCell(
144 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& _rxParent
,
145 IAccessibleTableProvider
& _rBrowseBox
,
146 const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
>& _xFocusWindow
,
149 const TriState
& _eState
,
153 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
154 createEditBrowseBoxTableCellAccess(
155 const ::com::sun::star::uno::Reference
< com::sun::star::accessibility::XAccessible
>& _rxParent
,
156 const ::com::sun::star::uno::Reference
< com::sun::star::accessibility::XAccessible
>& _rxControlAccessible
,
157 const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
>& _rxFocusWindow
,
158 IAccessibleTableProvider
& _rBrowseBox
,
163 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleContext
>
164 createAccessibleToolPanelDeck(
165 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& i_rAccessibleParent
,
166 ::svt::ToolPanelDeck
& i_rPanelDeck
168 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleContext
>
169 createAccessibleToolPanelTabBar(
170 const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>& i_rAccessibleParent
,
171 ::svt::IToolPanelDeck
& i_rPanelDeck
,
172 ::svt::PanelTabBar
& i_rTabBar
176 virtual ~IAccessibleFactory() {}
183 #endif // INCLUDED_SVTOOLS_ACCESSIBLEFACTORY_HXX
185 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */