セルを一個一個チェックして置換文字列があったら置換するようにします。 // ワークブックを開く Workbook workbook = new HSSFWorkbook(excel); // 最初のシートを開く Sheet sheet = workbook.getSheetAt(0); // セル内に埋め込まれている置換文字を置換 for (Iterator<Row> sheetIte = sheet.iterator(); sheetIte.hasNext(); ) { // 行を取得 Row row = sheetIte.next(); for (Iterator<Cell> cellIte = row.iterator(); cellIte.hasNext();) { // セルを取得 Cell cell = cellIte.next(); // 文字列タイプのセルのみを対象 if
UNO は値の独自の型を持っています。ほかの言語とやりとりする場合にはその相互に変換する必要があります。それらをまとめたのが以下の表です。 TypeMappings UNO Type OOo Basic Python Java C++ Description void internal type (None) void void 空の型でメソッドの返り値または any でのみ使われます boolean Boolean bool boolean sal_Bool true 又は false byte Integer long byte sal_Int8 符号付き 8-bit 整数値型 (−128 〜 127) short Integer long short sal_Int16 符号付き 16-bit 整数値型 (−32768 〜 32767) unsigned short internal
Welcome to the API Project The API project provides an entry point in the world of Apache OpenOffice from a developers perspective. OpenOffice offers a language independent application programming interface (API) which allows to program the office in different programming languages (e.g. C++, Java, Python, CLI, OpenOffice Basic, JavaScript, OLE). It allows to use OpenOffice as service provider in
MRI is an introspection tool of UNO objects, written in Python. If you want to know about UNO objects, try to use MRI. Targets of this extension are macro, extension developer and so on. MRI is an UNO service so that it can be used easily from any other languages. MRI needs Python-UNO binding installation. Online Documentation is available. Version 1.1.3 supports OpenOffice.org 3.0.1 or later with
DannyB Moderator Joined: 02 Apr 2003 Posts: 4064 Location: Lawrence, Kansas, USA Posted: Sat Nov 20, 2004 11:26 am Post subject: Danny's Python Modules In this thread I am going to post some various Python modules from my growing library. Table Of Contents The following links take you directly to the message where a particular class is posted. Danny.OOo.OOoLib.py This module makes programm
Python - OpenOffice.org のブリッジである Python-UNO は OOo 本体に付属されているブリッジの一つです。短くして Py-UNO と呼ばれます。 Windows 環境であれば標準インストールでもインストールされます。また、その他の環境では openoffice.org-pyuno 関連のパッケージをインストールすることで利用できます。 OpenOffice.org 公式のビルドでは Python のランタイムが付属してきます。OOo 3.1.1 では Python 2.6.1 です。各種ディストリビューションによるビルドでは別にインストールした Python を利用していることもあります。その場合にはバージョンなどが異なることがあります。 標準の binding を利用する場合にはインターフェースのクエリなどが必要なく、オブジェクトのプロパティにも直接アク
Contributing to the Developer's Guide What This Manual Covers This manual describes how to write programs using the component technology UNO (Universal Network Objects) with Apache OpenOffice. Most examples provided are written in Java. As well as Java, the language binding for C++, the UNO access for Apache OpenOffice Basic and the OLE Automation bridge that uses Apache OpenOffice through Microso
基礎の仕組みがわからないとマクロを書こうにも解説ページの読解もままなりません。自分なりに理解したことをまとめます。私は全くの独学なので不正確な箇所が多々あるかもしれません。 LibreOfficeはOpenOffice.org APIを操作して動かす (H26.1.9追記。正確にはOpenOffice.org APIではなくLibreOffice 4.2 SDK API Referenceです。) APIとはApplication Programming Interface(アプリケーション プログラミング インタフェース)の略です。 インターフェースとはざっくりいえば"操作盤"のことです。 LibreOfficeの"操作盤"をOpenOffice.org APIといい、これを操作することによりLibreOfficeが動きます。 LibreOfficeはOpenOffice.orgから派生
このページは The Document Foundation (TDF)の 日本語コミュニティのための トップページです。TDF や LibreOffice について日本語に関連した情報を集めています。 TDF 日本語コミュニティのあり方 TDF は、そのマニフェスト(日本語参考訳)で述べているように、万人にそれぞれの母語(日本語を含む)で LibreOffice の翻訳や文書化、サポートおよび普及を促進することを勧めることによって、それらの母語の保護を助けることを表明しています。 TDF のメンバーシップ自体、TDF のコアバリューに賛同しその活動に貢献する個人に対して開かれています。 コミュニティの中で個人が他の貢献者と同等な形で活動することを助け、一緒に協力することが勧められています。 日本語コミュニティと LibreOffice 日本語チーム LibreOffice 日本語チームは
Python and OpenOffice Apache OpenOffice 4 ships with the Python scripting language, version 2.7. OpenOffice.org 3.1 and above shipped with Python version 2.6.1 and older OpenOffice.org releases shipped with Python version 2.3.4. This Python distribution via OpenOffice comes with the Uno module, which connects the UNO API to the Python scripting language. To run this version of Python on Linux, you
Pythonマクロの独習をするのに必要な情報をネットで集めてみます。 プログラミングガイドはOpenOffice.org BASICのものしかない LibreOfficeを操作すればLibreOffice 4.2 SDK APIをいじれば動いてくれることがわかりましたが、そのリファレンスのLibreOffice: Namespace Listを眺めてもいったいどうすればよいのかさっぱりわかりません。 LibreOffice ヘルプへようこそ! - LibreOffice Help このLibreOfficeのヘルプにはLibreOffice Basicヘルプの項目があります。 LibreOfficeにはLibreOffice Basicによるマクロレコーダが一応ついていますがこのヘルプになる「マクロの記録」にあるマクロレコーダの制限の項目は参考になりそうです。 ここにLibreOffice
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く