Hi Vincent & all,
I finish the clean of the plugin code and write a simple user manual. You
can see it in
http://dev.xwiki.org/xwiki/bin/view/Design/OfficeImporter#HQuickStart. All
files needed for this plugin can be found in that page
http://dev.xwiki.org/xwiki/bin/view/Design/OfficeImporter, except the
openoffice install .
Please give some feedback after try the plugin. Any feedback will be very
appreciated.
This plugin is very initial. It only put out the html code , not xwiki
syntax, because the html code to xwiki syntax conversion should be done by
XHTMLParser which is not ready yet.
Open question:
Now the plugin can handle the file which is uploaded to xwiki as a
attachment. Do you think it's necessary that the office importer would have
the upload feature itself or should provide a XWikiAction something like
"bin/importer/Main/page"?
Now the plugin can work. However it's a little complicate. If you want to
convert a office document
1. you first upload the document
2. copy the attachment name(because the name of document change after
upload)
3. edit the page and add the velocity code to use the importer plugin
4. save and view.
I think it should be more simple.
WDYT
--
Sincerely,
Wang Ning