Home Register Members List Search Today's Posts Mark Forums Read

Go Back   TechFuels Forum > Technology Jargons - What is ....? > Software Jargons > Programming

Reply
 
LinkBack Thread Tools
Dillon Kalis
Member
 

Dillon Kalis is offline  
Old 07-01-2009, 11:56 AM
  #1 (permalink)
OpenOffice.org

OpenOffice.org? You may need to download the source, build it, and then hack it for a feature development or enhancement. After all these efforts, it may take time to be accepted upstream. So the best solution is to create and distribute an extension-whoever likes it and is confident of the risks involved, can install and use it.

For this purpose, 000 supports easy development of third-party extensions with the help of an SDK (software development kit). As an extension developer you don't need the required environment (distro, architecture, disk space, etc) for building source, leave alone the knowledge about the full development cycle of the core. You can start off with extension development with much less effort.

Overview of extensions
Extensions add additional functionality to the core 000 office suite, which can be deployed or removed independently. It can be in the form ofUI components, custom functions for Calc, data pilots, new chart types, a spell-checker, etc. Some extensions like templates don't require coding at all, as they are considered non-programmatic extensions.

000 supports extension development in various languges like C++, Java, Basic, Python, Ruby, etc. It is suggested that you choose a language that is platform-independent to write extensions, in order to avoid recompilation of code for each platform. Extensions written in Basic are considered as macros, Automate Your Work with OpenOffice.org Macros, Page 52. This month I will explain programming with Java, with the help of the NetBeans plug-in.

Setting up the IDE
Download and install the latest version of the NetBeans IDE-the current version as of today is 6.5.

Go to Tools-+Plugins-+Available plugins. Select OpenOjJic.org API Plugin, download and install it currently, 2.0.4 is the latest version.

Name:  OpenOffice.org.jpg
Views: 46
Size:  36.6 KB

Go to Tools-+ Options-+Miscellaneous-+ 000 API Plugin. By default, the SDK path is detected automatically-if so, verify it; else, provide the correct path.

Now the SDK and NetBeans are configured properly, and we're ready to get started with our extensions development.

Types uf projects
You can create four types of projects with the help of this plug-in: OpenOffice.org Add-On: An add-on is a VI extension in the form of a menu item or tool bar item. OpenOffice.org Calc Add-In: A Calc Add-In provides custom functions to spreadsheets.

OpenOffice.org Component: It helps to develop UNO based applications. OpenOffice.org Client Application: It helps to create client applications to bootstrap UNO and get a reference for running an office instance locally or remotely.

A simple add-on project
In this example, we'll create a simple add-on, which will load a new Calc document, _insert a new sheet into it with the name "Hello", and change the contents of the Al cell to 20.

Start the Add-on wizard using File -+ New Project-+ OpenOffice.org -+ OpenOffice.org Add-on. In the next screen, fill in the project name, say "Simple", which will be the default name for the Main class also. Then fill in a suitable package name, say org.lfy.example, and a suitable location to store the project. Finally, select whether the add-on should come as a menu item, a toolbar item or both.

In the next screen (Figure 2) give a suitable name for the command, say cmd Test in place of' Command', which is there by default, and the display name as Test. We can leave the 'Icon' field empty for the moment. Note that we can create more than one command using the Add Command button; however, in this example we will restrict ourselves to one command only.

Last edited by Dillon Kalis; 07-01-2009 at 11:58 AM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice.org anna26 Everything Else 0 12-18-2008 09:02 AM
OpenOffice.org V 3.0 iban555 General Software Terms 0 12-03-2008 10:16 AM
Upgrading Openoffice Macavi6987 CPU & Components 1 12-02-2008 08:38 AM
OpenOffice CALANTHA General Software Terms 0 11-22-2008 06:05 AM
Openoffice.org: Cons becklin General Internet Terms 0 05-22-2008 11:18 AM


All times are GMT +1. The time now is 04:05 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright Techfuels -->
SEO by SubmitEdge


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151