summaryrefslogtreecommitdiff
path: root/writerperfect
AgeCommit message (Collapse)Author
2017-08-25EPUB export: add support for page breaksMiklos Vajna
EPUB_SPLIT_METHOD is still hardcoded to HEADING, so while we send the page break info to librevenge now, it's ignored on that end. This requies basic infrastructure for automatic styles. Change-Id: Ibafead0dedd9dbfa6223a9c701a62611ba2671fd Reviewed-on: https://gerrit.libreoffice.org/41573 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-08-25EPUB export: allow setting a custom versionMiklos Vajna
By parsing the FilterData key of the media descriptor, similar to how the PDF export does it. The default is still EPUB3, but this now exposes the ability of libepubgen to emit EPUB2 if wanted. Change-Id: I23834fa28db9b01ef4cce4a142331b1cc9ecb3c2 Reviewed-on: https://gerrit.libreoffice.org/41566 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-08-25EPUB export: make sure that the mimetype stream is not compressedMiklos Vajna
Similar to ODF, the spec mandates this, and recent enough epubcheck validator asserts this. Also backport 2 libepubgen commits that fix other validator errors around missing mimetypes / malformed URLs. Change-Id: I29f0524465a30d26585cea92ec27bd336f6a17d8 Reviewed-on: https://gerrit.libreoffice.org/41526 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-24Add initial CppunitTest_writerperfect_epubexportMiklos Vajna
Fails with the writerperfect/source/writer/exp/txtparai.cxx part of commit b6f39c47fb477f16c65631523b0c18b4f262fadf (EPUB export: initial index support, 2017-08-15) reverted. Change-Id: I56457b3e3b312682e4c83ea08dbd459ca42152ef Reviewed-on: https://gerrit.libreoffice.org/41518 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-22EPUB export: initial table supportMiklos Vajna
Focusing on just not loosing plain text content, no actual formatting yet. Change-Id: Ic242f849730e1eb174f621f2235fa04563024e4e
2017-08-22writerperfect: oops, duplicated includeMiklos Vajna
Change-Id: I101856ddf3d636c1ac5535043bf5cd63b6d90acd
2017-08-22writerperfect: make sure EPUBExportFilter.hxx is self-containedMiklos Vajna
By including it first in its implementation file. Change-Id: I8eda0cc8a7e8c37883dbecc84f3f315cff8c3146
2017-08-21loplugin:checkconfigmacrosStephan Bergmann
Change-Id: Ic9ffe0af9e32b45c304c1edee92ed4b185b4ed19
2017-08-21allow to build with released libepubgenDavid Tardon
Change-Id: I12d297e8a3e57a3b24d85e4c537996cad0106125
2017-08-17EPUB export: handle inline imagesMiklos Vajna
Just the bare minimum, so that the binary file-related member functions of the package interface are triggered, so I can implement them. Change-Id: I996659126667423fded1f89f8097ac726418fa00 Reviewed-on: https://gerrit.libreoffice.org/41261 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-17EPUB export: implement link supportMiklos Vajna
Not only the link but the text of it was also unhandled, add code for both. Change-Id: Ic3a26db64a10d44f1f94b7358ed9103bb68bbe95 Reviewed-on: https://gerrit.libreoffice.org/41245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-17remove UL/L suffixes from integer constants on the RHS of expressionsNoel Grandin
Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5 Reviewed-on: https://gerrit.libreoffice.org/41237 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-15EPUB export: initial index supportMiklos Vajna
Split output by chapters. The index is still basic, just "Section N" entries so far. Change-Id: I4db659ee4110ab30f4b75f44c41f958533ddad7f Reviewed-on: https://gerrit.libreoffice.org/41177 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-15EPUB export: initial span supportMiklos Vajna
Characters under <text:span> (and not only under <text:p>) are now handled. Change-Id: Iac353005423d65f446b9f93519957f4caeaf1c7a Reviewed-on: https://gerrit.libreoffice.org/41164 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-08-11EPUB export: improve metadata handlingMiklos Vajna
Handle language and document modification date, these two were the remaining ones where EPUB3 mandates a value. With this, the default values are not used if the document has custom values. Change-Id: Ief36e8143a530fe03ae9f96bbf5b3e33527f1555 Reviewed-on: https://gerrit.libreoffice.org/41052 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-11EPUB export: add initial metadata support, document titleMiklos Vajna
librevenge also uses librevenge:descriptive-name next to dc:title for this purpose, but the later seems to be recommended in new code. Change-Id: I3c3887911945ad14960c7cbbccfa66716e519893 Reviewed-on: https://gerrit.libreoffice.org/41044 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-11EPUB export: rework to use context classesMiklos Vajna
Before writerperfect::exp::XMLImport grows into a God object. Also, if I'm at it, recurse into text:h to include heading text. Change-Id: Iede56d00dbede40186b6484d0be92a2ac2e4768e Reviewed-on: https://gerrit.libreoffice.org/41005 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-10EPUB export: write EPUB3 outputMiklos Vajna
EPUB3 was released in 2011, it makes little sense to target the older EPUB2 in new code. Change-Id: Ifdd547bfc7e8f097124ed3effe9053ee2e5f2163 Reviewed-on: https://gerrit.libreoffice.org/40975 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-09libepubgen: backport 3 validation fixesMiklos Vajna
A hello world ODT is now exported without validation errors. Change-Id: I2b160ee980f8ed9c80fd76945600d1edb1ee29bc Reviewed-on: https://gerrit.libreoffice.org/40908 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-09EPUB export: write CSS rulesMiklos Vajna
With this, a hello world writer document is handled correctly. Change-Id: Ib1efea5aa5ea5049beee719f14f85b41c56d1967 Reviewed-on: https://gerrit.libreoffice.org/40890 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-08EPUB export: write XML attributesMiklos Vajna
Which means that for a hello world, only the CSS part is missing. Change-Id: I0a19eade8505e273f93a5078e689f6f9c2b00dab
2017-08-08EPUB export: write most of XML content in the packageMiklos Vajna
No attributes yet, though. Change-Id: I268d59a67c311f8e2e46331b2add1a91702545e2 Reviewed-on: https://gerrit.libreoffice.org/40864 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-08EPUB export: write mime typeMiklos Vajna
libepubgen won't emit calls on the package interface to do this, it turns out. Change-Id: Ib9826f1df348fd7afbccdc5d5a92a6d94f8aa9af Reviewed-on: https://gerrit.libreoffice.org/40862 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-07EPUB export: start creating XML and CSS filesMiklos Vajna
Though at the moment all of them are empty. Change-Id: I4e53c81df2d709f06eb2a1df814b887181ae84c9 Reviewed-on: https://gerrit.libreoffice.org/40840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-07EPUB export: implement doc/para open/close and text in doc handlerMiklos Vajna
This should be enough for plain text of multiple paragraphs, but the package part is still missing. Change-Id: I05fe87fd01e078262a1be9ce76eaaa016de484bf Reviewed-on: https://gerrit.libreoffice.org/40822 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-08-03loplugin:constparams in starmathNoel Grandin
Change-Id: Iac470b572311241216622f22bc543c0bd10a28f6 Reviewed-on: https://gerrit.libreoffice.org/40714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-03EPUB export: add initial package implementationMiklos Vajna
Just a skeleton, doesn't use comphelper::OStorageHelper yet. Change-Id: Ic83e05b3a041c0c572e294eacd5b9dcb6eeae897 Reviewed-on: https://gerrit.libreoffice.org/40703 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-02remove unnecessary use of 'this->'Noel Grandin
Change-Id: I5c115389af7d24c18ddaf5fbec8c00f35017a5b4 Reviewed-on: https://gerrit.libreoffice.org/40671 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-01EPUB export: add initial document handlerMiklos Vajna
It doesn't do anything useful yet, though. Change-Id: Ic881a9aec92981306aa815d9d10b6aa0ea949237 Reviewed-on: https://gerrit.libreoffice.org/40639 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-01EPUB export: invoke the underlying ODT exporterMiklos Vajna
The document handler is still missing, though. Change-Id: I26aa9c2211fafb311e297f48d4301c0c26ec8edf Reviewed-on: https://gerrit.libreoffice.org/40636 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-01writerperfect: add initial EPUB export filterMiklos Vajna
It doesn't do anything yet, but EPUBExportFilter::filter() is called. Actual functionality will be provided by libepubgen later. Change-Id: I7229dc33c69238c6e98a7bb30fd38473b3c35bfe Reviewed-on: https://gerrit.libreoffice.org/40630 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-01move resmgr to unotoolsCaolán McNamara
and the vast majority of translations is to the ui language so default ctor with that arg and now drop OModuleResourceClient Change-Id: I3b85a560ffdfe5f019c2271ac56a5fe4a361522b
2017-08-01writerprefect: run astyleMiklos Vajna
So that whitespace and (later) functional changes are in separate commits -- and writerperfect/README asks to run astyle before committing. Change-Id: I771ad70932ed8bb3254a230562ea40440e2d4be7
2017-07-24const these upCaolán McNamara
Change-Id: I78e0cea5afd2e226ea11aaf1bd440e67bbb376f0
2017-07-21migrate to boost::gettextCaolán McNamara
* 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 Grandin
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 Nitschke
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 Grandin
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 McNamara
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 Grandin
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 Nitschke
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 Nitschke
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 Sherlock
Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380
2017-05-07tdf#43157: convert writerperfect module away from OSL_ASSERT to assertChris Sherlock
Change-Id: I5db174ea899229151327a471fb0e18d643830542
2017-05-02fix file nameDavid Tardon
Change-Id: I43f4f0281d83c402fb7ced9fe0b01ef8a59d7aa5
2017-04-28loplugin:salunicodeliteral: writerperfectStephan Bergmann
Change-Id: I399a72c809db342ff6ffe4644154683fc98feb51
2017-04-28clang-tidy readability-simplify-boolean-exprNoel Grandin
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 Sherlock
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 Ostrovsky
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 Mohrhard
Change-Id: I95fa42f4ef0580734b605df859c1660b29adb8b2 Reviewed-on: https://gerrit.libreoffice.org/36499 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>