pax_global_header00006660000000000000000000000064141576671600014527gustar00rootroot0000000000000052 comment=8d9155a97dc5ab4ec93597f718fae497283b8c48 parlatype-libreoffice-extension-3.1.1/000077500000000000000000000000001415766716000200135ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/COPYING000066400000000000000000001045131415766716000210520ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, 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 them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . parlatype-libreoffice-extension-3.1.1/Credits000066400000000000000000000016131415766716000213340ustar00rootroot00000000000000License for extension/images/icon_*.png This work is licenced under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. Created by * Gabor Karsay using and modifying artwork from the * GNOME Project, http://www.gnome.org License for extension/images/*chainframes.png, extension/images/*timefield.png: This work is licenced under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Copyright 2018 by Rizal Muttaqin https://github.com/rizmut/libreoffice-style-elementary/blob/master/images_elementary/cmd/32/chainframes.pngparlatype-libreoffice-extension-3.1.1/NEWS000066400000000000000000000042041415766716000205120ustar00rootroot00000000000000Overview of Changes in Parlatype LibreOffice Extension 3.1.1 – 2021-12-19 ========================================================================= * New: Switched to Weblate for translations * New: Added first unit/integration tests * Fix: Don’t crash/freeze on WIN32 (regression introduced in 3.0) * New or updated languages: - de: Gabor Karsay - nb_NO: Allan Nordhøy - pl: Piotr Drąg Overview of Changes in Parlatype LibreOffice Extension 3.0 – 2021-11-01 ======================================================================= * New: ASR Listener prints recognized text from Parlatype (Linux only) * Fix: Don’t crash if selecting a table (fix #4) * New or updated languages: - it: albanobattistella Overview of Changes in Parlatype LibreOffice Extension 2.1 – 2020-06-21 ======================================================================= * New: Toolbar icon to insert a timestamp * New: Added Windows (win32) support * New: Changed location of macros: .otx : LibreOffice Macros > My Macros > Parlatype.oxt > Macros bundled: LibreOffice Macros > LibreOffice Macros > Parlatype * New: “Open Parlatype” tries to open a flatpak version if it can’t find Parlatype in the system path. * Fix: Linked media is immediately visible in the Menu at: File > Properties... > Custom Properties * New or updated languages: - de: Gabor Karsay - en_AU: Jared Norris - es: Rodrigo Lledó - fi: Jiri Grönroos - fr: Jean-Marc - it: albano Overview of Changes in Parlatype LibreOffice Extension 2.0 – 2020-03-19 ======================================================================= * First release, requires Parlatype 2.0 * New: A toolbar button to open Parlatype (and open linked media file) * New: A toolbar button to link Parlatype’s currently open file with the current LibreOffice Writer document * New: Automatically go to timestamp on mouse click or on key navigation (whenever cursor moves to a timestamp in the document) * New: Options page * New: Provide all macros known from former Parlatype LibreOffice Helpers * New or updated languages: - de: Gabor Karsay parlatype-libreoffice-extension-3.1.1/README.md000066400000000000000000000046421415766716000213000ustar00rootroot00000000000000# Parlatype LibreOffice Extension For this LibreOffice extension you need LibreOffice itself and Parlatype . Parlatype and this extension are released together and should only be used with matching versions. ## Installation methods LibreOffice extensions can be installed in various ways: * oxt: A single .oxt file can be installed from within LibreOffice or from commandline. This is the default mode. * bundled: Extension data is copied to the LibreOffice folder; this is the preferred installation method for distributions. ## Build from source ### Dependencies To build the extension from source, you need these packages: * meson >= 0.47.2 (older versions not tested) * gettext >= 0.19.7 * appstream (only "bundled", main package, not devel version, for metainfo.its rules) * appstream-utils (optional; if installed, this checks the appstream file) Runtime dependencies: * LibreOffice * Python script support for LibreOffice (e.g on Debian that is libreoffice-script-provider-python, on Fedora libreoffice-pyuno) * Parlatype (same version as this extension) ### Configure options * `bundled`: install as a bundle (default: false) * `libreoffice-dir`: base folder for LibreOffice, only for "bundled" mode (default: /usr/lib/libreoffice) ### Build as .oxt First close LibreOffice. If the extension was installed before, remove it with ``` $ unopkg remove parlatype.oxt ``` Continue with ``` $ meson build $ cd build $ ninja $ unopkg add parlatype.oxt ``` This will install the extension for the current user only. You can remove/install it for all users as well with ``` $ sudo unopkg remove --shared parlatype.oxt […] $ sudo unopkg add --shared parlatype.oxt ``` In this mode `ninja install` has no effect. ### Build as a bundle Prefix decides where AppStream Data is installed, make sure `libreoffice-dir` is set to your LibreOffice base folder (the one containing the folders "presets", "program", "sdk" and "shared"). ``` $ meson build --prefix=/usr -Dbundled=true $ cd build $ ninja $ ninja install ``` ## Translations [Parlatype on Hosted Weblate](https://hosted.weblate.org/engage/parlatype/). \ [![Translation status](https://hosted.weblate.org/widgets/parlatype/-/parlatype-libreoffice-extension/multi-auto.svg)](https://hosted.weblate.org/engage/parlatype/?utm_source=widget) You can always add other languages. ## Bugs Please report bugs at https://github.com/gkarsay/parlatype-libreoffice-extension/issues. parlatype-libreoffice-extension-3.1.1/appdata/000077500000000000000000000000001415766716000214255ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/appdata/meson.build000066400000000000000000000007571415766716000236000ustar00rootroot00000000000000datadir = get_option('datadir') appdatadir = join_paths(prefix, datadir, 'metainfo') metainfo = app_id + '.metainfo.xml' i18n.merge_file( input: metainfo + '.in', output: metainfo, type: 'xml', po_dir: '../po', install: true, install_dir: appdatadir ) appstream_util = find_program('appstream-util', required: false) if appstream_util.found() test('Validating ' + metainfo, appstream_util, args: ['validate-relax', '--nonet', metainfo], workdir: meson.current_build_dir() ) endifparlatype-libreoffice-extension-3.1.1/appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in000066400000000000000000000036641415766716000332220ustar00rootroot00000000000000 org.parlatype.LibreOfficeExtension org.parlatype.Parlatype.desktop libreoffice-writer.desktop Parlatype LibreOffice Extension Control Parlatype from LibreOffice https://www.parlatype.org https://github.com/gkarsay/parlatype-libreoffice-extension/issues https://hosted.weblate.org/engage/parlatype/ https://www.parlatype.org/donate.html

This release is for Parlatype 3.1.

  • Switched to Weblate for translations.
  • Translation updates for several languages.

This release is for Parlatype 3.0.

  • Automatic speech recognition: Prints recognized text from Parlatype (Linux only).
  • Fixed a crash if selecting a table.
  • Translation updates for Italian.

This new release depends on Parlatype 2.1.

  • New toolbar icon to insert a timestamp.
  • Changed location of macros: If installed with a package manager, reassign to LibreOffice Macros > LibreOffice Macros > Parlatype.
  • “Open Parlatype” tries to open a Flatpak version if it can’t find Parlatype in the system path.
  • Translation updates for several languages.
CC-BY-SA-4.0 GPL-3.0+ gabor.karsay@gmx.at
parlatype-libreoffice-extension-3.1.1/create_oxt.sh000066400000000000000000000014211415766716000225020ustar00rootroot00000000000000#!/bin/bash # Convenience script to produce an .oxt Extension package. SOURCE_ROOT=$1 BUILD_ROOT=$2 TEMPDIR=$(mktemp --directory) OXT="$BUILD_ROOT"/Parlatype.oxt rm -f "$OXT" # Add from source root cd "$SOURCE_ROOT"/extension && zip -r "$OXT" \ asr \ images \ license \ META-INF \ options \ python \ toolbar \ --exclude /*meson.build /*.in /*bundled_manifest.xml # Copy pythonpath from components to macros mkdir -p "$TEMPDIR"/python/macros cp -r "$SOURCE_ROOT"/extension/python/components/pythonpath \ "$TEMPDIR"/python/macros cd "$TEMPDIR" && zip -r "$OXT" python rm -r "$TEMPDIR" # Add generated files from build root cd "$BUILD_ROOT"/extension && zip -r "$OXT" \ description \ options \ toolbar \ description.xml cd "$BUILD_ROOT"/po && zip -r "$OXT" localeparlatype-libreoffice-extension-3.1.1/extension/000077500000000000000000000000001415766716000220275ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/META-INF/000077500000000000000000000000001415766716000231675ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/META-INF/bundled_manifest.xml000066400000000000000000000037311415766716000272200ustar00rootroot00000000000000 parlatype-libreoffice-extension-3.1.1/extension/META-INF/manifest.xml000066400000000000000000000042171415766716000255230ustar00rootroot00000000000000 parlatype-libreoffice-extension-3.1.1/extension/META-INF/meson.build000066400000000000000000000003171415766716000253320ustar00rootroot00000000000000# Install bundled manifest # plain 'manifest.xml' is for .oxt only if bundled install_data( 'bundled_manifest.xml', rename: 'manifest.xml', install_dir: join_paths(extension_dir, 'META-INF') ) endifparlatype-libreoffice-extension-3.1.1/extension/asr/000077500000000000000000000000001415766716000226145ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/asr/jobs.xcu000066400000000000000000000016611415766716000242760ustar00rootroot00000000000000 org.parlatype.ASRListener parlatype-libreoffice-extension-3.1.1/extension/description.xml.in.in.in000066400000000000000000000020111415766716000265050ustar00rootroot00000000000000 Parlatype.org Parlatype for LibreOffice parlatype-libreoffice-extension-3.1.1/extension/description_translation.xml000066400000000000000000000002261415766716000275120ustar00rootroot00000000000000 Control Parlatype from LibreOffice parlatype-libreoffice-extension-3.1.1/extension/i18n_description.sh000077500000000000000000000023741415766716000255560ustar00rootroot00000000000000#!/bin/bash # Ridiculous hack to automatically translate OpenOffice's MESON_SOURCE_ROOT="$1" MESON_BUILD_ROOT="$2" SOURCE_DIR="$MESON_SOURCE_ROOT"/extension BUILD_DIR="$MESON_BUILD_ROOT"/extension # First get the english text mkdir -p "$BUILD_DIR"/description string=`sed -n 's/\(.*\)<\/name>/\1/p' \ "$SOURCE_DIR"/description_translation.xml` echo "$string" > "$BUILD_DIR"/description/desc_en.txt # Iterate over .po files for all languages while read lang do # Strip comments if [[ ${lang:0:1} != "#" && ${lang:0:1} != " " ]] then # .po files have exactly one translation for source file "translation_source.xml" # Get that translation and check if not empty. string=`grep -A 2 'extension/description_translation.xml' "$MESON_SOURCE_ROOT"/po/$lang.po | sed -n 's/msgstr "\(.*\)"/\1/p'` if [ "$string" != "" ] then echo "$string" > "$BUILD_DIR"/description/desc_$lang.txt sed "/.*\/extension-description/i " \ "$BUILD_DIR"/description.xml.in \ > "$BUILD_DIR"/description.xml fi fi done < "$MESON_SOURCE_ROOT"/po/LINGUAS # LibreOffice description.xml doesn't understand xml:lang attribute sed -i'' 's/xml:lang/lang/' "$BUILD_DIR"/description.xmlparlatype-libreoffice-extension-3.1.1/extension/images/000077500000000000000000000000001415766716000232745ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/images/chainframes.png000066400000000000000000000022541415766716000262650ustar00rootroot00000000000000PNG  IHDR DsBITO pHYs B(xtEXtSoftwarewww.inkscape.org<PLTEāk+ƜtRNS *+,-.789:;<=>@A\]_bcdeefhjxz}~KsIDAT8ŒiWa_w%Mд­LLPKS\Ɉ\lHGiTk|?=\9rB#I=WdyD8q8o.j(Ƙ 2֚0 R"d/ٺe3CWOH7a|62JgjT!ӿʎZ9UJaa~;{cH?qkOԍT%ۀ5==r9fgv d +b vq#G~$3TM>֚5=H!QRF! IS1H)R݃7LOy-RLM`8~H)1Ɛʀ,!AC]=6EQJё 8zl PD R,u+h v @>A8粃{NU)%2qsTX(<6lXO3OV& /{}kuD!(cM$NOOGo~*+DVsϷ}O\;EئeJ&܆8@OZsFq[IG1j Rhh4zz7nܔ+JJۆTUΜ9.s?#u@ s U!A` aYs,ܭ(ݭIENDB`parlatype-libreoffice-extension-3.1.1/extension/images/icon_48.png000066400000000000000000000052021415766716000252440ustar00rootroot00000000000000PNG  IHDR00WsBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org< IDATh՚k\E53݄< <7 B#BT~R<,PZF4F bPSbIDD Ynnv7;ﹷpqfd)9}1B/j3o[em:zTZqדm۞PZ8yؖ'r1F֭_l=unJ )%yd5!$Z+~Dqrr?}1jN[ܻooBq\| "] ޖ&JQ.ٺ7 _s nڴ)aY8`PJ-Zp]um7-=;Fmр5F_)*2 paYRȓ-u=\T*1=W)/"vstaNSˤmX< KBP(s%Q*" r4H$S`b(hN-?%}/\.S(T*hmH*C5\*st75hbbj"FQIs-{ɩ '%LUme4'ٱa ZҀ@}?f|+c[}gd@JŅI\]uA*(B&:vvtٍ-L:f K&&^R Yn9czct/3^JIggG,'21 &P])kg ٍu]^ _k녙h˺e":+`<~MG$lݻ KZ(rU&nYFy@YTQi֞wn GFGm'f@`Y6=tUW^I6J<`Z~M,*)n'nn$慚\m|lG?([RyhV S H D[:m%}Wd2sq|U @lܰ!2پ[J31V>D)$,Շ56¥\s0k֬'M|>嗿ޞ&MAz:(sMF,15 ض<4@ME{/c(02=3J (s4FӱT 6 @ 02 ]L2uҚ]z)K1-N0P*cV1qJw7r_0e5#~KHxnZFZqGA\bڋ1TsіhP(RWGrsդ%-^Ԓ=PjBUz˥n|iY8ϚXpqy`tBe#@U%R%p "GnZwwu Zhlb6c|_ƶ,:;܅͑.>|8w62COt>NPU6Mcs9gbd M7B.d2ui␀,}Mb^v,}SnMt-);1EYXk "PȻ+.Aey)㰔r(A1n#Jh Trd7>^^6ǜThhK(jh[I1IENDB`parlatype-libreoffice-extension-3.1.1/extension/images/lc_timefield.png000066400000000000000000000021731415766716000264250ustar00rootroot00000000000000PNG  IHDRשsBITO pHYs B(xtEXtSoftwarewww.inkscape.org<PLTE 888;;;>>>AAACCCBBBEEEGGGDDDBBB000DDDFFFGGGJJJ///111UUUWWWYYYXXXOOOVVVYYYbbbPPPAAABBBBBB^^^DDD\\\___```]]]cccdddggg\\\bbbgggUUUYYYXXX¿n]ZuuupkzhƂr㵪㶬ƿ橚y瘅v餔WtRNS "#&')467AJbcdddetuuuwyk ǪIDATOOABk D9'$y51&0FIL<v>XC5M,;~]g~oq#t>Y>8$u.&pS ii#PhTUUIUUm\^^v666ދG~e$u}rrr9;;{p[IENDB`parlatype-libreoffice-extension-3.1.1/extension/license/000077500000000000000000000000001415766716000234515ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/license/license.txt000066400000000000000000001045131415766716000256400ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, 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 them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . parlatype-libreoffice-extension-3.1.1/extension/meson.build000066400000000000000000000025761415766716000242030ustar00rootroot00000000000000extension_dir = join_paths(base_lo_dir, 'share', 'extensions', 'parlatype') script_dir = join_paths(base_lo_dir, 'share', 'Scripts', 'python') # description.xml is generated in 3 steps: # 1) Configure the version # 2) Merge translations for # 3) Generate links and text files # in description/ for en and all translated languages # using description_translation.xml and a flaky script desc = configuration_data() desc.set('VERSION', meson.project_version()) description_in_in = configure_file( input: 'description.xml.in.in.in', output: 'description.xml.in.in', configuration: desc ) description_in = i18n.merge_file( input: description_in_in, output: 'description.xml.in', type: 'xml', po_dir: '../po', data_dirs: [ '../po' ], install: false, ) i18n_script = find_program('i18n_description.sh', required: true) description = custom_target( 'description', input: description_in, output: 'description.xml', command: [ i18n_script, meson.source_root(), meson.build_root() ], install: bundled, install_dir: extension_dir, ) subdir('META-INF') subdir('options') subdir('toolbar') if bundled subdir('python') install_subdir( 'asr', install_dir: extension_dir, ) install_subdir( join_paths(meson.current_build_dir(), 'description'), install_dir: extension_dir, ) install_subdir( 'images', install_dir: extension_dir ) endifparlatype-libreoffice-extension-3.1.1/extension/options/000077500000000000000000000000001415766716000235225ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/options/ConfigurationData.xcu000066400000000000000000000006331415766716000276460ustar00rootroot00000000000000 1 1 parlatype-libreoffice-extension-3.1.1/extension/options/ConfigurationSchema.xcs000066400000000000000000000013411415766716000301700ustar00rootroot00000000000000 Go to timestamp on key press. Go to timestamp on mouse press. parlatype-libreoffice-extension-3.1.1/extension/options/OptionsDialogPage.xdl000066400000000000000000000020611415766716000276020ustar00rootroot00000000000000 parlatype-libreoffice-extension-3.1.1/extension/options/OptionsDialogRegistry.xcu.in000066400000000000000000000020011415766716000311450ustar00rootroot00000000000000 org.parlatype.loextension Parlatype %origin%/OptionsDialogPage.xdl org.parlatype.OptionsDialog parlatype-libreoffice-extension-3.1.1/extension/options/meson.build000066400000000000000000000006551415766716000256720ustar00rootroot00000000000000options_dialog = i18n.merge_file( input: 'OptionsDialogRegistry.xcu.in', output: 'OptionsDialogRegistry.xcu', type: 'xml', po_dir: '../../po', data_dirs: [ '../../po' ], install: bundled, install_dir: join_paths(extension_dir, 'options') ) if bundled install_data( [ 'ConfigurationData.xcu', \ 'ConfigurationSchema.xcs', \ 'OptionsDialogPage.xdl' ], install_dir: join_paths(extension_dir, 'options') ) endifparlatype-libreoffice-extension-3.1.1/extension/python/000077500000000000000000000000001415766716000233505ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/python/components/000077500000000000000000000000001415766716000255355ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/python/components/ASR.py000066400000000000000000000102421415766716000265330ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2020 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import unohelper import sys from com.sun.star.task import XJob import threading import parlatype_utils as pt_utils if sys.platform == "linux": import dbus from gi.repository import GLib from dbus.mainloop.glib import DBusGMainLoop import dbus.mainloop.glib loop = None hypothesis_range = None class ASRJob(unohelper.Base, XJob): def __init__(self, ctx): self.ctx = ctx smgr = self.ctx.getServiceManager() self.desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", self.ctx) def dbus_signal_handler(self, message, signal): # The TextRange representing the last hypothesis global hypothesis_range doc = self.desktop.getCurrentComponent() try: controller = doc.getCurrentController() except AttributeError: return # Signal may be "ASRHypothesis" or "ASRFinal". # A hypothesis is a probable result that will be replaced by the next # hypothesis or by the final result. # That means: If we had a hypothesis before, it must be replaced by # the current message. if signal == "ASRCancel": hypothesis_range = None return if hypothesis_range is None: # Get current cursor position textrange = pt_utils.getTextRange(controller) else: textrange = hypothesis_range # Insert message if signal == "ASRFinal": message = message + " " try: textrange.setString(message) except Exception as e: print(str(e)) if signal == "ASRHypothesis": hypothesis_range = textrange else: hypothesis_range = None def execute(self, args): # Sorry, currently Linux only if sys.platform == 'win32': return; # There should be only one loop running global loop # Get the event which triggered this job if not args: return for arg in args: if arg.Name == "Environment": subargs = arg.Value for subarg in subargs: if subarg.Name == "EventName": event = subarg.Value if event == "OnStartApp": if loop: return # Default context will cause deadlocks when opening other windows, # e.g. Options. context = GLib.MainContext.new() loop = GLib.MainLoop(context) DBusGMainLoop(set_as_default=True) bus = dbus.SessionBus() bus.add_signal_receiver(self.dbus_signal_handler, bus_name='org.parlatype.Parlatype', dbus_interface='org.parlatype.Parlatype', member_keyword='signal') # Listen in a thread. LibreOffice will not start up until this # job is finished. threading.Thread(target=loop.run).start() return if event == "OnUnload": global hypothesis_range # Will crash if not cleared hypothesis_range = None if event == "OnCloseApp": if loop: loop.quit() loop = None ImplementationName = "org.parlatype.ASRListener" g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( ASRJob, ImplementationName, (ImplementationName,),) parlatype-libreoffice-extension-3.1.1/extension/python/components/OptionsDialogHandler.py000066400000000000000000000064311415766716000321640ustar00rootroot00000000000000#! # -*- coding: utf-8 -*- import unohelper from com.sun.star.awt import XContainerWindowEventHandler from com.sun.star.beans import PropertyValue import gettext import parlatype_utils as pt_utils _ = gettext.gettext class OptionsDialogHandler(unohelper.Base, XContainerWindowEventHandler): def __init__(self, ctx): self.ctx = ctx smgr = ctx.getServiceManager() self.cfg = smgr.createInstanceWithContext( 'com.sun.star.configuration.ConfigurationProvider', ctx) self.node = PropertyValue() self.node.Name = 'nodepath' self.node.Value = '/org.parlatype.config' self.orig_keys_value = 0 self.orig_mouse_value = 0 pt_utils.setGettextDomain(ctx) # XContainerWindowEventHandler def callHandlerMethod(self, window, eventObject, method): if method == "external_event": try: self._handleExternalEvent(window, eventObject) except Exception as e: print(e) return True # XContainerWindowEventHandler def getSupportedMethodNames(self): return ("external_event",) def _handleExternalEvent(self, window, eventName): if eventName == "ok": self._saveData(window) elif eventName == "back": self._loadData(window, eventName) elif eventName == "initialize": self._loadData(window, eventName) return True def _saveData(self, window): name = window.getModel().Name if name != "ParlatypeOptionsDialog": return writer = self.cfg.createInstanceWithArguments( 'com.sun.star.configuration.ConfigurationUpdateAccess', (self.node,)) check_keys = window.getControl("CheckboxKeys") check_mouse = window.getControl("CheckboxMouse") new_keys_value = check_keys.getState() new_mouse_value = check_mouse.getState() if self.orig_keys_value != new_keys_value: writer.setPropertyValue('TimestampKeys', new_keys_value) if self.orig_mouse_value != new_mouse_value: writer.setPropertyValue('TimestampMouse', new_mouse_value) writer.commitChanges() def _loadData(self, window, eventName): name = window.getModel().Name if name != "ParlatypeOptionsDialog": return check_keys = window.getControl("CheckboxKeys") check_mouse = window.getControl("CheckboxMouse") if eventName == "initialize": label = window.getControl("Label1") label.setText(_("Go to timestamp")) check_mouse.setLabel(_("On mouseclick")) check_keys.setLabel(_("On key cursor")) reader = self.cfg.createInstanceWithArguments( 'com.sun.star.configuration.ConfigurationAccess', (self.node,)) self.orig_keys_value = reader.getPropertyValue('TimestampKeys') self.orig_mouse_value = reader.getPropertyValue('TimestampMouse') check_keys.setState(self.orig_keys_value) check_mouse.setState(self.orig_mouse_value) # uno implementation ImplementationName = "org.parlatype.OptionsDialog" g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( OptionsDialogHandler, ImplementationName, (ImplementationName,),) parlatype-libreoffice-extension-3.1.1/extension/python/components/Parlatype.py000066400000000000000000000432631415766716000300600ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2020 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import sys import os import subprocess import threading import uno import unohelper from com.sun.star.lang import XServiceInfo from com.sun.star.frame import XDispatchProvider from com.sun.star.frame import XDispatch from com.sun.star.frame import FeatureStateEvent from com.sun.star.awt import XKeyHandler from com.sun.star.awt import XMouseClickHandler from com.sun.star.document import XDocumentEventListener from com.sun.star.beans import PropertyValue from com.sun.star.beans import XPropertyChangeListener from com.sun.star.beans.PropertyAttribute import MAYBEVOID from com.sun.star.beans.PropertyAttribute import BOUND from com.sun.star.beans.PropertyAttribute import REMOVEABLE import gettext import parlatype_utils as pt_utils from parlatype_utils import Cmd, showMessage if sys.platform == 'win32': from winreg import ConnectRegistry, OpenKey, QueryValueEx, CloseKey from winreg import HKEY_LOCAL_MACHINE, KEY_READ _ = gettext.gettext ImplementationName = "org.parlatype.ProtocolHandler" ServiceName = "com.sun.star.frame.ProtocolHandler" Protocol = "org.parlatype.loextension:" current_timestamp = '' class OptionsListener(unohelper.Base, XPropertyChangeListener): def __init__(self, parent, controller): self.parent = parent self.controller = controller # print("Optionslistener init for", self.controller.getTitle()) def propertyChange(self, Event): # Event.OldValue, Event.NewValue and Event.Further seem to be always # None and can't be used for anything. # print("Property \"{}\" changed".format(Event.PropertyName)) self.parent.updateTimestampOptions(self.controller) return False def disposing(self, source): # print("Parlatype Extension: OptionsListener removed") pass class KeyHandler(unohelper.Base, XKeyHandler): def __init__(self, parent): self.parent = parent def keyPressed(self, oEvent): return False def keyReleased(self, oEvent): self.parent._checkCursorforTimestamp() return False def disposing(self, source): pass class MouseHandler(unohelper.Base, XMouseClickHandler): def __init__(self, parent): self.parent = parent def mousePressed(self, oEvent): return False def mouseReleased(self, oEvent): self.parent._checkCursorforTimestamp(goto_current_timestamp=True) return False def disposing(self, source): pass def removeDocumentLink(doc): '''Remove custom document property "Parlatype".''' doc_prop = doc.getDocumentProperties() doc_uprop = doc_prop.getUserDefinedProperties() doc_uprop.removeProperty('Parlatype') def setDocumentLink(doc, link): '''Create custom document property "Parlatype", if it doesn't exist, and set its value.''' doc_prop = doc.getDocumentProperties() doc_uprop = doc_prop.getUserDefinedProperties() set = doc_uprop.getPropertySetInfo() if set.hasPropertyByName('Parlatype') is False: doc_uprop.addProperty('Parlatype', MAYBEVOID + BOUND + REMOVEABLE, "") # default value doc_uprop.setPropertyValue('Parlatype', link) def getDocumentLink(doc): '''Get value of custom document property "Parlatype".''' doc_prop = doc.getDocumentProperties() doc_uprop = doc_prop.getUserDefinedProperties() set = doc_uprop.getPropertySetInfo() if set.hasPropertyByName('Parlatype') is False: return None else: return doc_uprop.getPropertyValue('Parlatype') def insertTimestamp(ctx): smgr = ctx.getServiceManager() desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", ctx) doc = desktop.getCurrentComponent() controller = doc.getCurrentController() textrange = pt_utils.getTextRange(controller) if (textrange is None): return try: timestamp = pt_utils.getParlatypeString("GetTimestamp") if timestamp is not None: textrange.setString(timestamp) except Exception: pass def launchFlatpak(ctx, url): cmdline = ["flatpak", "run", "org.parlatype.Parlatype"] if url is not None: cmdline.append(url) try: p = subprocess.Popen(cmdline, universal_newlines=True, stderr=subprocess.PIPE) except FileNotFoundError: # This assumes we tried to launch a regular binary first. # Neither regular Parlatype nor flatpak is installed. showMessage(ctx, _("Parlatype is not installed.")) return err = p.stderr.readline() if err == "" or err is None: return # AppArmor profile for LibreOffice may prevent launching flatpak: # bwrap: Can't open /proc/self/mountinfo: Permission denied # bwrap: Can't read from privileged_op_socket if "bwrap" in err: showMessage(ctx, _("It seems like the AppArmor profile for " "LibreOffice prevents launching Flatpak.")) return # If not installed, we get a localized error message. # Lets see, if it is installed via flatpak info. try: p = subprocess.run(["flatpak", "info", "org.parlatype.Parlatype"], check=True) except subprocess.CalledProcessError: showMessage(ctx, _("Parlatype is not installed.")) return # Whatever that may be ... showMessage(ctx, err) def openParlatype(ctx): if sys.platform == 'win32': registry = ConnectRegistry(None, HKEY_LOCAL_MACHINE) try: key = OpenKey(registry, r'SOFTWARE\Microsoft\Windows' + r'\CurrentVersion\Uninstall\Parlatype', 0, KEY_READ) except FileNotFoundError: CloseKey(registry) # TODO add a clickable download link showMessage(ctx, _("Parlatype is not installed.")) return [path, regtype] = (QueryValueEx(key, "InstallLocation")) CloseKey(key) CloseKey(registry) cmd = os.path.join(path, 'bin', 'parlatype.exe') cmdline = [cmd] else: cmdline = ["parlatype"] smgr = ctx.getServiceManager() desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", ctx) doc = desktop.getCurrentComponent() url = getDocumentLink(doc) if url is not None and len(url) > 0: cmdline.append(url) try: subprocess.Popen(cmdline) except FileNotFoundError: # Try Flatpak in a different thread, because we're waiting for its # return code/stderr and that would keep the button pressed. t = threading.Thread(target=launchFlatpak, args=(self.ctx, url,)) t.daemon = True t.start() class ParlatypeController(object): """ Controls Parlatype. """ def __init__(self, ctx): self.ctx = ctx self.key_handler = KeyHandler(self) self.mouse_handler = MouseHandler(self) self.options_listener = None self.link_url = None self.linked = False smgr = self.ctx.getServiceManager() self.desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", self.ctx) def _checkCursorforTimestamp(self, goto_current_timestamp=False): global current_timestamp doc = self.desktop.getCurrentComponent() controller = doc.getCurrentController() timestamp = pt_utils.extractTimestamp(controller) if (timestamp is None): current_timestamp = '' return if (timestamp == current_timestamp and goto_current_timestamp is False): return current_timestamp = timestamp pt_utils.sendParlatypeCommand(self.ctx, Cmd.GOTO_TIMESTAMP.value, timestamp) def _getOptionsReader(self): smgr = self.ctx.getServiceManager() cfg = smgr.createInstanceWithContext( 'com.sun.star.configuration.ConfigurationProvider', self.ctx) node = PropertyValue() node.Name = 'nodepath' node.Value = '/org.parlatype.config' return cfg.createInstanceWithArguments( 'com.sun.star.configuration.ConfigurationAccess', (node,)) def updateTimestampOptions(self, controller): # Get options reader = self._getOptionsReader() keys = reader.getPropertyValue('TimestampKeys') mouse = reader.getPropertyValue('TimestampMouse') # Add or remove Key and Mouse event listeners to document doc = self.desktop.getCurrentComponent() if (keys == 1): controller.addKeyHandler(self.key_handler) else: controller.removeKeyHandler(self.key_handler) if (mouse == 1): controller.addMouseClickHandler(self.mouse_handler) else: controller.removeMouseClickHandler(self.mouse_handler) def deactivateTimestampScanner(self): doc = self.desktop.getCurrentComponent() controller = doc.getCurrentController() controller.removeKeyHandler(self.key_handler) controller.removeMouseClickHandler(self.mouse_handler) reader = self._getOptionsReader() reader.removePropertyChangeListener('TimestampKeys', self.options_listener) reader.removePropertyChangeListener('TimestampMouse', self.options_listener) def activateTimestampScanner(self): doc = self.desktop.getCurrentComponent() controller = doc.getCurrentController() # Get options reader = self._getOptionsReader() self.updateTimestampOptions(controller) # Attach Options listener try: if self.options_listener is None: self.options_listener = OptionsListener(self, controller) reader.addPropertyChangeListener('TimestampKeys', self.options_listener) reader.addPropertyChangeListener('TimestampMouse', self.options_listener) except Exception as e: showMessage(self.ctx, str(e)) def setLinkedStatus(self, status): self.linked = status def unlinkMedia(self): try: doc = self.desktop.getCurrentComponent() removeDokumentLink(doc) self.linked = False return True except Exception as e: showMessage(self.ctx, "{}: {}".format(e.__class__.__name__, str(e))) return False def linkMedia(self): doc = self.desktop.getCurrentComponent() previous = getDocumentLink(doc) if previous is not None and len(previous) > 0: showMessage(self.ctx, "Already linked to {}.".format(previous)) return try: if pt_utils.ParlatypeIsRunning(self.ctx) is False: showMessage(self.ctx, _("Please open Parlatype first.")) return except Exception as e: showMessage(self.ctx, str(e)) return try: media = pt_utils.getParlatypeString("GetURI") except Exception as e: showMessage(self.ctx, str(e)) return if media is None: showMessage(self.ctx, _("Please open a media file first.")) return setDocumentLink(doc, media) self.linked = True def link(self): ''' This is a toggle type method, it can mean link or unlink. ''' if self.linked: if self.unlinkMedia(): self.deactivateTimestampScanner() return True else: return False else: self.linkMedia() if self.linked: self.activateTimestampScanner() return True else: return False class EventListener(unohelper.Base, XDocumentEventListener): def __init__(self, parent): self.parent = parent pass # Sequence of events if a document is opened or created: # 1) OnViewCreated # 2) OnPageCountChange # 3) OnNew or OnLoad # 4) OnLayoutFinished # # Sequence of events if a new window is opened (with the same content # as the currently open window) in the menu: Window > New Window # 1) OnViewCreated # 2) OnPageCountChange # # OnViewCreated we still get the LinkStatus of the previously opened # document, not the new one! def documentEventOccured(self, event): if event.EventName == "OnLayoutFinished": self.parent.updateLinkButton() self.parent.removeDocumentListener() if event.EventName == "OnViewCreated": self.parent.updateLinkButton() def disposing(event): pass class ToolbarHandler(unohelper.Base, XServiceInfo, XDispatchProvider, XDispatch): ''' This class is called for each new view and in each view for each command ("open", "link", "timestamp"). ''' def __init__(self, ctx): self.ctx = ctx self.listener = None self.status = False self.ev = None self.doc_listener = None self.pt = ParlatypeController(ctx) self.GEB = self.ctx.getValueByName( "/singletons/com.sun.star.frame.theGlobalEventBroadcaster") pt_utils.setGettextDomain(ctx) # XServiceInfo def supportsService(self, name): return (name == ServiceName) def getImplementationName(self): return ImplementationName def getSupportedServiceNames(self): return (ServiceName,) # XDispatchProvider def queryDispatch(self, url, target_frame_name, search_flags): if url.Protocol != Protocol: return None if url.Path == "link": ''' Add a DocumentEventListener. On event "OnLoad" we want to check, if the document is already linked and set the toolbar button appropriately. We don't add the listener to our document, because queryDispatch is called even before there is a document object. Therefore we use the Global Event Broadcaster which notifies of all documents. It removes itself "OnLayoutFinished" which happens after "OnLoad" or "OnNew" respectively. An alternative approach didn't work: A Job triggered on event "OnLoad". I was not able to change the button's state. ''' self.doc_listener = EventListener(self) self.GEB.addDocumentEventListener(self.doc_listener) return self def queryDispatches(self, requests): # This is actually never called dispatches = \ [self.queryDispatch(r.FeatureURL, r.FrameName, r.SearchFlags) for r in requests] return dispatches # XDispatch def dispatch(self, url, args): if url.Protocol == Protocol: if url.Path == "open": openParlatype(self.ctx) elif url.Path == "link": if self.pt.link() is True: self.status = not self.status self.ev.State = self.status self.listener.statusChanged(self.ev) elif url.Path == "timestamp": insertTimestamp(self.ctx) def addStatusListener(self, control, url): ''' The StatusListener enables controlling toolbar items. We are only interested in the "link" item to control its toggle state. State false means unpressed, state true is pressed in. To change the state, a FeatureEventState has to be sent via the listener's statusChanged method. This is done in self.dispatch. ''' self.listener = control self.ev = FeatureStateEvent() self.ev.FeatureURL = url self.ev.IsEnabled = True self.ev.Requery = False self.ev.Source = self self.ev.State = self.status def removeStatusListener(self, control, url): pass def removeDocumentListener(self): self.GEB.removeDocumentEventListener(self.doc_listener) def updateLinkButton(self): smgr = self.ctx.getServiceManager() desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", self.ctx) doc = desktop.getCurrentComponent() url = getDocumentLink(doc) if url is None or len(url) == 0: self.pt.setLinkedStatus(False) self.pt.deactivateTimestampScanner() self.status = False self.ev.State = self.status self.listener.statusChanged(self.ev) else: self.pt.setLinkedStatus(True) self.pt.activateTimestampScanner() self.status = True self.ev.State = self.status self.listener.statusChanged(self.ev) # uno implementation g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( ToolbarHandler, ImplementationName, (ServiceName,),) parlatype-libreoffice-extension-3.1.1/extension/python/components/pythonpath/000077500000000000000000000000001415766716000277335ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/python/components/pythonpath/parlatype_utils.py000066400000000000000000000237021415766716000335320ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2016-2020 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import uno import os import sys import gettext from enum import Enum, auto from com.sun.star.awt.MessageBoxType import MESSAGEBOX if sys.platform == "linux": import dbus if sys.platform == "win32": from parlatype_win32api import * MAX_TIMESTAMP_CHARS = 11 MIN_TIMESTAMP_CHARS = 4 _ = gettext.gettext # Defined in Parlatype: src/pt-win32-copydata.h class Cmd(Enum): PLAY_PAUSE = 0 GOTO_TIMESTAMP = auto() JUMP_BACK = auto() JUMP_FORWARD = auto() DECREASE_SPEED = auto() INCREASE_SPEED = auto() OPEN_FILE = auto() PRESENT_WINDOW = auto() GET_TIMESTAMP = auto() GET_URI = auto() RESPONSE_TIMESTAMP = auto() RESPONSE_URI = auto() def showMessage(ctx, message): toolkit = ctx.ServiceManager.createInstance('com.sun.star.awt.Toolkit') parent = toolkit.getDesktopWindow() dlg = toolkit.createMessageBox( parent, MESSAGEBOX, 1, _("Parlatype"), message) return dlg.execute() def _getErrorMessage(): msgbuffer = LPWSTR() FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, None, GetLastError(), 0, cast(byref(msgbuffer), LPWSTR), 0, None) msg = msgbuffer.value.rstrip() LocalFree(msgbuffer) return msg def _getParlatypeWin32String(request_string): pipe = CreateFile(pipename, GENERIC_READ | GENERIC_WRITE, 0, None, OPEN_EXISTING, 0, None) if (pipe == INVALID_HANDLE_VALUE): raise Exception("CreateFile: {}".format(_getErrorMessage())) mode = c_ulong(PIPE_READMODE_MESSAGE) success = SetNamedPipeHandleState(pipe, byref(mode), None, None) if (not success): CloseHandle(pipe) raise Exception("SetNamedPipeHandleState: {}".format( _getErrorMessage())) request_bytes = request_string.encode('utf-8') read_buffer = create_string_buffer(READBUFSIZE) num_read = c_ulong(0) success = TransactNamedPipe(pipe, c_char_p(request_bytes), len(request_bytes), read_buffer, READBUFSIZE, byref(num_read), None) if success == 0 and GetLastError() != ERROR_MORE_DATA: CloseHandle(pipe) raise Exception("TransactNamedPipe: {}".format(_getErrorMessage())) result = read_buffer.value[:num_read.value] while True: if success: break success = ReadFile(pipe, read_buffer, READBUFSIZE, byref(num_read), None) if (success == 0 and GetLastError() != ERROR_MORE_DATA): CloseHandle(pipe) raise Exception("ReadFile: {}".format(_getErrorMessage())) result += read_buffer.value[:num_read.value] CloseHandle(pipe) result = result.decode('utf-8') if result == "Unknown request": raise Exception("Unknown Parlatype request: {}".format(result)) elif result == "NONE": return None return result def _getParlatypeLinuxString(request): iface = _getDBUSService() if request == "GetURI": result = iface.GetURI() elif request == "GetTimestamp": result = iface.GetTimestamp() else: raise Exception("Unknown Parlatype request: {}".format(request)) if result == "": return None else: return result def setGettextDomain(ctx): info = ctx.getByName( "/singletons/com.sun.star.deployment.PackageInformationProvider") extension_uri = info.getPackageLocation("org.parlatype.loextension") extension_path = uno.fileUrlToSystemPath(extension_uri) locale_path = os.path.join(extension_path, 'locale') gettext.bindtextdomain('parlatype_lo', locale_path) gettext.textdomain('parlatype_lo') def _getDBUSService(): bus = dbus.SessionBus() if bus.name_has_owner('org.parlatype.Parlatype') is False: return None proxy = dbus.SessionBus().get_object( "org.parlatype.Parlatype", "/org/parlatype/parlatype") return dbus.Interface(proxy, "org.parlatype.Parlatype") def ParlatypeIsRunning(ctx): if sys.platform == 'linux': iface = _getDBUSService() if iface is None: return False else: return True if sys.platform == 'win32': try: hwnd = FindWindow("ParlatypeHiddenWindowClass", "ParlatypeHiddenWindowTitle") except Exception as e: showMessage(ctx, str(e)) return hwnd > 0 def getParlatypeString(request): if sys.platform == 'linux': return _getParlatypeLinuxString(request) if sys.platform == 'win32': return _getParlatypeWin32String(request) def _sendParlatypeWin32Command(command_id, string): hwnd = FindWindow("ParlatypeHiddenWindowClass", "ParlatypeHiddenWindowTitle") if hwnd == 0: return cds = COPYDATASTRUCT() cds.dwData = command_id if string: string = string.encode('ansi') cds.cbData = ctypes.sizeof(ctypes.create_string_buffer(string)) cds.lpData = cast(c_char_p(string), c_void_p) else: cds.cbData = 0 cds.lpData = None SendMessage(hwnd, WM_COPYDATA, 0, byref(cds)) def sendParlatypeCommand(ctx, command_id, arg): if sys.platform == 'linux': service = _getDBUSService() if service is None: # Parlatype is not running, return silently return try: if command_id == Cmd.PLAY_PAUSE.value: service.PlayPause() elif command_id == Cmd.GOTO_TIMESTAMP.value: service.GotoTimestamp(arg) elif command_id == Cmd.JUMP_BACK.value: service.JumpBack() elif command_id == Cmd.JUMP_FORWARD.value: service.JumpForward() elif command_id == Cmd.DECREASE_SPEED.value: service.DecreaseSpeed() elif command_id == Cmd.INCREASE_SPEED.value: service.IncreaseSpeed() except Exception as e: showMessage(ctx, str(e)) if sys.platform == 'win32': try: if command_id == Cmd.PLAY_PAUSE.value: _sendParlatypeWin32Command(Cmd.PLAY_PAUSE.value, None) elif command_id == Cmd.GOTO_TIMESTAMP.value: _sendParlatypeWin32Command(Cmd.GOTO_TIMESTAMP.value, arg) elif command_id == Cmd.JUMP_BACK.value: _sendParlatypeWin32Command(Cmd.JUMP_BACK.value, None) elif command_id == Cmd.JUMP_FORWARD.value: _sendParlatypeWin32Command(Cmd.JUMP_FORWARD.value, None) elif command_id == Cmd.DECREASE_SPEED.value: _sendParlatypeWin32Command(Cmd.DECREASE_SPEED.value, None) elif command_id == Cmd.INCREASE_SPEED.value: _sendParlatypeWin32Command(Cmd.INCREASE_SPEED.value, None) except Exception as e: showMessage(ctx, str(e)) def getTextRange(controller): # the writer controller impl supports # the css.view.XSelectionSupplier interface xSelectionSupplier = controller selection = xSelectionSupplier.getSelection() # selection can be a XTextRange, XTextTableCursor and possibly others. # We want XTextRange with an XIndexAccess interface to use .getCount() and # .getByIndex(). try: count = selection.getCount() except AttributeError: # ignore selection without XIndexAccess interface return None # don't mess around with multiple selections if (count != 1): return None textrange = selection.getByIndex(0) # don't mess around with selections, just plain cursor if (len(textrange.getString()) == 0): return textrange else: return None def _isValidCharacter(char): if (char.isdigit() or char == ":" or char == "." or char == "-"): return True return False def extractTimestamp(controller): textrange = getTextRange(controller) if (textrange is None): return None xText = textrange.getText() cursor = xText.createTextCursorByRange(textrange) # select first char on the left, no success if at start of document success = cursor.goLeft(1, True) if (success): i = 0 while (_isValidCharacter(cursor.getString()[0]) and i < MAX_TIMESTAMP_CHARS): success = cursor.goLeft(1, True) i += 1 if (success): cursor.goRight(1, True) cursor.collapseToStart() cursor.goRight(2, True) i = 0 while (_isValidCharacter(cursor.getString()[-1:]) and i < MAX_TIMESTAMP_CHARS): success = cursor.goRight(1, True) i += 1 if (success): cursor.goLeft(1, True) candidate = cursor.getString() if (len(candidate) < MIN_TIMESTAMP_CHARS or len(candidate) > MAX_TIMESTAMP_CHARS): return None else: return candidate parlatype-libreoffice-extension-3.1.1/extension/python/components/pythonpath/parlatype_win32api.py000066400000000000000000000055441415766716000340320ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2020 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import ctypes from ctypes import c_int, c_uint, c_long, c_ulong from ctypes import c_char_p, c_wchar_p, c_void_p from ctypes import cast, byref, Structure, WINFUNCTYPE, POINTER from ctypes import create_string_buffer, create_unicode_buffer from ctypes.wintypes import HINSTANCE, LPARAM, DWORD, LPWSTR ''' Copydata ''' GetModuleHandle = ctypes.windll.kernel32.GetModuleHandleW FindWindow = ctypes.windll.user32.FindWindowW SendMessage = ctypes.windll.user32.SendMessageW RegisterClass = ctypes.windll.user32.RegisterClassW CreateWindow = ctypes.windll.user32.CreateWindowExW DefWindowProc = ctypes.windll.user32.DefWindowProcW GetMessage = ctypes.windll.user32.GetMessageW TranslateMessage = ctypes.windll.user32.TranslateMessage DispatchMessage = ctypes.windll.user32.DispatchMessageW WM_COPYDATA = 74 WNDPROC = WINFUNCTYPE(c_long, c_int, c_uint, c_int, c_int) class WNDCLASS(Structure): _fields_ = [ ('style', c_uint), ('lpfnWndProc', WNDPROC), ('cbClsExtra', c_int), ('cbWndExtra', c_int), ('hInstance', HINSTANCE), ('hIcon', c_int), ('hCursor', c_int), ('hbrBackground', c_int), ('lpszMenuName', c_char_p), ('lpszClassName', c_char_p) ] class COPYDATASTRUCT(Structure): _fields_ = [ ('dwData', LPARAM), ('cbData', DWORD), ('lpData', c_void_p) ] PCOPYDATASTRUCT = POINTER(COPYDATASTRUCT) ''' Named Pipe ''' CreateFile = ctypes.windll.kernel32.CreateFileW SetNamedPipeHandleState = ctypes.windll.kernel32.SetNamedPipeHandleState TransactNamedPipe = ctypes.windll.kernel32.TransactNamedPipe ReadFile = ctypes.windll.kernel32.ReadFile CloseHandle = ctypes.windll.kernel32.CloseHandle GENERIC_READ = 0x80000000 GENERIC_WRITE = 0x40000000 OPEN_EXISTING = 0x3 INVALID_HANDLE_VALUE = -1 PIPE_READMODE_MESSAGE = 0x2 ERROR_PIPE_BUSY = 231 ERROR_MORE_DATA = 234 BUFSIZE = 512 READBUFSIZE = 5 pipename = "\\\\.\\pipe\\org.parlatype.ipc" ''' Error handling ''' GetLastError = ctypes.windll.kernel32.GetLastError FormatMessage = ctypes.windll.kernel32.FormatMessageW LocalFree = ctypes.windll.kernel32.LocalFree FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x100 FORMAT_MESSAGE_FROM_SYSTEM = 0x1000 parlatype-libreoffice-extension-3.1.1/extension/python/macros/000077500000000000000000000000001415766716000246345ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/python/macros/Macros.py000066400000000000000000000056521415766716000264420ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2016-2020 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import parlatype_utils as pt_utils from parlatype_utils import Cmd def InsertTimestamp(*args): doc = XSCRIPTCONTEXT.getDocument() controller = doc.getCurrentController() textrange = pt_utils.getTextRange(controller) if (textrange is None): return try: timestamp = pt_utils.getParlatypeString("GetTimestamp") if timestamp is not None: textrange.setString(timestamp) except Exception: pass def InsertTimestampOnNewLine(*args): doc = XSCRIPTCONTEXT.getDocument() controller = doc.getCurrentController() textrange = pt_utils.getTextRange(controller) if (textrange is None): return try: timestamp = pt_utils.getParlatypeString("GetTimestamp") if timestamp is not None: textrange.setString("\n" + timestamp + " ") except Exception: pass def GotoTimestamp(*args): doc = XSCRIPTCONTEXT.getDocument() controller = doc.getCurrentController() timestamp = pt_utils.extractTimestamp(controller) if (timestamp is None): return pt_utils.sendParlatypeCommand(XSCRIPTCONTEXT.getComponentContext(), Cmd.GOTO_TIMESTAMP.value, timestamp) def PlayPause(*args): pt_utils.sendParlatypeCommand(XSCRIPTCONTEXT.getComponentContext(), Cmd.PLAY_PAUSE.value, None) def JumpBack(*args): pt_utils.sendParlatypeCommand(XSCRIPTCONTEXT.getComponentContext(), Cmd.JUMP_BACK.value, None) def JumpForward(*args): pt_utils.sendParlatypeCommand(XSCRIPTCONTEXT.getComponentContext(), Cmd.JUMP_FORWARD.value, None) def IncreaseSpeed(*args): pt_utils.sendParlatypeCommand(XSCRIPTCONTEXT.getComponentContext(), Cmd.INCREASE_SPEED.value, None) def DecreaseSpeed(*args): pt_utils.sendParlatypeCommand(XSCRIPTCONTEXT.getComponentContext(), Cmd.DECREASE_SPEED.value, None) # Lists the scripts, that shall be visible inside LibreOffice. g_exportedScripts = \ InsertTimestamp,\ InsertTimestampOnNewLine,\ GotoTimestamp,\ PlayPause,\ JumpBack,\ JumpForward,\ IncreaseSpeed,\ DecreaseSpeed, parlatype-libreoffice-extension-3.1.1/extension/python/meson.build000066400000000000000000000005021415766716000255070ustar00rootroot00000000000000# Install Extension install_subdir( 'components', install_dir: join_paths(extension_dir, 'python') ) # Install Macros install_data( 'macros/Macros.py', rename: 'Parlatype.py', install_dir: script_dir, ) # Copy pythonpath from Extension to Macros install_subdir( 'components/pythonpath', install_dir: script_dir, )parlatype-libreoffice-extension-3.1.1/extension/toolbar/000077500000000000000000000000001415766716000234715ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/extension/toolbar/ProtocolHandler.xcu000066400000000000000000000007611415766716000273150ustar00rootroot00000000000000 org.parlatype.loextension:* parlatype-libreoffice-extension-3.1.1/extension/toolbar/Toolbar.xcu.in000066400000000000000000000073711415766716000262310ustar00rootroot00000000000000 org.parlatype.loextension:open Open Parlatype _self com.sun.star.text.TextDocument org.parlatype.loextension:link Link Media _self com.sun.star.text.TextDocument org.parlatype.loextension:timestamp Insert Timestamp _self com.sun.star.text.TextDocument org.parlatype.loextension:open %origin%/../images/icon_24.png %origin%/../images/icon_24.png org.parlatype.loextension:link %origin%/../images/sc_chainframes.png %origin%/../images/lc_chainframes.png org.parlatype.loextension:timestamp %origin%/../images/sc_timefield.png %origin%/../images/lc_timefield.png parlatype-libreoffice-extension-3.1.1/extension/toolbar/WriterWindowState.xcu.in000077500000000000000000000015321415766716000302700ustar00rootroot00000000000000 Parlatype true true parlatype-libreoffice-extension-3.1.1/extension/toolbar/meson.build000066400000000000000000000010661415766716000256360ustar00rootroot00000000000000toolbar = i18n.merge_file( input: 'Toolbar.xcu.in', output: 'Toolbar.xcu', type: 'xml', po_dir: '../../po', data_dirs: [ '../../po' ], install: bundled, install_dir: join_paths(extension_dir, 'toolbar') ) window_state = i18n.merge_file( input: 'WriterWindowState.xcu.in', output: 'WriterWindowState.xcu', type: 'xml', po_dir: '../../po', data_dirs: [ '../../po' ], install: bundled, install_dir: join_paths(extension_dir, 'toolbar') ) if bundled install_data( [ 'ProtocolHandler.xcu' ], install_dir: join_paths(extension_dir, 'toolbar') ) endifparlatype-libreoffice-extension-3.1.1/meson.build000066400000000000000000000024471415766716000221640ustar00rootroot00000000000000project('parlatype-libreoffice-extension', version: '3.1.1', #meson_version: '>= 0.47.2', # oldest working tested version license: 'GPL3+', ) app_id = 'org.parlatype.LibreOfficeExtension' version = meson.project_version() bundled = get_option('bundled') i18n = import('i18n') prefix = get_option('prefix') base_lo_dir = get_option('libreoffice-dir') gettext_package = 'parlatype' python_dir = join_paths(meson.current_source_dir(), 'extension', 'python', 'components') python_utils_dir = join_paths(python_dir, 'pythonpath') if bundled subdir('appdata') endif subdir('extension') subdir('po') subdir('tests') if not bundled oxt = find_program('create_oxt.sh', required: true) zip = find_program('zip', required: true) custom_target( 'oxt', command: [ oxt, meson.source_root(), meson.build_root() ], output: [ 'Parlatype.oxt' ], depends: [ description, options_dialog, toolbar, window_state ], build_by_default: true ) endif status = [ '', '', 'Parlatype LibreOffice Extension @0@'.format(meson.project_version()), '' ] if bundled status += [ 'Mode ............. : bundled', 'Prefix ........... : @0@'.format(prefix), 'LibreOffice base.. : @0@'.format(base_lo_dir) ] else status += [ 'Mode ............. : .oxt', ] endif status += [ '' ] message('\n '.join(status)) parlatype-libreoffice-extension-3.1.1/meson_options.txt000066400000000000000000000004011415766716000234430ustar00rootroot00000000000000option( 'bundled', type: 'boolean', value: false, description: 'Install as bundle, otherwise create OTX package' ) option( 'libreoffice-dir', type: 'string', value: '/usr/lib/libreoffice', description: 'Directory to install LibreOffice extension' )parlatype-libreoffice-extension-3.1.1/po/000077500000000000000000000000001415766716000204315ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/po/LINGUAS000066400000000000000000000002171415766716000214560ustar00rootroot00000000000000# Please keep this list sorted alphabetically. # de en_AU es fi fr it nb_NO ku sk kab id pl nl ja ms sv cs en_GB pt_BR sr ru ca pt hu lt he ar parlatype-libreoffice-extension-3.1.1/po/POTFILES.in000066400000000000000000000006271415766716000222130ustar00rootroot00000000000000# List of source files which contain translatable strings. appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in extension/description.xml.in.in.in extension/description_translation.xml extension/options/OptionsDialogRegistry.xcu.in extension/python/components/OptionsDialogHandler.py extension/python/components/Parlatype.py extension/toolbar/Toolbar.xcu.in extension/toolbar/WriterWindowState.xcu.inparlatype-libreoffice-extension-3.1.1/po/POTFILES.skip000066400000000000000000000000001415766716000225340ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/po/ar.po000066400000000000000000000055651415766716000214060ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/ca.po000066400000000000000000000055651415766716000213670ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/cs.po000066400000000000000000000055651415766716000214110ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/de.po000066400000000000000000000100101415766716000213510ustar00rootroot00000000000000# German translations for parlatype_lo package. # Copyright (C) 2020 THE parlatype_lo'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # Automatically generated, 2020. # Gabor Karsay , 2020. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2021-11-18 20:49+0000\n" "Last-Translator: Gabor Karsay \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.9.1-dev\n" "X-Launchpad-Export-Date: 2020-05-31 18:28+0000\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Parlatype LibreOffice Erweiterung" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Parlatype aus LibreOffice heraus kontrollieren" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "Diese neue Version hängt von Parlatype 2.1 ab." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "Neues Symbol in Symbolleiste, um Zeitstempel einzufügen." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Ort für Makros geändert: Wenn mit einem Paketmanager installiert, weisen Sie " "Makros neu zu unter LibreOffice Macros > LibreOffice Macros > " "Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "»Parlatype öffnen« versucht, die Flatpak-Version zu öffnen, wenn es " "Parlatype nicht im Systempfad finden kann." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Übersetzungsaktualisierungen für mehrere Sprachen." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype für LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Zu Zeitstempel gehen" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Bei Mausklick" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "Bei Tastennavigation" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype ist nicht installiert." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Anscheinend verhindert ein AppArmor-Profil für LibreOffice, dass Flatpak " "gestartet werden kann." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Bitte öffnen Sie zuerst Parlatype." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Bitte öffnen Sie zuerst eine Mediendatei." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Parlatype öffnen" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "Medien verbinden" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Zeitstempel einfügen" parlatype-libreoffice-extension-3.1.1/po/en_AU.po000066400000000000000000000075561415766716000217750ustar00rootroot00000000000000# English (Australia) translation for parlatype-libreoffice-extension # Copyright (c) 2020 Rosetta Contributors and Canonical Ltd 2020 # This file is distributed under the same license as the parlatype-libreoffice-extension package. # FIRST AUTHOR , 2020. # msgid "" msgstr "" "Project-Id-Version: parlatype-libreoffice-extension\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2020-05-09 09:59+0000\n" "Last-Translator: Jared Norris \n" "Language-Team: English (Australia) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2020-05-31 18:28+0000\n" "X-Generator: Launchpad (build 275d46a24253e557e4403d52832837e4bfa425b6)\n" "Language: en_AU\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Parlatype LibreOffice Extension" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Control Parlatype from LibreOffice" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "This new release depends on Parlatype 2.1." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "New toolbar icon to insert a timestamp." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Translation updates for several languages." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype for LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Go to timestamp" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "On mouse click" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "On key cursor" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype is not installed." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Please open Parlatype first." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Please open a media file first." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Open Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "Link Media" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Insert Timestamp" parlatype-libreoffice-extension-3.1.1/po/en_GB.po000066400000000000000000000055701415766716000217520ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/es.po000066400000000000000000000077031415766716000214070ustar00rootroot00000000000000# Spanish translation for parlatype-libreoffice-extension # Copyright (c) 2020 Rosetta Contributors and Canonical Ltd 2020 # This file is distributed under the same license as the parlatype-libreoffice-extension package. # FIRST AUTHOR , 2020. # msgid "" msgstr "" "Project-Id-Version: parlatype-libreoffice-extension\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2020-05-09 17:11+0000\n" "Last-Translator: Rodrigo Lledó \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2020-05-31 18:28+0000\n" "X-Generator: Launchpad (build 275d46a24253e557e4403d52832837e4bfa425b6)\n" "Language: es\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Parlatype extensión de LibreOffice" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Controlar Parlatype desde LibreOffice" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "Este lanzamiento depende de Parlatype 2.1." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" "Nuevo icono de la barra de herramientas para insertar una marca de tiempo." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Cambiada la ubicación de los macros: si se instaló con un gestor de " "paquetes, reasigne a LibreOffice Macros > LibreOffice Macros > " "Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "“Abrir Parlatype” intenta abrir una versión de flatpak si no puede encontrar " "Parlatype en la ruta del sistema." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Actualizaciones de traducción para varios idiomas." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype para LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Ir a la marca de tiempo" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Al pulsar con el ratón" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "Con una tecla del cursor" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype no está instalado." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Parece que el perfil de AppArmor para LibreOffice impide lanzar Flatpak." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Abra Parlatype primero." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Abra un archivo de medios primero." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Abrir Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "Enlazar medio" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Insertar marca de tiempo" parlatype-libreoffice-extension-3.1.1/po/fi.po000066400000000000000000000073431415766716000213760ustar00rootroot00000000000000# Finnish translation for parlatype-libreoffice-extension # Copyright (c) 2020 Rosetta Contributors and Canonical Ltd 2020 # This file is distributed under the same license as the parlatype-libreoffice-extension package. # FIRST AUTHOR , 2020. # msgid "" msgstr "" "Project-Id-Version: parlatype-libreoffice-extension\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2020-05-08 15:55+0000\n" "Last-Translator: Jiri Grönroos \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2020-05-31 18:28+0000\n" "X-Generator: Launchpad (build 275d46a24253e557e4403d52832837e4bfa425b6)\n" "Language: fi\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Parlatypen LibreOffice-laajennus" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Ohjaa Parlatypea LibreOfficesta" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "Tämä uusi julkaisu on riippuvainen Parlatypen versiosta 2.1." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "Uusi työkalupalkin kuvake aikaleiman lisäämiseksi." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "“Avaa Parlatype”- toiminto yrittää avata flatpak-version, jos Parlatypea ei " "löydy järjestelmän polusta." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Kielikäännösten päivityksiä useiden kielten osalta." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype LibreOfficelle" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Siirry aikaleimaan" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Hiiren napsautuksesta" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype ei ole asennettu." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Vaikuttaa siltä, että AppArmor-profiili LibreOfficelle estää Flatpakin " "käynnistämisen." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Avaa ensin Parlatype." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Avaa ensin mediatiedosto." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Avaa Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Lisää aikaleima" parlatype-libreoffice-extension-3.1.1/po/fr.po000066400000000000000000000077101415766716000214050ustar00rootroot00000000000000# French translation for parlatype-libreoffice-extension # Copyright (c) 2020 Rosetta Contributors and Canonical Ltd 2020 # This file is distributed under the same license as the parlatype-libreoffice-extension package. # FIRST AUTHOR , 2020. # msgid "" msgstr "" "Project-Id-Version: parlatype-libreoffice-extension\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2020-05-08 13:17+0000\n" "Last-Translator: Jean-Marc \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2020-05-31 18:28+0000\n" "X-Generator: Launchpad (build 275d46a24253e557e4403d52832837e4bfa425b6)\n" "Language: fr\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Extension LibreOffice pour Parlatype" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Contrôler Parlatype depuis LibreOffice" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "Cette nouvelle version dépend de Parlatype 2.1." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "Nouvelle icône de la barre d'outils pour insérer un horodatage." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Emplacement modifié des macros : si installé avec un gestionnaire de " "paquets, réaffectez-le à LibreOffice Macros > LibreOffice Macros > Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "« Open Parlatype » essaie d'ouvrir une version Flatpak s'il ne trouve pas " "Parlatype dans le chemin système." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Mises à jour des traductions pour plusieurs langues." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype pour LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Aller à l'horodatage" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Au clic de souris" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "Curseur sur la touche" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype n'est pas installé." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Il semble que le profil AppArmor pour LibreOffice empêche le lancement de " "Flatpak." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Veuillez d'abord ouvrir Parlatype." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Veuillez d'abord ouvrir un fichier multimédia." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Ouvrir Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "Lier un média" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Insérer un horodatage" parlatype-libreoffice-extension-3.1.1/po/he.po000066400000000000000000000055651415766716000214000ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/hu.po000066400000000000000000000055651415766716000214200ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/id.po000066400000000000000000000055651415766716000214000ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/install_mo_locally.sh000077500000000000000000000006511415766716000246520ustar00rootroot00000000000000#!/bin/bash # Install generated translations locally. SOURCE_DIR="${MESON_SOURCE_ROOT}"/po BUILD_DIR="${MESON_BUILD_ROOT}"/po/locale mkdir -p "$BUILD_DIR" # Iterate over .po files for all languages while read lang do if [[ ${lang:0:1} != "#" && ${lang:0:1} != " " ]] then DEST_DIR="$BUILD_DIR"/$lang/LC_MESSAGES mkdir -p "$DEST_DIR" msgfmt $lang.po -o "$DEST_DIR"/parlatype_lo.mo fi done < "$SOURCE_DIR"/LINGUAS parlatype-libreoffice-extension-3.1.1/po/it.po000066400000000000000000000077331415766716000214170ustar00rootroot00000000000000# Italian translation for parlatype-libreoffice-extension # Copyright (c) 2020 Rosetta Contributors and Canonical Ltd 2020 # This file is distributed under the same license as the parlatype-libreoffice-extension package. # ALBANO BATTISTELLA , 2020,2021. # msgid "" msgstr "" "Project-Id-Version: parlatype-libreoffice-extension\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2021-09-11 19:47+0100\n" "Last-Translator: albano \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2020-05-31 18:28+0000\n" "X-Generator: Launchpad (build 275d46a24253e557e4403d52832837e4bfa425b6)\n" "Language: it\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Estensione Parlatype per LibreOffice" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Controlla Parlatype da LibreOffice" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "Questa nuova versione dipende da Parlatype 2.1." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "Nuova icona della barra degli strumenti per inserire un timestamp." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Posizione modificata delle macro: Se installato con un gestore di pacchetti, riassegna a " "LibreOffice Macro > LibreOffice Macro > Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "“Open Parlatype” tenta di aprire una versione flatpak se non riesce a trovare Parlatype " "nel percorso di sistema." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Aggiornamenti di traduzione per diverse lingue." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype per LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Vai al timestamp" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Al clic del mouse" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "Sul cursore chiave" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype non è installato." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Sembra che il profilo AppArmor per LibreOffice impedisca l'avvio" "Flatpack." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Si prega di aprire Parlatype prima." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Si prega di aprire prima un file multimediale." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Apri Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "Collegamento al Media" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Inserisci data e ora" parlatype-libreoffice-extension-3.1.1/po/its/000077500000000000000000000000001415766716000212305ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/po/its/lo.its000066400000000000000000000017741415766716000223740ustar00rootroot00000000000000 parlatype-libreoffice-extension-3.1.1/po/its/lo.loc000066400000000000000000000006761415766716000223520ustar00rootroot00000000000000 parlatype-libreoffice-extension-3.1.1/po/ja.po000066400000000000000000000055651415766716000213760ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/kab.po000066400000000000000000000055661415766716000215420ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: kab\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/ku.po000066400000000000000000000055651415766716000214230ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ku\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/lt.po000066400000000000000000000055651415766716000214230ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/meson.build000066400000000000000000000004611415766716000225740ustar00rootroot00000000000000i18n.gettext( 'parlatype_lo', data_dirs: [ '.' ], install: false # requires meson >= 0.50 # install_dir: join_paths(extension_dir, 'locale') ) run_command('install_mo_locally.sh') if bundled install_subdir( join_paths(meson.current_build_dir(), 'locale'), install_dir: extension_dir, ) endif parlatype-libreoffice-extension-3.1.1/po/ms.po000066400000000000000000000055651415766716000214230ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/nb_NO.po000066400000000000000000000075141415766716000217730ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2021-11-29 17:51+0000\n" "Last-Translator: Allan Nordhøy \n" "Language-Team: Norwegian Bokmål \n" "Language: nb_NO\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.10-dev\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Parlatype-programtillegg for LibreOffice" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Kontroller Parlatype fra LibreOffice" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "Denne nye utgaven avhenger av Parlatype 2.1" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "Ny verktøylinjeikon for å sette inn tidsstempel." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Endret posisjon for makroer: Hvis installert med pakkebehandler, endret til " "LibreOffice-makroer > LibreOffice-makeroer > Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "«Åpne Parlatype» prøver å åpne en Flatpak-versjon hvis Parlatype ikke er å " "finne i systemstien." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Oversettelsesoppdateringer for flere språk." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype for LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Gå til tidsstempel" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Ved museklikk" #: extension/python/components/OptionsDialogHandler.py:71 #, fuzzy msgid "On key cursor" msgstr "Ved tastenavigasjon" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype er ikke installert." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Det ser ut til at AppArmor-profilen for LibreOffice forhindrer oppstart av " "Flatpak." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Åpne Parlatype først." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Åpne en mediafil først." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Åpne Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 #, fuzzy msgid "Link Media" msgstr "Lenk til media" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Sett inn tidsstempel" parlatype-libreoffice-extension-3.1.1/po/nl.po000066400000000000000000000055651415766716000214150ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/parlatype_lo.pot000066400000000000000000000073501415766716000236550ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Parlatype LibreOffice Extansion 3.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-12 21:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This release is for Parlatype 3.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "Switched to Weblate for translations." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:41 msgid "Translation updates for several languages." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:26 msgid "This release is for Parlatype 3.0." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:28 msgid "" "Automatic speech recognition: Prints recognized text from Parlatype (Linux " "only)." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:29 msgid "Fixed a crash if selecting a table." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:30 msgid "Translation updates for Italian." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:36 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:38 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:39 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:40 msgid "" "“Open Parlatype” tries to open a Flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:75 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:76 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:77 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:169 #: extension/python/components/Parlatype.py:190 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:180 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:349 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:360 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/pl.po000066400000000000000000000076711415766716000214170ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: 2021-12-05 11:32+0000\n" "Last-Translator: Piotr Drąg \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.10-dev\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "Rozszerzenie Parlatype do LibreOffice" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "Sterowanie Parlatype z pakietu LibreOffice" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "To nowe wydanie wymaga Parlatype 2.1." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "Nowa ikona paska narzędziowego do wstawiania czasu." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" "Zmieniono położenie makr: jeśli zainstalowana za pomocą menedżera pakietów, " "należy ponownie przydzielić w Makra LibreOffice → Makra LibreOffice → " "Parlatype." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" "„Otwórz Parlatype” próbuje otworzyć wersję Flatpak, jeśli nie może odnaleźć " "Parlatype w ścieżce systemowej." #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "Aktualizacje tłumaczeń na kilka języków." #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "Parlatype dla LibreOffice" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "Parlatype" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "Przejdź do czasu" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "Po kliknięciu myszą" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "Po kursorze klawisza" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "Parlatype nie jest zainstalowany." #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" "Profil AppArmor dla LibreOffice uniemożliwia uruchamianie pakietów Flatpak." #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "Proszę najpierw otworzyć Parlatype." #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "Proszę najpierw otworzyć plik multimedialny." #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "Otwórz Parlatype" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "Powiąż multimedia" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "Wstaw czas" parlatype-libreoffice-extension-3.1.1/po/pt.po000066400000000000000000000055651415766716000214270ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/pt_BR.po000066400000000000000000000055701415766716000220060ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/ru.po000066400000000000000000000055651415766716000214320ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/sk.po000066400000000000000000000055651415766716000214210ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/sr.po000066400000000000000000000055651415766716000214300ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/po/sv.po000066400000000000000000000055651415766716000214340ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the parlatype_lo package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: parlatype_lo\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-08 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:6 msgid "Parlatype LibreOffice Extension" msgstr "" #. #. This is the english description for this extension. #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:7 #: extension/description_translation.xml:5 msgid "Control Parlatype from LibreOffice" msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:17 msgid "This new release depends on Parlatype 2.1." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:19 msgid "New toolbar icon to insert a timestamp." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:20 msgid "" "Changed location of macros: If installed with a package manager, reassign to " "LibreOffice Macros > LibreOffice Macros > Parlatype." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:21 msgid "" "“Open Parlatype” tries to open a flatpak version if it can’t find Parlatype " "in the system path." msgstr "" #: appdata/org.parlatype.LibreOfficeExtension.metainfo.xml.in:22 msgid "Translation updates for several languages." msgstr "" #: extension/description.xml.in.in.in:22 msgid "Parlatype for LibreOffice" msgstr "" #: extension/options/OptionsDialogRegistry.xcu.in:14 #: extension/toolbar/WriterWindowState.xcu.in:11 msgid "Parlatype" msgstr "" #: extension/python/components/OptionsDialogHandler.py:69 msgid "Go to timestamp" msgstr "" #: extension/python/components/OptionsDialogHandler.py:70 msgid "On mouseclick" msgstr "" #: extension/python/components/OptionsDialogHandler.py:71 msgid "On key cursor" msgstr "" #: extension/python/components/Parlatype.py:97 #: extension/python/components/Parlatype.py:118 #: extension/python/components/Parlatype.py:208 msgid "Parlatype is not installed." msgstr "" #: extension/python/components/Parlatype.py:108 msgid "" "It seems like the AppArmor profile for LibreOffice prevents launching " "Flatpak." msgstr "" #: extension/python/components/Parlatype.py:258 msgid "Please open Parlatype first." msgstr "" #: extension/python/components/Parlatype.py:269 msgid "Please open a media file first." msgstr "" #: extension/toolbar/Toolbar.xcu.in:17 msgid "Open Parlatype" msgstr "" #: extension/toolbar/Toolbar.xcu.in:32 msgid "Link Media" msgstr "" #: extension/toolbar/Toolbar.xcu.in:47 msgid "Insert Timestamp" msgstr "" parlatype-libreoffice-extension-3.1.1/tests/000077500000000000000000000000001415766716000211555ustar00rootroot00000000000000parlatype-libreoffice-extension-3.1.1/tests/meson.build000066400000000000000000000011131415766716000233130ustar00rootroot00000000000000python = find_program('python3') testpaths = [ python_dir, # files to be tested python_utils_dir, # files to be tested meson.current_source_dir(), # tests (unittest can't import paths) ] test_env = environment() test_env.prepend('PYTHONPATH', testpaths) unit_tests = [ 'test_parlatype_utils', 'test_document_link', ] foreach test_name: unit_tests test(test_name, python, args: ['-m', 'unittest', '-v', test_name], env: test_env, # test_parlatype_utils fails if parallel is_parallel: false, suite: ['unit'] ) endforeach parlatype-libreoffice-extension-3.1.1/tests/test_document_link.py000066400000000000000000000041121415766716000254170ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2021 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import unittest import uno from unotest import UnoRemoteConnection from Parlatype import getDocumentLink from Parlatype import setDocumentLink from Parlatype import removeDocumentLink class TestUtils(unittest.TestCase): @classmethod def setUpClass(cls): cls._uno = UnoRemoteConnection({'program': 'soffice', 'verbose': False}) cls._uno.setUp() cls.document = cls._uno.openEmptyWriterDoc() @classmethod def tearDownClass(cls): cls._uno.tearDown() def test_empty_get(self): """ Get empty custom property "Parlatype" """ doc = self.__class__._uno.getDoc() # Initially empty document has no custom property self.assertIsNone(getDocumentLink(doc)) def test_set_and_get(self): """ Set custom property "Parlatype" """ doc = self.__class__._uno.getDoc() setDocumentLink(doc, "http://test") self.assertEqual(getDocumentLink(doc), "http://test") def test_remove_and_get(self): """ Remove custom property "Parlatype" """ doc = self.__class__._uno.getDoc() setDocumentLink(doc, "http://test") self.assertEqual(getDocumentLink(doc), "http://test") removeDocumentLink(doc) self.assertIsNone(getDocumentLink(doc)) if __name__ == '__main__': unittest.main() parlatype-libreoffice-extension-3.1.1/tests/test_parlatype_utils.py000066400000000000000000000052411415766716000260110ustar00rootroot00000000000000# -*- coding: utf-8 -*- ''' Copyright (C) Gabor Karsay 2021 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import unittest import uno from unotest import UnoRemoteConnection import parlatype_utils as pt_utils class TestUtils(unittest.TestCase): @classmethod def setUpClass(cls): cls._uno = UnoRemoteConnection({'program': 'soffice', 'verbose': True}) cls._uno.setUp() cls.document = cls._uno.openEmptyWriterDoc() @classmethod def tearDownClass(cls): cls._uno.tearDown() def test_isValidCharacter(self): """ Test _isValidCharacter() """ # Complete list of valid characters valid_characters = ['.', ':', '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] for character in valid_characters: self.assertTrue(pt_utils._isValidCharacter(character)) # Selection of invalid characters invalid_characters = ['A', 'a', 'z', 'Z', '#', ';', ' '] for character in invalid_characters: self.assertFalse(pt_utils._isValidCharacter(character)) def test_extractTimestamp(self): """ Test extractTimestamp() """ # Get the empty document and insert a string (overwriting) doc = self.__class__._uno.getDoc() text = doc.Text cursor = text.createTextCursor() text.insertString(cursor, "#2:48#", True) # Get current selections controller = doc.getCurrentController() selections = controller.getSelection() # Get first (and in this case only) selection sel = selections.getByIndex(0) # Get cursor of selection (it is at the end of the inserted text) cursor = sel.getText().createTextCursorByRange(sel) # Move cursor (without expanding selection) cursor.goLeft(1, False) # Set selection controller.select(cursor) timestamp = pt_utils.extractTimestamp(controller) self.assertEqual(timestamp, '2:48') if __name__ == '__main__': unittest.main() parlatype-libreoffice-extension-3.1.1/tests/unotest.py000066400000000000000000000255161415766716000232410ustar00rootroot00000000000000# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import pathlib import subprocess import time import uuid import argparse import os import shutil import urllib.parse import urllib.request try: import pyuno import uno except ImportError: print("pyuno not found: try to set PYTHONPATH and URE_BOOTSTRAP variables") print("to something like:") print(" PYTHONPATH=/installation/opt/program") print(" URE_BOOTSTRAP=file:///installation/opt/program/fundamentalrc") raise try: from com.sun.star.document import XDocumentEventListener except ImportError: print("UNO API class not found: try to set URE_BOOTSTRAP variable") print("to something like:") print(" URE_BOOTSTRAP=file:///installation/opt/program/fundamentalrc") raise try: from urllib.parse import quote except ImportError: from urllib import quote ### utilities ### def mkPropertyValue(name, value): return uno.createUnoStruct("com.sun.star.beans.PropertyValue", name, 0, value, 0) def mkPropertyValues(**kwargs): '''mkPropertyValues(Name=Value, Name=Value,...) -> (PropertyValue, PropertyValue,...) ex. : mkPropertyValues(Hidden=True, ReadOnly=False)''' from com.sun.star.beans import PropertyValue return tuple(PropertyValue(k,0,kwargs[k],0) for k in kwargs) def fileUrlToSystemPath(url): return pyuno.fileUrlToSystemPath(url) def systemPathToFileUrl(systemPath): return pyuno.systemPathToFileUrl(systemPath) ### UNO utilities ### class OfficeConnection(object): def __init__(self, args): self.args = args self.soffice = None self.xContext = None self.channel = None def setUp(self): try: self.verbose = self.args["verbose"] except KeyError: self.verbose = False try: prog = self.args["program"] except KeyError: prog = os.getenv("SOFFICE_BIN") if not (prog): raise Exception("SOFFICE_BIN must be set") channel = "pipe,name=pytest" + str(uuid.uuid1()) try: userdir = self.args["userdir"] except KeyError: userdir = "file:///tmp" if not(userdir.startswith("file://")): raise Exception("--userdir must be file URL") self.soffice = self.bootstrap(prog, userdir, channel) return self.connect(channel) def bootstrap(self, soffice, userdir, channel): argv = [ soffice, "--accept=" + channel + ";urp", "-env:UserInstallation=" + userdir, "--quickstart=no", "--norestore", "--nologo", "--headless"] if "--valgrind" in self.args: argv.append("--valgrind") if self.verbose: print ("starting LibreOffice with channel: ", channel) return subprocess.Popen(argv) def connect(self, channel): xLocalContext = uno.getComponentContext() xUnoResolver = xLocalContext.ServiceManager.createInstanceWithContext( "com.sun.star.bridge.UnoUrlResolver", xLocalContext) url = ("uno:%s;urp;StarOffice.ComponentContext" % channel) if self.verbose: print("Connecting to: ", url) while True: try: self.xContext = xUnoResolver.resolve(url) return self.xContext # except com.sun.star.connection.NoConnectException except pyuno.getClass("com.sun.star.connection.NoConnectException"): print("WARN: NoConnectException: sleeping...") time.sleep(1) def tearDown(self): if self.soffice: if self.xContext: try: if self.verbose: print("tearDown: calling terminate()...") xMgr = self.xContext.ServiceManager xDesktop = xMgr.createInstanceWithContext( "com.sun.star.frame.Desktop", self.xContext) xDesktop.terminate() if self.verbose: print("...done") # except com.sun.star.lang.DisposedException: except pyuno.getClass("com.sun.star.beans.UnknownPropertyException"): print("caught UnknownPropertyException") pass # ignore, also means disposed except pyuno.getClass("com.sun.star.lang.DisposedException"): print("caught DisposedException") pass # ignore else: self.soffice.terminate() ret = self.soffice.wait() self.xContext = None self.socket = None self.soffice = None if ret != 0: raise Exception("Exit status indicates failure: " + str(ret)) def getContext(self): return self.xContext class UnoRemoteConnection: def __init__(self, args): self.args = args self.connection = None def getContext(self): return self.connection.xContext def getDoc(self): return self.xDoc def setUp(self): conn = OfficeConnection(self.args) conn.setUp() self.connection = conn def openEmptyWriterDoc(self): assert(self.connection) smgr = self.getContext().ServiceManager desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", self.getContext()) props = [("Hidden", True), ("ReadOnly", False)] loadProps = tuple([mkPropertyValue(name, value) for (name, value) in props]) self.xDoc = desktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, loadProps) return self.xDoc def checkProperties(self, obj, dict, test): for k,v in dict.items(): obj.setPropertyValue(k, v) value = obj.getPropertyValue(k) test.assertEqual(value, v) def postTest(self): assert(self.connection) def tearDown(self): if self.connection: try: self.connection.tearDown() finally: self.connection = None havePonies = False class UnoInProcess: def getContext(self): return self.xContext def getDoc(self): return self.xDoc def setUp(self): self.xContext = pyuno.getComponentContext() global havePonies if not(havePonies): pyuno.private_initTestEnvironment() havePonies = True def openEmptyWriterDoc(self): return self.openEmptyDoc("private:factory/swriter") def openEmptyCalcDoc(self): return self.openEmptyDoc("private:factory/scalc") def openEmptyDoc(self, url, bHidden = True, bReadOnly = False): props = [("Hidden", bHidden), ("ReadOnly", bReadOnly)] return self.__openDocFromURL(url, props) def openTemplateFromTDOC(self, file): return self.openDocFromTDOC(file, True) def openDocFromTDOC(self, file, asTemplate = False): path = makeCopyFromTDOC(file) return self.openDocFromAbsolutePath(path, asTemplate) def openDocFromAbsolutePath(self, file, asTemplate = False): return self.openDocFromURL(pathlib.Path(file).as_uri(), asTemplate) def openDocFromURL(self, url, asTemplate = False): props = [("Hidden", True), ("ReadOnly", False), ("AsTemplate", asTemplate)] return self.__openDocFromURL(url, props) def __openDocFromURL(self, url, props): assert(self.xContext) smgr = self.getContext().ServiceManager desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", self.getContext()) loadProps = tuple([mkPropertyValue(name, value) for (name, value) in props]) self.xDoc = desktop.loadComponentFromURL(url, "_blank", 0, loadProps) assert(self.xDoc) return self.xDoc def checkProperties(self, obj, dict, test): for k,v in dict.items(): obj.setPropertyValue(k, v) value = obj.getPropertyValue(k) test.assertEqual(value, v) def setProperties(self, obj, dict): for k,v in dict.items(): obj.setPropertyValue(k, v) def postTest(self): assert(self.xContext) def tearDown(self): if hasattr(self, 'xDoc'): if self.xDoc: self.xDoc.close(True) # HACK in case self.xDoc holds a UNO proxy to an SwXTextDocument (whose dtor calls # Application::GetSolarMutex via sw::UnoImplPtrDeleter), which would potentially only be # garbage-collected after VCL has already been deinitialized: self.xDoc = None def simpleInvoke(connection, test): try: connection.preTest() test.run(connection.getContext()) finally: connection.postTest() def retryInvoke(connection, test): tries = 5 while tries > 0: try: tries -= 1 try: connection.preTest() test.run(connection.getContext()) return finally: connection.postTest() except KeyboardInterrupt: raise # Ctrl+C should work except: print("retryInvoke: caught exception") raise Exception("FAILED retryInvoke") def runConnectionTests(connection, invoker, tests): try: connection.setUp() for test in tests: invoker(connection, test) finally: connection.tearDown() def makeCopyFromTDOC(file): src = os.getenv("TDOC") assert(src is not None) src = os.path.join(src, file) dst = os.getenv("TestUserDir") assert(dst is not None) uri = urllib.parse.urlparse(dst) assert(uri.scheme.casefold() == "file") assert(uri.netloc == "" or uri.netloc.casefold() == "localhost") assert(uri.params == "") assert(uri.query == "") assert(uri.fragment == "") dst = urllib.request.url2pathname(uri.path) dst = os.path.join(dst, "tmp", file) os.makedirs(os.path.dirname(dst), exist_ok=True) try: os.remove(dst) except FileNotFoundError: pass shutil.copyfile(src, dst) return dst ### tests ### if __name__ == "__main__": parser = argparse.ArgumentParser("Help utilities for testing LibreOffice") group = parser.add_mutually_exclusive_group() group.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true") #parser.add_argument("p", type=str, help="program name") args = parser.parse_args() if args.verbose: verbose = True con = PersistentConnection({"verbose" : args.verbose}) print("starting soffice ... ", end="") con.setUp() print("done") con.get print ("shutting down ... ", end="") con.tearDown() print("done") # vim: set shiftwidth=4 softtabstop=4 expandtab: