Branch libreoffice-5-0-4
[LibreOffice.git] / include / svtools / accessiblefactory.hxx
blob21ba910b8d944a680bdce3502a26cb14d3325d7e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 {
33 class XAccessible;
34 class XAccessibleContext;
36 namespace awt {
37 class XWindow;
39 } } }
40 class SvHeaderTabListBox;
41 class SvtIconChoiceCtrl;
42 class TabBar;
43 class SvTreeListBox;
44 class VCLXWindow;
45 class TextEngine;
46 class TextView;
49 namespace svt
53 class ToolPanelDeck;
54 class IToolPanelDeck;
55 class PanelTabBar;
56 namespace table
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
76 public:
77 virtual IAccessibleTabListBox*
78 createAccessibleTabListBox(
79 const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent,
80 SvHeaderTabListBox& rBox
81 ) const = 0;
83 virtual IAccessibleBrowseBox*
84 createAccessibleBrowseBox(
85 const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxParent,
86 IAccessibleTableProvider& _rBrowseBox
87 ) const = 0;
88 virtual table::IAccessibleTableControl*
89 createAccessibleTableControl(
90 const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxParent,
91 table::IAccessibleTable& _rTable
92 ) const = 0;
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
98 ) const = 0;
100 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
101 createAccessibleTabBar(
102 TabBar& _rTabBar
103 ) const = 0;
105 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
106 createAccessibleTextWindowContext(
107 VCLXWindow* pVclXWindow, TextEngine& rEngine, TextView& rView
108 ) const = 0;
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
114 ) const = 0;
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
121 ) const = 0;
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,
128 sal_Int32 _nRowId,
129 sal_uInt16 _nColId,
130 sal_Int32 _nOffset
131 ) const = 0;
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
140 ) const = 0;
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,
147 sal_Int32 _nRowPos,
148 sal_uInt16 _nColPos,
149 const TriState& _eState,
150 bool _bIsTriState
151 ) const = 0;
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,
159 sal_Int32 _nRowPos,
160 sal_uInt16 _nColPos
161 ) const = 0;
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
167 ) = 0;
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
173 ) = 0;
175 protected:
176 virtual ~IAccessibleFactory() {}
180 } // namespace svt
183 #endif // INCLUDED_SVTOOLS_ACCESSIBLEFACTORY_HXX
185 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */