Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / AccessibilityHints.hxx
blob5ece67334d1b3c2888f500f86a0657a79a3af722
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 SC_ACCESSIBILITYHINTS_HXX
21 #define SC_ACCESSIBILITYHINTS_HXX
23 #include "viewdata.hxx"
24 #include <com/sun/star/uno/XInterface.hpp>
25 #include <svl/smplhint.hxx>
26 #include <svl/hint.hxx>
28 #define SC_HINT_ACC_SIMPLE_START SFX_HINT_USER00
29 #define SC_HINT_ACC_TABLECHANGED SC_HINT_ACC_SIMPLE_START + 1
30 #define SC_HINT_ACC_CURSORCHANGED SC_HINT_ACC_SIMPLE_START + 2
31 #define SC_HINT_ACC_VISAREACHANGED SC_HINT_ACC_SIMPLE_START + 3
32 #define SC_HINT_ACC_ENTEREDITMODE SC_HINT_ACC_SIMPLE_START + 4
33 #define SC_HINT_ACC_LEAVEEDITMODE SC_HINT_ACC_SIMPLE_START + 5
34 #define SC_HINT_ACC_MAKEDRAWLAYER SC_HINT_ACC_SIMPLE_START + 6
35 #define SC_HINT_ACC_WINDOWRESIZED SC_HINT_ACC_SIMPLE_START + 7
37 class ScAccWinFocusLostHint : public SfxHint
39 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
40 xOldAccessible;
41 public:
42 TYPEINFO();
43 ScAccWinFocusLostHint(
44 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
45 ~ScAccWinFocusLostHint();
47 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
48 GetOldAccessible() const { return xOldAccessible; }
51 class ScAccWinFocusGotHint : public SfxHint
53 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
54 xNewAccessible;
55 public:
56 TYPEINFO();
57 ScAccWinFocusGotHint(
58 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
59 ~ScAccWinFocusGotHint();
61 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
62 GetNewAccessible() const { return xNewAccessible; }
65 class ScAccGridWinFocusLostHint : public ScAccWinFocusLostHint
67 ScSplitPos eOldGridWin;
68 public:
69 TYPEINFO();
70 ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin,
71 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
72 ~ScAccGridWinFocusLostHint();
74 ScSplitPos GetOldGridWin() const { return eOldGridWin; }
77 class ScAccGridWinFocusGotHint : public ScAccWinFocusGotHint
79 ScSplitPos eNewGridWin;
80 public:
81 TYPEINFO();
82 ScAccGridWinFocusGotHint( ScSplitPos eNewGridWin,
83 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
84 ~ScAccGridWinFocusGotHint();
86 ScSplitPos GetNewGridWin() const { return eNewGridWin; }
89 #endif
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */