ライブラリおよびモジュールの管理
Basic Libraries Containers
Collabora Office Basic libraries can be stored in 3 different containers:
-
Application Macros: libraries stored in this container are available for all users of the computer and are managed by the computer administrator. The container is located in the Collabora Office installation directory.
-
My Macros: libraries stored in this container are available to all documents of your user. The container is located in the user profile area and is not accessible by another user.
-
Document: libraries stored in the document container are only available for the document and are accessible only when the document is open. You cannot access macros of a document from another document.
To access macros stored in libraries of Application Macros or My Macros from another container, including the document container, use the GlobalScope specifier.
ライブラリの管理
ライブラリの新規作成
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
[ライブラリ]タブをクリックします。
-
Select to where you want to attach the library in the Location list. If you select Application Macros & Dialogs, the library will belong to the Collabora Office application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.
-
新規にライブラリを作成する場合は、[新規作成]をクリックして、ライブラリ名を指定します。
ライブラリのインポート
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
[ライブラリ]タブをクリックします。
-
Select to where you want to import the library in the Location list. If you select Application Macros & Dialogs, the library will belong to the Collabora Office application and will be available for all documents. If you select a document the library will be imported to this document and only available from there.
-
[インポート...]をクリックして、インポートする外部ライブラリを選択します。
-
[ライブラリのインポート]ダイアログで、追加するライブラリを選択します。選択したファイルに含まれるすべてのライブラリを一覧したダイアログが表示されます。
-
ライブラリを参照用として挿入するのであれば、参照として挿入(読み取り専用) ボックスをオンにします。読み取り専用のライブラリは、完全に機能はしますが、Basic IDEで編集することはできません。
-
同名の既存ライブラリを上書きさせる場合は、既存ライブラリの置換 ボックスをオンにします。
-
[OK]をクリックすると、ライブラリが追加されます。
ライブラリのエクスポート
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
[ライブラリ]タブをクリックします。
-
In the Location list you specify where your library is stored. Select the library that you want to export. Note that you cannot export the Standard library.
-
[エクスポート...]をクリックします。
-
Choose whether you want to export the library as an extension or as a BASIC library.
-
[OK]をクリックします。
-
ライブラリのエクスポート先を選択してください。
-
OK をクリックすると、ライブラリが追加されます。
ライブラリの削除
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
[ライブラリ]タブをクリックします。
-
リストから削除するライブラリを選択します。
-
削除 をクリックします。
-
注意:ライブラリを削除すると、そこに含まれるモジュールおよび、該当する SUB や FUNCTION ブロックがすべて削除されます。
-
デフォルトライブラリである「Standard」は削除できません。
-
参照として挿入を指定して追加したライブラリの場合は、参照情報のみが削除され、ライブラリ本体は削除されません。
モジュールおよびダイアログの管理
モジュールおよびダイアログの新規作成
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
「モジュール」 タブ、または「ダイアログ」タブをクリックします。
-
モジュールを挿入するライブラリを選択して、「新しいモジュール」をクリックします。
-
モジュールないしダイアログの名前を入力して、OK をクリックします。
モジュールおよびダイアログの名前の変更
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
名前を変更するモジュールを間を置いて 2 度クリックし、新しい名前を入力します。
Basic IDEの画面の下部にあるタブで、名前を変更するモジュールないしダイアログのタブを右クリックし、「名前の変更」を選択して、新しい名前を入力します。
-
変更後の名前を確定するには、Enter キーを押します。
モジュールおよびダイアログの削除
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
「モジュール」 タブ、または「ダイアログ」タブをクリックします。
-
「モジュール/ダイアログ」のリストで、削除するモジュールを選択します。サブ項目がある項目は、ダブルクリックすると下層の項目が表示されます。
-
削除 をクリックします。
モジュールを削除すると、そこに含まれるプロシージャーおよび関数もすべて削除されます。
ドキュメントおよびテンプレート内のプロジェクトの管理
ドキュメント、テンプレート、アプリケーション間でのモジュールの移動とコピー
-
モジュールやダイアログの移動とコピーを行うドキュメントないしテンプレートをすべて開きます。
-
[ツール]>[マクロ]>[マクロの管理]>[Basic]から[管理]をクリックするか、Basic IDEのモジュールアイコンをクリックして「Basicマクロ管理」ダイアログを開きます。
-
ドキュメント間でモジュールやダイアログを移動する場合は、リスト内で該当するオブジェクトをクリックして移動先へドラッグします。オブジェクトのドラッグ中は、移動後の挿入位置が水平線で表示されます。キーを押しながらドラッグすると、移動ではなくコピーされます。