Archive for UNO

Lotusphere 2010 : Lotus Symphony Development - Comparing UNO vs LotusScript

February 1 2010

One of my favorite slides at Lotusphere 2010 was in "AD207 IBM Lotus Symphony Technical Overview" when they were comparing the code needed by both UNO and LotusScript to create a table. Let's look at this in detail: Here is a screenshot of the table to be created: The code required in UNO to create this table: Object desktop = factory.createInstance("com.sun.star.frame.Desktop"); XComponentLoader loader = ( XComponentLoader ) UnoRuntime.queryInterface(XComponentLoader.class, desktop); PropertyValue[] args = new PropertyValue[1]; args[0] = new PropertyValue(); args[0].Name = "Hidden"; args[0].Value = Boolean.FALSE; XComponent component = loader.loadComponentFromURL("private:factory/swriter", "_blank", 0, args); XTextDocument document = ( XTextDocument ) UnoRuntime.queryInterface(XTextDocument.class, component); XMultiServiceFactory docfactory = ( XMultiServiceFactory ) UnoRuntime.queryInterface(XMultiServiceFactory.class, document); Object ob

Symphony Thursday: Developer 201 - Saving & Generating PDF’s

May 7 2009

Symphony Thursday: Developer 101 1. Introduction to UNO Development and Documents/Writer "Hello World" 2. Spreadsheets"Hello World" 3. Presentations "Hello World" Last time, I covered the basics of UNO Development and walked you thru a "Hello World" application for OpenOffice.org Writer and Lotus Symphony Presentations. This blog entry will cover how any file type - documents, spreadsheets, or presentations, can be saved as a PDF. How Lotus Symphony Saves Lotus Symphony and OpenOffice.org have a built in command that save the current file. If we take the Lotus Symphony Presentations document we generated in the Presentations: "Hello World", we would do the following to save the file Call Presentation.storeToURL("file:///C:/symphonythursdaypresentation.odp", args) The storeToURL method has two parameters. The first is the complete path of where you want to save the presentation. Just as when we were creating the presentation, we have to use a URL format for t

Symphony Thursday: Developer 101 - Presentations "Hello World"

February 26 2009

Symphony Thursday: Developer 101 1. Introduction to UNO Development and Documents/Writer "Hello World" 2. Spreadsheets"Hello World" 3. Presentations "Hello World" Last time, I covered the basics of UNO Development and walked you thru a "Hello World" application for OpenOffice.org Writer and Lotus Symphony Documents. This blog entry will cover an introduction to OpenOffice.org Impress and Lotus Symphony Presentations. Introduction to Lotus Symphony Presentations In both Impress and Symphony Presentations, you work with presentations. From there, you work with slides / pages. On each of those slides / pages, you have shapes. The shapes contain text, graphics, or the other data on your slides. Once you navigate to the shape, you get a text handle to the text object and everything else is much like working with text in Symphony Documents or Writer. Let’s Start Lotus Symphony Presentations To create the instance of Impress / Lotus SYmphony Presentations, call its URL Set I

Symphony Thursday: Developer 101 - Spreadsheets "Hello World"

February 19 2009

Symphony Thursday: Developer 101 1. Introduction to UNO Development and Documents/Writer "Hello World" 2. Spreadsheets"Hello World" Last time, I covered the basics of UNO Development and walked you thru a "Hello World" application for OpenOffice.org Writer and Lotus Symphony Documents. This blog entry will cover an introduction to OpenOffice.org Calc and Lotus Symphony Spreadsheets. Introduction to Lotus Symphony Spreadsheets Just like we did with Lotus Symphony Documents, we have to call the Service Manager and the Desktop. Set SM=CreateObject("com.sun.star.ServiceManager") Set Desktop=SM.createInstance("com.sun.star.frame.Desktop") Next, we need to start the Calc / Spreasheets appplication. They use a different URL to define the application, one specific for Calc / Presentations. Set CalcApplication = Desktop.loadComponentFromURL_("private:factory/scalc","_blank",0,args) The command above creates the workbook and opens it for the user. We then need to get the

Preview of topics for Symphony Thursday

February 7 2009

Any other suggestions?

Symphony Thursday : Developer 101 - Introduction to UNO Development and Documents/Writer "Hello World"

February 5 2009

This is the first of the Symphony Thursday developer articles. In this post, we will cover the introduction to UNO development, a bit of history, and our first "Hello World" application. Introduction to OpenOffice.org Development Designed on an interface-based component model called Universal Network Objects (UNO) UNO definition UNO offers interoperability between different programming languages, different object models, different machine architectures, and different processes; either in a local network or even via the Internet UNO components can be implemented in, and accessed from, any programming language for which a UNO language binding exists OpenOffice.org? StarOffice? Lotus Symphony? StarDivision StarOffice written in the mid 80s Bought by Sun Microsystems in 1999, StarOffice released in August 1999 Source code released October 2000 OpenOffice.org 1.0 released May 2002, 2.0 in October 2005 OpenDocument format becomes international standard ISO/IEC 26300 November 20