| LibreOffice
    LibreOffice 24.8 SDK API Reference | 
gives access to the text of a component and makes it possible to register event listeners. More...
import "XTextComponent.idl";
 
  
| Public Member Functions | |
| void | addTextListener ([in] com::sun::star::awt::XTextListener l) | 
| registers a text event listener. | |
| void | removeTextListener ([in] com::sun::star::awt::XTextListener l) | 
| unregisters a text event listener. | |
| void | setText ([in] string aText) | 
| sets the text of the component. | |
| void | insertText ([in] com::sun::star::awt::Selection Sel, [in] string Text) | 
| inserts text at the specified position. | |
| string | getText () | 
| returns the text of the component. | |
| string | getSelectedText () | 
| returns the currently selected text. | |
| void | setSelection ([in] com::sun::star::awt::Selection aSelection) | 
| sets the user selection. | |
| com::sun::star::awt::Selection | getSelection () | 
| returns the current user selection. | |
| boolean | isEditable () | 
| returns if the text is editable by the user. | |
| void | setEditable ([in] boolean bEditable) | 
| makes the text editable for the user or read-only. | |
| void | setMaxTextLen ([in] short nLen) | 
| sets the maximum text length. | |
| short | getMaxTextLen () | 
| returns the currently set maximum text length. | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) | 
| queries for a new interface to an existing UNO object. | |
| void | acquire () | 
| increases the reference counter by one. | |
| void | release () | 
| decreases the reference counter by one. | |
gives access to the text of a component and makes it possible to register event listeners.
| void addTextListener | ( | [in] com::sun::star::awt::XTextListener | l | ) | 
registers a text event listener.
| short getMaxTextLen | ( | ) | 
returns the currently set maximum text length.
| string getSelectedText | ( | ) | 
returns the currently selected text.
| com::sun::star::awt::Selection getSelection | ( | ) | 
returns the current user selection.
| string getText | ( | ) | 
returns the text of the component.
| void insertText | ( | [in] com::sun::star::awt::Selection | Sel, | 
| [in] string | Text ) | 
inserts text at the specified position.
| boolean isEditable | ( | ) | 
returns if the text is editable by the user.
| void removeTextListener | ( | [in] com::sun::star::awt::XTextListener | l | ) | 
unregisters a text event listener.
| void setEditable | ( | [in] boolean | bEditable | ) | 
makes the text editable for the user or read-only.
| void setMaxTextLen | ( | [in] short | nLen | ) | 
sets the maximum text length.
| void setSelection | ( | [in] com::sun::star::awt::Selection | aSelection | ) | 
sets the user selection.
| void setText | ( | [in] string | aText | ) | 
sets the text of the component.