Menu

#60 patch for bug [ 1368727 ] oowriter 2.0

open
5
2007-11-21
2005-12-25
Ondrej Popp
No

Hi, I have a patch for the bug
[ 1368727 ] Error in files exported Open Office Writer
Document

It turned out oo 2.0 needs a META-INF/manifest.xml file.
Also, some styles apeared to be mission which caused oo
not to recognize headings. They were mapped to Default
(text)

I have fixed this by,
- adding the missing styles to
freemind/accessories/mm2oowriter.xsl

- introducing a new xsl file for the manifest.xml file,
freemind/accessories/mm2oowriter.manifest.xsl

- restructuring
freemind/accessories/plugins/ExportToOoWriter.java
exportToOoWriter function so that multiple .xml files
can be added to the zip archive. Basicaly, I have moved
the generic writing part to a new method,

private void applyXsltFile(String xsltFileName,
StringWriter writer,
Result result) throws IOException

This method is now called twice from within the
exportToOoWriter method. Once for the content.xml file,
and once for the META-INF/manifest.xml file

see the patch for more details.
regards, merry christmas and a happy new year.

Discussion

  • Ondrej Popp

    Ondrej Popp - 2005-12-25

    patch for bug [ 1368727 ]

     
  • Vincent Panel

    Vincent Panel - 2006-01-17

    Logged In: YES
    user_id=704503

    I don't know when it's going to be applied, but I vote for
    this patch :)

     
  • Nobody/Anonymous

    Logged In: NO

    Where to get it ?

     
  • Ondrej Popp

    Ondrej Popp - 2006-02-03

    Logged In: YES
    user_id=1409605

    see the atached files / Download link at the bottom of this page

     
  • Krymmel

    Krymmel - 2006-06-09

    Logged In: YES
    user_id=1431396

    Hi
    Good work, nice to be able to save to Oo in a way that
    works.

    Could you make a further patch and auomaticly add the map
    as a picture in the top of the dokument, that would be
    very handy.

     
  • Eric L.

    Eric L. - 2007-11-21
    • assigned_to: nobody --> christianfoltin
     

Log in to post a comment.