diff --git a/build.xml b/build.xml index ab54e51..84ba6e8 100644 --- a/build.xml +++ b/build.xml @@ -8,8 +8,10 @@ - - + + + + writer2latex - build file @@ -37,15 +39,15 @@ - - + + - - + + @@ -75,9 +77,10 @@ @@ -156,7 +159,7 @@ - + @@ -214,7 +217,7 @@ - + @@ -225,11 +228,11 @@ - + - + diff --git a/source/distro/COPYING.TXT b/src/main/COPYING.TXT similarity index 100% rename from source/distro/COPYING.TXT rename to src/main/COPYING.TXT diff --git a/src/main/distro/COPYING.TXT b/src/main/distro/COPYING.TXT new file mode 100644 index 0000000..101dfa2 --- /dev/null +++ b/src/main/distro/COPYING.TXT @@ -0,0 +1,460 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + diff --git a/source/distro/History.txt b/src/main/distro/History.txt similarity index 100% rename from source/distro/History.txt rename to src/main/distro/History.txt diff --git a/source/distro/Readme.txt b/src/main/distro/Readme.txt similarity index 100% rename from source/distro/Readme.txt rename to src/main/distro/Readme.txt diff --git a/source/distro/changelog.txt b/src/main/distro/changelog.txt similarity index 100% rename from source/distro/changelog.txt rename to src/main/distro/changelog.txt diff --git a/source/distro/doc/user-manual.odt b/src/main/distro/doc/user-manual.odt similarity index 100% rename from source/distro/doc/user-manual.odt rename to src/main/distro/doc/user-manual.odt diff --git a/source/distro/doc/w2llogo.png b/src/main/distro/doc/w2llogo.png similarity index 100% rename from source/distro/doc/w2llogo.png rename to src/main/distro/doc/w2llogo.png diff --git a/source/distro/latex/obsolete/writer.sty b/src/main/distro/latex/obsolete/writer.sty similarity index 100% rename from source/distro/latex/obsolete/writer.sty rename to src/main/distro/latex/obsolete/writer.sty diff --git a/source/distro/latex/ooomath.sty b/src/main/distro/latex/ooomath.sty similarity index 100% rename from source/distro/latex/ooomath.sty rename to src/main/distro/latex/ooomath.sty diff --git a/source/distro/samples/config/google-docs-config.xml b/src/main/distro/samples/config/google-docs-config.xml similarity index 100% rename from source/distro/samples/config/google-docs-config.xml rename to src/main/distro/samples/config/google-docs-config.xml diff --git a/source/distro/samples/latex/sample-article.odt b/src/main/distro/samples/latex/sample-article.odt similarity index 100% rename from source/distro/samples/latex/sample-article.odt rename to src/main/distro/samples/latex/sample-article.odt diff --git a/source/distro/samples/xhtml/sample-xhtml.odt b/src/main/distro/samples/xhtml/sample-xhtml.odt similarity index 100% rename from source/distro/samples/xhtml/sample-xhtml.odt rename to src/main/distro/samples/xhtml/sample-xhtml.odt diff --git a/source/distro/w2l b/src/main/distro/w2l similarity index 100% rename from source/distro/w2l rename to src/main/distro/w2l diff --git a/source/distro/w2l.bat b/src/main/distro/w2l.bat similarity index 96% rename from source/distro/w2l.bat rename to src/main/distro/w2l.bat index dfc6928..6b9aa3a 100644 --- a/source/distro/w2l.bat +++ b/src/main/distro/w2l.bat @@ -1,13 +1,13 @@ -@echo off -rem *Very* simple batch file to run Writer2LaTeX -rem Last modified february 2011 - -rem If the Java executable is not in your path, please edit the following -rem line to contain the full path and file name - -set JAVAEXE="java" - -%JAVAEXE% -jar "%~dp0\writer2latex.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9 - -set JAVAEXE= - +@echo off +rem *Very* simple batch file to run Writer2LaTeX +rem Last modified february 2011 + +rem If the Java executable is not in your path, please edit the following +rem line to contain the full path and file name + +set JAVAEXE="java" + +%JAVAEXE% -jar "%~dp0\writer2latex.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9 + +set JAVAEXE= + diff --git a/source/distro/zotero/BibTeX-Writer2LaTeX.js b/src/main/distro/zotero/BibTeX-Writer2LaTeX.js similarity index 100% rename from source/distro/zotero/BibTeX-Writer2LaTeX.js rename to src/main/distro/zotero/BibTeX-Writer2LaTeX.js diff --git a/source/distro/zotero/COPYING-ZOTERO.txt b/src/main/distro/zotero/COPYING-ZOTERO.txt similarity index 100% rename from source/distro/zotero/COPYING-ZOTERO.txt rename to src/main/distro/zotero/COPYING-ZOTERO.txt diff --git a/source/idl/readme-idl.txt b/src/main/idl/readme-idl.txt similarity index 100% rename from source/idl/readme-idl.txt rename to src/main/idl/readme-idl.txt diff --git a/source/idl/writer2latex/XW2LStarMathConverter.idl b/src/main/idl/writer2latex/XW2LStarMathConverter.idl similarity index 100% rename from source/idl/writer2latex/XW2LStarMathConverter.idl rename to src/main/idl/writer2latex/XW2LStarMathConverter.idl diff --git a/source/idl/writer2latex/org/openoffice/da/writer2latex/XW2LStarMathConverter.class b/src/main/idl/writer2latex/org/openoffice/da/writer2latex/XW2LStarMathConverter.class similarity index 100% rename from source/idl/writer2latex/org/openoffice/da/writer2latex/XW2LStarMathConverter.class rename to src/main/idl/writer2latex/org/openoffice/da/writer2latex/XW2LStarMathConverter.class diff --git a/source/idl/writer2latex/writer2latex.rdb b/src/main/idl/writer2latex/writer2latex.rdb similarity index 100% rename from source/idl/writer2latex/writer2latex.rdb rename to src/main/idl/writer2latex/writer2latex.rdb diff --git a/source/idl/writer2xhtml/XBatchConverter.idl b/src/main/idl/writer2xhtml/XBatchConverter.idl similarity index 100% rename from source/idl/writer2xhtml/XBatchConverter.idl rename to src/main/idl/writer2xhtml/XBatchConverter.idl diff --git a/source/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchConverter.class b/src/main/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchConverter.class similarity index 100% rename from source/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchConverter.class rename to src/main/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchConverter.class diff --git a/source/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchHandler.class b/src/main/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchHandler.class similarity index 100% rename from source/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchHandler.class rename to src/main/idl/writer2xhtml/org/openoffice/da/writer2xhtml/XBatchHandler.class diff --git a/source/idl/writer2xhtml/writer2xhtml.rdb b/src/main/idl/writer2xhtml/writer2xhtml.rdb similarity index 100% rename from source/idl/writer2xhtml/writer2xhtml.rdb rename to src/main/idl/writer2xhtml/writer2xhtml.rdb diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.default b/src/main/java/org/libreoffice/example/comp/RegistrationHandler.classes similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.default rename to src/main/java/org/libreoffice/example/comp/RegistrationHandler.classes diff --git a/src/main/java/org/libreoffice/example/comp/RegistrationHandler.java b/src/main/java/org/libreoffice/example/comp/RegistrationHandler.java new file mode 100644 index 0000000..3819b73 --- /dev/null +++ b/src/main/java/org/libreoffice/example/comp/RegistrationHandler.java @@ -0,0 +1,175 @@ +/************************************************************************* + * + * The Contents of this file are made available subject to the terms of + * either of the GNU Lesser General Public License Version 2.1 + * + * Sun Microsystems Inc., October, 2000 + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc.. + * + * Copyright: 2002 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): Cedric Bosdonnat + * + * + ************************************************************************/ +package org.libreoffice.example.comp; + +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.LineNumberReader; +import java.lang.reflect.Method; +import java.util.ArrayList; + +import com.sun.star.lang.XSingleComponentFactory; +import com.sun.star.registry.XRegistryKey; + +/** + * Component main registration class. + * + *

This class should not be modified.

+ * + * @author Cedric Bosdonnat aka. cedricbosdo + * + */ +public class RegistrationHandler { + + /** + * Get a component factory for the implementations handled by this class. + * + *

This method calls all the methods of the same name from the classes listed + * in the RegistrationHandler.classes file. This method + * should not be modified.

+ * + * @param pImplementationName the name of the implementation to create. + * + * @return the factory which can create the implementation. + */ + public static XSingleComponentFactory __getComponentFactory(String sImplementationName ) { + XSingleComponentFactory xFactory = null; + + Class[] classes = findServicesImplementationClasses(); + + int i = 0; + while (i < classes.length && xFactory == null) { + Class clazz = classes[i]; + if ( sImplementationName.equals( clazz.getCanonicalName() ) ) { + try { + Class[] getTypes = new Class[]{String.class}; + Method getFactoryMethod = clazz.getMethod("__getComponentFactory", getTypes); + Object o = getFactoryMethod.invoke(null, sImplementationName); + xFactory = (XSingleComponentFactory)o; + } catch (Exception e) { + // Nothing to do: skip + System.err.println("Error happened"); + e.printStackTrace(); + } + } + i++; + } + return xFactory; + } + + /** + * Writes the services implementation informations to the UNO registry. + * + *

This method calls all the methods of the same name from the classes listed + * in the RegistrationHandler.classes file. This method + * should not be modified.

+ * + * @param pRegistryKey the root registry key where to write the informations. + * + * @return true if the informations have been successfully written + * to the registry key, false otherwise. + */ + public static boolean __writeRegistryServiceInfo(XRegistryKey xRegistryKey ) { + + Class[] classes = findServicesImplementationClasses(); + + boolean success = true; + int i = 0; + while (i < classes.length && success) { + Class clazz = classes[i]; + try { + Class[] writeTypes = new Class[]{XRegistryKey.class}; + Method getFactoryMethod = clazz.getMethod("__writeRegistryServiceInfo", writeTypes); + Object o = getFactoryMethod.invoke(null, xRegistryKey); + success = success && ((Boolean)o).booleanValue(); + } catch (Exception e) { + success = false; + e.printStackTrace(); + } + i++; + } + return success; + } + + /** + * @return all the UNO implementation classes. + */ + private static Class[] findServicesImplementationClasses() { + + ArrayList classes = new ArrayList(); + + InputStream in = RegistrationHandler.class.getResourceAsStream("RegistrationHandler.classes"); + LineNumberReader reader = new LineNumberReader(new InputStreamReader(in)); + + try { + String line = reader.readLine(); + while (line != null) { + if (!line.equals("")) { + line = line.trim(); + try { + Class clazz = Class.forName(line); + + Class[] writeTypes = new Class[]{XRegistryKey.class}; + Class[] getTypes = new Class[]{String.class}; + + Method writeRegMethod = clazz.getMethod("__writeRegistryServiceInfo", writeTypes); + Method getFactoryMethod = clazz.getMethod("__getComponentFactory", getTypes); + + if (writeRegMethod != null && getFactoryMethod != null) { + classes.add(clazz); + } + + } catch (Exception e) { + e.printStackTrace(); + } + } + line = reader.readLine(); + } + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + reader.close(); + in.close(); + } catch (Exception e) {}; + } + + return classes.toArray(new Class[classes.size()]); + } +} diff --git a/src/main/java/org/libreoffice/example/comp/tests/UnoTests.java b/src/main/java/org/libreoffice/example/comp/tests/UnoTests.java new file mode 100644 index 0000000..59f248a --- /dev/null +++ b/src/main/java/org/libreoffice/example/comp/tests/UnoTests.java @@ -0,0 +1,13 @@ +package org.libreoffice.example.comp.tests; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite.SuiteClasses; + +import org.libreoffice.example.comp.tests.base.UnoSuite; +import org.libreoffice.example.comp.tests.uno.WriterTest; + +@RunWith(UnoSuite.class) +@SuiteClasses({WriterTest.class}) +public class UnoTests { + +} diff --git a/src/main/java/org/libreoffice/example/comp/tests/base/UnoSuite.java b/src/main/java/org/libreoffice/example/comp/tests/base/UnoSuite.java new file mode 100644 index 0000000..6ea67e4 --- /dev/null +++ b/src/main/java/org/libreoffice/example/comp/tests/base/UnoSuite.java @@ -0,0 +1,75 @@ +package org.libreoffice.example.comp.tests.base; + +import java.util.List; + +import org.junit.runner.Runner; +import org.junit.runner.notification.RunNotifier; +import org.junit.runners.Suite; +import org.junit.runners.model.InitializationError; +import org.junit.runners.model.RunnerBuilder; + +import com.sun.star.frame.XDesktop; +import com.sun.star.lang.XMultiComponentFactory; +import com.sun.star.uno.UnoRuntime; +import com.sun.star.uno.XComponentContext; + +public class UnoSuite extends Suite { + + private static XComponentContext componentContext; + + public UnoSuite(Class klass, RunnerBuilder builder) throws InitializationError { + super(klass, builder); + } + + public UnoSuite(RunnerBuilder builder, Class[] classes) throws InitializationError { + super(builder, classes); + } + + public UnoSuite(Class klass, Class[] suiteClasses) throws InitializationError { + super(klass, suiteClasses); + } + + public UnoSuite(Class klass, List runners) throws InitializationError { + super(klass, runners); + } + + public UnoSuite(RunnerBuilder builder, Class klass, Class[] suiteClasses) throws InitializationError { + super(builder, klass, suiteClasses); + } + + @Override + public void run(RunNotifier arg0) { + try { + startOffice(); + } catch (Exception e) { + e.printStackTrace(); + } + super.run(arg0); + + stopOffice(); + } + + private void startOffice() throws Exception { + componentContext = com.sun.star.comp.helper.Bootstrap.bootstrap(); + } + + private void stopOffice() { + try { + if (componentContext != null) { + // Only the uno test suite which started the office can stop it + XMultiComponentFactory xMngr = componentContext.getServiceManager(); + Object oDesktop = xMngr.createInstanceWithContext("com.sun.star.frame.Desktop", componentContext); + XDesktop xDesktop = (XDesktop)UnoRuntime.queryInterface(XDesktop.class, oDesktop); + + xDesktop.terminate(); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + public static XComponentContext getComponentContext() { + return componentContext; + } + +} diff --git a/src/main/java/org/libreoffice/example/comp/tests/helper/UnoHelper.java b/src/main/java/org/libreoffice/example/comp/tests/helper/UnoHelper.java new file mode 100644 index 0000000..f9245f4 --- /dev/null +++ b/src/main/java/org/libreoffice/example/comp/tests/helper/UnoHelper.java @@ -0,0 +1,28 @@ +package org.libreoffice.example.comp.tests.helper; + +import com.sun.star.beans.PropertyValue; +import com.sun.star.frame.FrameSearchFlag; +import com.sun.star.frame.XComponentLoader; +import com.sun.star.lang.XComponent; +import com.sun.star.lang.XMultiComponentFactory; +import com.sun.star.text.XTextDocument; +import com.sun.star.uno.Exception; +import com.sun.star.uno.UnoRuntime; + +import org.libreoffice.example.comp.tests.base.UnoSuite; + +public class UnoHelper { + + public static XTextDocument getWriterDocument() throws Exception { + XMultiComponentFactory xMngr = UnoSuite.getComponentContext().getServiceManager(); + Object oDesktop = xMngr.createInstanceWithContext("com.sun.star.frame.Desktop", UnoSuite.getComponentContext()); + XComponentLoader xLoader = (XComponentLoader)UnoRuntime.queryInterface( + XComponentLoader.class, oDesktop); + + XComponent xDoc = xLoader.loadComponentFromURL("private:factory/swriter", "_default", + FrameSearchFlag.ALL, new PropertyValue[0]); + + return (XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, xDoc); + } + +} diff --git a/src/main/java/org/libreoffice/example/comp/tests/uno/WriterTest.java b/src/main/java/org/libreoffice/example/comp/tests/uno/WriterTest.java new file mode 100644 index 0000000..31744e6 --- /dev/null +++ b/src/main/java/org/libreoffice/example/comp/tests/uno/WriterTest.java @@ -0,0 +1,26 @@ +package org.libreoffice.example.comp.tests.uno; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Before; +import org.junit.Test; + +import com.sun.star.text.XTextDocument; + +import org.libreoffice.example.comp.tests.helper.UnoHelper; + +public class WriterTest { + + private XTextDocument xTextDocument; + + @Before + public void setUp() throws Exception { + xTextDocument = UnoHelper.getWriterDocument(); + } + + @Test + public void test() { + assertNotNull(xTextDocument); + } + +} diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/ByteArrayXStream.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/ByteArrayXStream.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/ByteArrayXStream.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/ByteArrayXStream.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/ConfigurationDialogBase.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/ConfigurationDialogBase.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/ConfigurationDialogBase.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/ConfigurationDialogBase.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/EPSCleaner.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/EPSCleaner.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/EPSCleaner.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/EPSCleaner.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/FilterDataParser.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/FilterDataParser.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/FilterDataParser.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/FilterDataParser.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl1.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl1.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl1.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl1.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl2.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl2.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl2.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/GraphicConverterImpl2.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/Messages.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/Messages.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/Messages.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/Messages.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/OptionsDialogBase.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/OptionsDialogBase.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/OptionsDialogBase.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/OptionsDialogBase.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/UNOConverter.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/UNOConverter.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/UNOConverter.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/UNOConverter.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/UNOPublisher.java b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/UNOPublisher.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/UNOPublisher.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/UNOPublisher.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/messages.properties b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/messages.properties similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/messages.properties rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/messages.properties diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/messages_da.properties b/src/main/java/org/openoffice/da/comp/w2lcommon/filter/messages_da.properties similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/filter/messages_da.properties rename to src/main/java/org/openoffice/da/comp/w2lcommon/filter/messages_da.properties diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/DialogAccess.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/DialogAccess.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/DialogAccess.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/DialogAccess.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/DialogBase.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/DialogBase.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/DialogBase.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/DialogBase.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/FieldMasterNameProvider.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/FieldMasterNameProvider.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/FieldMasterNameProvider.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/FieldMasterNameProvider.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/FilePicker.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/FilePicker.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/FilePicker.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/FilePicker.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/FolderPicker.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/FolderPicker.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/FolderPicker.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/FolderPicker.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/MacroExpander.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/MacroExpander.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/MacroExpander.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/MacroExpander.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/MessageBox.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/MessageBox.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/MessageBox.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/MessageBox.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/PropertyHelper.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/PropertyHelper.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/PropertyHelper.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/PropertyHelper.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/RegistryHelper.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/RegistryHelper.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/RegistryHelper.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/RegistryHelper.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/SimpleDialog.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/SimpleDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/SimpleDialog.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/SimpleDialog.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/StreamGobbler.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/StreamGobbler.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/StreamGobbler.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/StreamGobbler.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/StyleNameProvider.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/StyleNameProvider.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/StyleNameProvider.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/StyleNameProvider.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/helper/XPropertySetHelper.java b/src/main/java/org/openoffice/da/comp/w2lcommon/helper/XPropertySetHelper.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/helper/XPropertySetHelper.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/helper/XPropertySetHelper.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Catcode.java b/src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Catcode.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Catcode.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Catcode.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/CatcodeTable.java b/src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/CatcodeTable.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/CatcodeTable.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/CatcodeTable.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Mouth.java b/src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Mouth.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Mouth.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Mouth.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Token.java b/src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Token.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Token.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/Token.java diff --git a/source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/TokenType.java b/src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/TokenType.java similarity index 100% rename from source/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/TokenType.java rename to src/main/java/org/openoffice/da/comp/w2lcommon/tex/tokenizer/TokenType.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/ApplicationsDialog.java b/src/main/java/org/openoffice/da/comp/writer2latex/ApplicationsDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/ApplicationsDialog.java rename to src/main/java/org/openoffice/da/comp/writer2latex/ApplicationsDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/BibTeXDialog.java b/src/main/java/org/openoffice/da/comp/writer2latex/BibTeXDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/BibTeXDialog.java rename to src/main/java/org/openoffice/da/comp/writer2latex/BibTeXDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/BibTeXReader.java b/src/main/java/org/openoffice/da/comp/writer2latex/BibTeXReader.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/BibTeXReader.java rename to src/main/java/org/openoffice/da/comp/writer2latex/BibTeXReader.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/BibliographyDialog.java b/src/main/java/org/openoffice/da/comp/writer2latex/BibliographyDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/BibliographyDialog.java rename to src/main/java/org/openoffice/da/comp/writer2latex/BibliographyDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/ConfigurationDialog.java b/src/main/java/org/openoffice/da/comp/writer2latex/ConfigurationDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/ConfigurationDialog.java rename to src/main/java/org/openoffice/da/comp/writer2latex/ConfigurationDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/CustomSymbolNameProvider.java b/src/main/java/org/openoffice/da/comp/writer2latex/CustomSymbolNameProvider.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/CustomSymbolNameProvider.java rename to src/main/java/org/openoffice/da/comp/writer2latex/CustomSymbolNameProvider.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/DeTeXtive.java b/src/main/java/org/openoffice/da/comp/writer2latex/DeTeXtive.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/DeTeXtive.java rename to src/main/java/org/openoffice/da/comp/writer2latex/DeTeXtive.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/ExternalApps.java b/src/main/java/org/openoffice/da/comp/writer2latex/ExternalApps.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/ExternalApps.java rename to src/main/java/org/openoffice/da/comp/writer2latex/ExternalApps.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/LaTeXOptionsDialog.java b/src/main/java/org/openoffice/da/comp/writer2latex/LaTeXOptionsDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/LaTeXOptionsDialog.java rename to src/main/java/org/openoffice/da/comp/writer2latex/LaTeXOptionsDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/LaTeXUNOPublisher.java b/src/main/java/org/openoffice/da/comp/writer2latex/LaTeXUNOPublisher.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/LaTeXUNOPublisher.java rename to src/main/java/org/openoffice/da/comp/writer2latex/LaTeXUNOPublisher.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/LogViewerDialog.java b/src/main/java/org/openoffice/da/comp/writer2latex/LogViewerDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/LogViewerDialog.java rename to src/main/java/org/openoffice/da/comp/writer2latex/LogViewerDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/Messages.java b/src/main/java/org/openoffice/da/comp/writer2latex/Messages.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/Messages.java rename to src/main/java/org/openoffice/da/comp/writer2latex/Messages.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/TeXDetectService.java b/src/main/java/org/openoffice/da/comp/writer2latex/TeXDetectService.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/TeXDetectService.java rename to src/main/java/org/openoffice/da/comp/writer2latex/TeXDetectService.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/TeXImportFilter.java b/src/main/java/org/openoffice/da/comp/writer2latex/TeXImportFilter.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/TeXImportFilter.java rename to src/main/java/org/openoffice/da/comp/writer2latex/TeXImportFilter.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/TeXify.java b/src/main/java/org/openoffice/da/comp/writer2latex/TeXify.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/TeXify.java rename to src/main/java/org/openoffice/da/comp/writer2latex/TeXify.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/W2LExportFilter.java b/src/main/java/org/openoffice/da/comp/writer2latex/W2LExportFilter.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/W2LExportFilter.java rename to src/main/java/org/openoffice/da/comp/writer2latex/W2LExportFilter.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/W2LRegistration.java b/src/main/java/org/openoffice/da/comp/writer2latex/W2LRegistration.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/W2LRegistration.java rename to src/main/java/org/openoffice/da/comp/writer2latex/W2LRegistration.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/W2LStarMathConverter.java b/src/main/java/org/openoffice/da/comp/writer2latex/W2LStarMathConverter.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/W2LStarMathConverter.java rename to src/main/java/org/openoffice/da/comp/writer2latex/W2LStarMathConverter.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/Writer2LaTeX.java b/src/main/java/org/openoffice/da/comp/writer2latex/Writer2LaTeX.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/Writer2LaTeX.java rename to src/main/java/org/openoffice/da/comp/writer2latex/Writer2LaTeX.java diff --git a/source/java/org/openoffice/da/comp/writer2latex/messages.properties b/src/main/java/org/openoffice/da/comp/writer2latex/messages.properties similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/messages.properties rename to src/main/java/org/openoffice/da/comp/writer2latex/messages.properties diff --git a/source/java/org/openoffice/da/comp/writer2latex/messages_da.properties b/src/main/java/org/openoffice/da/comp/writer2latex/messages_da.properties similarity index 100% rename from source/java/org/openoffice/da/comp/writer2latex/messages_da.properties rename to src/main/java/org/openoffice/da/comp/writer2latex/messages_da.properties diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/BatchConverter.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/BatchConverter.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/BatchConverter.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/BatchConverter.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/BatchHandlerAdapter.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/BatchHandlerAdapter.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/BatchHandlerAdapter.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/BatchHandlerAdapter.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/ConfigurationDialog.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/ConfigurationDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/ConfigurationDialog.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/ConfigurationDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/Epub3OptionsDialog.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/Epub3OptionsDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/Epub3OptionsDialog.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/Epub3OptionsDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/EpubMetadataDialog.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/EpubMetadataDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/EpubMetadataDialog.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/EpubMetadataDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/EpubOptionsDialog.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/EpubOptionsDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/EpubOptionsDialog.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/EpubOptionsDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/ToolbarSettingsDialog.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/ToolbarSettingsDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/ToolbarSettingsDialog.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/ToolbarSettingsDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/W2XExportFilter.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/W2XExportFilter.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/W2XExportFilter.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/W2XExportFilter.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/W2XRegistration.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/W2XRegistration.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/W2XRegistration.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/W2XRegistration.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/Writer2xhtml.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/Writer2xhtml.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/Writer2xhtml.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/Writer2xhtml.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialog.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialog.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialog.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialog.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogCalc.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogCalc.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogCalc.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogCalc.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogMath.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogMath.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogMath.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlOptionsDialogMath.java diff --git a/source/java/org/openoffice/da/comp/writer2xhtml/XhtmlUNOPublisher.java b/src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlUNOPublisher.java similarity index 100% rename from source/java/org/openoffice/da/comp/writer2xhtml/XhtmlUNOPublisher.java rename to src/main/java/org/openoffice/da/comp/writer2xhtml/XhtmlUNOPublisher.java diff --git a/source/java/writer2latex/Application.java b/src/main/java/writer2latex/Application.java similarity index 100% rename from source/java/writer2latex/Application.java rename to src/main/java/writer2latex/Application.java diff --git a/source/java/writer2latex/BatchHandlerImpl.java b/src/main/java/writer2latex/BatchHandlerImpl.java similarity index 100% rename from source/java/writer2latex/BatchHandlerImpl.java rename to src/main/java/writer2latex/BatchHandlerImpl.java diff --git a/source/java/writer2latex/api/BatchConverter.java b/src/main/java/writer2latex/api/BatchConverter.java similarity index 100% rename from source/java/writer2latex/api/BatchConverter.java rename to src/main/java/writer2latex/api/BatchConverter.java diff --git a/source/java/writer2latex/api/BatchHandler.java b/src/main/java/writer2latex/api/BatchHandler.java similarity index 100% rename from source/java/writer2latex/api/BatchHandler.java rename to src/main/java/writer2latex/api/BatchHandler.java diff --git a/source/java/writer2latex/api/ComplexOption.java b/src/main/java/writer2latex/api/ComplexOption.java similarity index 100% rename from source/java/writer2latex/api/ComplexOption.java rename to src/main/java/writer2latex/api/ComplexOption.java diff --git a/source/java/writer2latex/api/Config.java b/src/main/java/writer2latex/api/Config.java similarity index 100% rename from source/java/writer2latex/api/Config.java rename to src/main/java/writer2latex/api/Config.java diff --git a/source/java/writer2latex/api/ContentEntry.java b/src/main/java/writer2latex/api/ContentEntry.java similarity index 100% rename from source/java/writer2latex/api/ContentEntry.java rename to src/main/java/writer2latex/api/ContentEntry.java diff --git a/source/java/writer2latex/api/Converter.java b/src/main/java/writer2latex/api/Converter.java similarity index 100% rename from source/java/writer2latex/api/Converter.java rename to src/main/java/writer2latex/api/Converter.java diff --git a/source/java/writer2latex/api/ConverterFactory.java b/src/main/java/writer2latex/api/ConverterFactory.java similarity index 100% rename from source/java/writer2latex/api/ConverterFactory.java rename to src/main/java/writer2latex/api/ConverterFactory.java diff --git a/source/java/writer2latex/api/ConverterResult.java b/src/main/java/writer2latex/api/ConverterResult.java similarity index 100% rename from source/java/writer2latex/api/ConverterResult.java rename to src/main/java/writer2latex/api/ConverterResult.java diff --git a/source/java/writer2latex/api/GraphicConverter.java b/src/main/java/writer2latex/api/GraphicConverter.java similarity index 100% rename from source/java/writer2latex/api/GraphicConverter.java rename to src/main/java/writer2latex/api/GraphicConverter.java diff --git a/source/java/writer2latex/api/IndexPageEntry.java b/src/main/java/writer2latex/api/IndexPageEntry.java similarity index 100% rename from source/java/writer2latex/api/IndexPageEntry.java rename to src/main/java/writer2latex/api/IndexPageEntry.java diff --git a/source/java/writer2latex/api/MIMETypes.java b/src/main/java/writer2latex/api/MIMETypes.java similarity index 100% rename from source/java/writer2latex/api/MIMETypes.java rename to src/main/java/writer2latex/api/MIMETypes.java diff --git a/source/java/writer2latex/api/MetaData.java b/src/main/java/writer2latex/api/MetaData.java similarity index 100% rename from source/java/writer2latex/api/MetaData.java rename to src/main/java/writer2latex/api/MetaData.java diff --git a/source/java/writer2latex/api/OutputFile.java b/src/main/java/writer2latex/api/OutputFile.java similarity index 100% rename from source/java/writer2latex/api/OutputFile.java rename to src/main/java/writer2latex/api/OutputFile.java diff --git a/source/java/writer2latex/api/Package.html b/src/main/java/writer2latex/api/Package.html similarity index 100% rename from source/java/writer2latex/api/Package.html rename to src/main/java/writer2latex/api/Package.html diff --git a/source/java/writer2latex/api/StarMathConverter.java b/src/main/java/writer2latex/api/StarMathConverter.java similarity index 100% rename from source/java/writer2latex/api/StarMathConverter.java rename to src/main/java/writer2latex/api/StarMathConverter.java diff --git a/source/java/writer2latex/base/BatchConverterBase.java b/src/main/java/writer2latex/base/BatchConverterBase.java similarity index 100% rename from source/java/writer2latex/base/BatchConverterBase.java rename to src/main/java/writer2latex/base/BatchConverterBase.java diff --git a/source/java/writer2latex/base/BibliographyGenerator.java b/src/main/java/writer2latex/base/BibliographyGenerator.java similarity index 100% rename from source/java/writer2latex/base/BibliographyGenerator.java rename to src/main/java/writer2latex/base/BibliographyGenerator.java diff --git a/source/java/writer2latex/base/BinaryGraphicsDocument.java b/src/main/java/writer2latex/base/BinaryGraphicsDocument.java similarity index 100% rename from source/java/writer2latex/base/BinaryGraphicsDocument.java rename to src/main/java/writer2latex/base/BinaryGraphicsDocument.java diff --git a/source/java/writer2latex/base/BooleanOption.java b/src/main/java/writer2latex/base/BooleanOption.java similarity index 100% rename from source/java/writer2latex/base/BooleanOption.java rename to src/main/java/writer2latex/base/BooleanOption.java diff --git a/source/java/writer2latex/base/ConfigBase.java b/src/main/java/writer2latex/base/ConfigBase.java similarity index 100% rename from source/java/writer2latex/base/ConfigBase.java rename to src/main/java/writer2latex/base/ConfigBase.java diff --git a/source/java/writer2latex/base/ContentEntryImpl.java b/src/main/java/writer2latex/base/ContentEntryImpl.java similarity index 100% rename from source/java/writer2latex/base/ContentEntryImpl.java rename to src/main/java/writer2latex/base/ContentEntryImpl.java diff --git a/source/java/writer2latex/base/ConverterBase.java b/src/main/java/writer2latex/base/ConverterBase.java similarity index 100% rename from source/java/writer2latex/base/ConverterBase.java rename to src/main/java/writer2latex/base/ConverterBase.java diff --git a/source/java/writer2latex/base/ConverterResultImpl.java b/src/main/java/writer2latex/base/ConverterResultImpl.java similarity index 100% rename from source/java/writer2latex/base/ConverterResultImpl.java rename to src/main/java/writer2latex/base/ConverterResultImpl.java diff --git a/source/java/writer2latex/base/DOMDocument.java b/src/main/java/writer2latex/base/DOMDocument.java similarity index 100% rename from source/java/writer2latex/base/DOMDocument.java rename to src/main/java/writer2latex/base/DOMDocument.java diff --git a/source/java/writer2latex/base/ImageConverter.java b/src/main/java/writer2latex/base/ImageConverter.java similarity index 100% rename from source/java/writer2latex/base/ImageConverter.java rename to src/main/java/writer2latex/base/ImageConverter.java diff --git a/source/java/writer2latex/base/IntegerOption.java b/src/main/java/writer2latex/base/IntegerOption.java similarity index 100% rename from source/java/writer2latex/base/IntegerOption.java rename to src/main/java/writer2latex/base/IntegerOption.java diff --git a/source/java/writer2latex/base/Option.java b/src/main/java/writer2latex/base/Option.java similarity index 100% rename from source/java/writer2latex/base/Option.java rename to src/main/java/writer2latex/base/Option.java diff --git a/source/java/writer2latex/base/Package.html b/src/main/java/writer2latex/base/Package.html similarity index 100% rename from source/java/writer2latex/base/Package.html rename to src/main/java/writer2latex/base/Package.html diff --git a/source/java/writer2latex/bibtex/BibTeXDocument.java b/src/main/java/writer2latex/bibtex/BibTeXDocument.java similarity index 100% rename from source/java/writer2latex/bibtex/BibTeXDocument.java rename to src/main/java/writer2latex/bibtex/BibTeXDocument.java diff --git a/source/java/writer2latex/bibtex/BibTeXEntryMap.java b/src/main/java/writer2latex/bibtex/BibTeXEntryMap.java similarity index 100% rename from source/java/writer2latex/bibtex/BibTeXEntryMap.java rename to src/main/java/writer2latex/bibtex/BibTeXEntryMap.java diff --git a/source/java/writer2latex/bibtex/Converter.java b/src/main/java/writer2latex/bibtex/Converter.java similarity index 100% rename from source/java/writer2latex/bibtex/Converter.java rename to src/main/java/writer2latex/bibtex/Converter.java diff --git a/source/java/writer2latex/bibtex/Package.html b/src/main/java/writer2latex/bibtex/Package.html similarity index 100% rename from source/java/writer2latex/bibtex/Package.html rename to src/main/java/writer2latex/bibtex/Package.html diff --git a/source/java/writer2latex/epub/ContainerWriter.java b/src/main/java/writer2latex/epub/ContainerWriter.java similarity index 100% rename from source/java/writer2latex/epub/ContainerWriter.java rename to src/main/java/writer2latex/epub/ContainerWriter.java diff --git a/source/java/writer2latex/epub/EPUB3Converter.java b/src/main/java/writer2latex/epub/EPUB3Converter.java similarity index 100% rename from source/java/writer2latex/epub/EPUB3Converter.java rename to src/main/java/writer2latex/epub/EPUB3Converter.java diff --git a/source/java/writer2latex/epub/EPUBConverter.java b/src/main/java/writer2latex/epub/EPUBConverter.java similarity index 100% rename from source/java/writer2latex/epub/EPUBConverter.java rename to src/main/java/writer2latex/epub/EPUBConverter.java diff --git a/source/java/writer2latex/epub/EPUBWriter.java b/src/main/java/writer2latex/epub/EPUBWriter.java similarity index 100% rename from source/java/writer2latex/epub/EPUBWriter.java rename to src/main/java/writer2latex/epub/EPUBWriter.java diff --git a/source/java/writer2latex/epub/NCXWriter.java b/src/main/java/writer2latex/epub/NCXWriter.java similarity index 100% rename from source/java/writer2latex/epub/NCXWriter.java rename to src/main/java/writer2latex/epub/NCXWriter.java diff --git a/source/java/writer2latex/epub/NavigationWriter.java b/src/main/java/writer2latex/epub/NavigationWriter.java similarity index 100% rename from source/java/writer2latex/epub/NavigationWriter.java rename to src/main/java/writer2latex/epub/NavigationWriter.java diff --git a/source/java/writer2latex/epub/OPFWriter.java b/src/main/java/writer2latex/epub/OPFWriter.java similarity index 100% rename from source/java/writer2latex/epub/OPFWriter.java rename to src/main/java/writer2latex/epub/OPFWriter.java diff --git a/source/java/writer2latex/epub/Package.html b/src/main/java/writer2latex/epub/Package.html similarity index 100% rename from source/java/writer2latex/epub/Package.html rename to src/main/java/writer2latex/epub/Package.html diff --git a/source/java/writer2latex/latex/BibConverter.java b/src/main/java/writer2latex/latex/BibConverter.java similarity index 100% rename from source/java/writer2latex/latex/BibConverter.java rename to src/main/java/writer2latex/latex/BibConverter.java diff --git a/source/java/writer2latex/latex/BlockConverter.java b/src/main/java/writer2latex/latex/BlockConverter.java similarity index 100% rename from source/java/writer2latex/latex/BlockConverter.java rename to src/main/java/writer2latex/latex/BlockConverter.java diff --git a/source/java/writer2latex/latex/CaptionConverter.java b/src/main/java/writer2latex/latex/CaptionConverter.java similarity index 100% rename from source/java/writer2latex/latex/CaptionConverter.java rename to src/main/java/writer2latex/latex/CaptionConverter.java diff --git a/source/java/writer2latex/latex/CharStyleConverter.java b/src/main/java/writer2latex/latex/CharStyleConverter.java similarity index 100% rename from source/java/writer2latex/latex/CharStyleConverter.java rename to src/main/java/writer2latex/latex/CharStyleConverter.java diff --git a/source/java/writer2latex/latex/ColorConverter.java b/src/main/java/writer2latex/latex/ColorConverter.java similarity index 100% rename from source/java/writer2latex/latex/ColorConverter.java rename to src/main/java/writer2latex/latex/ColorConverter.java diff --git a/source/java/writer2latex/latex/ContentHandlingOption.java b/src/main/java/writer2latex/latex/ContentHandlingOption.java similarity index 100% rename from source/java/writer2latex/latex/ContentHandlingOption.java rename to src/main/java/writer2latex/latex/ContentHandlingOption.java diff --git a/source/java/writer2latex/latex/ConverterHelper.java b/src/main/java/writer2latex/latex/ConverterHelper.java similarity index 100% rename from source/java/writer2latex/latex/ConverterHelper.java rename to src/main/java/writer2latex/latex/ConverterHelper.java diff --git a/source/java/writer2latex/latex/ConverterPalette.java b/src/main/java/writer2latex/latex/ConverterPalette.java similarity index 100% rename from source/java/writer2latex/latex/ConverterPalette.java rename to src/main/java/writer2latex/latex/ConverterPalette.java diff --git a/source/java/writer2latex/latex/DrawConverter.java b/src/main/java/writer2latex/latex/DrawConverter.java similarity index 100% rename from source/java/writer2latex/latex/DrawConverter.java rename to src/main/java/writer2latex/latex/DrawConverter.java diff --git a/source/java/writer2latex/latex/FieldConverter.java b/src/main/java/writer2latex/latex/FieldConverter.java similarity index 100% rename from source/java/writer2latex/latex/FieldConverter.java rename to src/main/java/writer2latex/latex/FieldConverter.java diff --git a/source/java/writer2latex/latex/HeadingConverter.java b/src/main/java/writer2latex/latex/HeadingConverter.java similarity index 100% rename from source/java/writer2latex/latex/HeadingConverter.java rename to src/main/java/writer2latex/latex/HeadingConverter.java diff --git a/source/java/writer2latex/latex/IndexConverter.java b/src/main/java/writer2latex/latex/IndexConverter.java similarity index 100% rename from source/java/writer2latex/latex/IndexConverter.java rename to src/main/java/writer2latex/latex/IndexConverter.java diff --git a/source/java/writer2latex/latex/Info.java b/src/main/java/writer2latex/latex/Info.java similarity index 100% rename from source/java/writer2latex/latex/Info.java rename to src/main/java/writer2latex/latex/Info.java diff --git a/source/java/writer2latex/latex/InlineConverter.java b/src/main/java/writer2latex/latex/InlineConverter.java similarity index 100% rename from source/java/writer2latex/latex/InlineConverter.java rename to src/main/java/writer2latex/latex/InlineConverter.java diff --git a/source/java/writer2latex/latex/LaTeXConfig.java b/src/main/java/writer2latex/latex/LaTeXConfig.java similarity index 100% rename from source/java/writer2latex/latex/LaTeXConfig.java rename to src/main/java/writer2latex/latex/LaTeXConfig.java diff --git a/source/java/writer2latex/latex/LaTeXDocument.java b/src/main/java/writer2latex/latex/LaTeXDocument.java similarity index 100% rename from source/java/writer2latex/latex/LaTeXDocument.java rename to src/main/java/writer2latex/latex/LaTeXDocument.java diff --git a/source/java/writer2latex/latex/LaTeXDocumentPortion.java b/src/main/java/writer2latex/latex/LaTeXDocumentPortion.java similarity index 100% rename from source/java/writer2latex/latex/LaTeXDocumentPortion.java rename to src/main/java/writer2latex/latex/LaTeXDocumentPortion.java diff --git a/source/java/writer2latex/latex/ListConverter.java b/src/main/java/writer2latex/latex/ListConverter.java similarity index 100% rename from source/java/writer2latex/latex/ListConverter.java rename to src/main/java/writer2latex/latex/ListConverter.java diff --git a/source/java/writer2latex/latex/MathConverter.java b/src/main/java/writer2latex/latex/MathConverter.java similarity index 100% rename from source/java/writer2latex/latex/MathConverter.java rename to src/main/java/writer2latex/latex/MathConverter.java diff --git a/source/java/writer2latex/latex/NoteConverter.java b/src/main/java/writer2latex/latex/NoteConverter.java similarity index 100% rename from source/java/writer2latex/latex/NoteConverter.java rename to src/main/java/writer2latex/latex/NoteConverter.java diff --git a/source/java/writer2latex/latex/Package.html b/src/main/java/writer2latex/latex/Package.html similarity index 100% rename from source/java/writer2latex/latex/Package.html rename to src/main/java/writer2latex/latex/Package.html diff --git a/source/java/writer2latex/latex/PageStyleConverter.java b/src/main/java/writer2latex/latex/PageStyleConverter.java similarity index 100% rename from source/java/writer2latex/latex/PageStyleConverter.java rename to src/main/java/writer2latex/latex/PageStyleConverter.java diff --git a/source/java/writer2latex/latex/ParConverter.java b/src/main/java/writer2latex/latex/ParConverter.java similarity index 100% rename from source/java/writer2latex/latex/ParConverter.java rename to src/main/java/writer2latex/latex/ParConverter.java diff --git a/source/java/writer2latex/latex/SectionConverter.java b/src/main/java/writer2latex/latex/SectionConverter.java similarity index 100% rename from source/java/writer2latex/latex/SectionConverter.java rename to src/main/java/writer2latex/latex/SectionConverter.java diff --git a/source/java/writer2latex/latex/StarMathConverter.java b/src/main/java/writer2latex/latex/StarMathConverter.java similarity index 100% rename from source/java/writer2latex/latex/StarMathConverter.java rename to src/main/java/writer2latex/latex/StarMathConverter.java diff --git a/source/java/writer2latex/latex/StyleConverter.java b/src/main/java/writer2latex/latex/StyleConverter.java similarity index 100% rename from source/java/writer2latex/latex/StyleConverter.java rename to src/main/java/writer2latex/latex/StyleConverter.java diff --git a/source/java/writer2latex/latex/TableConverter.java b/src/main/java/writer2latex/latex/TableConverter.java similarity index 100% rename from source/java/writer2latex/latex/TableConverter.java rename to src/main/java/writer2latex/latex/TableConverter.java diff --git a/source/java/writer2latex/latex/TableFormatter.java b/src/main/java/writer2latex/latex/TableFormatter.java similarity index 100% rename from source/java/writer2latex/latex/TableFormatter.java rename to src/main/java/writer2latex/latex/TableFormatter.java diff --git a/source/java/writer2latex/latex/config/clean.xml b/src/main/java/writer2latex/latex/config/clean.xml similarity index 100% rename from source/java/writer2latex/latex/config/clean.xml rename to src/main/java/writer2latex/latex/config/clean.xml diff --git a/source/java/writer2latex/latex/config/default.xml b/src/main/java/writer2latex/latex/config/default.xml similarity index 100% rename from source/java/writer2latex/latex/config/default.xml rename to src/main/java/writer2latex/latex/config/default.xml diff --git a/source/java/writer2latex/latex/config/pdfprint.xml b/src/main/java/writer2latex/latex/config/pdfprint.xml similarity index 100% rename from source/java/writer2latex/latex/config/pdfprint.xml rename to src/main/java/writer2latex/latex/config/pdfprint.xml diff --git a/source/java/writer2latex/latex/config/pdfscreen.xml b/src/main/java/writer2latex/latex/config/pdfscreen.xml similarity index 100% rename from source/java/writer2latex/latex/config/pdfscreen.xml rename to src/main/java/writer2latex/latex/config/pdfscreen.xml diff --git a/source/java/writer2latex/latex/config/ultraclean.xml b/src/main/java/writer2latex/latex/config/ultraclean.xml similarity index 100% rename from source/java/writer2latex/latex/config/ultraclean.xml rename to src/main/java/writer2latex/latex/config/ultraclean.xml diff --git a/source/java/writer2latex/latex/i18n/ClassicI18n.java b/src/main/java/writer2latex/latex/i18n/ClassicI18n.java similarity index 100% rename from source/java/writer2latex/latex/i18n/ClassicI18n.java rename to src/main/java/writer2latex/latex/i18n/ClassicI18n.java diff --git a/source/java/writer2latex/latex/i18n/I18n.java b/src/main/java/writer2latex/latex/i18n/I18n.java similarity index 100% rename from source/java/writer2latex/latex/i18n/I18n.java rename to src/main/java/writer2latex/latex/i18n/I18n.java diff --git a/source/java/writer2latex/latex/i18n/Package.html b/src/main/java/writer2latex/latex/i18n/Package.html similarity index 100% rename from source/java/writer2latex/latex/i18n/Package.html rename to src/main/java/writer2latex/latex/i18n/Package.html diff --git a/source/java/writer2latex/latex/i18n/Polyglossia.java b/src/main/java/writer2latex/latex/i18n/Polyglossia.java similarity index 100% rename from source/java/writer2latex/latex/i18n/Polyglossia.java rename to src/main/java/writer2latex/latex/i18n/Polyglossia.java diff --git a/source/java/writer2latex/latex/i18n/ReplacementTrie.java b/src/main/java/writer2latex/latex/i18n/ReplacementTrie.java similarity index 100% rename from source/java/writer2latex/latex/i18n/ReplacementTrie.java rename to src/main/java/writer2latex/latex/i18n/ReplacementTrie.java diff --git a/source/java/writer2latex/latex/i18n/ReplacementTrieNode.java b/src/main/java/writer2latex/latex/i18n/ReplacementTrieNode.java similarity index 100% rename from source/java/writer2latex/latex/i18n/ReplacementTrieNode.java rename to src/main/java/writer2latex/latex/i18n/ReplacementTrieNode.java diff --git a/source/java/writer2latex/latex/i18n/UnicodeCharacter.java b/src/main/java/writer2latex/latex/i18n/UnicodeCharacter.java similarity index 100% rename from source/java/writer2latex/latex/i18n/UnicodeCharacter.java rename to src/main/java/writer2latex/latex/i18n/UnicodeCharacter.java diff --git a/source/java/writer2latex/latex/i18n/UnicodeRow.java b/src/main/java/writer2latex/latex/i18n/UnicodeRow.java similarity index 100% rename from source/java/writer2latex/latex/i18n/UnicodeRow.java rename to src/main/java/writer2latex/latex/i18n/UnicodeRow.java diff --git a/source/java/writer2latex/latex/i18n/UnicodeStringParser.java b/src/main/java/writer2latex/latex/i18n/UnicodeStringParser.java similarity index 100% rename from source/java/writer2latex/latex/i18n/UnicodeStringParser.java rename to src/main/java/writer2latex/latex/i18n/UnicodeStringParser.java diff --git a/source/java/writer2latex/latex/i18n/UnicodeTable.java b/src/main/java/writer2latex/latex/i18n/UnicodeTable.java similarity index 100% rename from source/java/writer2latex/latex/i18n/UnicodeTable.java rename to src/main/java/writer2latex/latex/i18n/UnicodeTable.java diff --git a/source/java/writer2latex/latex/i18n/UnicodeTableHandler.java b/src/main/java/writer2latex/latex/i18n/UnicodeTableHandler.java similarity index 100% rename from source/java/writer2latex/latex/i18n/UnicodeTableHandler.java rename to src/main/java/writer2latex/latex/i18n/UnicodeTableHandler.java diff --git a/source/java/writer2latex/latex/i18n/XeTeXI18n.java b/src/main/java/writer2latex/latex/i18n/XeTeXI18n.java similarity index 100% rename from source/java/writer2latex/latex/i18n/XeTeXI18n.java rename to src/main/java/writer2latex/latex/i18n/XeTeXI18n.java diff --git a/source/java/writer2latex/latex/i18n/symbols.xml b/src/main/java/writer2latex/latex/i18n/symbols.xml similarity index 100% rename from source/java/writer2latex/latex/i18n/symbols.xml rename to src/main/java/writer2latex/latex/i18n/symbols.xml diff --git a/source/java/writer2latex/latex/util/BeforeAfter.java b/src/main/java/writer2latex/latex/util/BeforeAfter.java similarity index 100% rename from source/java/writer2latex/latex/util/BeforeAfter.java rename to src/main/java/writer2latex/latex/util/BeforeAfter.java diff --git a/source/java/writer2latex/latex/util/Context.java b/src/main/java/writer2latex/latex/util/Context.java similarity index 100% rename from source/java/writer2latex/latex/util/Context.java rename to src/main/java/writer2latex/latex/util/Context.java diff --git a/source/java/writer2latex/latex/util/HeadingMap.java b/src/main/java/writer2latex/latex/util/HeadingMap.java similarity index 100% rename from source/java/writer2latex/latex/util/HeadingMap.java rename to src/main/java/writer2latex/latex/util/HeadingMap.java diff --git a/source/java/writer2latex/latex/util/Package.html b/src/main/java/writer2latex/latex/util/Package.html similarity index 100% rename from source/java/writer2latex/latex/util/Package.html rename to src/main/java/writer2latex/latex/util/Package.html diff --git a/source/java/writer2latex/latex/util/StyleMap.java b/src/main/java/writer2latex/latex/util/StyleMap.java similarity index 100% rename from source/java/writer2latex/latex/util/StyleMap.java rename to src/main/java/writer2latex/latex/util/StyleMap.java diff --git a/source/java/writer2latex/latex/util/StyleMapItem.java b/src/main/java/writer2latex/latex/util/StyleMapItem.java similarity index 100% rename from source/java/writer2latex/latex/util/StyleMapItem.java rename to src/main/java/writer2latex/latex/util/StyleMapItem.java diff --git a/source/java/writer2latex/office/BibMark.java b/src/main/java/writer2latex/office/BibMark.java similarity index 100% rename from source/java/writer2latex/office/BibMark.java rename to src/main/java/writer2latex/office/BibMark.java diff --git a/source/java/writer2latex/office/CellView.java b/src/main/java/writer2latex/office/CellView.java similarity index 100% rename from source/java/writer2latex/office/CellView.java rename to src/main/java/writer2latex/office/CellView.java diff --git a/source/java/writer2latex/office/ControlReader.java b/src/main/java/writer2latex/office/ControlReader.java similarity index 100% rename from source/java/writer2latex/office/ControlReader.java rename to src/main/java/writer2latex/office/ControlReader.java diff --git a/source/java/writer2latex/office/EmbeddedBinaryObject.java b/src/main/java/writer2latex/office/EmbeddedBinaryObject.java similarity index 100% rename from source/java/writer2latex/office/EmbeddedBinaryObject.java rename to src/main/java/writer2latex/office/EmbeddedBinaryObject.java diff --git a/source/java/writer2latex/office/EmbeddedObject.java b/src/main/java/writer2latex/office/EmbeddedObject.java similarity index 100% rename from source/java/writer2latex/office/EmbeddedObject.java rename to src/main/java/writer2latex/office/EmbeddedObject.java diff --git a/source/java/writer2latex/office/EmbeddedXMLObject.java b/src/main/java/writer2latex/office/EmbeddedXMLObject.java similarity index 100% rename from source/java/writer2latex/office/EmbeddedXMLObject.java rename to src/main/java/writer2latex/office/EmbeddedXMLObject.java diff --git a/source/java/writer2latex/office/FontDeclaration.java b/src/main/java/writer2latex/office/FontDeclaration.java similarity index 100% rename from source/java/writer2latex/office/FontDeclaration.java rename to src/main/java/writer2latex/office/FontDeclaration.java diff --git a/source/java/writer2latex/office/FormReader.java b/src/main/java/writer2latex/office/FormReader.java similarity index 100% rename from source/java/writer2latex/office/FormReader.java rename to src/main/java/writer2latex/office/FormReader.java diff --git a/source/java/writer2latex/office/FormsReader.java b/src/main/java/writer2latex/office/FormsReader.java similarity index 100% rename from source/java/writer2latex/office/FormsReader.java rename to src/main/java/writer2latex/office/FormsReader.java diff --git a/source/java/writer2latex/office/IndexMark.java b/src/main/java/writer2latex/office/IndexMark.java similarity index 100% rename from source/java/writer2latex/office/IndexMark.java rename to src/main/java/writer2latex/office/IndexMark.java diff --git a/source/java/writer2latex/office/ListCounter.java b/src/main/java/writer2latex/office/ListCounter.java similarity index 100% rename from source/java/writer2latex/office/ListCounter.java rename to src/main/java/writer2latex/office/ListCounter.java diff --git a/source/java/writer2latex/office/ListStyle.java b/src/main/java/writer2latex/office/ListStyle.java similarity index 100% rename from source/java/writer2latex/office/ListStyle.java rename to src/main/java/writer2latex/office/ListStyle.java diff --git a/source/java/writer2latex/office/LoftReader.java b/src/main/java/writer2latex/office/LoftReader.java similarity index 100% rename from source/java/writer2latex/office/LoftReader.java rename to src/main/java/writer2latex/office/LoftReader.java diff --git a/source/java/writer2latex/office/MIMETypes.java b/src/main/java/writer2latex/office/MIMETypes.java similarity index 100% rename from source/java/writer2latex/office/MIMETypes.java rename to src/main/java/writer2latex/office/MIMETypes.java diff --git a/source/java/writer2latex/office/MasterPage.java b/src/main/java/writer2latex/office/MasterPage.java similarity index 100% rename from source/java/writer2latex/office/MasterPage.java rename to src/main/java/writer2latex/office/MasterPage.java diff --git a/source/java/writer2latex/office/MetaData.java b/src/main/java/writer2latex/office/MetaData.java similarity index 100% rename from source/java/writer2latex/office/MetaData.java rename to src/main/java/writer2latex/office/MetaData.java diff --git a/source/java/writer2latex/office/OfficeDocument.java b/src/main/java/writer2latex/office/OfficeDocument.java similarity index 100% rename from source/java/writer2latex/office/OfficeDocument.java rename to src/main/java/writer2latex/office/OfficeDocument.java diff --git a/source/java/writer2latex/office/OfficeReader.java b/src/main/java/writer2latex/office/OfficeReader.java similarity index 100% rename from source/java/writer2latex/office/OfficeReader.java rename to src/main/java/writer2latex/office/OfficeReader.java diff --git a/source/java/writer2latex/office/OfficeStyle.java b/src/main/java/writer2latex/office/OfficeStyle.java similarity index 100% rename from source/java/writer2latex/office/OfficeStyle.java rename to src/main/java/writer2latex/office/OfficeStyle.java diff --git a/source/java/writer2latex/office/OfficeStyleFamily.java b/src/main/java/writer2latex/office/OfficeStyleFamily.java similarity index 100% rename from source/java/writer2latex/office/OfficeStyleFamily.java rename to src/main/java/writer2latex/office/OfficeStyleFamily.java diff --git a/source/java/writer2latex/office/Package.html b/src/main/java/writer2latex/office/Package.html similarity index 100% rename from source/java/writer2latex/office/Package.html rename to src/main/java/writer2latex/office/Package.html diff --git a/source/java/writer2latex/office/PageLayout.java b/src/main/java/writer2latex/office/PageLayout.java similarity index 100% rename from source/java/writer2latex/office/PageLayout.java rename to src/main/java/writer2latex/office/PageLayout.java diff --git a/source/java/writer2latex/office/PropertySet.java b/src/main/java/writer2latex/office/PropertySet.java similarity index 100% rename from source/java/writer2latex/office/PropertySet.java rename to src/main/java/writer2latex/office/PropertySet.java diff --git a/source/java/writer2latex/office/SVMReader.java b/src/main/java/writer2latex/office/SVMReader.java similarity index 100% rename from source/java/writer2latex/office/SVMReader.java rename to src/main/java/writer2latex/office/SVMReader.java diff --git a/source/java/writer2latex/office/StyleWithProperties.java b/src/main/java/writer2latex/office/StyleWithProperties.java similarity index 100% rename from source/java/writer2latex/office/StyleWithProperties.java rename to src/main/java/writer2latex/office/StyleWithProperties.java diff --git a/source/java/writer2latex/office/TableLine.java b/src/main/java/writer2latex/office/TableLine.java similarity index 100% rename from source/java/writer2latex/office/TableLine.java rename to src/main/java/writer2latex/office/TableLine.java diff --git a/source/java/writer2latex/office/TableRange.java b/src/main/java/writer2latex/office/TableRange.java similarity index 100% rename from source/java/writer2latex/office/TableRange.java rename to src/main/java/writer2latex/office/TableRange.java diff --git a/source/java/writer2latex/office/TableRangeParser.java b/src/main/java/writer2latex/office/TableRangeParser.java similarity index 100% rename from source/java/writer2latex/office/TableRangeParser.java rename to src/main/java/writer2latex/office/TableRangeParser.java diff --git a/source/java/writer2latex/office/TableReader.java b/src/main/java/writer2latex/office/TableReader.java similarity index 100% rename from source/java/writer2latex/office/TableReader.java rename to src/main/java/writer2latex/office/TableReader.java diff --git a/source/java/writer2latex/office/TableView.java b/src/main/java/writer2latex/office/TableView.java similarity index 100% rename from source/java/writer2latex/office/TableView.java rename to src/main/java/writer2latex/office/TableView.java diff --git a/source/java/writer2latex/office/TocReader.java b/src/main/java/writer2latex/office/TocReader.java similarity index 100% rename from source/java/writer2latex/office/TocReader.java rename to src/main/java/writer2latex/office/TocReader.java diff --git a/source/java/writer2latex/office/XMLString.java b/src/main/java/writer2latex/office/XMLString.java similarity index 100% rename from source/java/writer2latex/office/XMLString.java rename to src/main/java/writer2latex/office/XMLString.java diff --git a/source/java/writer2latex/util/CSVList.java b/src/main/java/writer2latex/util/CSVList.java similarity index 100% rename from source/java/writer2latex/util/CSVList.java rename to src/main/java/writer2latex/util/CSVList.java diff --git a/source/java/writer2latex/util/Calc.java b/src/main/java/writer2latex/util/Calc.java similarity index 100% rename from source/java/writer2latex/util/Calc.java rename to src/main/java/writer2latex/util/Calc.java diff --git a/source/java/writer2latex/util/ExportNameCollection.java b/src/main/java/writer2latex/util/ExportNameCollection.java similarity index 100% rename from source/java/writer2latex/util/ExportNameCollection.java rename to src/main/java/writer2latex/util/ExportNameCollection.java diff --git a/source/java/writer2latex/util/Misc.java b/src/main/java/writer2latex/util/Misc.java similarity index 100% rename from source/java/writer2latex/util/Misc.java rename to src/main/java/writer2latex/util/Misc.java diff --git a/source/java/writer2latex/util/Package.html b/src/main/java/writer2latex/util/Package.html similarity index 100% rename from source/java/writer2latex/util/Package.html rename to src/main/java/writer2latex/util/Package.html diff --git a/source/java/writer2latex/util/SimpleDOMBuilder.java b/src/main/java/writer2latex/util/SimpleDOMBuilder.java similarity index 100% rename from source/java/writer2latex/util/SimpleDOMBuilder.java rename to src/main/java/writer2latex/util/SimpleDOMBuilder.java diff --git a/source/java/writer2latex/util/SimpleInputBuffer.java b/src/main/java/writer2latex/util/SimpleInputBuffer.java similarity index 100% rename from source/java/writer2latex/util/SimpleInputBuffer.java rename to src/main/java/writer2latex/util/SimpleInputBuffer.java diff --git a/source/java/writer2latex/util/SimpleXMLParser.java b/src/main/java/writer2latex/util/SimpleXMLParser.java similarity index 100% rename from source/java/writer2latex/util/SimpleXMLParser.java rename to src/main/java/writer2latex/util/SimpleXMLParser.java diff --git a/source/java/writer2latex/util/SimpleZipReader.java b/src/main/java/writer2latex/util/SimpleZipReader.java similarity index 100% rename from source/java/writer2latex/util/SimpleZipReader.java rename to src/main/java/writer2latex/util/SimpleZipReader.java diff --git a/source/java/writer2latex/util/StringComparator.java b/src/main/java/writer2latex/util/StringComparator.java similarity index 100% rename from source/java/writer2latex/util/StringComparator.java rename to src/main/java/writer2latex/util/StringComparator.java diff --git a/source/java/writer2latex/xhtml/AlphabeticalIndexConverter.java b/src/main/java/writer2latex/xhtml/AlphabeticalIndexConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/AlphabeticalIndexConverter.java rename to src/main/java/writer2latex/xhtml/AlphabeticalIndexConverter.java diff --git a/source/java/writer2latex/xhtml/BatchConverterImpl.java b/src/main/java/writer2latex/xhtml/BatchConverterImpl.java similarity index 100% rename from source/java/writer2latex/xhtml/BatchConverterImpl.java rename to src/main/java/writer2latex/xhtml/BatchConverterImpl.java diff --git a/source/java/writer2latex/xhtml/BibliographyConverter.java b/src/main/java/writer2latex/xhtml/BibliographyConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/BibliographyConverter.java rename to src/main/java/writer2latex/xhtml/BibliographyConverter.java diff --git a/source/java/writer2latex/xhtml/CellStyleConverter.java b/src/main/java/writer2latex/xhtml/CellStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/CellStyleConverter.java rename to src/main/java/writer2latex/xhtml/CellStyleConverter.java diff --git a/source/java/writer2latex/xhtml/Converter.java b/src/main/java/writer2latex/xhtml/Converter.java similarity index 100% rename from source/java/writer2latex/xhtml/Converter.java rename to src/main/java/writer2latex/xhtml/Converter.java diff --git a/source/java/writer2latex/xhtml/ConverterHelper.java b/src/main/java/writer2latex/xhtml/ConverterHelper.java similarity index 100% rename from source/java/writer2latex/xhtml/ConverterHelper.java rename to src/main/java/writer2latex/xhtml/ConverterHelper.java diff --git a/source/java/writer2latex/xhtml/CssDocument.java b/src/main/java/writer2latex/xhtml/CssDocument.java similarity index 100% rename from source/java/writer2latex/xhtml/CssDocument.java rename to src/main/java/writer2latex/xhtml/CssDocument.java diff --git a/source/java/writer2latex/xhtml/Debug.java b/src/main/java/writer2latex/xhtml/Debug.java similarity index 100% rename from source/java/writer2latex/xhtml/Debug.java rename to src/main/java/writer2latex/xhtml/Debug.java diff --git a/source/java/writer2latex/xhtml/DrawConverter.java b/src/main/java/writer2latex/xhtml/DrawConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/DrawConverter.java rename to src/main/java/writer2latex/xhtml/DrawConverter.java diff --git a/source/java/writer2latex/xhtml/EndnoteConverter.java b/src/main/java/writer2latex/xhtml/EndnoteConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/EndnoteConverter.java rename to src/main/java/writer2latex/xhtml/EndnoteConverter.java diff --git a/source/java/writer2latex/xhtml/FootnoteConverter.java b/src/main/java/writer2latex/xhtml/FootnoteConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/FootnoteConverter.java rename to src/main/java/writer2latex/xhtml/FootnoteConverter.java diff --git a/source/java/writer2latex/xhtml/FrameStyleConverter.java b/src/main/java/writer2latex/xhtml/FrameStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/FrameStyleConverter.java rename to src/main/java/writer2latex/xhtml/FrameStyleConverter.java diff --git a/source/java/writer2latex/xhtml/GreenstoneTags.java b/src/main/java/writer2latex/xhtml/GreenstoneTags.java similarity index 100% rename from source/java/writer2latex/xhtml/GreenstoneTags.java rename to src/main/java/writer2latex/xhtml/GreenstoneTags.java diff --git a/source/java/writer2latex/xhtml/HeadingStyleConverter.java b/src/main/java/writer2latex/xhtml/HeadingStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/HeadingStyleConverter.java rename to src/main/java/writer2latex/xhtml/HeadingStyleConverter.java diff --git a/source/java/writer2latex/xhtml/Html5Converter.java b/src/main/java/writer2latex/xhtml/Html5Converter.java similarity index 100% rename from source/java/writer2latex/xhtml/Html5Converter.java rename to src/main/java/writer2latex/xhtml/Html5Converter.java diff --git a/source/java/writer2latex/xhtml/IndexConverterHelper.java b/src/main/java/writer2latex/xhtml/IndexConverterHelper.java similarity index 100% rename from source/java/writer2latex/xhtml/IndexConverterHelper.java rename to src/main/java/writer2latex/xhtml/IndexConverterHelper.java diff --git a/source/java/writer2latex/xhtml/LOFConverter.java b/src/main/java/writer2latex/xhtml/LOFConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/LOFConverter.java rename to src/main/java/writer2latex/xhtml/LOFConverter.java diff --git a/source/java/writer2latex/xhtml/LOTConverter.java b/src/main/java/writer2latex/xhtml/LOTConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/LOTConverter.java rename to src/main/java/writer2latex/xhtml/LOTConverter.java diff --git a/source/java/writer2latex/xhtml/LinkDescriptor.java b/src/main/java/writer2latex/xhtml/LinkDescriptor.java similarity index 100% rename from source/java/writer2latex/xhtml/LinkDescriptor.java rename to src/main/java/writer2latex/xhtml/LinkDescriptor.java diff --git a/source/java/writer2latex/xhtml/ListStyleConverter.java b/src/main/java/writer2latex/xhtml/ListStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/ListStyleConverter.java rename to src/main/java/writer2latex/xhtml/ListStyleConverter.java diff --git a/source/java/writer2latex/xhtml/MathConverter.java b/src/main/java/writer2latex/xhtml/MathConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/MathConverter.java rename to src/main/java/writer2latex/xhtml/MathConverter.java diff --git a/src/main/java/writer2latex/xhtml/NewFile.xml b/src/main/java/writer2latex/xhtml/NewFile.xml new file mode 100644 index 0000000..b994f53 --- /dev/null +++ b/src/main/java/writer2latex/xhtml/NewFile.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/java/writer2latex/xhtml/NoteConverter.java b/src/main/java/writer2latex/xhtml/NoteConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/NoteConverter.java rename to src/main/java/writer2latex/xhtml/NoteConverter.java diff --git a/source/java/writer2latex/xhtml/Package.html b/src/main/java/writer2latex/xhtml/Package.html similarity index 100% rename from source/java/writer2latex/xhtml/Package.html rename to src/main/java/writer2latex/xhtml/Package.html diff --git a/source/java/writer2latex/xhtml/PageSplitter.java b/src/main/java/writer2latex/xhtml/PageSplitter.java similarity index 100% rename from source/java/writer2latex/xhtml/PageSplitter.java rename to src/main/java/writer2latex/xhtml/PageSplitter.java diff --git a/source/java/writer2latex/xhtml/PageStyleConverter.java b/src/main/java/writer2latex/xhtml/PageStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/PageStyleConverter.java rename to src/main/java/writer2latex/xhtml/PageStyleConverter.java diff --git a/source/java/writer2latex/xhtml/ParStyleConverter.java b/src/main/java/writer2latex/xhtml/ParStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/ParStyleConverter.java rename to src/main/java/writer2latex/xhtml/ParStyleConverter.java diff --git a/source/java/writer2latex/xhtml/PresentationStyleConverter.java b/src/main/java/writer2latex/xhtml/PresentationStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/PresentationStyleConverter.java rename to src/main/java/writer2latex/xhtml/PresentationStyleConverter.java diff --git a/source/java/writer2latex/xhtml/ResourceDocument.java b/src/main/java/writer2latex/xhtml/ResourceDocument.java similarity index 100% rename from source/java/writer2latex/xhtml/ResourceDocument.java rename to src/main/java/writer2latex/xhtml/ResourceDocument.java diff --git a/source/java/writer2latex/xhtml/RowStyleConverter.java b/src/main/java/writer2latex/xhtml/RowStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/RowStyleConverter.java rename to src/main/java/writer2latex/xhtml/RowStyleConverter.java diff --git a/source/java/writer2latex/xhtml/SectionStyleConverter.java b/src/main/java/writer2latex/xhtml/SectionStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/SectionStyleConverter.java rename to src/main/java/writer2latex/xhtml/SectionStyleConverter.java diff --git a/source/java/writer2latex/xhtml/StyleConverter.java b/src/main/java/writer2latex/xhtml/StyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/StyleConverter.java rename to src/main/java/writer2latex/xhtml/StyleConverter.java diff --git a/source/java/writer2latex/xhtml/StyleConverterHelper.java b/src/main/java/writer2latex/xhtml/StyleConverterHelper.java similarity index 100% rename from source/java/writer2latex/xhtml/StyleConverterHelper.java rename to src/main/java/writer2latex/xhtml/StyleConverterHelper.java diff --git a/source/java/writer2latex/xhtml/StyleInfo.java b/src/main/java/writer2latex/xhtml/StyleInfo.java similarity index 100% rename from source/java/writer2latex/xhtml/StyleInfo.java rename to src/main/java/writer2latex/xhtml/StyleInfo.java diff --git a/source/java/writer2latex/xhtml/StyleWithPropertiesConverterHelper.java b/src/main/java/writer2latex/xhtml/StyleWithPropertiesConverterHelper.java similarity index 100% rename from source/java/writer2latex/xhtml/StyleWithPropertiesConverterHelper.java rename to src/main/java/writer2latex/xhtml/StyleWithPropertiesConverterHelper.java diff --git a/source/java/writer2latex/xhtml/TOCConverter.java b/src/main/java/writer2latex/xhtml/TOCConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/TOCConverter.java rename to src/main/java/writer2latex/xhtml/TOCConverter.java diff --git a/source/java/writer2latex/xhtml/TableConverter.java b/src/main/java/writer2latex/xhtml/TableConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/TableConverter.java rename to src/main/java/writer2latex/xhtml/TableConverter.java diff --git a/source/java/writer2latex/xhtml/TableStyleConverter.java b/src/main/java/writer2latex/xhtml/TableStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/TableStyleConverter.java rename to src/main/java/writer2latex/xhtml/TableStyleConverter.java diff --git a/source/java/writer2latex/xhtml/TextConverter.java b/src/main/java/writer2latex/xhtml/TextConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/TextConverter.java rename to src/main/java/writer2latex/xhtml/TextConverter.java diff --git a/source/java/writer2latex/xhtml/TextStyleConverter.java b/src/main/java/writer2latex/xhtml/TextStyleConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/TextStyleConverter.java rename to src/main/java/writer2latex/xhtml/TextStyleConverter.java diff --git a/source/java/writer2latex/xhtml/Xhtml10Converter.java b/src/main/java/writer2latex/xhtml/Xhtml10Converter.java similarity index 100% rename from source/java/writer2latex/xhtml/Xhtml10Converter.java rename to src/main/java/writer2latex/xhtml/Xhtml10Converter.java diff --git a/source/java/writer2latex/xhtml/Xhtml11Converter.java b/src/main/java/writer2latex/xhtml/Xhtml11Converter.java similarity index 100% rename from source/java/writer2latex/xhtml/Xhtml11Converter.java rename to src/main/java/writer2latex/xhtml/Xhtml11Converter.java diff --git a/source/java/writer2latex/xhtml/XhtmlBibliographyGenerator.java b/src/main/java/writer2latex/xhtml/XhtmlBibliographyGenerator.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlBibliographyGenerator.java rename to src/main/java/writer2latex/xhtml/XhtmlBibliographyGenerator.java diff --git a/source/java/writer2latex/xhtml/XhtmlConfig.java b/src/main/java/writer2latex/xhtml/XhtmlConfig.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlConfig.java rename to src/main/java/writer2latex/xhtml/XhtmlConfig.java diff --git a/src/main/java/writer2latex/xhtml/XhtmlConfig.java.orig b/src/main/java/writer2latex/xhtml/XhtmlConfig.java.orig new file mode 100644 index 0000000..61f6f5b --- /dev/null +++ b/src/main/java/writer2latex/xhtml/XhtmlConfig.java.orig @@ -0,0 +1,483 @@ +/************************************************************************ + * + * XhtmlConfig.java + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * Copyright: 2002-2015 by Henrik Just + * + * All Rights Reserved. + * + * Version 1.6 (2015-06-15) + * + */ + +package writer2latex.xhtml; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +import writer2latex.api.ComplexOption; +import writer2latex.base.BooleanOption; +import writer2latex.base.IntegerOption; +import writer2latex.base.Option; +import writer2latex.util.Misc; + +public class XhtmlConfig extends writer2latex.base.ConfigBase { + // Implement configuration methods +<<<<<<< HEAD + protected int getOptionCount() { return 61; } +======= + protected int getOptionCount() { return 60; } +>>>>>>> Added Footer and Header html convertation. Added comments to use html as input for Greenstone project. + protected String getDefaultConfigPath() { return "/writer2latex/xhtml/config/"; } + + // Override setOption: To be backwards compatible, we must accept options + // with the prefix xhtml_ + public void setOption(String sName,String sValue) { + if (sName.startsWith("xhtml_")) { sName = sName.substring(6); } + // this option has been renamed: + if (sName.equals("keep_image_size")) { sName = "original_image_size"; } + // and later renamed and extended: + if (sName.equals("original_image_size")) { + sName = "image_size"; + if (sValue.equals("true")) { sValue = "none"; } + else { sValue="absolute"; } + } + // this option has been renamed and extended: + if (sName.equals("use_list_hack")) { + sName = "list_formatting"; + if (sValue.equals("true")) { sValue = "css1_hack"; } + else { sValue = "css1"; } + } + // this option has been renamed and extended + if (sName.equals("ignore_table_dimensions")) { + sName = "table_size"; + if (sValue.equals("true")) { sValue="none"; } + else { sValue="absolute"; } + } + super.setOption(sName, sValue); + } + + // Formatting + public static final int IGNORE_ALL = 0; + public static final int IGNORE_STYLES = 1; + public static final int IGNORE_HARD = 2; + public static final int CONVERT_ALL = 3; + + // List formatting + public static final int CSS1 = 0; + public static final int CSS1_HACK = 1; + public static final int HARD_LABELS = 2; + + // Image and table dimensions + public static final int NONE = 0; + public static final int ABSOLUTE = 1; + public static final int RELATIVE = 2; + + // Formulas (for XHTML 1.0 strict) + public static final int STARMATH = 0; + public static final int LATEX = 1; + public static final int IMAGE_STARMATH = 2; + public static final int IMAGE_LATEX = 3; + + // Page breaks + // public static final int NONE = 0; + public static final int STYLES = 1; + public static final int EXPLICIT = 2; + public static final int ALL = 3; + + // Options + private static final int IGNORE_HARD_LINE_BREAKS = 0; + private static final int IGNORE_EMPTY_PARAGRAPHS = 1; + private static final int IGNORE_DOUBLE_SPACES = 2; + private static final int IMAGE_SIZE = 3; + private static final int NO_DOCTYPE = 4; + private static final int ADD_BOM = 5; + private static final int ENCODING = 6; + private static final int USE_NAMED_ENTITIES = 7; + private static final int HEXADECIMAL_ENTITIES = 8; + private static final int PRETTY_PRINT = 9; + private static final int MULTILINGUAL = 10; + private static final int TEMPLATE_IDS = 11; + private static final int SEPARATE_STYLESHEET = 12; + private static final int CUSTOM_STYLESHEET = 13; + private static final int FORMATTING = 14; + private static final int FRAME_FORMATTING = 15; + private static final int SECTION_FORMATTING = 16; + private static final int TABLE_FORMATTING = 17; + private static final int TABLE_SIZE = 18; + private static final int LIST_FORMATTING = 19; + private static final int MAX_WIDTH = 20; + private static final int USE_DEFAULT_FONT = 21; + private static final int DEFAULT_FONT_NAME = 22; + private static final int USE_DUBLIN_CORE = 23; + private static final int NOTES = 24; + private static final int DISPLAY_HIDDEN_TEXT = 25; + private static final int CONVERT_TO_PX = 26; + private static final int SCALING = 27; + private static final int COLUMN_SCALING = 28; + private static final int RELATIVE_FONT_SIZE = 29; + private static final int FONT_SCALING = 30; + private static final int FLOAT_OBJECTS = 31; + private static final int TABSTOP_STYLE = 32; + private static final int FORMULAS = 33; + private static final int ENDNOTES_HEADING = 34; + private static final int FOOTNOTES_HEADING = 35; + private static final int EXTERNAL_TOC_DEPTH = 36; + private static final int INCLUDE_TOC = 37; + private static final int INCLUDE_NCX = 38; + private static final int SPLIT_LEVEL = 39; + private static final int REPEAT_LEVELS = 40; + private static final int PAGE_BREAK_SPLIT = 41; + private static final int SPLIT_AFTER = 42; + private static final int IMAGE_SPLIT = 43; + private static final int COVER_IMAGE = 44; + private static final int EMBED_SVG = 45; + private static final int EMBED_IMG = 46; + private static final int USE_MATHJAX = 47; + private static final int CALC_SPLIT = 48; + private static final int DISPLAY_HIDDEN_SHEETS = 49; + private static final int DISPLAY_HIDDEN_ROWS_COLS = 50; + private static final int DISPLAY_FILTERED_ROWS_COLS = 51; + private static final int APPLY_PRINT_RANGES = 52; + private static final int USE_TITLE_AS_HEADING = 53; + private static final int USE_SHEET_NAMES_AS_HEADINGS = 54; + private static final int SAVE_IMAGES_IN_SUBDIR = 55; + private static final int UPLINK = 56; + private static final int DIRECTORY_ICON = 57; + private static final int DOCUMENT_ICON = 58; +<<<<<<< HEAD + private static final int HEADING_TAGS = 59; + private static final int PAGE_TAGS = 60; +======= + private static final int GREENSTONE_TAGS = 59; +>>>>>>> Added Footer and Header html convertation. Added comments to use html as input for Greenstone project. + + protected ComplexOption xheading = addComplexOption("heading-map"); + protected ComplexOption xpar = addComplexOption("paragraph-map"); + protected ComplexOption xtext = addComplexOption("text-map"); + protected ComplexOption xframe = addComplexOption("frame-map"); + protected ComplexOption xlist = addComplexOption("list-map"); + protected ComplexOption xattr = addComplexOption("text-attribute-map"); + + public XhtmlConfig() { + super(); + // create options with default values + options[IGNORE_HARD_LINE_BREAKS] = new BooleanOption("ignore_hard_line_breaks","false"); + options[IGNORE_EMPTY_PARAGRAPHS] = new BooleanOption("ignore_empty_paragraphs","false"); + options[IGNORE_DOUBLE_SPACES] = new BooleanOption("ignore_double_spaces","false"); + options[IMAGE_SIZE] = new IntegerOption("image_size","auto") { + @Override public void setString(String sValue) { + super.setString(sValue); + if ("relative".equals(sValue)) { nValue = RELATIVE; } + else if ("none".equals(sValue)) { nValue = NONE; } + else if ("original_image_size".equals(sValue)) { nValue = NONE; } + else { nValue = ABSOLUTE; } + } + }; + options[NO_DOCTYPE] = new BooleanOption("no_doctype","false"); + options[ADD_BOM] = new BooleanOption("add_bom","false"); + options[ENCODING] = new Option("encoding","UTF-8"); + options[USE_NAMED_ENTITIES] = new BooleanOption("use_named_entities","false"); + options[HEXADECIMAL_ENTITIES] = new BooleanOption("hexadecimal_entities","true"); + options[PRETTY_PRINT] = new BooleanOption("pretty_print","true"); + options[MULTILINGUAL] = new BooleanOption("multilingual","true"); + options[TEMPLATE_IDS] = new Option("template_ids",""); + options[SEPARATE_STYLESHEET] = new BooleanOption("separate_stylesheet","false"); + options[CUSTOM_STYLESHEET] = new Option("custom_stylesheet",""); + options[FORMATTING] = new XhtmlFormatOption("formatting","convert_all"); + options[FRAME_FORMATTING] = new XhtmlFormatOption("frame_formatting","convert_all"); + options[SECTION_FORMATTING] = new XhtmlFormatOption("section_formatting","convert_all"); + options[TABLE_FORMATTING] = new XhtmlFormatOption("table_formatting","convert_all"); + options[TABLE_SIZE] = new IntegerOption("table_size","auto") { + @Override public void setString(String sValue) { + super.setString(sValue); + if ("relative".equals(sValue)) { nValue = RELATIVE; } + else if ("none".equals(sValue)) { nValue = NONE; } + else { nValue = ABSOLUTE; } + } + }; + options[LIST_FORMATTING] = new IntegerOption("list_formatting","css1_hack") { + @Override public void setString(String sValue) { + super.setString(sValue); + if ("css1_hack".equals(sValue)) { nValue = CSS1_HACK; } + else if ("hard_labels".equals(sValue)) { nValue = HARD_LABELS; } + else { nValue = CSS1; } + } + }; + options[MAX_WIDTH] = new Option("max_width","800px"); + options[USE_DEFAULT_FONT] = new BooleanOption("use_default_font","false"); + options[DEFAULT_FONT_NAME] = new BooleanOption("default_font_name",""); + options[USE_DUBLIN_CORE] = new BooleanOption("use_dublin_core","true"); + options[NOTES] = new BooleanOption("notes","true"); + options[DISPLAY_HIDDEN_TEXT] = new BooleanOption("display_hidden_text", "false"); + options[CONVERT_TO_PX] = new BooleanOption("convert_to_px","true"); + options[SCALING] = new Option("scaling","100%"); + options[COLUMN_SCALING] = new Option("column_scaling","100%"); + options[RELATIVE_FONT_SIZE] = new BooleanOption("relative_font_size","false"); + options[FONT_SCALING] = new Option("font_scaling","100%"); + options[FLOAT_OBJECTS] = new BooleanOption("float_objects","true"); + options[TABSTOP_STYLE] = new Option("tabstop_style",""); + options[ENDNOTES_HEADING] = new Option("endnotes_heading",""); + options[FOOTNOTES_HEADING] = new Option("footnotes_heading",""); + options[FORMULAS] = new IntegerOption("formulas","image+starmath") { + @Override public void setString(String sValue) { + super.setString(sValue); + if ("latex".equals(sValue)) { nValue = LATEX; } + else if ("image+latex".equals(sValue)) { nValue = IMAGE_LATEX; } + else if ("starmath".equals(sValue)) { nValue = STARMATH; } + else { nValue = IMAGE_STARMATH; } + } + }; + options[EXTERNAL_TOC_DEPTH] = new IntegerOption("external_toc_depth","auto") { + @Override public void setString(String sValue) { + super.setString(sValue); + if ("auto".equals(sValue)) { + nValue = 0; + } + else { + nValue = Misc.getPosInteger(sValue,1); + } + } + }; + options[INCLUDE_TOC] = new BooleanOption("include_toc","false"); + options[INCLUDE_NCX] = new BooleanOption("include_ncx","true"); + options[SPLIT_LEVEL] = new IntegerOption("split_level","0") { + @Override public void setString(String sValue) { + super.setString(sValue); + nValue = Misc.getPosInteger(sValue,0); + } + }; + options[REPEAT_LEVELS] = new IntegerOption("repeat_levels","5") { + @Override public void setString(String sValue) { + super.setString(sValue); + nValue = Misc.getPosInteger(sValue,0); + } + }; + options[PAGE_BREAK_SPLIT] = new IntegerOption("page_break_split", "none") { + @Override public void setString(String sValue) { + super.setString(sValue); + if ("styles".equals(sValue)) { nValue = STYLES; } + else if ("explicit".equals(sValue)) { nValue = EXPLICIT; } + else if ("all".equals(sValue)) { nValue = ALL; } + else { nValue = NONE; } + } + }; + options[SPLIT_AFTER] = new IntegerOption("split_after","0") { + @Override public void setString(String sValue) { + super.setString(sValue); + nValue = Misc.getPosInteger(sValue, 0); + } + }; + options[IMAGE_SPLIT] = new Option("image_split","none"); + options[COVER_IMAGE] = new BooleanOption("cover_image","false"); + options[EMBED_SVG] = new BooleanOption("embed_svg","false"); + options[EMBED_IMG] = new BooleanOption("embed_img","false"); + options[USE_MATHJAX] = new BooleanOption("use_mathjax","false"); + options[CALC_SPLIT] = new BooleanOption("calc_split","false"); + options[DISPLAY_HIDDEN_SHEETS] = new BooleanOption("display_hidden_sheets", "false"); + options[DISPLAY_HIDDEN_ROWS_COLS] = new BooleanOption("display_hidden_rows_cols","false"); + options[DISPLAY_FILTERED_ROWS_COLS] = new BooleanOption("display_filtered_rows_cols","false"); + options[APPLY_PRINT_RANGES] = new BooleanOption("apply_print_ranges","false"); + options[USE_TITLE_AS_HEADING] = new BooleanOption("use_title_as_heading","true"); + options[USE_SHEET_NAMES_AS_HEADINGS] = new BooleanOption("use_sheet_names_as_headings","true"); + options[SAVE_IMAGES_IN_SUBDIR] = new BooleanOption("save_images_in_subdir","false"); + options[UPLINK] = new Option("uplink",""); + options[DIRECTORY_ICON] = new Option("directory_icon",""); + options[DOCUMENT_ICON] = new Option("document_icon",""); +<<<<<<< HEAD + options[HEADING_TAGS] = new Option("heading_tags","sections"); + options[PAGE_TAGS] = new Option("page_tags","div"); +======= + options[GREENSTONE_TAGS] = new Option("greenstone_tags","headings-pages"); +>>>>>>> Added Footer and Header html convertation. Added comments to use html as input for Greenstone project. + } + + protected void readInner(Element elm) { + if (elm.getTagName().equals("xhtml-style-map")) { + String sName = elm.getAttribute("name"); + String sFamily = elm.getAttribute("family"); + if (sFamily.length()==0) { // try old name + sFamily = elm.getAttribute("class"); + } + Map attr = new HashMap(); + + String sElement = elm.getAttribute("element"); + String sCss = elm.getAttribute("css"); + if (sCss.length()==0) { sCss="(none)"; } + attr.put("element", sElement); + attr.put("css", sCss); + + String sBlockElement = elm.getAttribute("block-element"); + String sBlockCss = elm.getAttribute("block-css"); + if (sBlockCss.length()==0) { sBlockCss="(none)"; } + + String sBefore = elm.getAttribute("before"); + String sAfter = elm.getAttribute("after"); + + if ("heading".equals(sFamily)) { + attr.put("block-element", sBlockElement); + attr.put("block-css", sBlockCss); + attr.put("before", sBefore); + attr.put("after", sAfter); + xheading.put(sName,attr); + } + if ("paragraph".equals(sFamily)) { + attr.put("block-element", sBlockElement); + attr.put("block-css", sBlockCss); + attr.put("before", sBefore); + attr.put("after", sAfter); + xpar.put(sName,attr); + } + else if ("text".equals(sFamily)) { + attr.put("before", sBefore); + attr.put("after", sAfter); + xtext.put(sName,attr); + } + else if ("frame".equals(sFamily)) { + xframe.put(sName,attr); + } + else if ("list".equals(sFamily)) { + xlist.put(sName,attr); + } + else if ("attribute".equals(sFamily)) { + xattr.put(sName,attr); + } + } + } + + protected void writeInner(Document dom) { + writeXStyleMap(dom,xheading,"heading"); + writeXStyleMap(dom,xpar,"paragraph"); + writeXStyleMap(dom,xtext,"text"); + writeXStyleMap(dom,xlist,"list"); + writeXStyleMap(dom,xframe,"frame"); + writeXStyleMap(dom,xattr,"attribute"); + } + + private void writeXStyleMap(Document dom, ComplexOption option, String sFamily) { + Iterator iter = option.keySet().iterator(); + while (iter.hasNext()) { + String sName = iter.next(); + Element smNode = dom.createElement("xhtml-style-map"); + smNode.setAttribute("name",sName); + smNode.setAttribute("family",sFamily); + Map attr = option.get(sName); + smNode.setAttribute("element",attr.get("element")); + smNode.setAttribute("css",attr.get("css")); + if (attr.containsKey("block-element")) smNode.setAttribute("block-element",attr.get("block-element")); + if (attr.containsKey("block-css")) smNode.setAttribute("block-css",attr.get("block-css")); + if (attr.containsKey("before")) smNode.setAttribute("before",attr.get("before")); + if (attr.containsKey("after")) smNode.setAttribute("after",attr.get("after")); + dom.getDocumentElement().appendChild(smNode); + } + } + + // Convenience accessor methods + public boolean ignoreHardLineBreaks() { return ((BooleanOption) options[IGNORE_HARD_LINE_BREAKS]).getValue(); } + public boolean ignoreEmptyParagraphs() { return ((BooleanOption) options[IGNORE_EMPTY_PARAGRAPHS]).getValue(); } + public boolean ignoreDoubleSpaces() { return ((BooleanOption) options[IGNORE_DOUBLE_SPACES]).getValue(); } + public int imageSize() { return ((IntegerOption) options[IMAGE_SIZE]).getValue(); } + public boolean xhtmlNoDoctype() { return ((BooleanOption) options[NO_DOCTYPE]).getValue(); } + public boolean xhtmlAddBOM() { return ((BooleanOption) options[ADD_BOM]).getValue(); } + public String xhtmlEncoding() { return options[ENCODING].getString(); } + public boolean useNamedEntities() { return ((BooleanOption) options[USE_NAMED_ENTITIES]).getValue(); } + public boolean hexadecimalEntities() { return ((BooleanOption) options[HEXADECIMAL_ENTITIES]).getValue(); } + public boolean prettyPrint() { return ((BooleanOption) options[PRETTY_PRINT]).getValue(); } + public boolean multilingual() { return ((BooleanOption) options[MULTILINGUAL]).getValue(); } + public String templateIds() { return options[TEMPLATE_IDS].getString(); } + public boolean separateStylesheet() { return ((BooleanOption) options[SEPARATE_STYLESHEET]).getValue(); } + public String xhtmlCustomStylesheet() { return options[CUSTOM_STYLESHEET].getString(); } + public int xhtmlFormatting() { return ((XhtmlFormatOption) options[FORMATTING]).getValue(); } + public int xhtmlFrameFormatting() { return ((XhtmlFormatOption) options[FRAME_FORMATTING]).getValue(); } + public int xhtmlSectionFormatting() { return ((XhtmlFormatOption) options[SECTION_FORMATTING]).getValue(); } + public int xhtmlTableFormatting() { return ((XhtmlFormatOption) options[TABLE_FORMATTING]).getValue(); } + public int tableSize() { return ((IntegerOption) options[TABLE_SIZE]).getValue(); } + public int listFormatting() { return ((IntegerOption) options[LIST_FORMATTING]).getValue(); } + public String getMaxWidth() { return options[MAX_WIDTH].getString(); } + public boolean useDefaultFont() { return ((BooleanOption) options[USE_DEFAULT_FONT]).getValue(); } + public String defaultFontName() { return options[DEFAULT_FONT_NAME].getString(); } + public boolean xhtmlUseDublinCore() { return ((BooleanOption) options[USE_DUBLIN_CORE]).getValue(); } + public boolean xhtmlNotes() { return ((BooleanOption) options[NOTES]).getValue(); } + public boolean displayHiddenText() { return ((BooleanOption) options[DISPLAY_HIDDEN_TEXT]).getValue(); } + public boolean xhtmlConvertToPx() { return ((BooleanOption) options[CONVERT_TO_PX]).getValue(); } + public String getXhtmlScaling() { return options[SCALING].getString(); } + public String getXhtmlColumnScaling() { return options[COLUMN_SCALING].getString(); } + public boolean relativeFontSize() { return ((BooleanOption) options[RELATIVE_FONT_SIZE]).getValue(); } + public String fontScaling() { return options[FONT_SCALING].getString(); } + public boolean xhtmlFloatObjects() { return ((BooleanOption) options[FLOAT_OBJECTS]).getValue(); } + public String getXhtmlTabstopStyle() { return options[TABSTOP_STYLE].getString(); } + public String getEndnotesHeading() { return options[ENDNOTES_HEADING].getString(); } + public String getFootnotesHeading() { return options[FOOTNOTES_HEADING].getString(); } + public int formulas() { return ((IntegerOption) options[FORMULAS]).getValue(); } + public int externalTocDepth() { return ((IntegerOption) options[EXTERNAL_TOC_DEPTH]).getValue(); } + public boolean includeToc() { return ((BooleanOption) options[INCLUDE_TOC]).getValue(); } + public boolean includeNCX() { return ((BooleanOption) options[INCLUDE_NCX]).getValue(); } + public int getXhtmlSplitLevel() { return ((IntegerOption) options[SPLIT_LEVEL]).getValue(); } + public int getXhtmlRepeatLevels() { return ((IntegerOption) options[REPEAT_LEVELS]).getValue(); } + public int pageBreakSplit() { return ((IntegerOption) options[PAGE_BREAK_SPLIT]).getValue(); } + public int splitAfter() { return ((IntegerOption) options[SPLIT_AFTER]).getValue(); } + public String imageSplit() { return options[IMAGE_SPLIT].getString(); } + public boolean coverImage() { return ((BooleanOption) options[COVER_IMAGE]).getValue(); } + public boolean embedSVG() { return ((BooleanOption) options[EMBED_SVG]).getValue(); } + public boolean embedImg() { return ((BooleanOption) options[EMBED_IMG]).getValue(); } + public boolean useMathJax() { return ((BooleanOption) options[USE_MATHJAX]).getValue(); } + public boolean xhtmlCalcSplit() { return ((BooleanOption) options[CALC_SPLIT]).getValue(); } + public boolean xhtmlDisplayHiddenSheets() { return ((BooleanOption) options[DISPLAY_HIDDEN_SHEETS]).getValue(); } + public boolean displayHiddenRowsCols() { return ((BooleanOption) options[DISPLAY_HIDDEN_ROWS_COLS]).getValue(); } + public boolean displayFilteredRowsCols() { return ((BooleanOption) options[DISPLAY_FILTERED_ROWS_COLS]).getValue(); } + public boolean applyPrintRanges() { return ((BooleanOption) options[APPLY_PRINT_RANGES]).getValue(); } + public boolean xhtmlUseTitleAsHeading() { return ((BooleanOption) options[USE_TITLE_AS_HEADING]).getValue(); } + public boolean xhtmlUseSheetNamesAsHeadings() { return ((BooleanOption) options[USE_SHEET_NAMES_AS_HEADINGS]).getValue(); } + public boolean saveImagesInSubdir() { return ((BooleanOption) options[SAVE_IMAGES_IN_SUBDIR]).getValue(); } + public String getXhtmlUplink() { return options[UPLINK].getString(); } + public String getXhtmlDirectoryIcon() { return options[DIRECTORY_ICON].getString(); } + public String getXhtmlDocumentIcon() { return options[DOCUMENT_ICON].getString(); } +<<<<<<< HEAD + public String getHeadingTags() { return options[HEADING_TAGS].getString(); } + public String getPageTags() { return options[PAGE_TAGS].getString(); } +======= + public String greenstoneTags() { return options[GREENSTONE_TAGS].getString(); } +>>>>>>> Added Footer and Header html convertation. Added comments to use html as input for Greenstone project. + + public XhtmlStyleMap getXParStyleMap() { return getStyleMap(xpar); } + public XhtmlStyleMap getXHeadingStyleMap() { return getStyleMap(xheading); } + public XhtmlStyleMap getXTextStyleMap() { return getStyleMap(xtext); } + public XhtmlStyleMap getXFrameStyleMap() { return getStyleMap(xframe); } + public XhtmlStyleMap getXListStyleMap() { return getStyleMap(xlist); } + public XhtmlStyleMap getXAttrStyleMap() { return getStyleMap(xattr); } + + private XhtmlStyleMap getStyleMap(ComplexOption co) { + XhtmlStyleMap map = new XhtmlStyleMap(); + for (String sName : co.keySet()) { + Map attr = co.get(sName); + String sElement = attr.containsKey("element") ? attr.get("element") : ""; + String sCss = attr.containsKey("css") ? attr.get("css") : ""; + String sBlockElement = attr.containsKey("block-element") ? attr.get("block-element") : ""; + String sBlockCss = attr.containsKey("block-css") ? attr.get("block-css") : ""; + String sBefore = attr.containsKey("before") ? attr.get("before") : ""; + String sAfter = attr.containsKey("after") ? attr.get("after") : ""; + map.put(sName, new XhtmlStyleMapItem(sBlockElement, sBlockCss, sElement, sCss, sBefore, sAfter)); + } + return map; + + } +} + diff --git a/source/java/writer2latex/xhtml/XhtmlDocument.java b/src/main/java/writer2latex/xhtml/XhtmlDocument.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlDocument.java rename to src/main/java/writer2latex/xhtml/XhtmlDocument.java diff --git a/source/java/writer2latex/xhtml/XhtmlFormatOption.java b/src/main/java/writer2latex/xhtml/XhtmlFormatOption.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlFormatOption.java rename to src/main/java/writer2latex/xhtml/XhtmlFormatOption.java diff --git a/source/java/writer2latex/xhtml/XhtmlMathMLConverter.java b/src/main/java/writer2latex/xhtml/XhtmlMathMLConverter.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlMathMLConverter.java rename to src/main/java/writer2latex/xhtml/XhtmlMathMLConverter.java diff --git a/source/java/writer2latex/xhtml/XhtmlStyleMap.java b/src/main/java/writer2latex/xhtml/XhtmlStyleMap.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlStyleMap.java rename to src/main/java/writer2latex/xhtml/XhtmlStyleMap.java diff --git a/source/java/writer2latex/xhtml/XhtmlStyleMapItem.java b/src/main/java/writer2latex/xhtml/XhtmlStyleMapItem.java similarity index 100% rename from source/java/writer2latex/xhtml/XhtmlStyleMapItem.java rename to src/main/java/writer2latex/xhtml/XhtmlStyleMapItem.java diff --git a/source/java/writer2latex/xhtml/config/cleanxhtml.xml b/src/main/java/writer2latex/xhtml/config/cleanxhtml.xml similarity index 100% rename from source/java/writer2latex/xhtml/config/cleanxhtml.xml rename to src/main/java/writer2latex/xhtml/config/cleanxhtml.xml diff --git a/source/java/writer2latex/xhtml/l10n/L10n.java b/src/main/java/writer2latex/xhtml/l10n/L10n.java similarity index 100% rename from source/java/writer2latex/xhtml/l10n/L10n.java rename to src/main/java/writer2latex/xhtml/l10n/L10n.java diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_ca.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_ca.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_ca.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_ca.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_cs.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_cs.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_cs.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_cs.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_da.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_da.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_da.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_da.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_de.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_de.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_de.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_de.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_en.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_en.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_en.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_en.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_es.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_es.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_es.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_es.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_fa.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_fa.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_fa.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_fa.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_fi.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_fi.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_fi.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_fi.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_fr.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_fr.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_fr.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_fr.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_hr.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_hr.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_hr.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_hr.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_it.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_it.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_it.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_it.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_nl.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_nl.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_nl.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_nl.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_nn.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_nn.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_nn.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_nn.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_pl.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_pl.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_pl.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_pl.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_pt_BR.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_pt_BR.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_pt_BR.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_pt_BR.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_ru.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_ru.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_ru.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_ru.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_tr.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_tr.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_tr.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_tr.properties diff --git a/source/java/writer2latex/xhtml/l10n/XhtmlStrings_uk.properties b/src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_uk.properties similarity index 100% rename from source/java/writer2latex/xhtml/l10n/XhtmlStrings_uk.properties rename to src/main/java/writer2latex/xhtml/l10n/XhtmlStrings_uk.properties diff --git a/source/lib/jbibtex-1.0.14.jar b/src/main/lib/jbibtex-1.0.14.jar similarity index 100% rename from source/lib/jbibtex-1.0.14.jar rename to src/main/lib/jbibtex-1.0.14.jar diff --git a/source/lib/json-20140107.jar b/src/main/lib/json-20140107.jar similarity index 100% rename from source/lib/json-20140107.jar rename to src/main/lib/json-20140107.jar diff --git a/src/main/lib/juh.jar b/src/main/lib/juh.jar new file mode 100644 index 0000000..5e69a88 Binary files /dev/null and b/src/main/lib/juh.jar differ diff --git a/src/main/lib/junit-4.12.jar b/src/main/lib/junit-4.12.jar new file mode 100644 index 0000000..3a7fc26 Binary files /dev/null and b/src/main/lib/junit-4.12.jar differ diff --git a/src/main/lib/jurt.jar b/src/main/lib/jurt.jar new file mode 100644 index 0000000..3e4cdd9 Binary files /dev/null and b/src/main/lib/jurt.jar differ diff --git a/src/main/lib/ridl.jar b/src/main/lib/ridl.jar new file mode 100644 index 0000000..4d2744d Binary files /dev/null and b/src/main/lib/ridl.jar differ diff --git a/src/main/lib/unoil.jar b/src/main/lib/unoil.jar new file mode 100644 index 0000000..188daa7 Binary files /dev/null and b/src/main/lib/unoil.jar differ diff --git a/src/main/org/libreoffice/example/comp/RegistrationHandler.classes b/src/main/org/libreoffice/example/comp/RegistrationHandler.classes new file mode 100644 index 0000000..ba2ea35 --- /dev/null +++ b/src/main/org/libreoffice/example/comp/RegistrationHandler.classes @@ -0,0 +1 @@ +org.libreoffice.example.comp.Writer2latexImpl diff --git a/src/main/org/libreoffice/example/comp/RegistrationHandler.java b/src/main/org/libreoffice/example/comp/RegistrationHandler.java new file mode 100644 index 0000000..3819b73 --- /dev/null +++ b/src/main/org/libreoffice/example/comp/RegistrationHandler.java @@ -0,0 +1,175 @@ +/************************************************************************* + * + * The Contents of this file are made available subject to the terms of + * either of the GNU Lesser General Public License Version 2.1 + * + * Sun Microsystems Inc., October, 2000 + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc.. + * + * Copyright: 2002 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): Cedric Bosdonnat + * + * + ************************************************************************/ +package org.libreoffice.example.comp; + +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.LineNumberReader; +import java.lang.reflect.Method; +import java.util.ArrayList; + +import com.sun.star.lang.XSingleComponentFactory; +import com.sun.star.registry.XRegistryKey; + +/** + * Component main registration class. + * + *

This class should not be modified.

+ * + * @author Cedric Bosdonnat aka. cedricbosdo + * + */ +public class RegistrationHandler { + + /** + * Get a component factory for the implementations handled by this class. + * + *

This method calls all the methods of the same name from the classes listed + * in the RegistrationHandler.classes file. This method + * should not be modified.

+ * + * @param pImplementationName the name of the implementation to create. + * + * @return the factory which can create the implementation. + */ + public static XSingleComponentFactory __getComponentFactory(String sImplementationName ) { + XSingleComponentFactory xFactory = null; + + Class[] classes = findServicesImplementationClasses(); + + int i = 0; + while (i < classes.length && xFactory == null) { + Class clazz = classes[i]; + if ( sImplementationName.equals( clazz.getCanonicalName() ) ) { + try { + Class[] getTypes = new Class[]{String.class}; + Method getFactoryMethod = clazz.getMethod("__getComponentFactory", getTypes); + Object o = getFactoryMethod.invoke(null, sImplementationName); + xFactory = (XSingleComponentFactory)o; + } catch (Exception e) { + // Nothing to do: skip + System.err.println("Error happened"); + e.printStackTrace(); + } + } + i++; + } + return xFactory; + } + + /** + * Writes the services implementation informations to the UNO registry. + * + *

This method calls all the methods of the same name from the classes listed + * in the RegistrationHandler.classes file. This method + * should not be modified.

+ * + * @param pRegistryKey the root registry key where to write the informations. + * + * @return true if the informations have been successfully written + * to the registry key, false otherwise. + */ + public static boolean __writeRegistryServiceInfo(XRegistryKey xRegistryKey ) { + + Class[] classes = findServicesImplementationClasses(); + + boolean success = true; + int i = 0; + while (i < classes.length && success) { + Class clazz = classes[i]; + try { + Class[] writeTypes = new Class[]{XRegistryKey.class}; + Method getFactoryMethod = clazz.getMethod("__writeRegistryServiceInfo", writeTypes); + Object o = getFactoryMethod.invoke(null, xRegistryKey); + success = success && ((Boolean)o).booleanValue(); + } catch (Exception e) { + success = false; + e.printStackTrace(); + } + i++; + } + return success; + } + + /** + * @return all the UNO implementation classes. + */ + private static Class[] findServicesImplementationClasses() { + + ArrayList classes = new ArrayList(); + + InputStream in = RegistrationHandler.class.getResourceAsStream("RegistrationHandler.classes"); + LineNumberReader reader = new LineNumberReader(new InputStreamReader(in)); + + try { + String line = reader.readLine(); + while (line != null) { + if (!line.equals("")) { + line = line.trim(); + try { + Class clazz = Class.forName(line); + + Class[] writeTypes = new Class[]{XRegistryKey.class}; + Class[] getTypes = new Class[]{String.class}; + + Method writeRegMethod = clazz.getMethod("__writeRegistryServiceInfo", writeTypes); + Method getFactoryMethod = clazz.getMethod("__getComponentFactory", getTypes); + + if (writeRegMethod != null && getFactoryMethod != null) { + classes.add(clazz); + } + + } catch (Exception e) { + e.printStackTrace(); + } + } + line = reader.readLine(); + } + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + reader.close(); + in.close(); + } catch (Exception e) {}; + } + + return classes.toArray(new Class[classes.size()]); + } +} diff --git a/src/main/org/libreoffice/example/comp/Writer2latexImpl.java b/src/main/org/libreoffice/example/comp/Writer2latexImpl.java new file mode 100644 index 0000000..5dc1985 --- /dev/null +++ b/src/main/org/libreoffice/example/comp/Writer2latexImpl.java @@ -0,0 +1,58 @@ +package org.libreoffice.example.comp; + +import com.sun.star.uno.XComponentContext; +import com.sun.star.lib.uno.helper.Factory; +import com.sun.star.lang.XSingleComponentFactory; +import com.sun.star.registry.XRegistryKey; +import com.sun.star.lib.uno.helper.WeakBase; + + +public final class Writer2latexImpl extends WeakBase + implements com.sun.star.lang.XServiceInfo, + org.libreoffice.example.XWriter2latex +{ + private final XComponentContext m_xContext; + private static final String m_implementationName = Writer2latexImpl.class.getName(); + private static final String[] m_serviceNames = { + "org.libreoffice.example.Writer2latex" }; + + + public Writer2latexImpl( XComponentContext context ) + { + m_xContext = context; + }; + + public static XSingleComponentFactory __getComponentFactory( String sImplementationName ) { + XSingleComponentFactory xFactory = null; + + if ( sImplementationName.equals( m_implementationName ) ) + xFactory = Factory.createComponentFactory(Writer2latexImpl.class, m_serviceNames); + return xFactory; + } + + public static boolean __writeRegistryServiceInfo( XRegistryKey xRegistryKey ) { + return Factory.writeRegistryServiceInfo(m_implementationName, + m_serviceNames, + xRegistryKey); + } + + // com.sun.star.lang.XServiceInfo: + public String getImplementationName() { + return m_implementationName; + } + + public boolean supportsService( String sService ) { + int len = m_serviceNames.length; + + for( int i=0; i < len; i++) { + if (sService.equals(m_serviceNames[i])) + return true; + } + return false; + } + + public String[] getSupportedServiceNames() { + return m_serviceNames; + } + +} diff --git a/src/main/org/libreoffice/example/comp/tests/UnoTests.java b/src/main/org/libreoffice/example/comp/tests/UnoTests.java new file mode 100644 index 0000000..59f248a --- /dev/null +++ b/src/main/org/libreoffice/example/comp/tests/UnoTests.java @@ -0,0 +1,13 @@ +package org.libreoffice.example.comp.tests; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite.SuiteClasses; + +import org.libreoffice.example.comp.tests.base.UnoSuite; +import org.libreoffice.example.comp.tests.uno.WriterTest; + +@RunWith(UnoSuite.class) +@SuiteClasses({WriterTest.class}) +public class UnoTests { + +} diff --git a/src/main/org/libreoffice/example/comp/tests/base/UnoSuite.java b/src/main/org/libreoffice/example/comp/tests/base/UnoSuite.java new file mode 100644 index 0000000..6ea67e4 --- /dev/null +++ b/src/main/org/libreoffice/example/comp/tests/base/UnoSuite.java @@ -0,0 +1,75 @@ +package org.libreoffice.example.comp.tests.base; + +import java.util.List; + +import org.junit.runner.Runner; +import org.junit.runner.notification.RunNotifier; +import org.junit.runners.Suite; +import org.junit.runners.model.InitializationError; +import org.junit.runners.model.RunnerBuilder; + +import com.sun.star.frame.XDesktop; +import com.sun.star.lang.XMultiComponentFactory; +import com.sun.star.uno.UnoRuntime; +import com.sun.star.uno.XComponentContext; + +public class UnoSuite extends Suite { + + private static XComponentContext componentContext; + + public UnoSuite(Class klass, RunnerBuilder builder) throws InitializationError { + super(klass, builder); + } + + public UnoSuite(RunnerBuilder builder, Class[] classes) throws InitializationError { + super(builder, classes); + } + + public UnoSuite(Class klass, Class[] suiteClasses) throws InitializationError { + super(klass, suiteClasses); + } + + public UnoSuite(Class klass, List runners) throws InitializationError { + super(klass, runners); + } + + public UnoSuite(RunnerBuilder builder, Class klass, Class[] suiteClasses) throws InitializationError { + super(builder, klass, suiteClasses); + } + + @Override + public void run(RunNotifier arg0) { + try { + startOffice(); + } catch (Exception e) { + e.printStackTrace(); + } + super.run(arg0); + + stopOffice(); + } + + private void startOffice() throws Exception { + componentContext = com.sun.star.comp.helper.Bootstrap.bootstrap(); + } + + private void stopOffice() { + try { + if (componentContext != null) { + // Only the uno test suite which started the office can stop it + XMultiComponentFactory xMngr = componentContext.getServiceManager(); + Object oDesktop = xMngr.createInstanceWithContext("com.sun.star.frame.Desktop", componentContext); + XDesktop xDesktop = (XDesktop)UnoRuntime.queryInterface(XDesktop.class, oDesktop); + + xDesktop.terminate(); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + public static XComponentContext getComponentContext() { + return componentContext; + } + +} diff --git a/src/main/org/libreoffice/example/comp/tests/helper/UnoHelper.java b/src/main/org/libreoffice/example/comp/tests/helper/UnoHelper.java new file mode 100644 index 0000000..f9245f4 --- /dev/null +++ b/src/main/org/libreoffice/example/comp/tests/helper/UnoHelper.java @@ -0,0 +1,28 @@ +package org.libreoffice.example.comp.tests.helper; + +import com.sun.star.beans.PropertyValue; +import com.sun.star.frame.FrameSearchFlag; +import com.sun.star.frame.XComponentLoader; +import com.sun.star.lang.XComponent; +import com.sun.star.lang.XMultiComponentFactory; +import com.sun.star.text.XTextDocument; +import com.sun.star.uno.Exception; +import com.sun.star.uno.UnoRuntime; + +import org.libreoffice.example.comp.tests.base.UnoSuite; + +public class UnoHelper { + + public static XTextDocument getWriterDocument() throws Exception { + XMultiComponentFactory xMngr = UnoSuite.getComponentContext().getServiceManager(); + Object oDesktop = xMngr.createInstanceWithContext("com.sun.star.frame.Desktop", UnoSuite.getComponentContext()); + XComponentLoader xLoader = (XComponentLoader)UnoRuntime.queryInterface( + XComponentLoader.class, oDesktop); + + XComponent xDoc = xLoader.loadComponentFromURL("private:factory/swriter", "_default", + FrameSearchFlag.ALL, new PropertyValue[0]); + + return (XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, xDoc); + } + +} diff --git a/src/main/org/libreoffice/example/comp/tests/uno/WriterTest.java b/src/main/org/libreoffice/example/comp/tests/uno/WriterTest.java new file mode 100644 index 0000000..31744e6 --- /dev/null +++ b/src/main/org/libreoffice/example/comp/tests/uno/WriterTest.java @@ -0,0 +1,26 @@ +package org.libreoffice.example.comp.tests.uno; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Before; +import org.junit.Test; + +import com.sun.star.text.XTextDocument; + +import org.libreoffice.example.comp.tests.helper.UnoHelper; + +public class WriterTest { + + private XTextDocument xTextDocument; + + @Before + public void setUp() throws Exception { + xTextDocument = UnoHelper.getWriterDocument(); + } + + @Test + public void test() { + assertNotNull(xTextDocument); + } + +} diff --git a/source/oxt/w2lconfig/META-INF/manifest.xml b/src/main/oxt/w2lconfig/META-INF/manifest.xml similarity index 100% rename from source/oxt/w2lconfig/META-INF/manifest.xml rename to src/main/oxt/w2lconfig/META-INF/manifest.xml diff --git a/source/oxt/w2lconfig/Paths.xcu b/src/main/oxt/w2lconfig/Paths.xcu similarity index 100% rename from source/oxt/w2lconfig/Paths.xcu rename to src/main/oxt/w2lconfig/Paths.xcu diff --git a/source/oxt/w2lconfig/W2LOptions.xcu b/src/main/oxt/w2lconfig/W2LOptions.xcu similarity index 100% rename from source/oxt/w2lconfig/W2LOptions.xcu rename to src/main/oxt/w2lconfig/W2LOptions.xcu diff --git a/source/oxt/w2lconfig/config/article.xml b/src/main/oxt/w2lconfig/config/article.xml similarity index 100% rename from source/oxt/w2lconfig/config/article.xml rename to src/main/oxt/w2lconfig/config/article.xml diff --git a/source/oxt/w2lconfig/description.xml b/src/main/oxt/w2lconfig/description.xml similarity index 100% rename from source/oxt/w2lconfig/description.xml rename to src/main/oxt/w2lconfig/description.xml diff --git a/source/oxt/w2lconfig/descriptions/desc_da.txt b/src/main/oxt/w2lconfig/descriptions/desc_da.txt similarity index 100% rename from source/oxt/w2lconfig/descriptions/desc_da.txt rename to src/main/oxt/w2lconfig/descriptions/desc_da.txt diff --git a/source/oxt/w2lconfig/descriptions/desc_en.txt b/src/main/oxt/w2lconfig/descriptions/desc_en.txt similarity index 100% rename from source/oxt/w2lconfig/descriptions/desc_en.txt rename to src/main/oxt/w2lconfig/descriptions/desc_en.txt diff --git a/source/oxt/w2lconfig/help/en/help.tree b/src/main/oxt/w2lconfig/help/en/help.tree similarity index 100% rename from source/oxt/w2lconfig/help/en/help.tree rename to src/main/oxt/w2lconfig/help/en/help.tree diff --git a/source/oxt/w2lconfig/help/en/org.openoffice.da.w2lconfig.oxt/templates.xhp b/src/main/oxt/w2lconfig/help/en/org.openoffice.da.w2lconfig.oxt/templates.xhp similarity index 100% rename from source/oxt/w2lconfig/help/en/org.openoffice.da.w2lconfig.oxt/templates.xhp rename to src/main/oxt/w2lconfig/help/en/org.openoffice.da.w2lconfig.oxt/templates.xhp diff --git a/source/oxt/w2lconfig/images/w2lhcicon.png b/src/main/oxt/w2lconfig/images/w2lhcicon.png similarity index 100% rename from source/oxt/w2lconfig/images/w2lhcicon.png rename to src/main/oxt/w2lconfig/images/w2lhcicon.png diff --git a/source/oxt/w2lconfig/images/w2licon.png b/src/main/oxt/w2lconfig/images/w2licon.png similarity index 100% rename from source/oxt/w2lconfig/images/w2licon.png rename to src/main/oxt/w2lconfig/images/w2licon.png diff --git a/source/oxt/w2lconfig/template/Writer2LaTeX/LaTeX-article.ott b/src/main/oxt/w2lconfig/template/Writer2LaTeX/LaTeX-article.ott similarity index 100% rename from source/oxt/w2lconfig/template/Writer2LaTeX/LaTeX-article.ott rename to src/main/oxt/w2lconfig/template/Writer2LaTeX/LaTeX-article.ott diff --git a/source/oxt/writer2latex/Addons.xcu b/src/main/oxt/writer2latex/Addons.xcu similarity index 100% rename from source/oxt/writer2latex/Addons.xcu rename to src/main/oxt/writer2latex/Addons.xcu diff --git a/source/oxt/writer2latex/AddonsAOO4.xcu b/src/main/oxt/writer2latex/AddonsAOO4.xcu similarity index 100% rename from source/oxt/writer2latex/AddonsAOO4.xcu rename to src/main/oxt/writer2latex/AddonsAOO4.xcu diff --git a/source/oxt/writer2latex/META-INF/manifest.xml b/src/main/oxt/writer2latex/META-INF/manifest.xml similarity index 100% rename from source/oxt/writer2latex/META-INF/manifest.xml rename to src/main/oxt/writer2latex/META-INF/manifest.xml diff --git a/source/oxt/writer2latex/Office/UI/WriterWindowState.xcu b/src/main/oxt/writer2latex/Office/UI/WriterWindowState.xcu similarity index 100% rename from source/oxt/writer2latex/Office/UI/WriterWindowState.xcu rename to src/main/oxt/writer2latex/Office/UI/WriterWindowState.xcu diff --git a/source/oxt/writer2latex/OptionPages.xcu b/src/main/oxt/writer2latex/OptionPages.xcu similarity index 100% rename from source/oxt/writer2latex/OptionPages.xcu rename to src/main/oxt/writer2latex/OptionPages.xcu diff --git a/source/oxt/writer2latex/Options.xcs b/src/main/oxt/writer2latex/Options.xcs similarity index 100% rename from source/oxt/writer2latex/Options.xcs rename to src/main/oxt/writer2latex/Options.xcs diff --git a/source/oxt/writer2latex/Options.xcu b/src/main/oxt/writer2latex/Options.xcu similarity index 100% rename from source/oxt/writer2latex/Options.xcu rename to src/main/oxt/writer2latex/Options.xcu diff --git a/source/oxt/writer2latex/ProtocolHandler.xcu b/src/main/oxt/writer2latex/ProtocolHandler.xcu similarity index 100% rename from source/oxt/writer2latex/ProtocolHandler.xcu rename to src/main/oxt/writer2latex/ProtocolHandler.xcu diff --git a/source/oxt/writer2latex/ToolbarOptionPages.xcu b/src/main/oxt/writer2latex/ToolbarOptionPages.xcu similarity index 100% rename from source/oxt/writer2latex/ToolbarOptionPages.xcu rename to src/main/oxt/writer2latex/ToolbarOptionPages.xcu diff --git a/source/oxt/writer2latex/ToolbarOptions.xcs b/src/main/oxt/writer2latex/ToolbarOptions.xcs similarity index 100% rename from source/oxt/writer2latex/ToolbarOptions.xcs rename to src/main/oxt/writer2latex/ToolbarOptions.xcs diff --git a/source/oxt/writer2latex/ToolbarOptions.xcu b/src/main/oxt/writer2latex/ToolbarOptions.xcu similarity index 97% rename from source/oxt/writer2latex/ToolbarOptions.xcu rename to src/main/oxt/writer2latex/ToolbarOptions.xcu index 401ecac..a629b39 100644 --- a/source/oxt/writer2latex/ToolbarOptions.xcu +++ b/src/main/oxt/writer2latex/ToolbarOptions.xcu @@ -1,151 +1,151 @@ - - - - - 2 - - - - false - - - latex - - - --interaction=batchmode %s - - - - - false - - - pdflatex - - - --interaction=batchmode %s - - - - - false - - - xelatex - - - --interaction=batchmode %s - - - - - false - - - bibtex8 - - - %s - - - - - false - - - makeindex - - - %s - - - - - false - - - mk4ht - - - oolatex %s - - - - - true - - - dvips - - - %s - - - - - true - - - evince - - - %s - - - - - true - - - evince - - - %s - - - - - true - - - evince - - - %s - - - - - - false - - - false - - - false - - - false - - - 2 - - - - - - 0 - - - false - - - - - + + + + + 2 + + + + false + + + latex + + + --interaction=batchmode %s + + + + + false + + + pdflatex + + + --interaction=batchmode %s + + + + + false + + + xelatex + + + --interaction=batchmode %s + + + + + false + + + bibtex8 + + + %s + + + + + false + + + makeindex + + + %s + + + + + false + + + mk4ht + + + oolatex %s + + + + + true + + + dvips + + + %s + + + + + true + + + evince + + + %s + + + + + true + + + evince + + + %s + + + + + true + + + evince + + + %s + + + + + + false + + + false + + + false + + + false + + + 2 + + + + + + 0 + + + false + + + + + \ No newline at end of file diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_ca.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_ca.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_ca.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_ca.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_cs_CZ.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_cs_CZ.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_cs_CZ.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_cs_CZ.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_da_DK.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_da_DK.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_da_DK.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_da_DK.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_de_DE.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_de_DE.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_de_DE.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_de_DE.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.default b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.default similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.default rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.default diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_en_US.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_es_ES.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_es_ES.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_es_ES.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_es_ES.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_fa_IR.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_fa_IR.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_fa_IR.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_fa_IR.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_fi_FI.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_fi_FI.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_fi_FI.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_fi_FI.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_fr_FR.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_fr_FR.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_fr_FR.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_fr_FR.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_it_IT.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_it_IT.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_it_IT.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_it_IT.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_nl_NL.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_nl_NL.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_nl_NL.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_nl_NL.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_nn_NO.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_nn_NO.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_nn_NO.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_nn_NO.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_pl_PL.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_pl_PL.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_pl_PL.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_pl_PL.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_pt_BR.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_pt_BR.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_pt_BR.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_pt_BR.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_ru_RU.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_ru_RU.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_ru_RU.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_ru_RU.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_tr_TR.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_tr_TR.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_tr_TR.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_tr_TR.properties diff --git a/source/oxt/writer2latex/W2LDialogs/DialogStrings_uk_UA.properties b/src/main/oxt/writer2latex/W2LDialogs/DialogStrings_uk_UA.properties similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/DialogStrings_uk_UA.properties rename to src/main/oxt/writer2latex/W2LDialogs/DialogStrings_uk_UA.properties diff --git a/source/oxt/writer2latex/W2LDialogs/LaTeXOptions.xdl b/src/main/oxt/writer2latex/W2LDialogs/LaTeXOptions.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/LaTeXOptions.xdl rename to src/main/oxt/writer2latex/W2LDialogs/LaTeXOptions.xdl diff --git a/source/oxt/writer2latex/W2LDialogs/Module1.xba b/src/main/oxt/writer2latex/W2LDialogs/Module1.xba similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/Module1.xba rename to src/main/oxt/writer2latex/W2LDialogs/Module1.xba diff --git a/source/oxt/writer2latex/W2LDialogs/dialog.xlb b/src/main/oxt/writer2latex/W2LDialogs/dialog.xlb similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/dialog.xlb rename to src/main/oxt/writer2latex/W2LDialogs/dialog.xlb diff --git a/source/oxt/writer2latex/W2LDialogs/script.xlb b/src/main/oxt/writer2latex/W2LDialogs/script.xlb similarity index 100% rename from source/oxt/writer2latex/W2LDialogs/script.xlb rename to src/main/oxt/writer2latex/W2LDialogs/script.xlb diff --git a/source/oxt/writer2latex/W2LDialogs2/Applications.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Applications.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Applications.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Applications.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/AutoConfigInfo.xdl b/src/main/oxt/writer2latex/W2LDialogs2/AutoConfigInfo.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/AutoConfigInfo.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/AutoConfigInfo.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/BibTeXEntry.xdl b/src/main/oxt/writer2latex/W2LDialogs2/BibTeXEntry.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/BibTeXEntry.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/BibTeXEntry.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Bibliography.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Bibliography.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Bibliography.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Bibliography.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Characters.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Characters.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Characters.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Characters.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/ConfigurationRoot.xdl b/src/main/oxt/writer2latex/W2LDialogs2/ConfigurationRoot.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/ConfigurationRoot.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/ConfigurationRoot.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/DeleteDialog.xdl b/src/main/oxt/writer2latex/W2LDialogs2/DeleteDialog.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/DeleteDialog.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/DeleteDialog.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Documentclass.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Documentclass.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Documentclass.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Documentclass.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Figures.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Figures.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Figures.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Figures.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Fonts.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Fonts.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Fonts.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Fonts.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Headings.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Headings.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Headings.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Headings.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/LoadDefaults.xdl b/src/main/oxt/writer2latex/W2LDialogs2/LoadDefaults.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/LoadDefaults.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/LoadDefaults.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/LogViewer.xdl b/src/main/oxt/writer2latex/W2LDialogs2/LogViewer.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/LogViewer.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/LogViewer.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Module1.xba b/src/main/oxt/writer2latex/W2LDialogs2/Module1.xba similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Module1.xba rename to src/main/oxt/writer2latex/W2LDialogs2/Module1.xba diff --git a/source/oxt/writer2latex/W2LDialogs2/NewDialog.xdl b/src/main/oxt/writer2latex/W2LDialogs2/NewDialog.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/NewDialog.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/NewDialog.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Pages.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Pages.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Pages.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Pages.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Styles.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Styles.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Styles.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Styles.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/Tables.xdl b/src/main/oxt/writer2latex/W2LDialogs2/Tables.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/Tables.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/Tables.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl b/src/main/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/ToolbarConfigurationRoot.xdl b/src/main/oxt/writer2latex/W2LDialogs2/ToolbarConfigurationRoot.xdl similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/ToolbarConfigurationRoot.xdl rename to src/main/oxt/writer2latex/W2LDialogs2/ToolbarConfigurationRoot.xdl diff --git a/source/oxt/writer2latex/W2LDialogs2/dialog.xlb b/src/main/oxt/writer2latex/W2LDialogs2/dialog.xlb similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/dialog.xlb rename to src/main/oxt/writer2latex/W2LDialogs2/dialog.xlb diff --git a/source/oxt/writer2latex/W2LDialogs2/script.xlb b/src/main/oxt/writer2latex/W2LDialogs2/script.xlb similarity index 100% rename from source/oxt/writer2latex/W2LDialogs2/script.xlb rename to src/main/oxt/writer2latex/W2LDialogs2/script.xlb diff --git a/source/oxt/writer2latex/description.xml b/src/main/oxt/writer2latex/description.xml similarity index 100% rename from source/oxt/writer2latex/description.xml rename to src/main/oxt/writer2latex/description.xml diff --git a/source/oxt/writer2latex/descriptions/desc_ca.txt b/src/main/oxt/writer2latex/descriptions/desc_ca.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_ca.txt rename to src/main/oxt/writer2latex/descriptions/desc_ca.txt diff --git a/source/oxt/writer2latex/descriptions/desc_cs.txt b/src/main/oxt/writer2latex/descriptions/desc_cs.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_cs.txt rename to src/main/oxt/writer2latex/descriptions/desc_cs.txt diff --git a/source/oxt/writer2latex/descriptions/desc_da.txt b/src/main/oxt/writer2latex/descriptions/desc_da.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_da.txt rename to src/main/oxt/writer2latex/descriptions/desc_da.txt diff --git a/source/oxt/writer2latex/descriptions/desc_de.txt b/src/main/oxt/writer2latex/descriptions/desc_de.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_de.txt rename to src/main/oxt/writer2latex/descriptions/desc_de.txt diff --git a/source/oxt/writer2latex/descriptions/desc_en.txt b/src/main/oxt/writer2latex/descriptions/desc_en.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_en.txt rename to src/main/oxt/writer2latex/descriptions/desc_en.txt diff --git a/source/oxt/writer2latex/descriptions/desc_es.txt b/src/main/oxt/writer2latex/descriptions/desc_es.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_es.txt rename to src/main/oxt/writer2latex/descriptions/desc_es.txt diff --git a/source/oxt/writer2latex/descriptions/desc_fa.txt b/src/main/oxt/writer2latex/descriptions/desc_fa.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_fa.txt rename to src/main/oxt/writer2latex/descriptions/desc_fa.txt diff --git a/source/oxt/writer2latex/descriptions/desc_fi.txt b/src/main/oxt/writer2latex/descriptions/desc_fi.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_fi.txt rename to src/main/oxt/writer2latex/descriptions/desc_fi.txt diff --git a/source/oxt/writer2latex/descriptions/desc_fr.txt b/src/main/oxt/writer2latex/descriptions/desc_fr.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_fr.txt rename to src/main/oxt/writer2latex/descriptions/desc_fr.txt diff --git a/source/oxt/writer2latex/descriptions/desc_it.txt b/src/main/oxt/writer2latex/descriptions/desc_it.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_it.txt rename to src/main/oxt/writer2latex/descriptions/desc_it.txt diff --git a/source/oxt/writer2latex/descriptions/desc_nl.txt b/src/main/oxt/writer2latex/descriptions/desc_nl.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_nl.txt rename to src/main/oxt/writer2latex/descriptions/desc_nl.txt diff --git a/source/oxt/writer2latex/descriptions/desc_nn.txt b/src/main/oxt/writer2latex/descriptions/desc_nn.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_nn.txt rename to src/main/oxt/writer2latex/descriptions/desc_nn.txt diff --git a/source/oxt/writer2latex/descriptions/desc_pl.txt b/src/main/oxt/writer2latex/descriptions/desc_pl.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_pl.txt rename to src/main/oxt/writer2latex/descriptions/desc_pl.txt diff --git a/source/oxt/writer2latex/descriptions/desc_pt_BR.txt b/src/main/oxt/writer2latex/descriptions/desc_pt_BR.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_pt_BR.txt rename to src/main/oxt/writer2latex/descriptions/desc_pt_BR.txt diff --git a/source/oxt/writer2latex/descriptions/desc_ru.txt b/src/main/oxt/writer2latex/descriptions/desc_ru.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_ru.txt rename to src/main/oxt/writer2latex/descriptions/desc_ru.txt diff --git a/source/oxt/writer2latex/descriptions/desc_tr.txt b/src/main/oxt/writer2latex/descriptions/desc_tr.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_tr.txt rename to src/main/oxt/writer2latex/descriptions/desc_tr.txt diff --git a/source/oxt/writer2latex/descriptions/desc_uk.txt b/src/main/oxt/writer2latex/descriptions/desc_uk.txt similarity index 100% rename from source/oxt/writer2latex/descriptions/desc_uk.txt rename to src/main/oxt/writer2latex/descriptions/desc_uk.txt diff --git a/source/oxt/writer2latex/help/en/help.tree b/src/main/oxt/writer2latex/help/en/help.tree similarity index 100% rename from source/oxt/writer2latex/help/en/help.tree rename to src/main/oxt/writer2latex/help/en/help.tree diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/applications.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/applications.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/applications.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/applications.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibliography.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibliography.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibliography.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibliography.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibtex.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibtex.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibtex.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/bibtex.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/import.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/import.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/import.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/import.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/introduction.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/introduction.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/introduction.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/introduction.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/logviewer.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/logviewer.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/logviewer.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/logviewer.xhp diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/menu.xhp b/src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/menu.xhp similarity index 100% rename from source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/menu.xhp rename to src/main/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/menu.xhp diff --git a/source/oxt/writer2latex/icons/bibtex_16.bmp b/src/main/oxt/writer2latex/icons/bibtex_16.bmp similarity index 100% rename from source/oxt/writer2latex/icons/bibtex_16.bmp rename to src/main/oxt/writer2latex/icons/bibtex_16.bmp diff --git a/source/oxt/writer2latex/icons/bibtex_26.bmp b/src/main/oxt/writer2latex/icons/bibtex_26.bmp similarity index 100% rename from source/oxt/writer2latex/icons/bibtex_26.bmp rename to src/main/oxt/writer2latex/icons/bibtex_26.bmp diff --git a/source/oxt/writer2latex/icons/custom_16.bmp b/src/main/oxt/writer2latex/icons/custom_16.bmp similarity index 100% rename from source/oxt/writer2latex/icons/custom_16.bmp rename to src/main/oxt/writer2latex/icons/custom_16.bmp diff --git a/source/oxt/writer2latex/icons/custom_26.bmp b/src/main/oxt/writer2latex/icons/custom_26.bmp similarity index 100% rename from source/oxt/writer2latex/icons/custom_26.bmp rename to src/main/oxt/writer2latex/icons/custom_26.bmp diff --git a/source/oxt/writer2latex/icons/latex_16.bmp b/src/main/oxt/writer2latex/icons/latex_16.bmp similarity index 100% rename from source/oxt/writer2latex/icons/latex_16.bmp rename to src/main/oxt/writer2latex/icons/latex_16.bmp diff --git a/source/oxt/writer2latex/icons/latex_26.bmp b/src/main/oxt/writer2latex/icons/latex_26.bmp similarity index 100% rename from source/oxt/writer2latex/icons/latex_26.bmp rename to src/main/oxt/writer2latex/icons/latex_26.bmp diff --git a/source/oxt/writer2latex/icons/log_16.bmp b/src/main/oxt/writer2latex/icons/log_16.bmp similarity index 100% rename from source/oxt/writer2latex/icons/log_16.bmp rename to src/main/oxt/writer2latex/icons/log_16.bmp diff --git a/source/oxt/writer2latex/icons/log_26.bmp b/src/main/oxt/writer2latex/icons/log_26.bmp similarity index 100% rename from source/oxt/writer2latex/icons/log_26.bmp rename to src/main/oxt/writer2latex/icons/log_26.bmp diff --git a/source/oxt/writer2latex/images/w2lhcicon.png b/src/main/oxt/writer2latex/images/w2lhcicon.png similarity index 100% rename from source/oxt/writer2latex/images/w2lhcicon.png rename to src/main/oxt/writer2latex/images/w2lhcicon.png diff --git a/source/oxt/writer2latex/images/w2licon.png b/src/main/oxt/writer2latex/images/w2licon.png similarity index 100% rename from source/oxt/writer2latex/images/w2licon.png rename to src/main/oxt/writer2latex/images/w2licon.png diff --git a/source/oxt/writer2latex/w2l_filters.xcu b/src/main/oxt/writer2latex/w2l_filters.xcu similarity index 100% rename from source/oxt/writer2latex/w2l_filters.xcu rename to src/main/oxt/writer2latex/w2l_filters.xcu diff --git a/source/oxt/writer2latex/w2l_types.xcu b/src/main/oxt/writer2latex/w2l_types.xcu similarity index 100% rename from source/oxt/writer2latex/w2l_types.xcu rename to src/main/oxt/writer2latex/w2l_types.xcu diff --git a/source/oxt/writer2xhtml/Addons.xcu b/src/main/oxt/writer2xhtml/Addons.xcu similarity index 100% rename from source/oxt/writer2xhtml/Addons.xcu rename to src/main/oxt/writer2xhtml/Addons.xcu diff --git a/source/oxt/writer2xhtml/AddonsAOO4.xcu b/src/main/oxt/writer2xhtml/AddonsAOO4.xcu similarity index 100% rename from source/oxt/writer2xhtml/AddonsAOO4.xcu rename to src/main/oxt/writer2xhtml/AddonsAOO4.xcu diff --git a/source/oxt/writer2xhtml/META-INF/manifest.xml b/src/main/oxt/writer2xhtml/META-INF/manifest.xml similarity index 100% rename from source/oxt/writer2xhtml/META-INF/manifest.xml rename to src/main/oxt/writer2xhtml/META-INF/manifest.xml diff --git a/source/oxt/writer2xhtml/Office/UI/CalcWindowState.xcu b/src/main/oxt/writer2xhtml/Office/UI/CalcWindowState.xcu similarity index 100% rename from source/oxt/writer2xhtml/Office/UI/CalcWindowState.xcu rename to src/main/oxt/writer2xhtml/Office/UI/CalcWindowState.xcu diff --git a/source/oxt/writer2xhtml/Office/UI/WriterWindowState.xcu b/src/main/oxt/writer2xhtml/Office/UI/WriterWindowState.xcu similarity index 100% rename from source/oxt/writer2xhtml/Office/UI/WriterWindowState.xcu rename to src/main/oxt/writer2xhtml/Office/UI/WriterWindowState.xcu diff --git a/source/oxt/writer2xhtml/OptionPages.xcu b/src/main/oxt/writer2xhtml/OptionPages.xcu similarity index 100% rename from source/oxt/writer2xhtml/OptionPages.xcu rename to src/main/oxt/writer2xhtml/OptionPages.xcu diff --git a/source/oxt/writer2xhtml/Options.xcs b/src/main/oxt/writer2xhtml/Options.xcs similarity index 100% rename from source/oxt/writer2xhtml/Options.xcs rename to src/main/oxt/writer2xhtml/Options.xcs diff --git a/source/oxt/writer2xhtml/Options.xcu b/src/main/oxt/writer2xhtml/Options.xcu similarity index 100% rename from source/oxt/writer2xhtml/Options.xcu rename to src/main/oxt/writer2xhtml/Options.xcu diff --git a/source/oxt/writer2xhtml/ProtocolHandler.xcu b/src/main/oxt/writer2xhtml/ProtocolHandler.xcu similarity index 100% rename from source/oxt/writer2xhtml/ProtocolHandler.xcu rename to src/main/oxt/writer2xhtml/ProtocolHandler.xcu diff --git a/source/oxt/writer2xhtml/ToolbarOptionPages.xcu b/src/main/oxt/writer2xhtml/ToolbarOptionPages.xcu similarity index 100% rename from source/oxt/writer2xhtml/ToolbarOptionPages.xcu rename to src/main/oxt/writer2xhtml/ToolbarOptionPages.xcu diff --git a/source/oxt/writer2xhtml/ToolbarOptions.xcs b/src/main/oxt/writer2xhtml/ToolbarOptions.xcs similarity index 100% rename from source/oxt/writer2xhtml/ToolbarOptions.xcs rename to src/main/oxt/writer2xhtml/ToolbarOptions.xcs diff --git a/source/oxt/writer2xhtml/ToolbarOptions.xcu b/src/main/oxt/writer2xhtml/ToolbarOptions.xcu similarity index 100% rename from source/oxt/writer2xhtml/ToolbarOptions.xcu rename to src/main/oxt/writer2xhtml/ToolbarOptions.xcu diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_ca.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_ca.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_ca.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_ca.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_cs_CZ.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_cs_CZ.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_cs_CZ.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_cs_CZ.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_da_DK.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_da_DK.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_da_DK.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_da_DK.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_de_DE.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_de_DE.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_de_DE.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_de_DE.properties diff --git a/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.default b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.default new file mode 100644 index 0000000..e69de29 diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_en_US.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_es_ES.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_es_ES.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_es_ES.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_es_ES.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_fa_IR.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_fa_IR.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_fa_IR.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_fa_IR.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_fi_FI.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_fi_FI.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_fi_FI.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_fi_FI.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_fr_FR.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_fr_FR.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_fr_FR.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_fr_FR.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_it_IT.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_it_IT.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_it_IT.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_it_IT.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_nl_NL.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_nl_NL.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_nl_NL.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_nl_NL.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_nn_NO.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_nn_NO.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_nn_NO.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_nn_NO.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_pl_PL.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_pl_PL.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_pl_PL.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_pl_PL.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_pt_BR.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_pt_BR.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_pt_BR.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_pt_BR.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_ru_RU.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_ru_RU.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_ru_RU.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_ru_RU.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_tr_TR.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_tr_TR.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_tr_TR.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_tr_TR.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/DialogStrings_uk_UA.properties b/src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_uk_UA.properties similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/DialogStrings_uk_UA.properties rename to src/main/oxt/writer2xhtml/W2XDialogs/DialogStrings_uk_UA.properties diff --git a/source/oxt/writer2xhtml/W2XDialogs/Module1.xba b/src/main/oxt/writer2xhtml/W2XDialogs/Module1.xba similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/Module1.xba rename to src/main/oxt/writer2xhtml/W2XDialogs/Module1.xba diff --git a/source/oxt/writer2xhtml/W2XDialogs/XhtmlOptions.xdl b/src/main/oxt/writer2xhtml/W2XDialogs/XhtmlOptions.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/XhtmlOptions.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs/XhtmlOptions.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs/XhtmlOptionsCalc.xdl b/src/main/oxt/writer2xhtml/W2XDialogs/XhtmlOptionsCalc.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/XhtmlOptionsCalc.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs/XhtmlOptionsCalc.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs/dialog.xlb b/src/main/oxt/writer2xhtml/W2XDialogs/dialog.xlb similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/dialog.xlb rename to src/main/oxt/writer2xhtml/W2XDialogs/dialog.xlb diff --git a/source/oxt/writer2xhtml/W2XDialogs/script.xlb b/src/main/oxt/writer2xhtml/W2XDialogs/script.xlb similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs/script.xlb rename to src/main/oxt/writer2xhtml/W2XDialogs/script.xlb diff --git a/source/oxt/writer2xhtml/W2XDialogs2/AuthorDialog.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/AuthorDialog.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/AuthorDialog.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/AuthorDialog.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/ConfigurationRoot.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/ConfigurationRoot.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/ConfigurationRoot.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/ConfigurationRoot.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Content.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/Content.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Content.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/Content.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/DateDialog.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/DateDialog.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/DateDialog.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/DateDialog.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/DeleteDialog.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/DeleteDialog.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/DeleteDialog.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/DeleteDialog.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/EpubMetadata.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/EpubMetadata.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/EpubMetadata.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/EpubMetadata.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/EpubOptions.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/EpubOptions.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/EpubOptions.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/EpubOptions.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Formatting.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/Formatting.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Formatting.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/Formatting.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/General.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/General.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/General.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/General.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/LoadDefaults.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/LoadDefaults.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/LoadDefaults.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/LoadDefaults.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Module1.xba b/src/main/oxt/writer2xhtml/W2XDialogs2/Module1.xba similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Module1.xba rename to src/main/oxt/writer2xhtml/W2XDialogs2/Module1.xba diff --git a/source/oxt/writer2xhtml/W2XDialogs2/NewDialog.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/NewDialog.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/NewDialog.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/NewDialog.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Styles1.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/Styles1.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Styles1.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/Styles1.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Styles2.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/Styles2.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Styles2.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/Styles2.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Stylesheets.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/Stylesheets.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Stylesheets.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/Stylesheets.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/Template.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/Template.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/Template.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/Template.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/ToolbarConfigurationRoot.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/ToolbarConfigurationRoot.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/ToolbarConfigurationRoot.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/ToolbarConfigurationRoot.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/ToolbarSettings.xdl b/src/main/oxt/writer2xhtml/W2XDialogs2/ToolbarSettings.xdl similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/ToolbarSettings.xdl rename to src/main/oxt/writer2xhtml/W2XDialogs2/ToolbarSettings.xdl diff --git a/source/oxt/writer2xhtml/W2XDialogs2/dialog.xlb b/src/main/oxt/writer2xhtml/W2XDialogs2/dialog.xlb similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/dialog.xlb rename to src/main/oxt/writer2xhtml/W2XDialogs2/dialog.xlb diff --git a/source/oxt/writer2xhtml/W2XDialogs2/script.xlb b/src/main/oxt/writer2xhtml/W2XDialogs2/script.xlb similarity index 100% rename from source/oxt/writer2xhtml/W2XDialogs2/script.xlb rename to src/main/oxt/writer2xhtml/W2XDialogs2/script.xlb diff --git a/source/oxt/writer2xhtml/description.xml b/src/main/oxt/writer2xhtml/description.xml similarity index 100% rename from source/oxt/writer2xhtml/description.xml rename to src/main/oxt/writer2xhtml/description.xml diff --git a/source/oxt/writer2xhtml/descriptions/desc_ca.txt b/src/main/oxt/writer2xhtml/descriptions/desc_ca.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_ca.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_ca.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_cs.txt b/src/main/oxt/writer2xhtml/descriptions/desc_cs.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_cs.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_cs.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_da.txt b/src/main/oxt/writer2xhtml/descriptions/desc_da.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_da.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_da.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_de.txt b/src/main/oxt/writer2xhtml/descriptions/desc_de.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_de.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_de.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_en.txt b/src/main/oxt/writer2xhtml/descriptions/desc_en.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_en.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_en.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_es.txt b/src/main/oxt/writer2xhtml/descriptions/desc_es.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_es.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_es.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_fa.txt b/src/main/oxt/writer2xhtml/descriptions/desc_fa.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_fa.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_fa.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_fi.txt b/src/main/oxt/writer2xhtml/descriptions/desc_fi.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_fi.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_fi.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_fr.txt b/src/main/oxt/writer2xhtml/descriptions/desc_fr.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_fr.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_fr.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_it.txt b/src/main/oxt/writer2xhtml/descriptions/desc_it.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_it.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_it.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_nl.txt b/src/main/oxt/writer2xhtml/descriptions/desc_nl.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_nl.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_nl.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_nn.txt b/src/main/oxt/writer2xhtml/descriptions/desc_nn.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_nn.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_nn.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_pl.txt b/src/main/oxt/writer2xhtml/descriptions/desc_pl.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_pl.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_pl.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_pt_BR.txt b/src/main/oxt/writer2xhtml/descriptions/desc_pt_BR.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_pt_BR.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_pt_BR.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_ru.txt b/src/main/oxt/writer2xhtml/descriptions/desc_ru.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_ru.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_ru.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_tr.txt b/src/main/oxt/writer2xhtml/descriptions/desc_tr.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_tr.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_tr.txt diff --git a/source/oxt/writer2xhtml/descriptions/desc_uk.txt b/src/main/oxt/writer2xhtml/descriptions/desc_uk.txt similarity index 100% rename from source/oxt/writer2xhtml/descriptions/desc_uk.txt rename to src/main/oxt/writer2xhtml/descriptions/desc_uk.txt diff --git a/source/oxt/writer2xhtml/help/en/help.tree b/src/main/oxt/writer2xhtml/help/en/help.tree similarity index 100% rename from source/oxt/writer2xhtml/help/en/help.tree rename to src/main/oxt/writer2xhtml/help/en/help.tree diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/introduction.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/introduction.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/introduction.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/introduction.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/menu.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/menu.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/menu.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/menu.xhp diff --git a/source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/settings.xhp b/src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/settings.xhp similarity index 100% rename from source/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/settings.xhp rename to src/main/oxt/writer2xhtml/help/en/org.openoffice.da.writer2xhtml.oxt/settings.xhp diff --git a/src/main/oxt/writer2xhtml/help/ru/help.tree b/src/main/oxt/writer2xhtml/help/ru/help.tree new file mode 100644 index 0000000..9c06320 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/help.tree @@ -0,0 +1,24 @@ + + + + Introduction + Menu and toolbar + XHTML Export (Writer) + XHTML Export (Calc) + EPUB Export (Writer) + EPUB document properties (Writer) + + Settings + + + Introduction + General + Template + Style sheets + Master styles + Other styles + Formatting + Content + + + diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp new file mode 100644 index 0000000..df490f7 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp @@ -0,0 +1,71 @@ + + + + + Content + org.openoffice.da.writer2xhtml.oxt/Configuration/Content.xhp + + + + Content + + +
+ Choose Tools - Options - Writer2xhtml - Content +
+ + Formulas + + + Include as + Select how to export formulas if you are not using XHTML+MathML or HTML5. + + + Image with StarMath code: Export formulas as images + with the original StarMath formula in the alt attribute. + + + Image with LaTeX code: Export formulas as images + with LaTeX code in the alt attribute. + + + StarMath code: Export the original StarMath code directly + in the text. + + + LaTeX code: Export LaTeX code directly in the text. + + + + Footnotes and endnotes + + + + + Endnote heading + In %PRODUCTNAME Writer, endnotes cannot have a heading. If you want to add + a heading for the endnotes in the exported document, enter the desired heading here. + + Footnote heading + In %PRODUCTNAME Writer, footnotes (when used as endnotes) cannot have a heading. + If you want to add a heading for the footnotes in the exported document, enter the desired heading here. + This has no effect if footnotes are placed at the bottom of the page. + + + Images + + + + Embed SVG images in the HTML document + If you check this option, SVG images will be embedded directly + in the HTML document. Otherwise they will be included in a separate file. SVG images are only supported + in HTML5. + + + + Embed all images in the HTML document + If you check this option, all images will be embedded directly + in the HTML document (base64 encoded). Otherwise they will be included in a separate file. + This is not recommended for documents with large images. + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp new file mode 100644 index 0000000..bf5550b --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp @@ -0,0 +1,97 @@ + + + + + Formatting + org.openoffice.da.writer2xhtml.oxt/Configuration/Formatting.xhp + + + + Formatting + Use this page to define how much formatting to export. + +
+ Choose Tools - Options - Writer2xhtml - Formatting +
+ + + Formatting + This is used to specify how much text formatting + (character, paragraph and list formatting) to export. + + + Convert all: Convert all supported formatting to CSS + + + Ignore styles: Convert hard formatting but not formatting + by styles. Use this value if you use a custom style sheet, but still want to be able to add some hard formatting + (eg. a centered paragraph, some bold text etc.). + + + Ignore hard formatting: Convert formatting by styles, but + no hard formatting (except as given by + attribute style + mappings). + Use this if the document is well structured using styles, so that any hard formatting should be considered + an error. + + + Ignore all: Convert no formatting at all. Use this value + if you use a custom stylesheet and the document is well structured using styles, so that any hard formatting should + be considered an error. + + + + + Frame formatting + This is used for the same purpose, but affects frame formatting only. + + + Convert section formatting + Check this if you want to export section formatting (background, margins). + + + Convert table formatting + Check this if you want to export table formatting. + + + Ignore table dimensions + Check this if you do not want table dimensions (table width, column width and + row height) to be exported, but want to leave the layout of the tables to the browser. + + + List formatting + Choose how to export list formatting. + + + Use CSS1: List formatting is exported using CSS1. + This only provides basic support for list labels, and currently the browsers default indentations are used. + + + Use CSS1 and non-standard lists: This value is used to fix a + problem with continued lists. If you select this value, Writer2xhtml will export a list that continues on level 2 or below + like + <ol><ol><li>...</li></ol></ol> + This is not valid in XHTML, but works in browsers. + Also two deprecated attributes are used to continue numbering. + + + Use hard labels: If select this value, list labels are + exported as part of the text. This adds full support for list labels (e.g. labels of the form 1.2.3). Unlike the other + values indentations of the list are exported as well. + + + + + Maximum text width + In this field you can give a maximum width (like e.g. 800px) + for the exported text, which may enhance the readability. You can use any unit defined in CSS. + If the browser window is wider than this, the text will be centered with suitable margins. + Leave the field blank if you want the text to occupy the full width of the browser window. + + + Create separate style sheet + Check this if you want to create a separate CSS file in the export. + Otherwise the CSS code will be exported embedded in the XHTML document(s). + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp new file mode 100644 index 0000000..a9471d2 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp @@ -0,0 +1,58 @@ + + + + + Content + org.openoffice.da.writer2xhtml.oxt/Configuration/General.xhp + + + + General + Use this page to define general technical aspects of the generated + XHTML documents. + +
+ Choose Tools - Options - Writer2xhtml - General +
+ + + Do not include DOCTYPE + Check this if you do not want to not include the !DOCTYPE declaration in + the converted document. + The !DOCTYPE is required for a valid XHTML document: This option should only be + used if you need to process the document further. + + + Encoding + Select the character encoding to use for the XHTML document. Currently supported + encodings are UTF-8 (recommended), UTF-16, ISO-8859-1 and US-ASCII. + Characters not supported by the encoding are exported as numeric character entities. + + + Add Byte Order Mark (BOM) + Check this to include a BOM (Byte Order Mark) to the XHTML document (UTF-8 only). + Normally this is not needed if you use UTF-8 encoding, but it may be required in rare cases. + + + + Numeric character entities + Select how to export numeric character entities. You can use either + hexadecimal or decimal numbers. This is not relevant if you use UTF-8 or UTF-16. + + + Use named character entities + Check this to use named character entities as defined by (X)HTML. + If you export to XHTML+MathML, also named MathML entities will be used. + + + Include detailed language information + Check this to include all language information in the XHTML document. + Otherwise only the default language will be exported. + + + Use "pretty printing" + Check this to use “pretty print” + (using indentations and line breaks) in the XHTML output. + + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp new file mode 100644 index 0000000..9470e14 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp @@ -0,0 +1,25 @@ + + + + + Custom style + org.openoffice.da.writer2xhtml.oxt/Configuration/Introduction.xhp + + + + Custom style + Define a custom style for the XHTML export + +
+ Choose Tools - Options - Writer2xhtml +
+ + + Writer2xhtml comes with a number of predefined styles. + A style defines technical aspects of the generated XHTML styles, in particular the export of formatting. + Advanced users can define their own custom style. You can for example use the custom style to create XHTML documents that + takes advantage of your own CSS style sheet. + This requires some knowledge of XHTML and CSS. + To use the custom style, choose Custom in the export dialog. + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp new file mode 100644 index 0000000..d056666 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp @@ -0,0 +1,80 @@ + + + + + Content + org.openoffice.da.writer2xhtml.oxt/Configuration/Masterstyles.xhp + + + + Master styles + Use this page to define how to export style information. + +
+ Choose Tools - Options - Writer2xhtml - Master styles +
+ + Style mappings + For each %PRODUCTNAME Writer style you can define a corresponding XHTML element + and CSS style. + + + Style family + Select the %PRODUCTNAME Writer style family. Note that headings and other + paragraphs are handled separately. + + + Style name + Select a style name from the list + + + New... + Click to add a new style name to the list. Type a name or select a style name + from the list. + + + Delete... + Click this to delete the current style name from the list. + + + XHTML element + Enter the name of an XHTML element or select one from the list. + + + CSS class + Enter the name of a CSS class. If you leave this field empty, the + class attribute will not be set. + + + Before + The text you enter here will be added to the beginning of + each paragraph formatted with this style. + + + After + The text you enter here will be added to the end of + each paragraph formatted with this style. + + + Block XHTML element + This is only valid for paragraphs and headings. + For paragraphs this element is used as a container for a sequence of paragraphs + with the same paragraph style. As an example: For the paragraph style Quotations you can set the XHTML element to + p and the block XHTML element to blockquote. This will convert a sequence of paragraphs with the + Quotations style to a block quote. You can leave the field empty if you do not need it. + For headings the block XHTML element is used for the entire heading, whereas the + XHTML element is used for the text content (without the label). + + + Block CSS class + Enter the name of a CSS class for the block element. If you leave the field empty, the + class attribute will not be set. + + + Load default mappings... + Writer2xhtml comes with a set of default style mappings corresponding to + some of the predefined styles in %PRODUCTNAME Writer. Click this button to add these mappings to the current set. You will get + a warning if this will overwrite one or more existing mappings. + + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp new file mode 100644 index 0000000..a530fbb --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp @@ -0,0 +1,53 @@ + + + + + Other styles + org.openoffice.da.writer2xhtml.oxt/Configuration/Otherstyles.xhp + + + + Other styles + Use this page to define various style related features of the export. + This supplements the settings on the page + Master styles. + +
+ Choose Tools - Options - Writer2xhtml - Other styles +
+ + Style mappings for hard formatting + In general using real styles is preferred. These setting allows you to define + styles for a selection of hard text formatting attributes. + To apply these settings: Go to the page + Formatting and set Formatting to either Ignore hard formatting or + Ignore all. Otherwise the rules you define here are ignored. + + + Formatting attribute + Select a formatting attribute. + + + Apply custom style + Check this if you want to apply a custom style for this attribute. + + + XHTML element + Enter the name of an XHTML element or select one from the list. + + + CSS class + Enter the name of a CSS class to apply to the element. If you leave this field + empty, the class attribute will not be set. + + Other styles + + + CSS class for tabulator stop + Normally tabulator stops are exported as spaces. If you enter the name of + a CSS class here, the space will be contained in a span element with your style in the class attribute. + + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp new file mode 100644 index 0000000..8cf4613 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp @@ -0,0 +1,70 @@ + + + + + Content + org.openoffice.da.writer2xhtml.oxt/Configuration/Stylesheets.xhp + + + + Style sheets + Use this page to provide your own style sheets for the exported documents. + +
+ Choose Tools - Options - Writer2xhtml - Style sheets +
+ + Custom style sheets + The custom style sheet can either be an embedded style sheet for the EPUB + export or a linked style sheet for the XHTML export. + + + Insert link to custom style sheet (XHTML export) + Check this to link to your own, external CSS style sheet. + For more advanced solutions (eg. different style sheets for screen viewing and printing) you can use an + XHTML template. + + + URL + Enter the URL for the style sheet. + + + Include custom style sheet (EPUB export) + Check this to include a custom style sheet in the EPUB document. + + + Custom style sheet + Enter the CSS code for your custom style sheet here. + + + Load... + Click to load the style sheet from a file. + This will create a copy of the original file. If you change, move or delete the original file, nothing + will happen to the style sheet. If you want to update the style sheet with a new version of the original file, click + this button again. + + + Style resources + This is a list of resource files to include with the custom style sheet. + You can refer to these files from your style sheet. The reference should be by file name only, as the resource files + are placed in the same directory as the style sheet. For example: + body { background-image:url('myimage.jpg'); } + Note that changes to this list will not be undone if + you click Cancel. + + + New... + Click this to add a new resource file to the list. Select the file and press + Open (On some systems you can select more than one file). + This will create a copy of the original file. If you change, move or delete the original file, nothing + will happen to the resource file. If you want to update the resource file with a new version of the original file, click + this button again. + + + Delete... + Click this to delete the currently selected resource file from the list. + This will not affect the original file. + + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp new file mode 100644 index 0000000..4533423 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp @@ -0,0 +1,107 @@ + + + + + Content + org.openoffice.da.writer2xhtml.oxt/Configuration/Template.xhp + + + + Template + Use this page to define an XHTML template to use as a basis for the + generated XHTML documents. + +
+ Choose Tools - Options - Writer2xhtml - Template +
+ + + Use custom XHTML template + Check this if you want to define an XHTML template. Otherwise a default + template will be used. + A template should be an ordinary XHTML file (do not include a DOCTYPE declaration) + with some special elements: + + + An element with the id content is used to + fill the text content. + If no such element exists, the body element is used. If there is no body element + in the template, the root element is used. + + + Elements with the id header or + footer (optional) will be filled with a simple navigation panel using a first/previous/next/last scheme + (for spreadsheet documents, sheet names are used for navigation). + + + An element with the id panel (optional) + will be filled with a simple navigation panel using a table of contens-like scheme. + + + You can change the names of the id attributes at the bottom of this page. + The template must be well-formed XML. If this is not the case, an error message + is displayed below the template. A template with errors will be ignored in the export. + A simple template including a header might look like this: + +<html>
+  <head>
+    <title/>
+  </head>
+  <body>
+    <div id='header'/>
+    <div id='content'/>
+  </body>
+</html> +
+ As the template does not include footer and panel nodes, these elements will not be included. + + + A template with all the elements, suitable for HTML5 might look like this: + + +<html>
+  <head>
+    <title/>
+  </head>
+  <body>
+    <header><nav id='header'/></header>
+    <aside><nav id='panel'/></aside>
+    <div id='content'/>
+    <footer><nav id='footer'/></footer>
+  </body>
+</html> +
+ + The absolutely mininal template is this: + +<div/> + + The div-element will be used as the content container. + The generated document will not be a complete XHTML document (no html, head and + body nodes). It will however still be a well-formed XML file that can be handled with standard tools. + The use case for this is that you can produce XHTML fragments suitable for inclusion in e.g. a CMS. + Make sure to check the option Do not include DOCTYPE in this case! + + + Load... + Click this to load a template from a file. This will overwrite the current contents + of the template. + + + Content id + Enter the id to use for the content node. + + + Panel id + Enter the id to use for the panel node. + + + Header id + Enter the id to use for the header node. + + + Footer id + Enter the id to use for the footer node. + + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp new file mode 100644 index 0000000..ca7b891 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/epub_export.xhp @@ -0,0 +1,245 @@ + + + + + EPUB Export (Writer) + org.openoffice.da.writer2xhtml.oxt/epub_export.xhp + + + + + EPUB Export (Writer) + Exports the current document to EPUB format. +
+ Choose File - Export - EPUB
+ or File - Export - EPUB 3
+ or click the EPUB-button in the toolbar +
+ + Style + + + Select the style to use for the EPUB document + Use style + This option allows you to choose between various styles to apply to the + EPUB document. + + + Original formatting produces an EPUB document which uses + the same style as the original document. The document will look quite similar to the original when viewed + with an EPUB reader. + + + Custom is a user defined format. You can define your own + style by providing a CSS style sheet and a mapping from Writer styles to your CSS styles. + To configure the custom format, choose Tools - Options - Writer2xhtml. + + + + + + Select a scaling to apply to all dimensions in the document + + Viewing the document with an EPUB reader will often require different dimensions + (e.g. margins) than the original document. + + + + Select a scaling to apply to all column dimensions in the document + + + + Check this to export all font sizes as percentages + Use relative font size + For EPUB it is recommended to use relative font sizes, and using this option will + export all font sizes as percentages. In some EPUB readers this will enable the user to scale the fonts. + + + Select a scaling factor to apply to all font sizes + Scaling + The relative font size is calculated relative to the default font size in the + document. Using this option you can define a percentage used to scale all font sizes. + Thus with the setting 140, all font sizes will be 40% larger. + + + Check this to replace all fonts with a single font + Use a single font for the entire document + Some style guides recommend to use a single font for the entire EPUB document. + Check this option to ignore all font information in the original document and export a single font. + + + Enter or select the font name to use (or leave blank to use the EPUB reader's default font) + Font name + Enter a font name or select a font name in the list. This font will be used for + all text in the EPUB document. You can also leave the field blank: In this case no font information will be exported, and + the EPUB reader will choose a default font. + + + Check this if you want to convert all units to px rather than using the original units + + + For EPUB it is recommended to use the unit px instead, and using this option you can require that + all dimensions are converted to px. + + + + Image size + Select how to set the image size in the EPUB document + Select how to set the image size in the EPUB document + + + Use absolute size: Images will get the same size in the EPUB + document as in the original %PRODUCTNAME Writer document. + + + Use relative size (%): Image sizes will be exported as + a percentage of the total width. + This has the advantage that the image size will adapt to the size of the reader screen. + + + Use original image size: Often images in a %PRODUCTNAME document + are scaled up or down from their original size. If you select this option, the original (unscaled) image + size will be used. + + + + AutoCorrect + + + Ignore hard line breaks + Check this if you don't want to export hard (manual) line breaks + Sometimes hard (or manual) line breaks are used in Writer to optimize + the placement of the line breaks. Since line breaking in an EPUB reader is completely different, you may want to ignore + all hard line breaks by selecting this option. + + + Check this if you don't want to export empty paragraphs + + + + Check this to treat several spaces as a single space in the export + + + + + + Check this to export and display all hidden text + Display hidden text + If sections or text fragments are hidden in the original document they will normally + not be exported. If you check this option, hidden text will be exported to visible text in the EPUB document. + + + Check this if you want to export notes (annotations) in the document + + If you select this option, notes (also known as annotations) in the + %PRODUCTNAME document are exported as comments in the EPUB document. They will not be directly visible in the reader. + If the option is not selected, notes are completely ignored. + + Document division (page breaks) + These settings lets you insert page breaks at various places in the document. + It is recommended always to use one or more of these settings. One reason for this is that it enhances the readability of + your document. Another reason is technical: Page breaks splits the splits the internal structure into smaller parts. + This improves performance, and also some EPUB readers have a limitation on the size of the individual parts of the + doucment. + + + Select the heading level at which spliting should occur, or "None" if you do not want to split at headings + At heading level + Use this option to split the document at headings. This is the most common way + to split the document. Note that this option has no effect for headings + inside tables. + You can either select None (the document will not split at headings), + or you can select at which level splitting should occur. + For example 2 to split the document at all headings of level 1 or 2. + + + At page breaks + Select the type page breaks at which you want to split the document + This option enables you to split the document at the original page breaks. + Select the type of page breaks in the list: + + + Select None if you do not want to split at page breaks. + + + Select Defined by styles to split at page breaks defined + in paragraph styles. + + + Select All explicit to also split at manual page breaks + (Insert - Manual Break - Page Break). + + + Select All to split at all page breaks in the document. This + includes automatic page breaks, but Writer2xhtml will never split the document inside a paragraph, list or table. + + + + + Use full screen for large images + Select this option to show large images on full screen rather than embedded in the text + Images will normally be exported as an integrated part of the text. As EPUB readers + may have a relatively small screen, this may not be optimal for large images. + Select this option to split the document at large images, which means that they will be displayed on full screen. + + + Minimum width + Enter the minimum width used to identify a large image + Enter the minimum width for a large image. Only images with at least this relative width + and an aspect ratio of 3:4 or higher will be export as full screen images. + + + Use first image as cover image + Check this to use the first image found in the document as cover image + An EPUB document often include a cover image in analogy with the cover of a book. + Check this to use the first image found in the document as cover image. The position + of the image in the original document does not matter. + + + Automatic split of long documents + Check this to enable automatic split of long documents based on the number of characters + Use this option to limit the size of each document part. + + + After (in 1000 characters) + Enter the number of characters after which an automatic split should occur + Enter the number of characters after which an automatic split should occur. + Writer2xhtml will split the document at the first possible break point after this number of characters. + + Navigation table + + + Number of heading levels to include + Select the number of heading levels to include in the content table in the EPUB document + An EPUB document contains a content table, which the EPUB reader can use to let the + user navigate through the document. Writer2xhtml generates this table based on the headings in the document. + You can select the number of heading levels to include. + + + Also include original table of contents + Check this to include the original table of contents in addition to the EPUB content table + Your document may also include a normal table of contents. + Check this if you want to include this table of contents in addition to the navigation table. + + + Include EPUB 2 navigation (EPUB 3 only) + Check this to include navigation information in EPUB 2 format + EPUB 3 uses a new format for the navigation information. + Check this option if you also want to include navigation information in the old format. + This will ensure compatibility with older EPUB readers. + + Document properties + + + Clik this to edit the document properties, e.g. author, title, date + Edit document properties + Click this button to open the dialog to edit the document properties such as + title, author or date. + + + + +
+ + diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp new file mode 100644 index 0000000..fb9ba1c --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp @@ -0,0 +1,134 @@ + + + + + EPUB document properties (Writer) + org.openoffice.da.writer2xhtml.oxt/epub_metadata.xhp + + + + + EPUB document properties (Writer) + Edit the document properties for an EPUB document. +
+ Choose File - Export - EPUB or File - Export - EPUB 3, + and click Edit document properties in the export dialog
+ or click the EPUB-button marked with i in the toolbar +
+ + + The EPUB standard specifies a large number of document properties. + Not all of these are supported by the OpenDocument standard. + Writer2xhtml supports the additional properties using user defined document properties. + This dialog provides a convenient interface to edit all EPUB document properties, but you can also access all properties + using the standard interface in %PRODUCTNAME Writer, that is File - Properties. + Writer2xhtml will always include the identifier, author(s), date(s) and the title. + Other fields are optional and can be left blank. In this case they will not be included in the EPUB document. + + + Custom identifier + Each EPUB document must have a unique identifier. + Normally Writer2xhtml generates a Universal Unique ID (UUID) for this purpose, but you may override this with + your own identifier. + + Use custom identifier + Check this if you want to provide your own identifier + + Identifier + Enter the identifier to use. Remember that it must be unique amongst all + EPUB documents. + + Identifier type + An identifier may follow a specific identification scheme, e.g. ISBN. + Select or enter an identification scheme in this field. + + + Authors + An EPUB document can have several authors, which you can list here. + An author can be either a creator, that is a primary author of the publication, or a contributor, + that is a party whose contribution to the publication is secondary to the creator(s). + Furthermore an author may have a special role, e.g. illustrator. Both properties are specified when you add + a new author to the list. + Note that some EPUB readers may only present the first creator, hence + you should make sure that the primary creator is at the top of the list. + If you do not add any authors, Writer2xhtml will display and use a default value + for the author. + + Add... + Click this to add new author to the list. + + Modify... + Click this to modify the currently selected author. + + Delete... + Click this to delete the currently selected author from the list. + + Up + Click this to move the currently selected author up one position in the list. + + Down + Click this to move the currently selected author down one position in the list. + + + Dates + An EPUB document can specify one or more dates relating to the publication. + Each date can be associated with a special event such as creation, publication or modification. + Note that some EPUB readers may only present the first date, hence + you should make sure that the primary date is at the top of the list. + If you do not add any dates, Writer2xhtml will display and use a default value + for the date (date of last modification). + + Add... + Click this to add new date to the list. + + Modify... + Click this to modify the currently selected date. + + Delete... + Click this to delete the currently selected date from the list. + + Up + Click this to move the currently selected date up one position in the list. + + Down + Click this to move the currently selected date down one position in the list. + + + Title + The title of the document. This will always be included in the EPUB + document. + + Subject + The subject of the document + + Keywords + A comma separated list of keywords + + Description + A description of the document + + Publisher + The publisher of the document. + + Type + Terms describing general categories, functions, genres, or aggregation levels + for content. + + Format + The media type or dimensions of the resource. + + Source + Information regarding a prior resource from which the publication was derived. + + Relation + An identifier of an auxiliary resource and its relationship to the publication. + + Coverage + The extent or scope of the publication’s content. + + Rights + A statement about rights, or a reference to one. + + +
+ \ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/export.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/export.xhp new file mode 100644 index 0000000..07fe769 --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/export.xhp @@ -0,0 +1,207 @@ + + + + + XHTML Export (Writer) + org.openoffice.da.writer2xhtml.oxt/export.xhp + + + + + XHTML Export (Writer) + Exports the current document to XHTML format. +
+ Choose File - Export - XHTML 1.0 strict
+ or File - Export - XHTML 1.1
+ or File - Export - XHTML 1.1 + MathML 2.0
+ or File - Export - HTML5
+ or click the HTML5-button in the toolbar +
+ + Style + + + Select the style to use for the XHTML document +
+ Use style + This option allows you to choose between various styles to apply to the + XHTML document. +
+ + +
+ Original formatting produces an XHTML document which uses + the same style as the original document. The document will look quite similar to the original when viewed + in a browser. +
+
+ + Chocolate, Midnight, Modern, Oldstyle, Steely, Swiss, Traditional + and Ultramarine formats the document with one of the + 8 core styles provided by the World Wide Web Consortium. + + + Custom is a user defined format. You can define your own + style by providing a CSS style sheet and a mapping from Writer styles to your CSS styles. + To configure the custom format, choose Tools - Options - Writer2xhtml. + +
+
+ Expert users can extend the list with further formats using + configuration packages. See the documentation on the + web site for Writer2xhtml. +
+ + + Select a scaling to apply to all dimensions in the document +
+ Scaling +
+
+ Viewing the document in a web browser may require different dimensions + (e.g. font sizes) than the original document. +
+
+ Using this option you can define a percentage used to scale all + dimensions. Thus with the setting 140, all dimensions will be 40% larger than in the original document. Depending on the + style you have selected and on the setting for image size below, some dimensions may be unaffected by + this option. +
+ + + Select a scaling to apply to all column dimensions in the document +
+ Column scaling + This is a similar option, which only affects table columns. Thus you can further + widen or narrow the columns of the tables if you wish. +
+ + + Check this if you want to convert all units to px rather than using the original units +
+ Convert units to px (pixels) +
+
+ In %PRODUCTNAME, font sizes are usually given in points and other dimensions + in e.g. cm or inches. +
+
+ For XHTML it is recommended to use the unit px instead, and using this option you can require that + all dimensions are converted to px. +
+
+ If you choose not to check this option, the original units will always be used. +
+ + + Check this to use the natural size of images rather than the size defined in the document +
+ Use original image size + Often images in a %PRODUCTNAME document are scaled up or down from their original size. + Normally the same scaling will be used in the exported document, but if you select this option, the original (unscaled) image + size will be used. +
+ +
+ Special content +
+ + + Check this if you want to export notes (annotations) in the document +
+ Export notes +
+
+ If you select this option, notes (also known as annotations) in the + %PRODUCTNAME document are exported as comments in the XHTML document. They will not be directly visible in the browser, + only in the XHTML source. If the option is not selected, notes are completely ignored. +
+ + + Check this if you want to export all meta data (using the Dublin Core standard) +
+ Export document properties (Dublin Core Meta data) + If you select this option, the document properties (File – Properties) + are exported using + the Dublin Core standard. +
+ + AutoCorrect + + + Ignore hard line breaks + Check this if you don't want to export hard (manual) line breaks + Sometimes hard (or manual) line breaks are used in Writer to optimize + the placement of the line breaks. Since line breaking in a browser is completely different, you may want to ignore + all hard line breaks by selecting this option. + + + Check this if you don't want to export empty paragraphs +
+ Ignore empty paragraphs + Empty paragraphs are sometimes used a simple means to create vertical + spacing in Writer. In a well-structured document, an empty paragraph is probably a mistake. Hence you can select + this option to ignore empty paragraphs in the document in the export. +
+ + + Check this to treat several spaces as a single space in the export +
+ Ignore double spaces + For similar reasons you can choose to ignore two or more spaces in a + row using this option. +
+ +
+ Files +
+ + + Split document at headings + Check this to create a new document for each heading + To make a long Writer document easier to read in the browser, you can use + this option to split the document in several small files. + Writer2xhtml will add a simple navigation panel that lets you + move between pages. The navigation links will be in the same language as the document (as defined + under Tools – Options – Language Settings – Languages). + Note that this option has no effect for headings + inside tables. + + + Select the heading level at which the spliting should occur +
+ Heading level + If you have chosen to split the document at headings, you can use this option + to define at which level splitting should occur. For example 2 to split the document at all headings of level 1 or 2. +
+ + + Repeat heading levels + Select the number of heading levels to repeat at the top of new documents + To help the reader to identify the current position within the document, + you can use this option to repeat the parent headings whenever the document is split. If you for example split at + headings of level 3 and set this option to 2, the headings of level 1 and 2 will be repeated before the heading of level 3, + providing precise information as to where in the document the section belongs. + + + Check this to save images in a subdirectory relative to the exported document +
+ Save images in subdirectory + Writer2xhtml normally saves images associated with the document in the same + directory as the XHTML document. If the document contains a large number of images it may be more convenient to save the + images in a separate subdirectory. This option will create a subdirectory with the same name as the XHTML document to + store the images. +
+ + + Check this to load the JavaScript library MathJax for viewing mathematical content +
+ Use MathJax + MathJax is a JavaScript library for displaying mathematical content in web pages. + Using MathJax ensures that your mathematical content will display correctly in most browsers. + This includes formulas created with the extension TexMaths. + This option is only available if you export to XHTML 1.1+MathML 2.0 or HTML5. +
+ +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp new file mode 100644 index 0000000..e609d4c --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/export_calc.xhp @@ -0,0 +1,123 @@ + + + + + XHTML Export (Calc) + org.openoffice.da.writer2xhtml.oxt/export_calc.xhp + + + + + XHTML Export (Calc) + Exports the current document to XHTML format. +
+ Choose File - Export - XHTML 1.0 strict
+ or File - Export - XHTML 1.1
+ or File - Export - HTML5
+ or click the HTML5-button in the toolbar +
+ + + Select the style to use for the XHTML document + + + + + + + Custom is a user defined format. + To configure the custom format, choose Tools - Options - Writer2xhtml. + + + + + + Select a scaling to apply to all dimensions in the document + + + + + + Select a scaling to apply to all column dimensions in the document + + + + Check this if you want to convert all units to px rather than using the original units + + + + + + + Check this to use the natural size of images rather than the size defined in the document + + + + + + Check this if you want to export notes (annotations) in the document + + + + + Check this if you want to export all meta data (using the Dublin Core standard) + + + Sheets + + + Check this to display all sheets, even if they are hidden + Display hidden sheets + If you have chosen to hide some sheets in %PRODUCTNAME Calc, you can select this + option if you want to display them in the XHTML document anyway. + + + Check this to display all rows and columns, even if they are hidden + Display hidden rows and columns + The same applies, if you have chosen to hide some columns or rows in your + spreadsheet. + + + Check this to display all rows and columns, even if they are filtered + Display filtered rows and columns + When you export the document, some rows or columns may be invisible because + you have applied a filter in %PRODUCTNAME Calc. If you select this option, the invisible rows and columns will be exported + to XHTML anyway. + + + Check this to export the print ranges rather than the complete contents of the sheets + Apply print ranges + If you check this option, the XHTML document will display the parts of the document + which are selected for printing using print ranges in %PRODUCTNAME Calc. The display in the browser will thus be similar + to what you get when you are printing the document from %PRODUCTNAME Calc. If the option is not checked, the result will instead resemble + what you see when you edit the document in %PRODUCTNAME Calc. + + + Check this to insert the document title as a heading + Use title as heading + Use sheet names as headings + If you check this option, Calc2xhtml will insert the document title + (File – Properties – Description – Title) as heading at the top of the XHTML document. + + + Check this to insert the sheet name as a heading above each sheet + Use sheet names as headings + If you check this option, Calc2xhtml will insert the name of each sheet + as a heading above the sheet in the XHTML document. + + + + + Check this to create a separate file for each sheet + Save sheets in separate files + If you select this option, Calc2xhtml will produce a separate file for + each sheet, otherwise all sheets will be exported to the same XHTML file. In any case, a simple navigation panel showing + all sheet names will be added. + + + Check this to save images in a subdirectory relative to the exported document + + + +
\ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/introduction.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/introduction.xhp new file mode 100644 index 0000000..58a89ff --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/introduction.xhp @@ -0,0 +1,32 @@ + + + + + Introduction + org.openoffice.da.writer2xhtml.oxt/introduction.xhp + + + + Introduction to Writer2xhtml + + The Writer2xhtml is a tool for publishing web content + and electronic books from %PRODUCTNAME Writer. + Using Writer2xhtml you will be able to author well-structured XHTML and EPUB documents using (almost) + the full power of %PRODUCTNAME Writer. + Writer2xhtml has two modes of operation + + + You can use Writer2xhtml as an export filter. + It adds XHTML and EPUB formats to the File - Export + menu. + + + + You can publish directly to XHTML or EPUB + and view the result using the provided + toolbar. + + + + + \ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/menu.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/menu.xhp new file mode 100644 index 0000000..ae985cd --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/menu.xhp @@ -0,0 +1,103 @@ + + + + + Menu and toolbar + org.openoffice.da.writer2xhtml.oxt/menu.xhp + + + + Menu and toolbar + + Using Writer2xhtml as an export filter + + File - Export + + Writer2xhtml adds a number of entries to the File - Export + menu in Writer + + + XHTML 1.0 strict [Writer2xhtml] + + + XHTML 1.1 [Writer2xhtml] + + + XHTML 1.1 + MathML 2.0 [Writer2xhtml] + + + HTML5 [Writer2xhtml] + + + EPUB [Writer2xhtml] + + + EPUB 3 [Writer2xhtml] + + + + It further adds a number of entries to the File - Export + menu in Calc + + + XHTML 1.0 strict [Writer2xhtml] + + + XHTML 1.1 [Writer2xhtml] + + + HTML5 [Writer2xhtml] + + + + Using the Writer2xhtml toolbar + + Writer2xhtml adds a toolbar in Writer and Calc, + providing the following commands. You can configure the behavior of the toolbar. + + Publish to XHTML + + + Convert the document to a web page in XHTML format + and display the result in the default browser. + + Publish the current document as an XHTML file + + Publish to EPUB (Writer only) + + + Convert the document to and electronic book in EPUB format + and display the result in the default EPUB viewer. + + + Publish the current document as an EPUB file + + Edit EPUB document properties (Writer only) + + + Electronic books in EPUB format supports a complex set of + document properties. This function brings up a dialog to edit the properties. + + Edit the EPUB document properties of the current document + + Edit custom style + + + Edit the custom export style. This style is used if you select + Custom as style in the export dialog. + + \ No newline at end of file diff --git a/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/settings.xhp b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/settings.xhp new file mode 100644 index 0000000..943a68a --- /dev/null +++ b/src/main/oxt/writer2xhtml/help/ru/org.openoffice.da.writer2xhtml.oxt/settings.xhp @@ -0,0 +1,95 @@ + + + + + Toolbar Settings + org.openoffice.da.writer2xhtml.oxt/settings.xhp + + + + + Writer2xhtml Toolbar Settings + +
+ Select Tools - Options - Writer2xhtml toolbar - Settings +
+ + XHTML Export + Use these settings to configure the behavior of the XHTML export button in the toolbar. + + + Select the XHTML format to use when clicking the XHTML export button in the toolbar + Format + Select an XHTML format in the list. This format will be used when you click the XHTML + export button in the toolbar. The default format is HTML5. + + + Choose the desired behavior after export + After export + After export, Writer2xhtml can display the result in a web browser. + Choose the desired behavior in the list. + + + Do nothing if you do not want to view the result after export + + + Open with default web browser if you view the result using your + system's default web browser + + + + Open with custom application if you want to view the result using an application + of your choice. + + + + + Enter the full path to the application you wish to use + Application + Enter the full path to the application you wish to use. + + + Browse for the application + Browse... + Click this to open a file dialog, where you can browse for the application. + + EPUB Export + Use these settings to configure the behavior of the EPUB export button in the toolbar. + + + Select the EPUB format to use when clicking the EPUB export button in the toolbar + Format + Select an EPUB format in the list. This format will be used when you click the EPUB + export button in the toolbar. The default format is EPUB 3. + + + Choose the desired behavior after export + After export + After export, Writer2xhtml can display the result in an EPUB reader. + Choose the desired behavior in the list. + + + Do nothing if you do not want to view the result after export + + + Open with default web browser if you view the result using your + system's default EPUB reader. + + + + Open with custom application if you want to view the result using an application + of your choice. + + + + + Enter the full path to the application you wish to use + Application + Enter the full path to the application you wish to use. + + + Browse for the application + Browse... + Click this to open a file dialog, where you can browse for the application. + +
\ No newline at end of file diff --git a/source/oxt/writer2xhtml/icons/customh_16.bmp b/src/main/oxt/writer2xhtml/icons/customh_16.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/customh_16.bmp rename to src/main/oxt/writer2xhtml/icons/customh_16.bmp diff --git a/source/oxt/writer2xhtml/icons/customh_26.bmp b/src/main/oxt/writer2xhtml/icons/customh_26.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/customh_26.bmp rename to src/main/oxt/writer2xhtml/icons/customh_26.bmp diff --git a/source/oxt/writer2xhtml/icons/epub_16.bmp b/src/main/oxt/writer2xhtml/icons/epub_16.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/epub_16.bmp rename to src/main/oxt/writer2xhtml/icons/epub_16.bmp diff --git a/source/oxt/writer2xhtml/icons/epub_16h.bmp b/src/main/oxt/writer2xhtml/icons/epub_16h.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/epub_16h.bmp rename to src/main/oxt/writer2xhtml/icons/epub_16h.bmp diff --git a/source/oxt/writer2xhtml/icons/epub_26.bmp b/src/main/oxt/writer2xhtml/icons/epub_26.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/epub_26.bmp rename to src/main/oxt/writer2xhtml/icons/epub_26.bmp diff --git a/source/oxt/writer2xhtml/icons/epub_26h.bmp b/src/main/oxt/writer2xhtml/icons/epub_26h.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/epub_26h.bmp rename to src/main/oxt/writer2xhtml/icons/epub_26h.bmp diff --git a/source/oxt/writer2xhtml/icons/html5_16.bmp b/src/main/oxt/writer2xhtml/icons/html5_16.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/html5_16.bmp rename to src/main/oxt/writer2xhtml/icons/html5_16.bmp diff --git a/source/oxt/writer2xhtml/icons/html5_16h.bmp b/src/main/oxt/writer2xhtml/icons/html5_16h.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/html5_16h.bmp rename to src/main/oxt/writer2xhtml/icons/html5_16h.bmp diff --git a/source/oxt/writer2xhtml/icons/html5_26.bmp b/src/main/oxt/writer2xhtml/icons/html5_26.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/html5_26.bmp rename to src/main/oxt/writer2xhtml/icons/html5_26.bmp diff --git a/source/oxt/writer2xhtml/icons/html5_26h.bmp b/src/main/oxt/writer2xhtml/icons/html5_26h.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/html5_26h.bmp rename to src/main/oxt/writer2xhtml/icons/html5_26h.bmp diff --git a/source/oxt/writer2xhtml/icons/metadata_16.bmp b/src/main/oxt/writer2xhtml/icons/metadata_16.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/metadata_16.bmp rename to src/main/oxt/writer2xhtml/icons/metadata_16.bmp diff --git a/source/oxt/writer2xhtml/icons/metadata_16h.bmp b/src/main/oxt/writer2xhtml/icons/metadata_16h.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/metadata_16h.bmp rename to src/main/oxt/writer2xhtml/icons/metadata_16h.bmp diff --git a/source/oxt/writer2xhtml/icons/metadata_26.bmp b/src/main/oxt/writer2xhtml/icons/metadata_26.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/metadata_26.bmp rename to src/main/oxt/writer2xhtml/icons/metadata_26.bmp diff --git a/source/oxt/writer2xhtml/icons/metadata_26h.bmp b/src/main/oxt/writer2xhtml/icons/metadata_26h.bmp similarity index 100% rename from source/oxt/writer2xhtml/icons/metadata_26h.bmp rename to src/main/oxt/writer2xhtml/icons/metadata_26h.bmp diff --git a/source/oxt/writer2xhtml/images/w2lhcicon.png b/src/main/oxt/writer2xhtml/images/w2lhcicon.png similarity index 100% rename from source/oxt/writer2xhtml/images/w2lhcicon.png rename to src/main/oxt/writer2xhtml/images/w2lhcicon.png diff --git a/source/oxt/writer2xhtml/images/w2licon.png b/src/main/oxt/writer2xhtml/images/w2licon.png similarity index 100% rename from source/oxt/writer2xhtml/images/w2licon.png rename to src/main/oxt/writer2xhtml/images/w2licon.png diff --git a/source/oxt/writer2xhtml/w2x_filters.xcu b/src/main/oxt/writer2xhtml/w2x_filters.xcu similarity index 100% rename from source/oxt/writer2xhtml/w2x_filters.xcu rename to src/main/oxt/writer2xhtml/w2x_filters.xcu diff --git a/source/oxt/writer2xhtml/w2x_types.xcu b/src/main/oxt/writer2xhtml/w2x_types.xcu similarity index 100% rename from source/oxt/writer2xhtml/w2x_types.xcu rename to src/main/oxt/writer2xhtml/w2x_types.xcu diff --git a/source/oxt/xhtml-config-sample/META-INF/manifest.xml b/src/main/oxt/xhtml-config-sample/META-INF/manifest.xml similarity index 100% rename from source/oxt/xhtml-config-sample/META-INF/manifest.xml rename to src/main/oxt/xhtml-config-sample/META-INF/manifest.xml diff --git a/source/oxt/xhtml-config-sample/Options.xcu b/src/main/oxt/xhtml-config-sample/Options.xcu similarity index 100% rename from source/oxt/xhtml-config-sample/Options.xcu rename to src/main/oxt/xhtml-config-sample/Options.xcu diff --git a/source/oxt/xhtml-config-sample/Paths.xcu b/src/main/oxt/xhtml-config-sample/Paths.xcu similarity index 100% rename from source/oxt/xhtml-config-sample/Paths.xcu rename to src/main/oxt/xhtml-config-sample/Paths.xcu diff --git a/source/oxt/xhtml-config-sample/config/sampleconfig.xml b/src/main/oxt/xhtml-config-sample/config/sampleconfig.xml similarity index 100% rename from source/oxt/xhtml-config-sample/config/sampleconfig.xml rename to src/main/oxt/xhtml-config-sample/config/sampleconfig.xml diff --git a/source/oxt/xhtml-config-sample/config/sampletemplate.xhtml b/src/main/oxt/xhtml-config-sample/config/sampletemplate.xhtml similarity index 100% rename from source/oxt/xhtml-config-sample/config/sampletemplate.xhtml rename to src/main/oxt/xhtml-config-sample/config/sampletemplate.xhtml diff --git a/source/oxt/xhtml-config-sample/description.xml b/src/main/oxt/xhtml-config-sample/description.xml similarity index 100% rename from source/oxt/xhtml-config-sample/description.xml rename to src/main/oxt/xhtml-config-sample/description.xml diff --git a/source/oxt/xhtml-config-sample/template/xhtml-sample-config/XHTML template.ott b/src/main/oxt/xhtml-config-sample/template/xhtml-sample-config/XHTML template.ott similarity index 100% rename from source/oxt/xhtml-config-sample/template/xhtml-sample-config/XHTML template.ott rename to src/main/oxt/xhtml-config-sample/template/xhtml-sample-config/XHTML template.ott diff --git a/source/readme-source.txt b/src/main/readme-source.txt similarity index 100% rename from source/readme-source.txt rename to src/main/readme-source.txt