1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
24 using namespace com::sun::star::accessibility
;
25 using namespace com::sun::star::uno
;
28 * Get special selection.
29 * @param startOffset Start selection offset.
30 * @param endOffset End selection offset.
31 * @param success Variant to accept the result of if the method call is successful.
34 STDMETHODIMP
CAccText::addSelection(long startOffset
, long endOffset
)//, unsigned char * success)
37 return CAccTextBase::get_addSelection(startOffset
, endOffset
);//, success);
41 * Get special attributes.
42 * @param offset Offset.
43 * @param startOffset Variant to accept start offset.
44 * @param endOffset Variant to accept end offset.
45 * @param textAttributes Variant to accept attributes.
48 STDMETHODIMP
CAccText::get_attributes(long offset
, long * startOffset
, long * endOffset
, BSTR
* textAttributes
)
51 return CAccTextBase::get_attributes(offset
, startOffset
, endOffset
, textAttributes
);
56 * @param offset Variant to accept caret offset.
59 STDMETHODIMP
CAccText::get_caretOffset(long * offset
)
62 return CAccTextBase::get_caretOffset(offset
);
66 * Get character count.
67 * @param nCharacters Variant to accept character count.
70 STDMETHODIMP
CAccText::get_characterCount(long * nCharacters
)
73 return CAccTextBase::get_characterCount(nCharacters
);
77 * Get character extents.
78 * @param offset Offset.
79 * @param x Variant to accept x position.
80 * @param y Variant to accept y position.
81 * @param width Variant to accept width.
82 * @param Height Variant to accept height.
85 STDMETHODIMP
CAccText::get_characterExtents(long offset
, IA2CoordinateType coordType
, long * x
, long * y
, long * width
, long * height
)
88 return CAccTextBase::get_characterExtents(offset
, coordType
, x
, y
, width
, height
);
92 * Get selections count.
93 * @param nSelections Variant to accept selections count.
96 STDMETHODIMP
CAccText::get_nSelections(long * nSelections
)
99 return CAccTextBase::get_nSelections(nSelections
);
103 * Get offset of some special point.
104 * @param x X position of one point.
105 * @param x Y position of one point.
106 * @param coordType Type.
107 * @param offset Variant to accept offset.
111 STDMETHODIMP
CAccText::get_offsetAtPoint(long x
, long y
, IA2CoordinateType coordType
, long * offset
)
114 return CAccTextBase::get_offsetAtPoint(x
, y
, coordType
, offset
);
118 * Get selection range.
119 * @param selection selection count.
120 * @param startOffset Variant to accept the start offset of special selection.
121 * @param endOffset Variant to accept the end offset of special selection.
124 STDMETHODIMP
CAccText::get_selection(long selection
, long * startOffset
, long * endOffset
)
127 return CAccTextBase::get_selection(selection
, startOffset
, endOffset
);
132 * @param startOffset Start position of special range.
133 * @param endOffset End position of special range.
134 * @param text Variant to accept the text of special range.
137 STDMETHODIMP
CAccText::get_text(long startOffset
, long endOffset
, BSTR
* text
)
140 return CAccTextBase::get_text(startOffset
, endOffset
, text
);
144 * Get special text before some position.
145 * @param offset Special position.
146 * @param boundaryType Boundary type.
147 * @param startOffset Variant to accept the start offset.
148 * @param endOffset Variant to accept the end offset.
149 * @param text Variant to accept the special text.
152 STDMETHODIMP
CAccText::get_textBeforeOffset(long offset
, IA2TextBoundaryType boundaryType
, long * startOffset
, long * endOffset
, BSTR
* text
)
155 return CAccTextBase::get_textBeforeOffset(offset
, boundaryType
,
156 startOffset
, endOffset
, text
);
160 * Get special text after some position.
161 * @param offset Special position.
162 * @param boundaryType Boundary type.
163 * @param startOffset Variant to accept the start offset.
164 * @param endOffset Variant to accept the end offset.
165 * @param text Variant to accept the special text.
168 STDMETHODIMP
CAccText::get_textAfterOffset(long offset
, IA2TextBoundaryType boundaryType
, long * startOffset
, long * endOffset
, BSTR
* text
)
171 return CAccTextBase::get_textAfterOffset(offset
, boundaryType
,
172 startOffset
, endOffset
, text
);
176 * Get special text at some position.
177 * @param offset Special position.
178 * @param boundaryType Boundary type.
179 * @param startOffset Variant to accept the start offset.
180 * @param endOffset Variant to accept the end offset.
181 * @param text Variant to accept the special text.
184 STDMETHODIMP
CAccText::get_textAtOffset(long offset
, IA2TextBoundaryType boundaryType
, long * startOffset
, long * endOffset
, BSTR
* text
)
187 return CAccTextBase::get_textAtOffset(offset
, boundaryType
,
188 startOffset
, endOffset
, text
);
193 * @param selectionIndex Special selection index
194 * @param success Variant to accept the memthod called result.
197 STDMETHODIMP
CAccText::removeSelection(long selectionIndex
)//, unsigned char * success)
200 return CAccTextBase::removeSelection(selectionIndex
);//, success);
204 * Set caret position.
205 * @param offset Special position.
206 * @param success Variant to accept the memthod called result.
209 STDMETHODIMP
CAccText::setCaretOffset(long offset
)
212 return CAccTextBase::setCaretOffset(offset
);
216 * Set special selection.
217 * @param selectionIndex Special selection index.
218 * @param startOffset start position.
219 * @param endOffset end position.
220 * @param success Variant to accept the memthod called result.
224 STDMETHODIMP
CAccText::setSelection(long selectionIndex
, long startOffset
, long endOffset
)
227 return CAccTextBase::setSelection(selectionIndex
, startOffset
,
232 * Get characters count.
233 * @param nCharacters Variant to accept the characters count.
236 STDMETHODIMP
CAccText::get_nCharacters(long * nCharacters
)
239 return CAccTextBase::get_nCharacters(nCharacters
);
242 STDMETHODIMP
CAccText::get_newText( IA2TextSegment
*newText
)
244 return CAccTextBase::get_newText(newText
);
247 STDMETHODIMP
CAccText::get_oldText( IA2TextSegment
*oldText
)
249 return CAccTextBase::get_oldText(oldText
);
253 * Scroll to special sub-string .
254 * @param startIndex Start index of sub string.
255 * @param endIndex End index of sub string.
258 STDMETHODIMP
CAccText::scrollSubstringToPoint(long startIndex
, long endIndex
,enum IA2CoordinateType coordinateType
, long x
, long y
)
261 return CAccTextBase::scrollSubstringToPoint(startIndex
, endIndex
, coordinateType
, x
, y
);
264 STDMETHODIMP
CAccText::scrollSubstringTo(long startIndex
, long endIndex
,enum IA2ScrollType scrollType
)
267 return CAccTextBase::scrollSubstringTo(startIndex
, endIndex
,scrollType
);
272 * @param pXInterface UNO interface.
275 STDMETHODIMP
CAccText::put_XInterface(hyper pXInterface
)
278 return CAccTextBase::put_XInterface(pXInterface
);
281 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */