Results 1 to 7 of 7

Thread: OpenOffice file to QTextEdit (Unzip Problem)

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default OpenOffice file to QTextEdit (Unzip Problem)

    I have rewrite a xslt ( Extensible Stylesheet Language Transformations )
    to convert the content.xml from a openoffice file to html
    http://ppk.ciz.ch/format/xslt/sxw2xh...litzer_cms.xsl
    is running ok test folder result http://ppk.ciz.ch/format/openoffice_test/ convertet on qt4 application http://sourceforge.net/projects/visual-xsltproc/ ....

    But now how i can unzip filename.sxw to a tmp folder on qt...? to convert & read on QTextEdit..?

    on a shell i make
    mv filename.sxw filename.zip && unzip filename.zip

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: OpenOffice file to QTextEdit (Unzip Problem)

    The obvious way is to use some library that uncompresses zip files (can libz handle that? maybe...).

  3. #3
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: OpenOffice file to QTextEdit (Unzip Problem)

    Quote Originally Posted by wysota View Post
    The obvious way is to use some library that uncompresses zip files (can libz handle that? maybe...).
    I found http://osdab.sourceforge.net/ but decompress all normal zip but no swx (openoffice) error say unsupported format ... same if i rename to zip...
    I search on openoffice site .... required lib to build openoffice ....
    http://www.openoffice.org/FAQs/build_faq.html zlib-1.2.1 ....
    How i can discover zlib format from file?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: OpenOffice file to QTextEdit (Unzip Problem)

    Quote Originally Posted by patrik08 View Post
    How i can discover zlib format from file?
    What do you mean by that?

  5. #5
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: OpenOffice file to QTextEdit (Unzip Problem)

    Quote Originally Posted by wysota View Post
    What do you mean by that?
    Discover zip archive version or this here... how find it?

    PKZIP signatures:
    PK\3\4 local file header
    PK\6\8 archive extra data record
    PK\1\2 central file header
    PK\5\5 digital signature header
    PK\6\6 ZIP64 end of central directory record
    PK\6\7 ZIP64 end of central directory locator
    PK\5\6 end of central directory record

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: OpenOffice file to QTextEdit (Unzip Problem)

    I still don't understand, maybe others do...

  7. #7
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: OpenOffice file to QTextEdit (Unzip Problem)

    Quote Originally Posted by wysota View Post
    I still don't understand, maybe others do...
    I found a super running unzip & zip qt libs....
    http://quazip.sourceforge.net/

    and this lib can read & open openoffice & normal pkzip file.....

    insert to http://www.qtcentre.org/component/op...,23/Itemid,23/
    why? is running on all os.....

Similar Threads

  1. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 15:36
  2. repaint problem in QTextEdit
    By kennyxing in forum Qt Programming
    Replies: 2
    Last Post: 10th November 2006, 09:49
  3. QTextEdit problem
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2006, 12:56
  4. Problem with inserting text into QTextEdit
    By xorrr in forum Qt Programming
    Replies: 0
    Last Post: 6th February 2006, 12:45
  5. QProcess problem with windows batch file
    By bood in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2006, 09:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.