casde.blogg.se

Apache open writer
Apache open writer











apache open writer

IsEndOfWord () returns True if the TextCursor is at the end of a word. IsStartOfWord () returns True if the TextCursor is at the start of a word. GotoPreviousWord (Expand) jumps to the start of the previous word. GotoNextWord (Expand) jumps to the start of the next word. GotoEndOfWord (Expand) jumps to the end of the current word. GotoStartOfWord (Expand) jumps to the start of the current word. GotoRange (TextRange, Expand) jumps to the specified TextRange-Object. GotoEnd (Expand) jumps to the end of the text document. GotoStart (Expand) jumps to the start of the text document. GoRight (Count, Expand) jumps Count characters to the right. GoLeft (Count, Expand) jumps Count characters to the left. Here are the central methods that the .TextCursor service provides for navigation: The area highlighted by the TextCursor therefore begins after the seventh character in the text and ends after the tenth character. For example, the TextCursor in the following exampleįirst moves ten characters to the right without highlighting, and then moves back three characters and highlights this.

apache open writer

The False parameter in the previous function call specifies whether the area passed over with the cursor movement is highlighted. This can be compared with highlighting a point in the text using the mouse. Several TextCursor objects can even be opened for the same document and used in various positions, which are independent of one another.Ī TextCursor object is created using the createTextCursor call:Ī TextCursor can highlight a complete area.

apache open writer

A program-controlled position change of a TextCursor object has no impact whatsoever on the visible cursor. The TextCursor object in Apache OpenOffice Basic acts independently from the visible cursor in a text document. The corresponding counterparts of the TextCursor object in Apache OpenOffice are described in the following sections. The TextCursor object in Apache OpenOffice, for example, provides methods for navigating and changing text which are included in the Range object in VBA (for example, MoveStart, MoveEnd, InsertBefore, InsertAfter). VBA : Terminology differs from that used in VBA: In terms of scope of function, the Range object from VBA can be compared with the TextCursor object in Apache OpenOffice and not - as the name possibly suggests - with the Range object in Apache OpenOffice.













Apache open writer