LibreOffice
LibreOffice 26.2 SDK API Reference
XBreakIterator.idl
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 
21 module com { module sun { module star { module i18n {
22 
23 
32 {
59  long nextCharacters( [in] string aText, [in] long nStartPos,
60  [in] ::com::sun::star::lang::Locale aLocale,
61  [in] short nCharacterIteratorMode,
62  [in] long nCount, [out] long nDone );
63 
91  long previousCharacters( [in] string aText, [in] long nStartPos,
92  [in] ::com::sun::star::lang::Locale aLocale,
93  [in] short nCharacterIteratorMode,
94  [in] long nCount, [out] long nDone );
95 
115  Boundary nextWord( [in] string aText, [in] long nStartPos,
116  [in] ::com::sun::star::lang::Locale aLocale,
117  [in] short nWordType);
118 
157  Boundary previousWord( [in] string aText, [in] long nStartPos,
158  [in] ::com::sun::star::lang::Locale aLocale,
159  [in] short nWordType);
160 
193  Boundary getWordBoundary( [in] string aText, [in] long nPos,
194  [in] ::com::sun::star::lang::Locale aLocale,
195  [in] short nWordType,
196  [in] boolean bPreferForward );
197 
208  short getWordType( [in] string aText, [in] long nPos,
209  [in] ::com::sun::star::lang::Locale aLocale);
210 
220  boolean isBeginWord( [in] string aText, [in] long nPos,
221  [in] ::com::sun::star::lang::Locale aLocale,
222  [in] short nWordType);
223 
226  boolean isEndWord( [in] string aText, [in] long nPos,
227  [in] ::com::sun::star::lang::Locale aLocale,
228  [in] short nWordType);
229 
245  long beginOfSentence( [in] string aText, [in] long nStartPos,
246  [in] ::com::sun::star::lang::Locale aLocale );
247 
263  long endOfSentence( [in] string aText, [in] long nStartPos,
264  [in] ::com::sun::star::lang::Locale aLocale );
265 
296  LineBreakResults getLineBreak( [in] string aText, [in] long nStartPos,
297  [in] ::com::sun::star::lang::Locale aLocale,
298  [in] long nMinBreakPos,
299  [in] LineBreakHyphenationOptions aHyphOptions,
300  [in] LineBreakUserOptions aUserOptions );
301 
317  long beginOfScript( [in] string aText, [in] long nStartPos,
318  [in] short nScriptType );
319 
335  long endOfScript( [in] string aText, [in] long nStartPos,
336  [in] short nScriptType );
337 
353  long nextScript( [in] string aText, [in] long nStartPos,
354  [in] short nScriptType );
355 
371  long previousScript( [in] string aText, [in] long nStartPos,
372  [in] short nScriptType );
373 
385  short getScriptType( [in] string aText, [in] long nPos);
386 
405  long beginOfCharBlock( [in] string aText, [in] long nStartPos,
406  [in] ::com::sun::star::lang::Locale aLocale,
407  [in] short nCharType );
408 
427  long endOfCharBlock( [in] string aText, [in] long nStartPos,
428  [in] ::com::sun::star::lang::Locale aLocale,
429  [in] short nCharType );
430 
449  long nextCharBlock( [in] string aText, [in] long nStartPos,
450  [in] ::com::sun::star::lang::Locale aLocale,
451  [in] short nCharType );
452 
471  long previousCharBlock ( [in] string aText, [in] long nStartPos,
472  [in] ::com::sun::star::lang::Locale aLocale,
473  [in] short nCharType );
474 };
475 
476 }; }; }; };
477 
478 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Hyphenation options passed in calls to XBreakIterator::getLineBreak().
Definition: LineBreakHyphenationOptions.idl:26
Results of method XBreakIterator::getLineBreak().
Definition: LineBreakResults.idl:26
Line break options passed in calls to XBreakIterator::getLineBreak().
Definition: LineBreakUserOptions.idl:26
Definition: Ambiguous.idl:20
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:33
contains the base routines for iteration in Unicode string.
Definition: XBreakIterator.idl:31
contains start and end position of a word.
Definition: Boundary.idl:32
base interface of all UNO interfaces
Definition: XInterface.idl:45