build fix
[LibreOffice.git] / sc / inc / AccessibleFilterTopWindow.hxx
blob5a8af2f9f0eed794348f0a16d5af8e43bba1a9f9
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_SC_INC_ACCESSIBLEFILTERTOPWINDOW_HXX
21 #define INCLUDED_SC_INC_ACCESSIBLEFILTERTOPWINDOW_HXX
23 #include "AccessibleFilterMenu.hxx"
25 class ScCheckListMenuWindow;
27 class ScAccessibleFilterTopWindow : public ScAccessibleFilterMenu
29 public:
30 ScAccessibleFilterTopWindow(
31 const css::uno::Reference< css::accessibility::XAccessible>& rxParent,
32 ScCheckListMenuWindow* pWin,
33 const OUString& rName);
34 virtual ~ScAccessibleFilterTopWindow() override;
36 // XAccessibleContext
38 virtual sal_Int32 SAL_CALL getAccessibleChildCount()
39 throw (css::uno::RuntimeException, std::exception) override;
41 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
42 getAccessibleChild(sal_Int32 nIndex)
43 throw (css::uno::RuntimeException, css::lang::IndexOutOfBoundsException, std::exception) override;
45 virtual OUString SAL_CALL getImplementationName()
46 throw (css::uno::RuntimeException, std::exception) override;
48 // Non-UNO Methods
50 enum ChildControlType {
51 EDIT_SEARCH_BOX, LISTBOX, TOGGLE_ALL, SINGLE_ON_BTN, SINGLE_OFF_BTN, OK_BTN, CANCEL_BTN
53 void setAccessibleChild(
54 const css::uno::Reference< css::accessibility::XAccessible >& rAccessible,
55 ChildControlType eType);
57 private:
58 /** Edit search box for searching field members */
59 css::uno::Reference< css::accessibility::XAccessible >
60 mxAccEditSearchBox;
61 /** check list box for field member visibility */
62 css::uno::Reference< css::accessibility::XAccessible >
63 mxAccListBox;
65 /** check box for toggling all field member's visibility. */
66 css::uno::Reference< css::accessibility::XAccessible >
67 mxAccToggleAll;
69 css::uno::Reference< css::accessibility::XAccessible >
70 mxAccSingleOnBtn;
72 css::uno::Reference< css::accessibility::XAccessible >
73 mxAccSingleOffBtn;
75 css::uno::Reference< css::accessibility::XAccessible >
76 mxAccOkBtn;
78 css::uno::Reference< css::accessibility::XAccessible >
79 mxAccCancelBtn;
82 #endif
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */