diff --git a/README.md b/README.md index ca44bb9..4475d8c 100644 --- a/README.md +++ b/README.md @@ -1,35 +1 @@ -# LibreOffice Starter Extension - -This repository contains some boilerplate code and config you need to get started to build your own LibreOffice Extension. - -You can use this project as a starting point to write your own extension for LibreOffice. - -## Get started - -1. Install [LibreOffice](http://www.libreoffice.org/download) & the [LibreOffice SDK](http://www.libreoffice.org/download) (5.0 or greater) -2. Install [Eclipse](http://www.eclipse.org/) IDE for Java Developers & the [LOEclipse plugin](https://marketplace.eclipse.org/content/loeclipse) -3. [Download](https://github.com/smehrbrodt/libreoffice-starter-extension/archive/master.zip) this starter project & unzip it -4. Import the project in Eclipse (File->Import->Existing Projects into Workspace) -5. Let Eclipse know the paths to LibreOffice & the SDK (Project->Properties->LibreOffice Properties) -6. Setup Run Configuration - * Go to Run->Run Configurations - * Create a new run configuration of the type "LibreOffice Application" - * Select the project - * Run! - * *Hint: Show the error log to view the output of the run configuration (Window->Show View->Error Log)* -7. The extension will be installed in LibreOffice (see Tools->Extension Manager) -8. To launch the example dialog, click on the newly added toolbar/menu entry which have been added to Writer (named "Starter Project/Action One"). - -## Development Hints -* The entry point is in [StarterProjectImpl.java](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/source/org/libreoffice/example/comp/StarterProjectImpl.java). -* Toolbar items and menu entries are defined in [Addons.xcu](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/registry/org/openoffice/Office/Addons.xcu). -* Shortcuts are defined in [Accelerators.xcu](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/registry/org/openoffice/Office/Accelerators.xcu). -* The position of the toolbar is defined in [WriterWindowState.xcu](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/registry/org/openoffice/Office/UI/WriterWindowState.xcu). -* The dialog shown when clicking "Action One" is [ActionOneDialog.xdl](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/dialog/ActionOneDialog.xdl). The dialog itself contains information how to edit it. -* The [DialogHelper](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/source/org/libreoffice/example/helper/DialogHelper.java) contains some helper methods to work with the dialog. -* To debug the Java code, just stick a breakpoint anywhere in Eclipse and start your run configuration in debug mode. -* If you add non-code files (or an external .jar) to your extension, you need to mention them in [package.properties](https://github.com/smehrbrodt/libreoffice-starter-extension/blob/master/package.properties), else they won't be included in the packaged extension. -* Now go on customizing the extension to your needs. Some helpful links: - * [OpenOffice Wiki](https://wiki.openoffice.org/wiki/Extensions_development) - * [API Reference](http://api.libreoffice.org/docs/idl/ref/index.html) - * [Example extensions](http://api.libreoffice.org/examples/examples.html#Java_examples) +Metadata editor extension diff --git a/description/desc_en.txt b/description/desc_en.txt index c7f5de7..abfb432 100644 --- a/description/desc_en.txt +++ b/description/desc_en.txt @@ -1 +1 @@ -LibreOffice Starter Project +Metadata editor for LibreOffice diff --git a/package.properties b/package.properties index cfffe3d..e081b50 100644 --- a/package.properties +++ b/package.properties @@ -1,3 +1,3 @@ #Written by the OOEclipseIntegration #Thu Apr 07 11:36:27 CEST 2016 -contents=description, description/desc_en.txt, dialog, dialog/ActionOneDialog.xdl, images, images/actionOne_16.png, images/actionOne_26.png, registry, registry/org, registry/org/openoffice, registry/org/openoffice/Office, registry/org/openoffice/Office/Accelerators.xcu, registry/org/openoffice/Office/Addons.xcu, registry/org/openoffice/Office/UI, registry/org/openoffice/Office/UI/WriterWindowState.xcu +contents=description, description/desc_en.txt, images, images/actionOne_16.png, images/actionOne_26.png, registry, registry/org, registry/org/openoffice, registry/org/openoffice/Office, registry/org/openoffice/Office/Accelerators.xcu, registry/org/openoffice/Office/Addons.xcu, registry/org/openoffice/Office/UI, registry/org/openoffice/Office/UI/WriterWindowState.xcu diff --git a/registry/org/openoffice/Office/Addons.xcu b/registry/org/openoffice/Office/Addons.xcu index ed333cb..ebf48dc 100644 --- a/registry/org/openoffice/Office/Addons.xcu +++ b/registry/org/openoffice/Office/Addons.xcu @@ -20,10 +20,11 @@ - + Starter Project + true service:pro.litvinovg.libreoffice.MetadataEditor?openGUI @@ -35,7 +36,8 @@ com.sun.star.text.TextDocument - Action One + Open metadata editor GUI + Открыть редактор метаданных diff --git a/registry/org/openoffice/Office/UI/WriterWindowState.xcu b/registry/org/openoffice/Office/UI/WriterWindowState.xcu index 4c6a311..a246559 100644 --- a/registry/org/openoffice/Office/UI/WriterWindowState.xcu +++ b/registry/org/openoffice/Office/UI/WriterWindowState.xcu @@ -8,7 +8,8 @@ - Aktensystem + Metadata editor + Редактор метаданных 10,0