summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2011-12-08 17:24:33 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2011-12-11 08:43:55 +0100
commitfc0f0610fe42f4e52391cbe61277bcd97f1e8df6 (patch)
treef108a1f0951114181e2bf71b92a56deb85bfcdc6 /odk
parent76fac398dd71364302a261a18d8015fd250543cd (diff)
minor around python and SDK
- add Python as available language desc. in SDK homepage - replace OpenOffice.org with LibreOffice in examples index file - add a readme file to toolpanel example Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/examples.html42
-rw-r--r--odk/examples/python/toolpanel/readme13
-rw-r--r--odk/index.html6
3 files changed, 37 insertions, 24 deletions
diff --git a/odk/examples/examples.html b/odk/examples/examples.html
index 0c9c6b1e35b1..6e9d21fd74ac 100644
--- a/odk/examples/examples.html
+++ b/odk/examples/examples.html
@@ -38,10 +38,10 @@
<tr>
<td colspan="3">
<p>The SDK provides a rich set of examples in different programming
- languages (Java, C++, OpenOffice.org %PRODUCT_RELEASE% Basic, OLE) to illustrate the use
+ languages (Java, Python, C++, LibreOffice %PRODUCT_RELEASE% Basic, OLE) to illustrate the use
of the API and demonstrate how to benefit from the included word
processor, spreadsheet, presentation software, graphics program and
- database of OpenOffice.org %PRODUCT_RELEASE%.<br>
+ database of LibreOffice %PRODUCT_RELEASE%.<br>
Some fo the examples need a running office instance listening on a
port. If this is necessary you will get further information in the
makefiles.</p>
@@ -88,9 +88,9 @@
</tr>
<tr valign="top">
<td class="content3"><img src="../docs/images/arrow-1.gif"></td>
- <td><a href="#Basic_examples" title="link to the OpenOffice.org %PRODUCT_RELEASE% Basic examples section">OpenOffice.org %PRODUCT_RELEASE% Basic examples</a></td>
+ <td><a href="#Basic_examples" title="link to the LibreOffice %PRODUCT_RELEASE% Basic examples section">LibreOffice %PRODUCT_RELEASE% Basic examples</a></td>
<td class="content75">Small set of examples which shows the use of
- the API from OpenOffice.org %PRODUCT_RELEASE% Basic.</td>
+ the API from LibeOffice %PRODUCT_RELEASE% Basic.</td>
</tr>
<tr valign="top">
<td class="content3"><img src="../docs/images/arrow-1.gif"></td>
@@ -195,7 +195,7 @@
<tr>
<td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">WriterSelector</a></td>
<td class="cell80">This class gives you information on the selected
- objects (text range, text frame, or graphics) at an OpenOffice.org
+ objects (text range, text frame, or graphics) at a LibreOffice
Server.</td>
</tr>
<tbody>
@@ -219,7 +219,7 @@
</tr>
<tr>
<td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">ChartTypeChange</a></td>
- <td class="cell80">This class loads an OpenOffice.org %PRODUCT_RELEASE% Calc document and
+ <td class="cell80">This class loads a LibreOffice %PRODUCT_RELEASE% Calc document and
changes the type of the embedded chart.</td>
</tr>
<tr>
@@ -303,7 +303,7 @@
<td class="cell20"><a href="http://wiki.services.openoffice.org/wiki/Object_Inspector" title="link to the Object Inspector project page in the wiki">Object Inspector</a></td>
<td class="cell80">The Object Inspector is primarily an auxiliary tool
for the developer, which can present information about an object of the
- OpenOffice.org %PRODUCT_RELEASE% API at run-time. Depending on the object to be inspected,
+ LibreOffice %PRODUCT_RELEASE% API at run-time. Depending on the object to be inspected,
appropriate methods, interfaces, services, and attributes can be displayed
to the developer. The methods, interfaces, services and attributes are
represented in a predictable tree. If the attributes contained in an
@@ -399,7 +399,7 @@
</tr>
<tr>
<td class="cell20"><a href="python/toolpanel/"title="link to the source directory of the ToolPanel python axample">ToolPanelPoc</a></td>
- <td class="cell80">This extension illustrates how to create a ToolPanel in Calc.</td>
+ <td class="cell80">This proof of concept extension illustrates how to create a ToolPanel in Calc.</td>
</tr>
<tbody>
</table>
@@ -519,7 +519,7 @@
<td>
<table class="table3">
<tr>
- <td colspan="2" class="head1"><a name="Basic_examples">OpenOffice.org %PRODUCT_RELEASE% Basic examples</td>
+ <td colspan="2" class="head1"><a name="Basic_examples">LibreOffice %PRODUCT_RELEASE% Basic examples</td>
<td align="right">
<a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
<a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
@@ -527,8 +527,8 @@
</tr>
<tr>
<td colspan="3">
- <p>The example programs are embedded in OpenOffice.org %PRODUCT_RELEASE% documents in the
- samples directory. To view or edit the OpenOffice.org %PRODUCT_RELEASE% Basic source,
+ <p>The example programs are embedded in LibreOffice %PRODUCT_RELEASE% documents in the
+ samples directory. To view or edit the LibreOffice %PRODUCT_RELEASE% Basic source,
select the appropriate document and then select Tools-&gt;Macro.</p>
<p>Most of the examples are stand-alone, but two of them (Creating an
Index and Import/Export of ASCII Files) have an associated data file
@@ -550,7 +550,7 @@
<td class="cell80">Description</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Changing Appearance</a></td>
+ <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Changing Appearance</a></td>
<td class="cell80"> To change the style used for certain words, you can
start with the following example. This code searches for the regular
expression <code>the[a-z]</code>, which stands for the text portion the
@@ -561,7 +561,7 @@
must execute it from an open text document.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Replacing Text</a></td>
+ <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Replacing Text</a></td>
<td class="cell80">If you regularly receive documents from other people
for editing, you might want to make sure that certain words are always
written the same. The next example illustrates this by forcing certain
@@ -571,7 +571,7 @@
words from an external file.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Using Regular Expressions</a></td>
+ <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Using Regular Expressions</a></td>
<td class="cell80">Another application of automatic text modification is
related to stylistic questions. Suppose your company&#146;s policy is to
avoid the use of certain words. You want to replace these words, but you
@@ -588,7 +588,7 @@
(plural, adjective etc.).</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Inserting Bookmarks</a></td>
+ <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Inserting Bookmarks</a></td>
<td class="cell80">
<p>The next example does something very similar. This time, however, we
do not change the color of the words but insert a bookmark at each of
@@ -603,14 +603,14 @@
word.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/text/creating_an_index/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/create_index example">Creating an Index</a></td>
+ <td class="cell20"><a href="basic/text/creating_an_index/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic text/create_index example">Creating an Index</a></td>
<td class="cell80">Indices for text documents can be created manually in
- OpenOffice.org %PRODUCT_RELEASE% Writer by clicking on the words that should appear in the
+ LibreOffice %PRODUCT_RELEASE% Writer by clicking on the words that should appear in the
index. If the document is large, or if you have to generate indices for
several documents, this task should be automated.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/sheet/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic sheet example">Adapting to Euroland</a></td>
+ <td class="cell20"><a href="basic/sheet/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic sheet example">Adapting to Euroland</a></td>
<td class="cell80">Most of the members of the European Union will abandon
their old currency in favor of the new Euro in 2001. This requires
modifications to all programs using the old currencies. Since the exchange
@@ -619,14 +619,14 @@
in a table that are formatted with the currency string DM.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/drawing/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic drawing example">Import/Export of ASCII Files</a></td>
+ <td class="cell20"><a href="basic/drawing/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic drawing example">Import/Export of ASCII Files</a></td>
<td class="cell80">You can use the drawing facilities of StarOffice API
to generate a picture from ASCII input. One application would be a
hierarchical representation of a directory listing, based on textual
data.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/stock_quotes_updater/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic stock_quotes_updater example">Stock Quotes Updater</a></td>
+ <td class="cell20"><a href="basic/stock_quotes_updater/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic stock_quotes_updater example">Stock Quotes Updater</a></td>
<td class="cell80">If you want to display stock charts for certain
companies, you can open up your browser every day, go to a search engine,
look up the quote and copy it by hand into a table. Or you can use a
@@ -638,7 +638,7 @@
<code>UpdateValue()</code>, and <code>UpdateChart()</code>.</td>
</tr>
<tr>
- <td class="cell20"><a href="basic/forms_and_controls/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic forms_and_controls example">Forms and Controls</a></td>
+ <td class="cell20"><a href="basic/forms_and_controls/" title="link to the source directory of the LibreOffice %PRODUCT_RELEASE% Basic forms_and_controls example">Forms and Controls</a></td>
<td class="cell80">The example document Burger Factory offers some forms
and controls, which you can use to order your desired burger type,
beverage, topping, and sauce. By hitting the button
diff --git a/odk/examples/python/toolpanel/readme b/odk/examples/python/toolpanel/readme
new file mode 100644
index 000000000000..11394383ebd8
--- /dev/null
+++ b/odk/examples/python/toolpanel/readme
@@ -0,0 +1,13 @@
+
+This extension is a Proof of concept on implementing Toolpanel in Python
+
+- make will create the oxt
+ - provided sdk environnement is set
+ - alternatively zip the files and name it toolpanel.oxt
+- install it
+- activate Task Panes in menu (check View > Task Pane menu)
+- enjoy !
+
+The events of the controls (Click me button) in the task pane are handled by basic macro code to illustrate that Toolpanel definition and events codes are indepedant. One could use any language to react on events
+
+Then focus only on .py and xml files for the toolpanel activation analysis
diff --git a/odk/index.html b/odk/index.html
index 2a9c57e51dde..f1baa8a40b83 100644
--- a/odk/index.html
+++ b/odk/index.html
@@ -47,9 +47,9 @@
with new functions.</p>
<p>The SDK provides the basic building blocks for external developers
to develop components in any language for which a binding exists.
- Currently, there are language bindings for LibreOffice %PRODUCT_RELEASE% Basic, Java,
+ Currently, there are language bindings for LibreOffice %PRODUCT_RELEASE% Basic, Java, Python,
and different C++ compilers on different platforms, for LibreOffice %PRODUCT_RELEASE%,
- thus covering the two most commonly used programming languages. There
+ thus covering the most commonly used programming languages. There
will be no limit for office automation in heterogeneous environments.
Currently supported platforms of the SDK are Linux, Solaris (sparc,
x86), and Windows.</p>
@@ -125,7 +125,7 @@
<td class="content4"><img src="docs/images/arrow-1.gif"></td>
<td colspan="2"><a href="examples/examples.html" title="link to the examples overview page">Examples</a></td>
<td class="content70">A collection of examples in different
- programming languages (Java, C++, Basic, OLE, CLI).</td>
+ programming languages (Java, Python, C++, Basic, OLE, CLI).</td>
</tr>
<tr valign="middle">
<td><img class="nothing10" src="docs/images/nada.gif"></td>