Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / toolkit / helper / accessiblefactory.hxx
blobbd7ae90976d4cd34f72a4cae2db68abf811b77bd
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_TOOLKIT_HELPER_ACCESSIBLEFACTORY_HXX
21 #define INCLUDED_TOOLKIT_HELPER_ACCESSIBLEFACTORY_HXX
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <salhelper/simplereferenceobject.hxx>
26 namespace com::sun::star::accessibility {
27 class XAccessible;
28 class XAccessibleContext;
30 class SVTXNumericField;
31 class VCLXButton;
32 class VCLXCheckBox;
33 class VCLXRadioButton;
34 class VCLXListBox;
35 class VCLXFixedHyperlink;
36 class VCLXFixedText;
37 class VCLXScrollBar;
38 class VCLXEdit;
39 class VCLXComboBox;
40 class VCLXToolBox;
41 class VCLXHeaderBar;
42 class VCLXWindow;
43 class Menu;
46 namespace toolkit
50 /** a function which is able to create a factory for the standard Accessible/Context
51 components needed for standard toolkit controls
53 The returned pointer denotes an instance of the IAccessibleFactory, which has been acquired
54 <em>once</em>. The caller is responsible for holding this reference as long as it needs the
55 factory, and release it afterwards.
57 typedef void* (* GetStandardAccComponentFactory)( );
60 //= IAccessibleFactory
62 class IAccessibleFactory : public virtual salhelper::SimpleReferenceObject
64 public:
65 /** creates an accessible context for a button window
67 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
68 createAccessibleContext( VCLXButton* _pXWindow ) = 0;
70 /** creates an accessible context for a checkbox window
72 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
73 createAccessibleContext( VCLXCheckBox* _pXWindow ) = 0;
75 /** creates an accessible context for a radio button window
77 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
78 createAccessibleContext( VCLXRadioButton* _pXWindow ) = 0;
80 /** creates an accessible context for a listbox window
82 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
83 createAccessibleContext( VCLXListBox* _pXWindow ) = 0;
85 /** creates an accessible context for a fixed hyperlink window
87 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
88 createAccessibleContext( VCLXFixedHyperlink* _pXWindow ) = 0;
90 /** creates an accessible context for a fixed text window
92 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
93 createAccessibleContext( VCLXFixedText* _pXWindow ) = 0;
95 /** creates an accessible context for a scrollbar window
97 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
98 createAccessibleContext( VCLXScrollBar* _pXWindow ) = 0;
100 /** creates an accessible context for an edit window
102 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
103 createAccessibleContext( VCLXEdit* _pXWindow ) = 0;
105 /** creates an accessible context for a combo box window
107 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
108 createAccessibleContext( VCLXComboBox* _pXWindow ) = 0;
110 /** creates an accessible context for a toolbox window
112 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
113 createAccessibleContext( VCLXToolBox* _pXWindow ) = 0;
115 /** creates an accessible context for a headerbar window
117 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
118 createAccessibleContext( VCLXHeaderBar* _pXWindow ) = 0;
120 /** creates an accessible context for a numeric field
122 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
123 createAccessibleContext( SVTXNumericField* _pXWindow ) = 0;
125 /** creates an accessible context for a generic window
127 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
128 createAccessibleContext( VCLXWindow* _pXWindow ) = 0;
130 /** creates an accessible component for the given menu
132 virtual css::uno::Reference< css::accessibility::XAccessible >
133 createAccessible( Menu* _pMenu, bool _bIsMenuBar ) = 0;
135 protected:
136 virtual ~IAccessibleFactory() override {}
140 } // namespace toolkit
143 #endif // INCLUDED_TOOLKIT_HELPER_ACCESSIBLEFACTORY_HXX
145 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */