create a new page, using OOoBasic/Writer/textcursor as a template.
Front page
Search
掲示板
Reload
Help
Browse Log
掲示板の使い方
OOo 掲示板3
OOo 掲示板2
OOo 掲示板
掲示板
雑談掲示板
New
List of pages
Recent changes
Backup
簡単ヘルプ
整形ルール
Start:
*テキストカーソル [#z51ebe63]
テキストカーソルを使うと,一文字ずつ文字を取り扱ったり,...
なお,テキストカーソルだけで文字を入力したり,フィールド...
#contents
**テキストカーソルの取得 [#p1ca170a]
テキストカーソルはテキストオブジェクトから取得します。
Sub textcursor_1
Dim oDoc As Object
Dim oText As Object
Dim oTextCursor As Object
oDoc = ThisComponent
oText = oDoc.getText()
oTextCursor = oText.createTextCursor()
End Sub
**テキストカーソルの移動 [#a788696e]
テキストカーソルは移動することが出来ます。移動したときに...
**最初または最後へ移動 [#v46620dd]
テキストカーソルをコンテンツの最初へ移動するメソッド ''go...
void gotoStart( boolean bExpand )
void gotoEnd( boolean bExpand )
-bExpand: 選択するかどうか
**文字数分移動 [#fc9fe5f2]
テキストカーソルを現在の位置から指定した文字数分だけ移動...
boolean goRight ( integer nChar, boolean bExpand )
boolean goLeft ( integer nChar, boolean bExpand )
-nChar: 移動する文字数
-bExpand: 選択するかどうか
戻り値は指定した移動文字数分だけ移動できたかどうかを示し...
**段落,行,単語 [#r61de6a5]
テキストカーソルは段落,行,単語単位での移動ができます。
***段落 [#z19a5cd5]
テキストカーソルの位置が段落の最初かどうか判断する ''isSt...
boolean isStartOfParagraph ( void )
boolean isEndOfParagraph ( void )
boolean gotoStartOfParagraph ( boolean bExpand )
boolean gotoEndOfParagraph ( boolean bExpand )
boolean gotoNextParagraph ( boolean bExpand )
boolean gotoPreviousParagraph ( boolean bExpand )
-bExpand: 選択するかどうか
***行 [#z69f72d1]
テキストカーソル位置が行の最初かどうかを判断する ''isStar...
boolean isStartOfSentence ( void )
boolean isEndOfSentence ( void )
boolean gotoStartOfSentence ( boolean bExpand )
boolean gotoEndOfSentence ( boolean bExpand )
boolean gotoNextSentence ( boolean bExpand )
boolean gotoPreviousSentence ( boolean bExpand )
-bExpand: 選択するかどうか
***単語 [#tec363fc]
テキストカーソル位置が単語の最初の位置かどうかを調べる ''...
boolean isStartOfWord ( void )
boolean isEndOfWord ( void )
boolean gotoNextWord ( boolean bExpand )
boolean gotoPreviousWord ( boolean bExpand )
boolean gotoEndOfWord ( boolean bExpand )
boolean gotoStartOfWord ( boolean bExpand )
-bExpand: 選択するかどうか
**テキストカーソル選択範囲の変更 [#i9225c3e]
テキストカーソルは選択ができるため,選択範囲の最初の位置...
boolean isCollapsed( void )
また,選択されている状態を解除するメソッドがあります。選...
void collapseToStart( void )
void collapseToEnd( void )
End:
*テキストカーソル [#z51ebe63]
テキストカーソルを使うと,一文字ずつ文字を取り扱ったり,...
なお,テキストカーソルだけで文字を入力したり,フィールド...
#contents
**テキストカーソルの取得 [#p1ca170a]
テキストカーソルはテキストオブジェクトから取得します。
Sub textcursor_1
Dim oDoc As Object
Dim oText As Object
Dim oTextCursor As Object
oDoc = ThisComponent
oText = oDoc.getText()
oTextCursor = oText.createTextCursor()
End Sub
**テキストカーソルの移動 [#a788696e]
テキストカーソルは移動することが出来ます。移動したときに...
**最初または最後へ移動 [#v46620dd]
テキストカーソルをコンテンツの最初へ移動するメソッド ''go...
void gotoStart( boolean bExpand )
void gotoEnd( boolean bExpand )
-bExpand: 選択するかどうか
**文字数分移動 [#fc9fe5f2]
テキストカーソルを現在の位置から指定した文字数分だけ移動...
boolean goRight ( integer nChar, boolean bExpand )
boolean goLeft ( integer nChar, boolean bExpand )
-nChar: 移動する文字数
-bExpand: 選択するかどうか
戻り値は指定した移動文字数分だけ移動できたかどうかを示し...
**段落,行,単語 [#r61de6a5]
テキストカーソルは段落,行,単語単位での移動ができます。
***段落 [#z19a5cd5]
テキストカーソルの位置が段落の最初かどうか判断する ''isSt...
boolean isStartOfParagraph ( void )
boolean isEndOfParagraph ( void )
boolean gotoStartOfParagraph ( boolean bExpand )
boolean gotoEndOfParagraph ( boolean bExpand )
boolean gotoNextParagraph ( boolean bExpand )
boolean gotoPreviousParagraph ( boolean bExpand )
-bExpand: 選択するかどうか
***行 [#z69f72d1]
テキストカーソル位置が行の最初かどうかを判断する ''isStar...
boolean isStartOfSentence ( void )
boolean isEndOfSentence ( void )
boolean gotoStartOfSentence ( boolean bExpand )
boolean gotoEndOfSentence ( boolean bExpand )
boolean gotoNextSentence ( boolean bExpand )
boolean gotoPreviousSentence ( boolean bExpand )
-bExpand: 選択するかどうか
***単語 [#tec363fc]
テキストカーソル位置が単語の最初の位置かどうかを調べる ''...
boolean isStartOfWord ( void )
boolean isEndOfWord ( void )
boolean gotoNextWord ( boolean bExpand )
boolean gotoPreviousWord ( boolean bExpand )
boolean gotoEndOfWord ( boolean bExpand )
boolean gotoStartOfWord ( boolean bExpand )
-bExpand: 選択するかどうか
**テキストカーソル選択範囲の変更 [#i9225c3e]
テキストカーソルは選択ができるため,選択範囲の最初の位置...
boolean isCollapsed( void )
また,選択されている状態を解除するメソッドがあります。選...
void collapseToStart( void )
void collapseToEnd( void )
Page: