Difference between revisions of "API/Samples/Java/Office/OptionsPageDemo"

From Apache OpenOffice Wiki
< API‎ | Samples‎ | Java
Jump to: navigation, search
(New page: <noinclude>Category:API Category:Samples Category:Java Category:Office</noinclude> The OptionsPageDemo sample extensions shows how to integrate a custom options page withi...)
 
Line 1: Line 1:
 
<noinclude>[[Category:API]] [[Category:Samples]] [[Category:Java]] [[Category:Office]]</noinclude>
 
<noinclude>[[Category:API]] [[Category:Samples]] [[Category:Java]] [[Category:Office]]</noinclude>
  
The OptionsPageDemo sample extensions shows how to integrate a custom options page within the existing tree of options pages (here: below Writer) and shows how to store and load the settings in and from the OpenOffice.org registry.
+
This NetBeans project contains a sample OpenOffice.org extension.
 +
The extension demonstrates how to add a custom options page within the
 +
existing options pages of Writer.
  
 
The extension uses a custom registry schema to store configuration values. Additionally the extension shows how to add a custom help for an extension.
 
The extension uses a custom registry schema to store configuration values. Additionally the extension shows how to add a custom help for an extension.
 +
 +
 +
=== Source ===
 +
 +
You will find the source code of this extension in the OpenOffice.org Subversion repository:
 +
 +
  svn export svn://svn.services.openoffice.org/ooo/contrib/sdk/examples/java/OptionsPageDemo
 +
 +
* dialogs: contains the xdl dialog file for the option page. Can be edited using OpenOffice.org's built-in dialog editor (see macros).
 +
 +
* registry: contains the customized registry files for storing the configuration values of this extension.
 +
 +
* src: the Java sourcecode of the extension.
 +
 +
* help: the xhp help files that are integrated into OOo's help system.
 +
 +
 +
=== Usage ===
 +
 +
Open the project via NetBeans (you need the OpenOffice.org plugin version 2.x or higher),
 +
right-click on the project and press "Deploy and run extension in OpenOffice.org".
 +
If you do not trust this extension, better press "Debug extension..." as this
 +
omitts you local user settings.
  
 
=== See also ===
 
=== See also ===

Revision as of 15:17, 9 January 2009


This NetBeans project contains a sample OpenOffice.org extension. The extension demonstrates how to add a custom options page within the existing options pages of Writer.

The extension uses a custom registry schema to store configuration values. Additionally the extension shows how to add a custom help for an extension.


Source

You will find the source code of this extension in the OpenOffice.org Subversion repository:

 svn export svn://svn.services.openoffice.org/ooo/contrib/sdk/examples/java/OptionsPageDemo
  • dialogs: contains the xdl dialog file for the option page. Can be edited using OpenOffice.org's built-in dialog editor (see macros).
  • registry: contains the customized registry files for storing the configuration values of this extension.
  • src: the Java sourcecode of the extension.
  • help: the xhp help files that are integrated into OOo's help system.


Usage

Open the project via NetBeans (you need the OpenOffice.org plugin version 2.x or higher), right-click on the project and press "Deploy and run extension in OpenOffice.org". If you do not trust this extension, better press "Debug extension..." as this omitts you local user settings.

See also

Personal tools