1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: AccessibleDataPilotControl.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_ACCESSIBLEFILTERMENUITEM_HXX
32 #define SC_ACCESSIBLEFILTERMENUITEM_HXX
34 #include "AccessibleContextBase.hxx"
35 #include "cppuhelper/implbase1.hxx"
37 #include <com/sun/star/accessibility/XAccessibleAction.hpp>
39 class ScMenuFloatingWindow
;
41 typedef ::cppu::ImplHelper1
<
42 ::com::sun::star::accessibility::XAccessibleAction
> ScAccessibleFilterMenuItem_BASE
;
44 class ScAccessibleFilterMenuItem
:
45 public ScAccessibleContextBase
,
46 public ScAccessibleFilterMenuItem_BASE
49 explicit ScAccessibleFilterMenuItem(
50 const ::com::sun::star::uno::Reference
<
51 ::com::sun::star::accessibility::XAccessible
>& rxParent
, ScMenuFloatingWindow
* pWin
, const ::rtl::OUString
& rName
, size_t nMenuPos
);
53 virtual ~ScAccessibleFilterMenuItem();
57 virtual sal_Int32 SAL_CALL
getAccessibleChildCount()
58 throw (::com::sun::star::uno::RuntimeException
);
60 virtual ::com::sun::star::uno::Reference
<
61 ::com::sun::star::accessibility::XAccessible
> SAL_CALL
62 getAccessibleChild(sal_Int32 nIndex
)
63 throw (::com::sun::star::uno::RuntimeException
, ::com::sun::star::lang::IndexOutOfBoundsException
);
65 virtual ::com::sun::star::uno::Reference
<
66 ::com::sun::star::accessibility::XAccessibleStateSet
> SAL_CALL
67 getAccessibleStateSet()
68 throw (::com::sun::star::uno::RuntimeException
);
70 virtual ::rtl::OUString SAL_CALL
getImplementationName()
71 throw (::com::sun::star::uno::RuntimeException
);
75 virtual ::sal_Int32 SAL_CALL
getAccessibleActionCount()
76 throw (::com::sun::star::uno::RuntimeException
);
78 virtual ::sal_Bool SAL_CALL
doAccessibleAction(sal_Int32 nIndex
)
79 throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
);
81 virtual ::rtl::OUString SAL_CALL
getAccessibleActionDescription(sal_Int32 nIndex
)
82 throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
);
84 virtual ::com::sun::star::uno::Reference
<
85 ::com::sun::star::accessibility::XAccessibleKeyBinding
> SAL_CALL
86 getAccessibleActionKeyBinding(sal_Int32 nIndex
)
87 throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
);
91 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface(
92 ::com::sun::star::uno::Type
const & rType
)
93 throw (::com::sun::star::uno::RuntimeException
);
95 virtual void SAL_CALL
acquire() throw ();
96 virtual void SAL_CALL
release() throw ();
100 void setEnabled(bool bEnabled
);
104 virtual Rectangle
GetBoundingBoxOnScreen() const
105 throw (::com::sun::star::uno::RuntimeException
);
107 virtual Rectangle
GetBoundingBox() const
108 throw (::com::sun::star::uno::RuntimeException
);
111 bool isSelected() const;
112 bool isFocused() const;
113 void updateStateSet();
116 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleStateSet
> mxStateSet
;
118 ScMenuFloatingWindow
* mpWindow
;
119 ::rtl::OUString maName
;