hi, all, (It seems there is some problem on my mailbox. and I resend it again. ) I have sent it to [email protected] mailist but it seems not work yet. so I have to resend it here. :)
I am Cynthia Qu, I am new in doing extension thing, and I am trying to make the filter "docbook" to be an extension, which in my mind could be configurable in compiling OOo(could be --enable-docbook or --disable-docbook when I am doing "./configure"), but as I enabled the filter extension, I can't save the file as "DocBook (.xml)" . Problem Description in detail: 1. Run the application ./soffice 2. Click items from menubar "Tools -> Extension Manager" -> "Add...", and pop out a dialog.On the popped out dialog, choose the extension "DocBook.zip", and close the dialog. 3. create a new document, and save it as "DocBook" format with name "test_docbook". 4. popout a messagebox: "This document may contain formatting or content that cannot be saved in the DocBook file format.Do you want to save the document in this format anyway?" And I clicked button "Keep Current Format" 5. pop out a messagebox: "Error saving the document Untitled1:Write Error. The file could not be written." 6. And the file not saved yet. Something I need to add: 1. This OOo version is the one I compiled with "--disable-docbook", so it doesn't contain the docbook filter. 2. The source I did is OOO310_m19, on Ubuntu 8.04. 3. I have put the extension into "/openoffice3/share/extension/install/", I also want it be there when I use "--enable-docbook" configure switch and created the package. 4. And I can enable/disable the extension in the "extension manager", I checked it through the "File Type" droplist on the "Save As" Dialog, and it worked. 5. I want to start with this filter in project Modularization, (Modularization wiki: http://wiki.services.openoffice.org/wiki/Modularization ). My question & problem: 1. I have changed the file name to be "test_docbook", but it seems not work. And I don't know what caused the problem. 2. I am not sure if the source related to filter "docbook" I have found is right. 3. In my mind, I should make the extension work at first, and then intergrate it into the package. Is it the right way I am doing to create a filter extension? Is there anybody could help? Thank you very much in advance! :) Best Regards, Cynthia P.S My extension "DocBook.zip" has the file tree: DocBook/ |-- DocBook_Filter.xcu |-- DocBook_Type.xcu |-- META-INF | `-- manifest.xml |-- description.xml `-- filter |-- DocBookTemplate.stw |-- docbooktosoffheadings.xsl `-- sofftodocbookheadings.xsl 1. The files in DocBook/filter/* comes from OOO310_m19/filter/source/docbook/ 2. The DocBook_Filter.xcu contains: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd"> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Filter"> <node oor:name="Filters"> <node oor:name="DocBook File" oor:op="replace"> <prop oor:name="FileFormatVersion"><value>0</value></prop> <prop oor:name="Type"><value>writer_DocBook_File</value></prop> <prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop> <prop oor:name="UIComponent"/> <prop oor:name="UserData"><value oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Writer.XMLImporter,com.sun.star.comp.Writer.XMLExporter,%origin%/filter/docbooktosoffheadings.xsl,%origin%/filter/sofftodocbookheadings.xsl</value></prop> <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop> <prop oor:name="TemplateName"><value>%origin %/filter/DocBookTemplate.stw</value></prop> <prop oor:name="UIName"> <value>DocBook</value> </prop> <prop oor:name="Flags"><value>IMPORT EXPORT ALIEN 3RDPARTYFILTER</value></prop> </node> </node> </oor:component-data> 3. The DocBook_Type.xcu contains: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd"> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Types"> <node oor:name="Types"> <node oor:name="writer_DocBook_File" oor:op="replace"> <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop> <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop> <prop oor:name="URLPattern"/> <prop oor:name="Extensions"><value>xml</value></prop> <prop oor:name="MediaType"/> <prop oor:name="Preferred"><value>false</value></prop> <prop oor:name="PreferredFilter"><value>DocBook File</value></prop> <prop oor:name="UIName"> <value>DocBook</value> </prop> <prop oor:name="ClipboardFormat"><value>doctype:-//OASIS//DTD DocBook XML V4</value></prop> </node> </node> </oor:component-data>hi, all, I have sent it to [email protected] mailist but it seems not work yet. so I have to resend it here. :) I am Cynthia Qu, I am new in doing extension thing, and I am trying to make the filter "docbook" to be an extension, which in my mind could be configurable in compiling OOo(could be --enable-docbook or --disable-docbook when I am doing "./configure"), but as I enabled the filter extension, I can't save the file as "DocBook (.xml)" . Problem Description in detail: 1. Run the application ./soffice 2. Click items from menubar "Tools -> Extension Manager" -> "Add...", and pop out a dialog.On the popped out dialog, choose the extension "DocBook.zip", and close the dialog. 3. create a new document, and save it as "DocBook" format with name "test_docbook". 4. popout a messagebox: "This document may contain formatting or content that cannot be saved in the DocBook file format.Do you want to save the document in this format anyway?" And I clicked button "Keep Current Format" 5. pop out a messagebox: "Error saving the document Untitled1:Write Error. The file could not be written." 6. And the file not saved yet. Something I need to add: 1. This OOo version is the one I compiled with "--disable-docbook", so it doesn't contain the docbook filter. 2. The source I did is OOO310_m19, on Ubuntu 8.04. 3. I have put the extension into "/openoffice3/share/extension/install/", I also want it be there when I use "--enable-docbook" configure switch and created the package. 4. And I can enable/disable the extension in the "extension manager", I checked it through the "File Type" droplist on the "Save As" Dialog, and it worked. 5. I want to start with this filter in project Modularization, (Modularization wiki: http://wiki.services.openoffice.org/wiki/Modularization ). My question & problem: 1. I have changed the file name to be "test_docbook", but it seems not work. And I don't know what caused the problem. 2. I am not sure if the source related to filter "docbook" I have found is right. 3. In my mind, I should make the extension work at first, and then intergrate it into the package. Is it the right way I am doing to create a filter extension? Is there anybody could help? Thank you very much in advance! :) Best Regards, Cynthia P.S My extension "DocBook.zip" has the file tree: DocBook/ |-- DocBook_Filter.xcu |-- DocBook_Type.xcu |-- META-INF | `-- manifest.xml |-- description.xml `-- filter |-- DocBookTemplate.stw |-- docbooktosoffheadings.xsl `-- sofftodocbookheadings.xsl 1. The files in DocBook/filter/* comes from OOO310_m19/filter/source/docbook/ 2. The DocBook_Filter.xcu contains: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd"> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Filter"> <node oor:name="Filters"> <node oor:name="DocBook File" oor:op="replace"> <prop oor:name="FileFormatVersion"><value>0</value></prop> <prop oor:name="Type"><value>writer_DocBook_File</value></prop> <prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop> <prop oor:name="UIComponent"/> <prop oor:name="UserData"><value oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Writer.XMLImporter,com.sun.star.comp.Writer.XMLExporter,%origin%/filter/docbooktosoffheadings.xsl,%origin%/filter/sofftodocbookheadings.xsl</value></prop> <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop> <prop oor:name="TemplateName"><value>%origin %/filter/DocBookTemplate.stw</value></prop> <prop oor:name="UIName"> <value>DocBook</value> </prop> <prop oor:name="Flags"><value>IMPORT EXPORT ALIEN 3RDPARTYFILTER</value></prop> </node> </node> </oor:component-data> 3. The DocBook_Type.xcu contains: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd"> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Types"> <node oor:name="Types"> <node oor:name="writer_DocBook_File" oor:op="replace"> <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop> <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop> <prop oor:name="URLPattern"/> <prop oor:name="Extensions"><value>xml</value></prop> <prop oor:name="MediaType"/> <prop oor:name="Preferred"><value>false</value></prop> <prop oor:name="PreferredFilter"><value>DocBook File</value></prop> <prop oor:name="UIName"> <value>DocBook</value> </prop> <prop oor:name="ClipboardFormat"><value>doctype:-//OASIS//DTD DocBook XML V4</value></prop> </node> </node> </oor:component-data>
