LibreOffice Module sc (master) 1
AccessibleCsvControl.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <memory>
23#include <com/sun/star/accessibility/AccessibleRole.hpp>
24#include <com/sun/star/accessibility/AccessibleScrollType.hpp>
25#include <com/sun/star/accessibility/XAccessibleText.hpp>
26#include <com/sun/star/accessibility/XAccessibleTable.hpp>
27#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
28#include <tools/gen.hxx>
29#include <rtl/ref.hxx>
30#include <rtl/ustrbuf.hxx>
36#include <comphelper/uno3.hxx>
37#include <map>
38
39class ScCsvControl;
40
43{
44private:
46
47public:
48 explicit ScAccessibleCsvControl(ScCsvControl& rControl);
49 virtual ~ScAccessibleCsvControl() override;
50
51 virtual void SAL_CALL disposing() override;
52
53 virtual void SAL_CALL grabFocus( ) override;
54 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
55
56 // events -----------------------------------------------------------------
57public:
59 virtual void SendFocusEvent( bool bFocused );
61 virtual void SendCaretEvent();
63 void SendVisibleEvent();
65 void SendSelectionEvent();
67 virtual void SendTableUpdateEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows );
69 virtual void SendInsertColumnEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn );
71 virtual void SendRemoveColumnEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn );
72
73 // helpers ----------------------------------------------------------------
74protected:
75 virtual css::awt::Rectangle implGetBounds() override;
76
79
81 sal_Int64 implCreateStateSet();
82};
83
84class ScCsvRuler;
85
86typedef ::cppu::ImplHelper2<css::accessibility::XAccessible,
87 css::accessibility::XAccessibleText> ScAccessibleCsvRulerImpl;
88
91{
92private:
93 OUStringBuffer maBuffer;
94
95public:
96 explicit ScAccessibleCsvRuler( ScCsvRuler& rRuler );
97 virtual ~ScAccessibleCsvRuler() override;
98
99 // XAccessibleComponent -----------------------------------------------------
100 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override { return this; }
101
102 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
103
104 virtual OUString SAL_CALL getAccessibleDescription( ) override;
105 virtual OUString SAL_CALL getAccessibleName( ) override;
106
107 virtual sal_Int32 SAL_CALL getForeground( ) override;
108
109 virtual sal_Int32 SAL_CALL getBackground( ) override;
110
111 // XAccessibleContext -----------------------------------------------------
112
114 virtual sal_Int32 SAL_CALL getAccessibleChildCount() override;
115
117 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 nIndex ) override;
118
119 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override { return css::accessibility::AccessibleRole::TEXT; }
120
122 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override;
123
125 virtual sal_Int64 SAL_CALL getAccessibleStateSet() override;
126
127 // XAccessibleText --------------------------------------------------------
128
130 virtual sal_Int32 SAL_CALL getCaretPosition() override;
131
133 virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex ) override;
134
136 virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) override;
137
139 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
140
142 virtual css::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) override;
143
145 virtual sal_Int32 SAL_CALL getCharacterCount() override;
146
148 virtual sal_Int32 SAL_CALL getIndexAtPoint( const css::awt::Point& rPoint ) override;
149
151 virtual OUString SAL_CALL getSelectedText() override;
152
154 virtual sal_Int32 SAL_CALL getSelectionStart() override;
155
157 virtual sal_Int32 SAL_CALL getSelectionEnd() override;
158
160 virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
161
163 virtual OUString SAL_CALL getText() override;
164
166 virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
167
169 virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
170 virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
171 virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
172
174 virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
175
176 virtual sal_Bool SAL_CALL scrollSubstringTo( sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override;
177
178 // XInterface -------------------------------------------------------------
179
181
182 // XTypeProvider ----------------------------------------------------------
183
184 DECLARE_XTYPEPROVIDER()
185
186 // events -----------------------------------------------------------------
187public:
189 virtual void SendCaretEvent() override;
190
191 // helpers ----------------------------------------------------------------
192private:
193
195 void ensureValidIndex( sal_Int32 nIndex ) const;
197 void ensureValidIndexWithEnd( sal_Int32 nIndex ) const;
200 void ensureValidRange( sal_Int32& rnStartIndex, sal_Int32& rnEndIndex ) const;
201
203 ScCsvRuler& implGetRuler() const;
204
211 sal_Int32 implGetTextLength() const;
212
214 bool implHasSplit( sal_Int32 nApiPos );
215
217 sal_Int32 implGetFirstEqualFormatted( sal_Int32 nApiPos );
219 sal_Int32 implGetLastEqualFormatted( sal_Int32 nApiPos );
220};
221
222class ScCsvGrid;
224
225typedef ::cppu::ImplHelper3<
226 css::accessibility::XAccessible,
227 css::accessibility::XAccessibleTable,
228 css::accessibility::XAccessibleSelection >
230
233{
234protected:
235 typedef std::map< sal_Int32, rtl::Reference<ScAccessibleCsvCell> > XAccessibleSet;
236
237private:
239
240public:
241 explicit ScAccessibleCsvGrid( ScCsvGrid& rGrid );
242 virtual ~ScAccessibleCsvGrid() override;
243 virtual void SAL_CALL disposing() override;
244
245 // XAccessibleComponent ---------------------------------------------------
246 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override { return this; }
247
248 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
249
251 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& rPoint ) override;
252
253 virtual OUString SAL_CALL getAccessibleDescription( ) override;
254 virtual OUString SAL_CALL getAccessibleName( ) override;
255
256 virtual sal_Int32 SAL_CALL getForeground( ) override;
257
258 virtual sal_Int32 SAL_CALL getBackground( ) override;
259
260 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override { return css::accessibility::AccessibleRole::TABLE; }
261
262 // XAccessibleContext -----------------------------------------------------
263
265 virtual sal_Int32 SAL_CALL getAccessibleChildCount() override;
266
268 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 nIndex ) override;
269
271 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override;
272
274 virtual sal_Int64 SAL_CALL getAccessibleStateSet() override;
275
276 // XAccessibleTable -------------------------------------------------------
277
279 virtual sal_Int32 SAL_CALL getAccessibleRowCount() override;
280
282 virtual sal_Int32 SAL_CALL getAccessibleColumnCount() override;
283
285 virtual OUString SAL_CALL getAccessibleRowDescription( sal_Int32 nRow ) override;
286
288 virtual OUString SAL_CALL getAccessibleColumnDescription( sal_Int32 nColumn ) override;
289
292 virtual sal_Int32 SAL_CALL getAccessibleRowExtentAt( sal_Int32 nRow, sal_Int32 nColumn ) override;
293
296 virtual sal_Int32 SAL_CALL getAccessibleColumnExtentAt( sal_Int32 nRow, sal_Int32 nColumn ) override;
297
299 virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleRowHeaders() override;
300
302 virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleColumnHeaders() override;
303
305 virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleRows() override;
306
308 virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleColumns() override;
309
311 virtual sal_Bool SAL_CALL isAccessibleRowSelected( sal_Int32 nRow ) override;
312
314 virtual sal_Bool SAL_CALL isAccessibleColumnSelected( sal_Int32 nColumn ) override;
315
317 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCellAt( sal_Int32 nRow, sal_Int32 nColumn ) override;
318
320 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCaption() override;
321
323 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleSummary() override;
324
326 virtual sal_Bool SAL_CALL isAccessibleSelected( sal_Int32 nRow, sal_Int32 nColumn ) override;
327
329 virtual sal_Int32 SAL_CALL getAccessibleIndex( sal_Int32 nRow, sal_Int32 nColumn ) override;
330
332 virtual sal_Int32 SAL_CALL getAccessibleRow( sal_Int32 nChildIndex ) override;
333
335 virtual sal_Int32 SAL_CALL getAccessibleColumn( sal_Int32 nChildIndex ) override;
336
337 // XAccessibleSelection ---------------------------------------------------
338
340 virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) override;
341
343 virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) override;
344
346 virtual void SAL_CALL clearAccessibleSelection() override;
347
349 virtual void SAL_CALL selectAllAccessibleChildren() override;
350
352 virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount() override;
353
355 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
356
358 virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
359
360 // XInterface -------------------------------------------------------------
361
362 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override;
363
364 virtual void SAL_CALL acquire() noexcept override;
365
366 virtual void SAL_CALL release() noexcept override;
367
368 // XTypeProvider ----------------------------------------------------------
369
371 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
372
374 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
375
376 // events -----------------------------------------------------------------
377public:
379 virtual void SendFocusEvent( bool bFocused ) override;
381 virtual void SendTableUpdateEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows ) override;
383 virtual void SendInsertColumnEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn ) override;
385 virtual void SendRemoveColumnEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn ) override;
386
387 // helpers ----------------------------------------------------------------
388private:
389
391 void ensureValidIndex( sal_Int32 nIndex ) const;
393 void ensureValidPosition( sal_Int32 nRow, sal_Int32 nColumn ) const;
394
396 ScCsvGrid& implGetGrid() const;
397
399 bool implIsColumnSelected( sal_Int32 nColumn ) const;
401 void implSelectColumn( sal_Int32 nColumn, bool bSelect );
402
404 sal_Int32 implGetRowCount() const;
406 sal_Int32 implGetColumnCount() const;
408 sal_Int32 implGetSelColumnCount() const;
410 sal_Int32 implGetCellCount() const { return implGetRowCount() * implGetColumnCount(); }
411
413 sal_Int32 implGetRow( sal_Int32 nIndex ) const { return nIndex / implGetColumnCount(); }
415 sal_Int32 implGetColumn( sal_Int32 nIndex ) const { return nIndex % implGetColumnCount(); }
417 sal_Int32 implGetSelColumn( sal_Int32 nSelColumn ) const;
419 sal_Int32 implGetIndex( sal_Int32 nRow, sal_Int32 nColumn ) const { return nRow * implGetColumnCount() + nColumn; }
420
422 OUString implGetCellText( sal_Int32 nRow, sal_Int32 nColumn ) const;
424 rtl::Reference<ScAccessibleCsvCell> implCreateCellObj(sal_Int32 nRow, sal_Int32 nColumn);
425
426 css::uno::Reference<css::accessibility::XAccessible> getAccessibleCell(sal_Int32 nRow, sal_Int32 nColumn);
427};
428
431 , public cppu::ImplHelper1<css::accessibility::XAccessible>
433{
434protected:
435 typedef ::std::unique_ptr< SvxEditSource > SvxEditSourcePtr;
436
437private:
438 OUString maCellText;
439 sal_Int32 mnLine;
440 sal_uInt32 mnColumn;
441 sal_Int32 mnIndex;
442
443public:
444 explicit ScAccessibleCsvCell(
445 ScCsvGrid& rGrid,
446 OUString aCellText,
447 sal_Int32 nRow, sal_Int32 nColumn);
448 virtual ~ScAccessibleCsvCell() override;
449
450 virtual void SAL_CALL disposing() override;
451
452 // XAccessibleComponent ---------------------------------------------------
453
455 virtual void SAL_CALL grabFocus() override;
456
457 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
458
459 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override { return this; }
460
461 virtual OUString SAL_CALL getAccessibleDescription( ) override;
462 virtual OUString SAL_CALL getAccessibleName( ) override;
463 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override { return css::accessibility::AccessibleRole::TEXT; }
464
465 virtual sal_Int32 SAL_CALL getForeground( ) override;
466
467 virtual sal_Int32 SAL_CALL getBackground( ) override;
468
469 // XAccessibleContext -----------------------------------------------------
470
472 virtual sal_Int32 SAL_CALL getAccessibleChildCount() override;
473
475 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 nIndex ) override;
476
478 virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() override;
479
481 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override;
482
484 virtual sal_Int64 SAL_CALL getAccessibleStateSet() override;
485
486 // XInterface -------------------------------------------------------------
487
489
490 // XTypeProvider ----------------------------------------------------------
491
492 DECLARE_XTYPEPROVIDER()
493
494private:
496 ScCsvGrid& implGetGrid() const;
498 Point implGetRealPos() const;
500 sal_uInt32 implCalcPixelWidth(sal_uInt32 nChars) const;
502 Size implGetRealSize() const;
504 virtual css::awt::Rectangle implGetBounds() override;
505
507 ::std::unique_ptr< SvxEditSource > implCreateEditSource();
508};
509
510/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::cppu::ImplHelper2< css::accessibility::XAccessible, css::accessibility::XAccessibleText > ScAccessibleCsvRulerImpl
Accessible class representing a cell of the CSV grid control.
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
sal_Int32 mnIndex
The grid column index (core index).
sal_uInt32 mnColumn
The grid line index (core index).
virtual sal_Int16 SAL_CALL getAccessibleRole() override
sal_Int32 mnLine
The text contents of this cell.
::std::unique_ptr< SvxEditSource > SvxEditSourcePtr
Accessible base class used for CSV controls.
virtual void SAL_CALL grabFocus() override
void SendVisibleEvent()
Sends a visible area changed event to all listeners.
virtual void SendInsertColumnEvent(sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
Sends a table model changed event for an inserted column to all listeners.
virtual void SendCaretEvent()
Sends a caret changed event to all listeners.
void SendSelectionEvent()
Sends a selection changed event to all listeners.
virtual css::awt::Rectangle implGetBounds() override
ScAccessibleCsvControl(ScCsvControl &rControl)
Pointer to the VCL control.
virtual void SendTableUpdateEvent(sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows)
Sends a table model changed event for changed cell contents to all listeners.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual ~ScAccessibleCsvControl() override
virtual void SendRemoveColumnEvent(sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
Sends a table model changed event for a removed column to all listeners.
virtual void SendFocusEvent(bool bFocused)
Sends a GetFocus or LoseFocus event to all listeners.
ScCsvControl & implGetControl() const
Returns the VCL control.
virtual void SAL_CALL disposing() override
sal_Int64 implCreateStateSet()
Creates a StateSet and fills it with DEFUNC, OPAQUE, ENABLED, SHOWING and VISIBLE.
Accessible class representing the CSV grid control.
sal_Int32 implGetIndex(sal_Int32 nRow, sal_Int32 nColumn) const
Returns the child index from cell position (including header).
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
std::map< sal_Int32, rtl::Reference< ScAccessibleCsvCell > > XAccessibleSet
sal_Int32 implGetColumn(sal_Int32 nIndex) const
Returns the column index from cell index (including header).
virtual sal_Int16 SAL_CALL getAccessibleRole() override
XAccessibleSet maAccessibleChildren
sal_Int32 implGetRow(sal_Int32 nIndex) const
Returns the row index from cell index (including header).
Accessible class representing the CSV ruler control.
sal_Int32 implGetTextLength() const
Returns the character count of the text.
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Returns the current set of states.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
Returns the relation to the grid control.
virtual sal_Int32 SAL_CALL getBackground() override
virtual sal_Bool SAL_CALL setCaretPosition(sal_Int32 nIndex) override
Sets the position of the caret.
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
bool implHasSplit(sal_Int32 nApiPos)
Returns true, if the character at the specified index has a split.
virtual sal_Int32 SAL_CALL getIndexAtPoint(const css::awt::Point &rPoint) override
Returns the character index at the specified coordinate (object's coordinate system).
void ensureValidIndex(sal_Int32 nIndex) const
void constructStringBuffer()
Builds the entire string buffer.
virtual OUString SAL_CALL getSelectedText() override
Returns the selected text (ruler returns empty string).
virtual sal_Int32 SAL_CALL getSelectionStart() override
Returns the start index of the selection (ruler returns -1).
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Returns the specified text portion.
virtual OUString SAL_CALL getAccessibleName() override
void ensureValidIndexWithEnd(sal_Int32 nIndex) const
virtual OUString SAL_CALL getTextRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Returns the specified range [Start,End) of the text.
virtual ~ScAccessibleCsvRuler() override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
Returns the attributes of the specified character.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int32 nIndex) override
Throws an exception (the ruler does not have children).
virtual OUString SAL_CALL getText() override
Returns the entire text.
ScCsvRuler & implGetRuler() const
Returns the VCL ruler control.
virtual css::awt::Rectangle SAL_CALL getCharacterBounds(sal_Int32 nIndex) override
Returns the screen coordinates of the specified character.
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual sal_Int32 SAL_CALL getCaretPosition() override
Return the position of the caret.
virtual sal_Bool SAL_CALL scrollSubstringTo(sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
sal_Int32 implGetLastEqualFormatted(sal_Int32 nApiPos)
Returns the last character index with equal formatting as at nApiPos.
virtual OUString SAL_CALL getAccessibleDescription() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual sal_Int32 SAL_CALL getCharacterCount() override
Returns the count of characters.
virtual void SendCaretEvent() override
Sends a caret changed event to all listeners.
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual sal_Bool SAL_CALL setSelection(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Selects a part of the text (ruler does nothing).
ScAccessibleCsvRuler(ScCsvRuler &rRuler)
Contains the text representation of the ruler.
void ensureValidRange(sal_Int32 &rnStartIndex, sal_Int32 &rnEndIndex) const
virtual sal_Int32 SAL_CALL getSelectionEnd() override
Returns the end index of the selection (ruler returns -1).
virtual sal_Int32 SAL_CALL getAccessibleChildCount() override
Returns the child count (the ruler does not have children).
sal_Int32 implGetFirstEqualFormatted(sal_Int32 nApiPos)
Returns the first character index with equal formatting as at nApiPos.
virtual sal_Bool SAL_CALL copyText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Copies the specified text range into the clipboard (ruler does nothing).
virtual sal_Unicode SAL_CALL getCharacter(sal_Int32 nIndex) override
Returns the specified character.
Base class for the CSV ruler and the data grid control.
Definition: csvcontrol.hxx:223
A data grid control for the CSV import dialog.
Definition: csvgrid.hxx:58
A ruler control for the CSV import dialog.
Definition: csvruler.hxx:33
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
sal_Int32 nIndex
Type
unsigned char sal_Bool
sal_uInt16 sal_Unicode
signed char sal_Int8
#define DECLARE_XINTERFACE()
@ TABLE
Definition: xmldpimp.hxx:43