AccessibleEditObject.hxx (38d50f7b) AccessibleEditObject.hxx (0deba7fb)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24
25#ifndef _SC_ACCESSIBLEEDITOBJECT_HXX
26#define _SC_ACCESSIBLEEDITOBJECT_HXX
27
28#include "AccessibleContextBase.hxx"
29
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24
25#ifndef _SC_ACCESSIBLEEDITOBJECT_HXX
26#define _SC_ACCESSIBLEEDITOBJECT_HXX
27
28#include "AccessibleContextBase.hxx"
29
30//IAccessibility2 Implementation 2009-----
31#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
32#include "global.hxx"
33//-----IAccessibility2 Implementation 2009
30namespace accessibility
31{
32 class AccessibleTextHelper;
33}
34class EditView;
35class Window;
36
37enum EditObjectType
38{
39 CellInEditMode,
40 EditLine,
41 EditControl
42};
43
44/** @descr
45 This base class provides an implementation of the
46 <code>AccessibleCell</code> service.
47*/
48class ScAccessibleEditObject
34namespace accessibility
35{
36 class AccessibleTextHelper;
37}
38class EditView;
39class Window;
40
41enum EditObjectType
42{
43 CellInEditMode,
44 EditLine,
45 EditControl
46};
47
48/** @descr
49 This base class provides an implementation of the
50 <code>AccessibleCell</code> service.
51*/
52class ScAccessibleEditObject
49 : public ScAccessibleContextBase
53 : public ScAccessibleContextBase,
54//IAccessibility2 Implementation 2009-----
55 public ::com::sun::star::accessibility::XAccessibleSelection
56//-----IAccessibility2 Implementation 2009
50{
51public:
52 //===== internal ========================================================
53 ScAccessibleEditObject(
54 const ::com::sun::star::uno::Reference<
55 ::com::sun::star::accessibility::XAccessible>& rxParent,
56 EditView* pEditView, Window* pWin, const rtl::OUString& rName,
57 const rtl::OUString& rDescription, EditObjectType eObjectType);

--- 8 unchanged lines hidden (view full) ---

66 using ScAccessibleContextBase::removeEventListener;
67 using ScAccessibleContextBase::disposing;
68
69 virtual void SAL_CALL disposing();
70
71 virtual void LostFocus();
72
73 virtual void GotFocus();
57{
58public:
59 //===== internal ========================================================
60 ScAccessibleEditObject(
61 const ::com::sun::star::uno::Reference<
62 ::com::sun::star::accessibility::XAccessible>& rxParent,
63 EditView* pEditView, Window* pWin, const rtl::OUString& rName,
64 const rtl::OUString& rDescription, EditObjectType eObjectType);

--- 8 unchanged lines hidden (view full) ---

73 using ScAccessibleContextBase::removeEventListener;
74 using ScAccessibleContextBase::disposing;
75
76 virtual void SAL_CALL disposing();
77
78 virtual void LostFocus();
79
80 virtual void GotFocus();
81//IAccessibility2 Implementation 2009-----
82///===== XInterface =====================================================
74
83
84 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
85 ::com::sun::star::uno::Type const & rType )
86 throw (::com::sun::star::uno::RuntimeException);
87
88 virtual void SAL_CALL acquire() throw ();
89
90 virtual void SAL_CALL release() throw ();
91//-----IAccessibility2 Implementation 2009
75 ///===== XAccessibleComponent ============================================
76
77 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
78 SAL_CALL getAccessibleAtPoint(
79 const ::com::sun::star::awt::Point& rPoint )
80 throw (::com::sun::star::uno::RuntimeException);
81
82protected:

--- 22 unchanged lines hidden (view full) ---

105 ::com::sun::star::lang::IndexOutOfBoundsException);
106
107 /// Return the set of current states.
108 virtual ::com::sun::star::uno::Reference<
109 ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
110 getAccessibleStateSet(void)
111 throw (::com::sun::star::uno::RuntimeException);
112
92 ///===== XAccessibleComponent ============================================
93
94 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
95 SAL_CALL getAccessibleAtPoint(
96 const ::com::sun::star::awt::Point& rPoint )
97 throw (::com::sun::star::uno::RuntimeException);
98
99protected:

--- 22 unchanged lines hidden (view full) ---

122 ::com::sun::star::lang::IndexOutOfBoundsException);
123
124 /// Return the set of current states.
125 virtual ::com::sun::star::uno::Reference<
126 ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
127 getAccessibleStateSet(void)
128 throw (::com::sun::star::uno::RuntimeException);
129
130 //===== XAccessibleSelection ============================================
131
132 virtual void SAL_CALL selectAccessibleChild(
133 sal_Int32 nChildIndex )
134 throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
135 ::com::sun::star::uno::RuntimeException );
136 virtual sal_Bool SAL_CALL isAccessibleChildSelected(
137 sal_Int32 nChildIndex )
138 throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
139 ::com::sun::star::uno::RuntimeException );
140 virtual void SAL_CALL clearAccessibleSelection( )
141 throw ( ::com::sun::star::uno::RuntimeException );
142 virtual void SAL_CALL selectAllAccessibleChildren( )
143 throw ( ::com::sun::star::uno::RuntimeException );
144 virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( )
145 throw ( ::com::sun::star::uno::RuntimeException );
146 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(
147 sal_Int32 nSelectedChildIndex )
148 throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
149 ::com::sun::star::uno::RuntimeException);
150 virtual void SAL_CALL deselectAccessibleChild(
151 sal_Int32 nSelectedChildIndex )
152 throw ( ::com::sun::star::lang::IndexOutOfBoundsException,
153 ::com::sun::star::uno::RuntimeException );
154 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException);
155//-----IAccessibility2 Implementation 2009
113protected:
114 /// Return this object's description.
115 virtual ::rtl::OUString SAL_CALL
116 createAccessibleDescription(void)
117 throw (::com::sun::star::uno::RuntimeException);
118
119 /// Return the object's current name.
120 virtual ::rtl::OUString SAL_CALL

--- 42 unchanged lines hidden (view full) ---

163 EditObjectType meObjectType;
164 sal_Bool mbHasFocus;
165
166 sal_Bool IsDefunc(
167 const com::sun::star::uno::Reference<
168 ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
169
170 void CreateTextHelper();
156protected:
157 /// Return this object's description.
158 virtual ::rtl::OUString SAL_CALL
159 createAccessibleDescription(void)
160 throw (::com::sun::star::uno::RuntimeException);
161
162 /// Return the object's current name.
163 virtual ::rtl::OUString SAL_CALL

--- 42 unchanged lines hidden (view full) ---

206 EditObjectType meObjectType;
207 sal_Bool mbHasFocus;
208
209 sal_Bool IsDefunc(
210 const com::sun::star::uno::Reference<
211 ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
212
213 void CreateTextHelper();
214//IAccessibility2 Implementation 2009-----
215 ScDocument *m_pScDoc;
216 ScAddress m_curCellAddress;
217
218
219 ///===== XAccessibleComponent ============================================
220 virtual sal_Int32 SAL_CALL getForeground( )
221 throw (::com::sun::star::uno::RuntimeException);
222
223 virtual sal_Int32 SAL_CALL getBackground( )
224 throw (::com::sun::star::uno::RuntimeException);
225
226 sal_Int32 GetFgBgColor( const rtl::OUString &strPropColor) ;
227//-----IAccessibility2 Implementation 2009
171};
172
173
174#endif
228};
229
230
231#endif