fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / source / UAccCOM / AccText.cxx
bloba8cd87136f107356318603824e1454171e77a904
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 #include "stdafx.h"
21 #include "UAccCOM.h"
22 #include "AccText.h"
24 using namespace com::sun::star::accessibility;
25 using namespace com::sun::star::uno;
27 /**
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.
32 * @return Result.
34 STDMETHODIMP CAccText::addSelection(long startOffset, long endOffset)//, unsigned char * success)
37 return CAccTextBase::get_addSelection(startOffset, endOffset);//, success);
40 /**
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.
46 * @return Result.
48 STDMETHODIMP CAccText::get_attributes(long offset, long * startOffset, long * endOffset, BSTR * textAttributes)
51 return CAccTextBase::get_attributes(offset, startOffset, endOffset, textAttributes);
54 /**
55 * Get caret position.
56 * @param offset Variant to accept caret offset.
57 * @return Result.
59 STDMETHODIMP CAccText::get_caretOffset(long * offset)
62 return CAccTextBase::get_caretOffset(offset);
65 /**
66 * Get character count.
67 * @param nCharacters Variant to accept character count.
68 * @return Result.
70 STDMETHODIMP CAccText::get_characterCount(long * nCharacters)
73 return CAccTextBase::get_characterCount(nCharacters);
76 /**
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.
83 * @return Result.
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);
91 /**
92 * Get selections count.
93 * @param nSelections Variant to accept selections count.
94 * @return Result.
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.
108 * @return Result.
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.
122 * @return Result.
124 STDMETHODIMP CAccText::get_selection(long selection, long * startOffset, long * endOffset)
127 return CAccTextBase::get_selection(selection, startOffset, endOffset);
131 * Get special text.
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.
135 * @return Result.
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.
150 * @return Result.
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.
166 * @return Result.
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.
182 * @return Result.
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);
192 * Remove selection.
193 * @param selectionIndex Special selection index
194 * @param success Variant to accept the memthod called result.
195 * @return 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.
207 * @return 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.
221 * @return Result.
224 STDMETHODIMP CAccText::setSelection(long selectionIndex, long startOffset, long endOffset)
227 return CAccTextBase::setSelection(selectionIndex, startOffset,
228 endOffset);
232 * Get characters count.
233 * @param nCharacters Variant to accept the characters count.
234 * @return Result.
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.
256 * @return Result.
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);
271 * Put UNO interface.
272 * @param pXInterface UNO interface.
273 * @return Result.
275 STDMETHODIMP CAccText::put_XInterface(hyper pXInterface)
278 return CAccTextBase::put_XInterface(pXInterface);
281 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */