summaryrefslogtreecommitdiff
path: root/writerperfect
AgeCommit message (Collapse)AuthorFilesLines
2017-07-21migrate to boost::gettextCaolán McNamara10-103/+33
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-10teach unnecessaryparen loplugin about identifiersNoel Grandin1-1/+1
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-12cleanup unused css/frame/* includesJochen Nitschke1-1/+0
Change-Id: I173a29fd1ee889127369d2bc2fce8e010b89ca65 Reviewed-on: https://gerrit.libreoffice.org/38633 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-31clang-tidy readability-redundant-string-cstrNoel Grandin2-2/+2
and readability-redundant-string-init Change-Id: I7b25659ace9e1d5be042ec5e179f01191693334e Reviewed-on: https://gerrit.libreoffice.org/38225 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-19make string translation loading more uniformCaolán McNamara3-10/+12
change various ResId classes that use conversion operator to OUString to functions that return a OUString drop various defines drop unnecessary toString calls Change-Id: Ibeccdf2b91a46a2ed5b4b74e6024e301a023bc92 Reviewed-on: https://gerrit.libreoffice.org/37817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-05-16loplugin:unusedfields improve write-only analysisNoel Grandin2-17/+1
by whitelisting a couple of methods we know only write to their parameters Change-Id: Id7aef9c03c23d10c27707b21eb9a0db4a6c2757c Reviewed-on: https://gerrit.libreoffice.org/37647 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-09cleanup osl/diagnose.h includesJochen Nitschke1-1/+0
with command > git grep -l osl/diagnose.h *.cxx | xargs grep -L -w 'OSL_\w*' | xargs sed -i '/#include *\(<\|\"\)osl\/diagnose.h\(>\|\"\).*/d' headers need more work Change-Id: I906519ebbd47a04703b4fa5943b2f7abea7a97ab Reviewed-on: https://gerrit.libreoffice.org/37350 Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-07break circular includeJochen Nitschke1-1/+1
of include/vcl/window.hxx and include/vcl/vclevent.hxx Change-Id: Iacb3cc942693a732de5899af26e08e0977a83102 Reviewed-on: https://gerrit.libreoffice.org/37338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-05-07revert OSL_ASSERT changesChris Sherlock3-3/+3
Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380
2017-05-07tdf#43157: convert writerperfect module away from OSL_ASSERT to assertChris Sherlock3-3/+3
Change-Id: I5db174ea899229151327a471fb0e18d643830542
2017-05-02fix file nameDavid Tardon1-1/+1
Change-Id: I43f4f0281d83c402fb7ced9fe0b01ef8a59d7aa5
2017-04-28loplugin:salunicodeliteral: writerperfectStephan Bergmann1-1/+1
Change-Id: I399a72c809db342ff6ffe4644154683fc98feb51
2017-04-28clang-tidy readability-simplify-boolean-exprNoel Grandin2-7/+2
Change-Id: Iea7ab64683f0b29794d50d774cc482b54a00e70a Reviewed-on: https://gerrit.libreoffice.org/36450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-25tools: svstream.hxx needs only errcode.hxx & not errinf.hxxChris Sherlock4-0/+5
Change-Id: Ia28e35ae5af4f601e9a586a3deffbcd61702b0ca Reviewed-on: https://gerrit.libreoffice.org/36896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky11-11/+0
Uwinapi is discontinued. Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01 Reviewed-on: https://gerrit.libreoffice.org/23198 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
2017-04-14update cppunit to 1.14.0Markus Mohrhard1-10/+0
Change-Id: I95fa42f4ef0580734b605df859c1660b29adb8b2 Reviewed-on: https://gerrit.libreoffice.org/36499 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-04-07loplugin:redundantcast find cstyle arithmetic castsNoel Grandin1-2/+2
Change-Id: If7c259f0d12a41182f476ddb558f7cb5f76f9577 Reviewed-on: https://gerrit.libreoffice.org/36253 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-03use actual UNO enums in vcl..xmlsecurityNoel Grandin1-0/+10
Change-Id: Id862544f27ebcbe8363f93dc83192d0f0cddb5cc Reviewed-on: https://gerrit.libreoffice.org/36041 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-02libmwaw import filter improvementsosnola1-1/+1
+ correct a small mistake + add pot the file extension (the file extension for PowerPoint 95 template) Change-Id: I4ad18088ccb9777e1b34f393effbe2d24468804e
2017-04-02libstaroffice import filter improvementsosnola5-6/+162
+ add support for presentation file (i.e. the file created will StarImpress are now open as presentation). + modify the OLE parser to be similar to the librevenge OLE parser, ie. the librevenge parser ignores the first character of a filename if this is a control character... Change-Id: I913a70cba29839d43dac58d5e00dbebfc4d28abc
2017-04-02libwps import filter improvementsosnola7-17/+39
+ some astyle modifications, + add .wk4 and .123 to the list of file extensions, + add support to open Lotus files protected by a password. Change-Id: I94d4afffd73f0999ff2b1958704cb3985fcd0cc9
2017-04-01upload libmwaw 0.3.11David Tardon2-0/+1
Change-Id: Ie244411dd155af245c83e758f432237ce72fa623 Reviewed-on: https://gerrit.libreoffice.org/35981 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2017-04-01add test docs for libmwaw 0.3.10David Tardon4-0/+3
Change-Id: Iea46a5d41a83edb150573102ccfbd9cd3ab4e89a Reviewed-on: https://gerrit.libreoffice.org/35980 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2017-03-27upload libwps 0.4.6David Tardon2-0/+1
Change-Id: Icd1ce144733d2f5e907a19bb6ef307d50becb49d Reviewed-on: https://gerrit.libreoffice.org/35769 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2017-03-25Fix typosAndrea Gelmini1-3/+3
Change-Id: I80b6d080aa31ff8b9d043b983993f4d26d8dc87c Reviewed-on: https://gerrit.libreoffice.org/35662 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-03-21fix and enable testDavid Tardon1-3/+3
Change-Id: I309b74c19ea076157d1c0b9c0c817ab4055512c3
2017-03-21Old-to-new mapping of attributes is moved into a Module:Mohammed Abdul Azeem1-1/+4
This should make it easy to reuse the mapping code wherever necessary and restores the loading of writerperfect documents. Change-Id: I505bffa47fe37270b0430d9ae5afec5072762b4c Reviewed-on: https://gerrit.libreoffice.org/35263 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-16enable the other testsDavid Tardon1-0/+3
Change-Id: I68a5435348a6a6362bc946c7eca18e29bd69724a
2017-02-16don't run terminate()David Tardon2-8/+0
AFAICS no other import test is doing it either. Change-Id: I8cbdc27fe60102067c6d09280b99a032ac44ba10
2017-02-16fix copypastaDavid Tardon3-3/+3
Change-Id: Id3e33aec0a1c027d350408abb86a6a99da74ebb4
2017-02-16rename to match text and spreadsheet testsDavid Tardon2-30/+30
Change-Id: I614326cfe8ade8ea07822479cbc656db8e51c1b7
2017-02-16fix factory URLDavid Tardon1-1/+1
Change-Id: I476b89d70510e786b116ee11ddd68916683945b8
2017-02-15disable these for nowDavid Tardon1-3/+0
Change-Id: Ic9b1283fa1c03e18047781f2a032c994cfc669c9
2017-02-15test result of presentation document importDavid Tardon2-0/+155
Change-Id: I4f7a9867a2fab4c49542a917aef9010e48c9b9b8
2017-02-15test result of drawing document importDavid Tardon2-0/+155
Change-Id: If60a94ba67e29e3595c26e4b5d0c0b4f9790eff8
2017-02-15test result of spreadsheet document importDavid Tardon2-0/+138
Change-Id: I1cfc3c4c3c2d1c40cd97bfe6d72fb03ce8b11823
2017-02-15move headers used by tests to inc/David Tardon5-9/+8
Change-Id: Ice159ae9fcb7284143d9e4734b8cb34f5c6a2ec5
2017-02-14more windows build fixesMarkus Mohrhard1-1/+1
Change-Id: I57b361dea1ee6a5bfdc95ec3632bb42a5941b900 Reviewed-on: https://gerrit.libreoffice.org/34232 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-02-14more build fixes, loplugin:staticmethodsMarkus Mohrhard1-3/+3
Change-Id: I710182dfe2082b9782076faa27c8bd78e899a7cb
2017-02-14fix buildMarkus Mohrhard1-1/+1
Change-Id: I7b27d5e5b47eb91cfe87918ae335cd228845be17
2017-02-13test result of text document importDavid Tardon7-7/+301
Change-Id: I6830da0c6692f0be212e0d45597fa563917b5fb2
2017-02-13Fix typosAndrea Gelmini1-1/+1
Change-Id: Iaf6bbe81f519d49b82f624282d786c8cc18d641c Reviewed-on: https://gerrit.libreoffice.org/34199 Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com> Tested-by: Aleksandar Stefanović <theonewithideas@gmail.com>
2017-02-02convert method names in tools::SvRef to be more like our other..Noel Grandin1-3/+3
reference classes, uno::Reference and rtl::Reference. Specifically rename Is()->is() and Clear()->clear(). Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae Reviewed-on: https://gerrit.libreoffice.org/33576 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-29add test for handling .wk3 format fileDavid Tardon8-4/+166
Change-Id: Id6fd1f979902e286009d16f9d8ea551df3940859
2017-01-29eliminate some code duplicityDavid Tardon4-53/+58
Change-Id: I7792ddd691f81744971d45e1155e3192b24155dc
2017-01-27loplugin: unnecessary destructor writerfilter..xmloffNoel Grandin4-11/+0
Change-Id: I511822dc874101ed3b9850b015b746a86d26c3b5 Reviewed-on: https://gerrit.libreoffice.org/33578 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-26Remove dynamic exception specificationsStephan Bergmann47-246/+82
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-19New loplugin:dynexcspec: Add @throws documentation, writerperfectStephan Bergmann1-0/+2
Change-Id: I413e4b796154a731638ec334cc0bd6c045b1840e
2017-01-12upload libwps 0.4.5David Tardon2-1/+5
Change-Id: Ifab6f95d22d0d335d68bb367dca12a92b864cdd9
2017-01-11astyleDavid Tardon1-27/+27
Change-Id: Iee24a1b7bc4ada389dfa5f0f39c9d06938ed1481