Language
	
	Asturianu (ast) 
	Català (ca) 
	Čeština (cs) 
	Dansk (da) 
	Deutsch (de) 
	
	English [US] (en-US) 
	Español (es) 
	Esperanto (eo) 
	Eesti keel (et) 
	Euskara (eu) 
	Français (fr) 
	Gàidhlig (gd) 
	Galego (gl) 
	Italiano (it) 
	Lietuvių (lt) 
	Magyar (hu) 
	Nederlands (nl) 
	Norsk (no) 
	Polski (pl) 
	Português [do Brasil] (pt-BR) 
	Português [Europeu] (pt) 
	Română (ro) 
	Slovenčina (sk) 
	Slovenščina (sl) 
	Suomi (fi) 
	Svenska (sv) 
	Yкраїнська (uk) 
	Tiếng Việt (vi) 
	Türkçe (tr) 
	ኦሮሚኛ (om) 
	Հայերեն (hy) 
	Ελληνικά (el) 
	български език (bg) 
	Русский (ru) 
	Cрпски [ћирилицом] (sr) 
	
	עברית (he) 
	हिन्दी (hi) 
	ភាសាខ្មែរ (km) 
	தமிழ் (ta) 
	ภาษาไทย (th) 
	简体中文 (zh-CN) 
	正體中文 (zh-TW) 
	日本語 (ja) 
	한국어 (ko) 
	 
	
  
  
    
     The Free and Open Productivity Suite
   
      
      
  
 
::  com  :: sun  :: star  :: text  :: 
 
 
interface XSimpleText 
 
Base Interfaces  
XSimpleText 
┗ XTextRange 
 
XTextRange  
(referenced interface's summary:) 
describes the object's position in a text.
 
 
 
  
 
 
 
 
 
 
 
Description  
is the main interface for a distinct text unit, i.e. the main text of
 a document, the text for headers and footers or for single cells of a 
 table. 
See also  
XText  
 
  
Developers Guide  
Text - Editing Text - Strings  
 
 
 
 
 
Methods' Details 
 
createTextCursor 
 
Returns  
a new instance of a TextCursor  service which can 
 be used to travel in the given text context. 
 
  
See also  
TextCursor  
 
 
 
 
 
createTextCursorByRange 
 
Returns  
a new instance of a TextCursor  which is located 
 at the specified TextRange  to travel in the 
 given text context. 
 
 The initial position is set to aTextPosition . 
 
 
 
Parameter aTextPosition  
specifies the start position for the new 
 TextCursor . 
 
  
See also  
TextCursor  
 
 
 
 
 
insertString 
[oneway] void 
 
insertString ( 
[in] XTextRange  
 xRange, 
 
[in] string 
 aString, 
 
[in] boolean 
 bAbsorb ); 
 
 
Description  
inserts a string of characters into the text.
 
  
The string may contain the following white spaces:
 
 
 blank 
 tab 
 cr (which will insert a paragraph break) 
 lf (which will insert a line break) 
  
  
Parameter xRange  
specifies the position of insertion. For example,
 XSimpleText::createTextCursor can be used to
 get an XTextRange  for this argument.
 If the parameter bAbsorb  was true 
 the text range will contain the new inserted string, otherwise
 the range (and it's text) will remain unchanged.
 
  
Parameter aString  
specifies the string to insert.
  
Parameter bAbsorb  
specifies whether the text spanned by xRange  will be
 replaced. If true  then the content of xRange  will
 be replaced by aString , otherwise aString 
 will be inserted at the beginning of xRange .
 
  
Example  
 xText.insertString( xTextCursor, "Hello " + aName$ + ",", false )
 
 xText.insertControlCharacter( xTextCursor,
 ControlCharacter_PARAGRAPH_BREAK, false );
 
 xText.insertString( xTextCursor, "more text ...", false )
  
  
 
 
 
 
 
insertControlCharacter 
 
Description  
inserts a control character (like a paragraph break or a hard
 space) into the text. 
See also  
ControlCharacter  
 
 
 
 
 
Top of Page Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.