From fc0f0610fe42f4e52391cbe61277bcd97f1e8df6 Mon Sep 17 00:00:00 2001 From: Laurent Godard Date: Thu, 8 Dec 2011 17:24:33 +0100 Subject: 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 --- odk/examples/examples.html | 42 ++++++++++++++++++------------------ odk/examples/python/toolpanel/readme | 13 +++++++++++ 2 files changed, 34 insertions(+), 21 deletions(-) create mode 100644 odk/examples/python/toolpanel/readme (limited to 'odk/examples') 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.

@@ -88,9 +88,9 @@ - OpenOffice.org %PRODUCT_RELEASE% Basic examples + LibreOffice %PRODUCT_RELEASE% Basic examples Small set of examples which shows the use of - the API from OpenOffice.org %PRODUCT_RELEASE% Basic. + the API from LibeOffice %PRODUCT_RELEASE% Basic. @@ -195,7 +195,7 @@ WriterSelector 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. @@ -219,7 +219,7 @@ ChartTypeChange - This class loads an OpenOffice.org %PRODUCT_RELEASE% Calc document and + This class loads a LibreOffice %PRODUCT_RELEASE% Calc document and changes the type of the embedded chart. @@ -303,7 +303,7 @@ Object Inspector 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 @@ ToolPanelPoc - This extension illustrates how to create a ToolPanel in Calc. + This proof of concept extension illustrates how to create a ToolPanel in Calc. @@ -519,7 +519,7 @@ - + - + - + - + - + - + - + - + - + - +
OpenOffice.org %PRODUCT_RELEASE% Basic examplesLibreOffice %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 AppearanceChanging 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 TextReplacing 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 ExpressionsUsing Regular Expressions Another application of automatic text modification is related to stylistic questions. Suppose your company’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.).
Inserting BookmarksInserting 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 IndexCreating 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 EurolandAdapting 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 FilesImport/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 UpdaterStock 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 ControlsForms 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 -- cgit