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 SC_ACCESSIBLEFILTERTOPWINDOW_HXX
21 #define SC_ACCESSIBLEFILTERTOPWINDOW_HXX
23 #include "AccessibleFilterMenu.hxx"
24 #include "cppuhelper/implbase1.hxx"
26 class ScCheckListMenuWindow
;
28 class ScAccessibleFilterTopWindow
: public ScAccessibleFilterMenu
31 ScAccessibleFilterTopWindow(
32 const ::com::sun::star::uno::Reference
<
33 ::com::sun::star::accessibility::XAccessible
>& rxParent
,
34 ScCheckListMenuWindow
* pWin
, const OUString
& rName
);
35 virtual ~ScAccessibleFilterTopWindow();
39 virtual sal_Int32 SAL_CALL
getAccessibleChildCount()
40 throw (::com::sun::star::uno::RuntimeException
);
42 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
43 getAccessibleChild(sal_Int32 nIndex
)
44 throw (::com::sun::star::uno::RuntimeException
, ::com::sun::star::lang::IndexOutOfBoundsException
);
46 virtual OUString SAL_CALL
getImplementationName()
47 throw (::com::sun::star::uno::RuntimeException
);
51 enum ChildControlType
{
52 LISTBOX
, TOGGLE_ALL
, SINGLE_ON_BTN
, SINGLE_OFF_BTN
, OK_BTN
, CANCEL_BTN
54 void setAccessibleChild(
55 const ::com::sun::star::uno::Reference
<
56 ::com::sun::star::accessibility::XAccessible
>& rAccessible
,
57 ChildControlType eType
);
60 /** The top menu part */
61 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
64 /** check list box for field member visibility */
65 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
68 /** check box for toggling all field member's visibility. */
69 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
72 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
75 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
78 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
81 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */