openoffice-writer

Programatically disabling OpenOffice "New", "Help" and "AutoText" shortcuts

Hi, I'm writing an applet (java 6) which contains an OpenOffice text document (OOo 3.2) using the OfficeBean - http://api.openoffice.org/docs/DevelopersGuide/OfficeBean/OfficeBean.xhtml. To tightly control the user's interaction with this document I want to disable all the OOo keyboard shortcuts, and have managed to use the following...

How can I convert an OpenOffice Writer document (.odt) to multiple HTML files with navigation?

I have an OpenOffice Writer document (.odt) with a table of contents, sections, subsections, etc. Is there a quick way to convert (export) this into multiple HTML files with a navigation sidebar, converting the sections into links? ...

OpenOffice Writer Find Document Header height

Hello I am using OO Java API and would like to know if there is a way of finding the height of the header in a writer document. If the header height is set to automatic, then querying the height property of the header would return 0 even though there is content in the header. I also have the same problem in finding the row height of a...

Best way to create a form in OpenOffice (or sth else?)

Hi I'm looking for a way to script an OpenOffice document so it would: have only parts editable do some magic with saving it (i'd like to save it into some generated from the entered content name) be reasonably easy to implement I've looked into this question: http://stackoverflow.com/questions/261318/what-is-the-single-best-online-s...

PDFCreator with OpenOffice files

I use a Windows Web Server 2008 with ruby, PDFCreator, Microsoft Office, and OpenOffice to convert files to PDF automatically. The setup works ok for Microsoft Office files but I have not been able to get it to work automatically with OpenOffice files (e.g. .sxw). PDFCreator is able to convert .sxw files without problem when I do it manu...

Scripting OpenOffice Forms with VB or python

Hi I'm trying to script my OpenOffice document (Writer in my case) to do some simple things with widgets. Namely I'd like to copy text from widget to widget. For this I want to get one component and than get text from it. I've been trying to do sth like this: document = ThisComponent.CurrentController.Frame oDocument = ThisCo...

Remote interop with OpenOffice Writer

I found some documentation about interop with OpenOffice using technologies like COM, but before delving in more deeply I wondered if anyone's worked on this kind of thing? We have a need for the following, all wrapped up in a method call from a client PC (client talks to server using COM): Client sends a map of name/value pairs to a ...

Copy a whole ODT (Openoffice Writer) document section to other document with Openoffice Java API (UNO API)

Dear all, I need to use the OpenOffice Java API to copy a document section and paste it over another document section. So far I have managed to copy the text of the section of the source document and paste it over the section at the target document (see the example below). However, the problem is that non-text elements (graphics, form...

VBA macro to toolbar button in Open Office

Hey! I draw the short straw at work and got tasked with converting all our MS Word templates to OO. All macros seems to work when the template is opened in OO but in MS Word we have a toolbar with the macros assigned to buttons in the toolbar. My question is: Is there a way to add macros written in VBA to a toolbar in OO? thanks! ...

How to import external module in python macro for OpenOffice?

Hello :) I'm writing a macro for OpenOffice in python, and I have a problem. I want to import external module (gdata) so i write import uno import gdata.calendar.service but when I try execute macro (Tools -> Marcos -> Run Macro..) I always get ImportError :/ I have gdata module in my PYTHONPATH, it's working when I test it in interp...

Convert source code to syntax highlighted image

Background OpenOffice Writer lacks the ability to link to an ASCII text source file, apply syntax highlighting, wrap it in a frame, and update the frame contents whenever the source file changes. However, OpenOffice Writer can link to images, and will update the images automatically when they change. Problem The images need to be high...