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 @@
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%.
+ database of LibreOffice %PRODUCT_RELEASE%.
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.


| OpenOffice.org %PRODUCT_RELEASE% Basic examples | +LibreOffice %PRODUCT_RELEASE% Basic examples |
@@ -527,8 +527,8 @@
| ||||
|
- 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, + 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->Macro. 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 @@ | Description | |||||
| Changing Appearance | +Changing Appearance | To change the style used for certain words, you can
start with the following example. This code searches for the regular
expression the[a-z], which stands for the text portion the
@@ -561,7 +561,7 @@
must execute it from an open text document. |
||||
| Replacing Text | +Replacing Text | 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. | ||||
| Using Regular Expressions | +Using Regular Expressions | Another application of automatic text modification is related to stylistic questions. Suppose your companys policy is to avoid the use of certain words. You want to replace these words, but you @@ -588,7 +588,7 @@ (plural, adjective etc.). | ||||
| Inserting Bookmarks | +Inserting Bookmarks |
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. |
||||
| Creating an Index | +Creating an Index | 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. | ||||
| Adapting to Euroland | +Adapting to Euroland | 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. | ||||
| Import/Export of ASCII Files | +Import/Export of ASCII Files | 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. | ||||
| Stock Quotes Updater | +Stock Quotes Updater | 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 @@
UpdateValue(), and UpdateChart(). |
||||
| Forms and Controls | +Forms and Controls | 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.
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. @@ -125,7 +125,7 @@ | ![]() |
Examples | A collection of examples in different - programming languages (Java, C++, Basic, OLE, CLI). | + programming languages (Java, Python, C++, Basic, OLE, CLI).|
![]() |
||||||