bungeni-org / bungeni-editor

The Bungeni Editor is Drafting and Markup framework for XML production built on the OpenOffice.org platform. It supports different legislative document types (e.g hansard, bill) and supports definition of custom types, and allows markup and storage of metadata within the ODF document.
3 stars 0 forks source link

Embed OpenOffice.org within a Java swing MDI frame #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to have an application which embeds openoffice.org wihtin a
Java MDI frame ?

Original issue reported on code.google.com by ashok.ha...@gmail.com on 10 Mar 2010 at 10:33

GoogleCodeExporter commented 9 years ago
See

http://djproject.sourceforge.net/ns/

Original comment by ashok.ha...@gmail.com on 10 Mar 2010 at 10:34

GoogleCodeExporter commented 9 years ago
This method using JNI 

http://www.oooforum.org/forum/viewtopic.phtml?t=32906

probably not cross-platform

Original comment by ashok.ha...@gmail.com on 10 Mar 2010 at 10:36

GoogleCodeExporter commented 9 years ago
Also see Issue 80

Original comment by ashok.ha...@gmail.com on 21 May 2010 at 2:45

GoogleCodeExporter commented 9 years ago
Attempting djproject embedding with Openoffice.org 3.1.1

Original comment by ashok.ha...@gmail.com on 25 Jun 2010 at 7:17

GoogleCodeExporter commented 9 years ago
How does http://sourceforge.net/projects/gnuaccounting/ embed openoffice ?

Original comment by ashok.ha...@gmail.com on 15 Sep 2010 at 9:15

GoogleCodeExporter commented 9 years ago
<http://www.eclipse.org/articles/article.php?file=Article-Swing-SWT-Integration/
index.html>

Original comment by ashok.ha...@gmail.com on 15 Sep 2010 at 9:47

GoogleCodeExporter commented 9 years ago
The best way to do this is to actually integrate SWT and Swing (as djproject 
does ) for main editor panel holderUIPanel2.  

Original comment by ashok.ha...@gmail.com on 27 Sep 2010 at 8:20

GoogleCodeExporter commented 9 years ago
A more detailed description of this requirement -- 

Presently the main editor panel window is detached from the openoffice window.

The editor panel window floats in front of the openoffice window -- which means 
they both run as separate applications i.e. you can minimise the openoffice 
window and the editor window separately.

Ideally they should be part of the same window so minimising one window 
minimizes both.

There are few side effects to consider here :

-- currently we can edit multiple documents in the editor simply by switching 
the documents in the selector ... since the 2 windows (the editor panel and the 
word processor ) are disconnected, this functionality is quite straightforward. 
However if these windows are merged -- then perhaps we need to do away with 
multiple document support.. or find a way to switch between 'active documents'

-- popup windows -- there are some popup input windows in the editor -- these 
will remain as is

-- theming engine - we use a swing theming engine called substance -- we have 
to see have impact the swt integration has on this.

Original comment by ashok.ha...@gmail.com on 27 Sep 2010 at 8:55

GoogleCodeExporter commented 9 years ago
The main panel which is to appear in the embedded window is : 

org.bungeni.editor.dialogs.editorTabbedPanel

Original comment by ashok.ha...@gmail.com on 27 Sep 2010 at 9:02

GoogleCodeExporter commented 9 years ago
See attached screen mockup of how it could look merged

Original comment by ashok.ha...@gmail.com on 27 Sep 2010 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
Note : the embedded UI must work in both Windows and Linux.

Original comment by ashok.ha...@gmail.com on 28 Sep 2010 at 12:42

GoogleCodeExporter commented 9 years ago
Just a question:
How we can embed the tabbedPanel in OpenOffice Writer UI as it is shown in the 
mockup?
Are there some HOOKs/APIs provided by OpenOffice to do it? 

The migration from Swing to SWT may just be the minor problem

Suggetions on how proceed?

Original comment by fdraicc...@gmail.com on 9 Dec 2010 at 3:01

GoogleCodeExporter commented 9 years ago
see 
http://wiki.services.openoffice.org/wiki/Framework/Article/Tool_Panels#The_Tool_
Panel

Original comment by fdraicc...@gmail.com on 10 Dec 2010 at 10:54

GoogleCodeExporter commented 9 years ago
Re: comment #13 -- You can actually embed a Swing window within the openoffice 
toolbar (i.e. as "dockable" ) by implementing it as an add-on (see 
http://wiki.services.openoffice.org/wiki/OpenOffice_Add-On_Project_Type ).

However this has serious performance issues because the swing-addon runs within 
the openoffice jvm thread ... essentially its not usable.

However -- this is not what I was proposing at all -- if you look at comment #5 
& #6 (http://code.google.com/p/bungeni-editor/issues/detail?id=71#c5 , 
http://code.google.com/p/bungeni-editor/issues/detail?id=71#c6 ) -- the gnu 
accounting implementation embeds openoffice (instead of the embeding the editor 
panel within openoffice ) within a swt panel.  Now if we can integrate a swing 
panel (with controls) into swt -- that is essentially what we desire.

Original comment by ashok.ha...@gmail.com on 14 Dec 2010 at 6:45

GoogleCodeExporter commented 9 years ago

Original comment by ashok.ha...@gmail.com on 12 Oct 2012 at 7:01