関東LibreOffice勉強会とは/ What's Kanto LibreOffice Study PartyNaruhiko Ogasawara
第1回関東LibreOffice勉強会開催にあたり、その趣旨を説明した資料です。
--
This slide describes "Kanto LibreOffice Study Party," one of Japanese area (near by Tokyo) local event of LibreOffice; it's target, focus and goal.
LibreOfficeの翻訳に挑戦してみよう!/Let's try to translate LibreOffice!Naruhiko Ogasawara
LibreOfficeに限らず、FLOSS (Free/Libre Open Source Software) の翻訳というのはなんだか敷居が高いように思われがちです。しかし、実は日本語さえできれば翻訳の向上に貢献できますし、それは FLOSS をよりよくする重要な活動なのです。本スライドでは LibreOffice の翻訳の方法にどのように参加すればいいかを説明しています。
This slide describe importance of FLOSS translation because it is a kind of work of improve FLOSS software itself; and also describe how to get involved to LibreOffice translation.
What's new in 4.0 of LibreOffice / LibreOffice 4.0の新機能Naruhiko Ogasawara
The slide introduce the new features of LibreOffice 4.0 from current Release Note and Release Candidate 2, for Kanto LibreOffice Study Party; LibreOffice meeting around Tokyo. All of information in the slide is come from my personal observation; not as a member of LibreOffice Japanese Team.
関東LibreOffice第2回で発表した資料です。もうじきリリースされるLibreOffice 4.0について、リリースノートとRC2をいじってみて、面白いなーと思った新機能を紹介しています。あくまでも私見なので、LibreOffice日本語チームその他を代表する意見じゃないから誤解しないでね!
22. Calc マクロ記述参考 2
【相違点】
・ワークシートやセルなどのオブジェクト指定方法
・ Cell 関数の指定が逆( VBA =行 , 列 Oobasic =列 , 行)
・数字がゼロスタート( VBA は1スタート)
・処理命令が長すぎてスッキリ書けない
「A1 セルを選択する」という作業を例にします
VBA の場合
Sub Rangeselect()
' 処理記述
Range("A2").Select '1 行で終わり
End Sub
Oobasic の場合
Sub Rangeselect()
' 変数の宣言
Dim oController As Object
Dim oSheet As Object
' 処理記述
oController = ThisComponent.getCurrentController()
oSheet = ThisComponent.Sheets.getByName("Sheet1")
oController.select (oSheet.getCellRangeByName("A1"))
End Sub
23. Calc マクロ記述参考 3
【マクロの記述って可能?】
マクロの記述は [ メニュー ]→[ ツール ]→[ オプション ]→[ 詳細 ] マクロ記録
を有効にする(限定的)オプションにチェックが入っていると利用できます。
前述した Sheet1 の A1 を選択する例を示します。
' ****マクロの記述を使った場合
sub Rangeselec_auto
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "$A$1"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
end sub