2010年1月5日 星期二

學習記錄:OpenOffice Basic (1)

    

OpenOffice Basic 關注兩個問題:

1- 如何保存資料?

這個簡單,它基本上是以 xml 格式儲存。

2- 資料是如何取出並顯示?

Ooo 有 Writer、Calc、Base、Impress 及 Draw 等軟件群,問題不少!

UNO (Universal Network Objects) 通用網路物件  


Ooo解決問題的方法很簡單,就是設計出 UNO 物件。UNO 早期被理解為一個介面(interfaces),目前被認定為一種服務(service)。

UNO as service















從上圖得知,只要透過 UNO ,許多程式均可調用 OpenOffice 的任何軟件。

OooBasic 與 UNO


OooBasic 屬內建程式,不須呼叫 UNO ,可直接呼叫 com.sun.star. 來執行指示,情況如下:

   com.sun.star.sheet.SpreadsheetDocument
   com.sun.star.text.Text
   com.sun.star.sdb.RowSet
   com.sun.star.drawing.DrawPage
   com.sun.star.presentation.XPresentation

所有的指令模組及從屬關係,先參閱下圖了解 com.sun.star.sheet. 的模組結構。

















































了解模組的從屬關係後,可用以下連結查閱更多資料。

 http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html

 http://wiki.services.openoffice.org/wiki/MediaWiki:Collections/Developer%27s_Guide_-_Spreadsheet_Documents

 http://wiki.services.openoffice.org/wiki/ZH/Documentation/BASIC_Guide

  
  
  

沒有留言: