Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Open Document Format / Rich Text Format Editor in Java

Thread view: 
Dominik - 14 Mar 2007 09:43 GMT
hi all,

I'm looking for a java class or a set of java classes with which I can
display ( and edit ) a ODF-Document (or a RTF-Document).

One requirement is that it is possible to display different fonts,
text size, text color, text-decoration, images, tables with or without
borders/colors , links, background color, indent, numbering, bullets
etc.

I know about the RTFEditorKit and the HTMLEditorKit from the swing
packages ...and of their limitations.

As my application will use SWT (&RCP), I'm looking for a "better"
alternative. Does anyone of you know which classes could be of
interest for me?

Thanx for your help
Dominik
Joshua Cranmer - 15 Mar 2007 01:21 GMT
> hi all,
>
[quoted text clipped - 15 lines]
> Thanx for your help
> Dominik

http://books.evc-cit.info/odf_utils/index.html.

Like any other file format, googling "java <file format>" will generally
give you a library to read/write the file format. If you wanted to write
a simple one yourself, the ODF is an XML based format in a ZIP
container, reading/writing of which Java handles quite well natively.
Dominik - 15 Mar 2007 14:53 GMT
Hi,

> http://books.evc-cit.info/odf_utils/index.html.
Thanx for the link. Might become usefull in the future.

> Like any other file format, googling "java <file format>" will generally
> give you a library to read/write the file format.

But for now I'm looking for an *EDITOR* (not a library or tools to
write an editor). I'm trying to avoid doing all the work with writing
the gui-components to display a ODF/RTF Document by reusing an editor
that already exists (and probably has its own ways of reading/writing
to/from the files).

The part that I'm really interested in is not the reading/writing to/
from an ODF file, but reusing the editors in-memory representation of
the loaded document and the methods used to modify the document (in-
memory).

I allready tried with HTMLEditorKit/RTFEditorKit (et.al.) but as I
wrote above, their too limited and buggy for my use. The writer from
OpenOffice on the other hand might just be a bit too big, complex and
powerfull (despite the fact that it is written in C).

> If you wanted to write
> a simple one yourself, the ODF is an XML based format in a ZIP
> container, reading/writing of which Java handles quite well natively.

I hope it won't be necessary to do that myself. There's plenty of
other features that I have to worry about. ;-)

Cheers,
Dominik
Chris Uppal - 15 Mar 2007 21:34 GMT
> I'm looking for a java class or a set of java classes with which I can
> display ( and edit ) a ODF-Document (or a RTF-Document).

Maybe one of Ephox's components would fit the bill.

   http://www.ephox.com/products/

(I have never used any of them myself so I can't comment on quality, value for
money, suitability, etc...)

   -- chris
Dominik - 22 Mar 2007 14:55 GMT
hi chris,

thanx for the link.

> Maybe one of Ephox's components would fit the bill.
>
>    http://www.ephox.com/products/

from a first look it seems that ephox "only" edits html files/code but
not odf- or rtf-documents. but that's still better than the
HTMLEditorKit et.al. I guess.

cheers,
dominik


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.