update dev300-m58
[ooovba.git] / sc / source / ui / inc / AccessibilityHints.hxx
blob456382afc718adf5bdba0a7bbdaa52a3b6da503c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: AccessibilityHints.hxx,v $
10 * $Revision: 1.10 $
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_ACCESSIBILITYHINTS_HXX
32 #define SC_ACCESSIBILITYHINTS_HXX
34 #include "viewdata.hxx"
35 #include <com/sun/star/uno/XInterface.hpp>
36 #include <svtools/smplhint.hxx>
37 #include <svtools/hint.hxx>
39 #define SC_HINT_ACC_SIMPLE_START SFX_HINT_USER00
40 #define SC_HINT_ACC_TABLECHANGED SC_HINT_ACC_SIMPLE_START + 1
41 #define SC_HINT_ACC_CURSORCHANGED SC_HINT_ACC_SIMPLE_START + 2
42 #define SC_HINT_ACC_VISAREACHANGED SC_HINT_ACC_SIMPLE_START + 3
43 #define SC_HINT_ACC_ENTEREDITMODE SC_HINT_ACC_SIMPLE_START + 4
44 #define SC_HINT_ACC_LEAVEEDITMODE SC_HINT_ACC_SIMPLE_START + 5
45 #define SC_HINT_ACC_MAKEDRAWLAYER SC_HINT_ACC_SIMPLE_START + 6
46 #define SC_HINT_ACC_WINDOWRESIZED SC_HINT_ACC_SIMPLE_START + 7
48 class ScAccWinFocusLostHint : public SfxHint
50 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
51 xOldAccessible;
52 public:
53 TYPEINFO();
54 ScAccWinFocusLostHint(
55 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
56 ~ScAccWinFocusLostHint();
58 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
59 GetOldAccessible() const { return xOldAccessible; }
62 class ScAccWinFocusGotHint : public SfxHint
64 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
65 xNewAccessible;
66 public:
67 TYPEINFO();
68 ScAccWinFocusGotHint(
69 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
70 ~ScAccWinFocusGotHint();
72 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
73 GetNewAccessible() const { return xNewAccessible; }
76 class ScAccGridWinFocusLostHint : public ScAccWinFocusLostHint
78 ScSplitPos eOldGridWin;
79 public:
80 TYPEINFO();
81 ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin,
82 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
83 ~ScAccGridWinFocusLostHint();
85 ScSplitPos GetOldGridWin() const { return eOldGridWin; }
88 class ScAccGridWinFocusGotHint : public ScAccWinFocusGotHint
90 ScSplitPos eNewGridWin;
91 public:
92 TYPEINFO();
93 ScAccGridWinFocusGotHint( ScSplitPos eNewGridWin,
94 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
95 ~ScAccGridWinFocusGotHint();
97 ScSplitPos GetNewGridWin() const { return eNewGridWin; }
100 #endif