summaryrefslogtreecommitdiffstats
path: root/writerperfect
Commit message (Collapse)AuthorAgeFilesLines
* EPUB export: test link handlingMiklos Vajna2017-09-262-0/+19
| | | | | | | | | | Fails without commit 9480ff6a2b6057410940ff5c40828d5746898a0e (EPUB export: implement link support, 2017-08-17). Change-Id: Icee6ac04ff77d0e9ff66ca1f925d6973b4b342a2 Reviewed-on: https://gerrit.libreoffice.org/42786 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* EPUB export: test not loosing nested list contentMiklos Vajna2017-09-262-0/+14
| | | | | | | | | Just focus on the content, no formatting yet. Change-Id: I109f049bafae6a20d6b617f3be6a9c4f237e782b Reviewed-on: https://gerrit.libreoffice.org/42785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* EPUB export: add testcase for EPUBExportUIComponent::setPropertyValues()Miklos Vajna2017-09-261-0/+26
| | | | | | | | | | Making sure python produces sequence<PropertyValue> and not sequence<any> is a bit tricky. Change-Id: I1f3ee4664202576ab6777b719b3712b164c5002d Reviewed-on: https://gerrit.libreoffice.org/42759 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* EPUB export: don't leak when exceptions are thrownMiklos Vajna2017-09-2524-42/+43
| | | | | | | Additional benefit is that this way we're again in sync with xmloff code. Change-Id: Ifa1dd976fbd2ce04cb47814060508c65e35474ca
* Rename GetSelectEntryData -> GetSelectedEntryDataSamuel Mehrbrodt2017-09-251-1/+1
| | | | | | | Change-Id: Ia6402f6d2c978cbd5557052a43e9728ca9e11173 Reviewed-on: https://gerrit.libreoffice.org/42285 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* RTF import: split this call into simpler onesMiklos Vajna2017-09-251-5/+5
| | | | | | | Hopefully with this it's easier to see which is the usual and which one is the exceptional case. Change-Id: Iac1b49b2a4f2b909db46155d1ff10d2ba99fd655
* Fix typoAndrea Gelmini2017-09-221-1/+1
| | | | | | | Change-Id: I3bdc875963c413996ffb6403c44968447dbb3131 Reviewed-on: https://gerrit.libreoffice.org/42629 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
* EPUB export: add table testcaseMiklos Vajna2017-09-222-0/+49
| | | | | | | | | | Fails without commit 54ad8ad0f0ce22299d28b4ec09eea26ad2691642 (EPUB export: initial table support, 2017-08-22). Change-Id: Ie8d793a8851dba894c57f2071e1b4717fa1e17af Reviewed-on: https://gerrit.libreoffice.org/42590 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* allow system-libepubgen to limp alongCaolán McNamara2017-09-221-0/+11
| | | | | | | | Change-Id: I038421749ed6f20d74984beb2e703ffa43a09ff3 Reviewed-on: https://gerrit.libreoffice.org/42620 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* EPUB export: test image handlingMiklos Vajna2017-09-222-0/+50
| | | | | | | | | | Fails without commit 28102e471d3cb6b6976380ca84b1094078ac1af1 (EPUB export: handle inline images, 2017-08-17). Change-Id: Ie96430e9b2d988574464d359111619fc18109566 Reviewed-on: https://gerrit.libreoffice.org/42589 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* writerperfect: add initial UITest_writerperfect_epubexportMiklos Vajna2017-09-214-0/+52
| | | | | | | | | | Fails when EPUBExportDialog::VersionSelectHdl() does not take the version from the VCL widget. Change-Id: I8f77643ffbd7766ecec7bc2e148259765ab635b8 Reviewed-on: https://gerrit.libreoffice.org/42600 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* More missing GetSelectEntryPos -> GetSelectedEntryPosStephan Bergmann2017-09-211-3/+3
| | | | Change-Id: I0c59eac4d0bca2d0a086b9e319dcb50bc6a15b8e
* EPUB export: write styles inline to please poor readersMiklos Vajna2017-09-193-7/+55
| | | | | | | | | And add a filter option to disable the new behavior, if wanted. Change-Id: Ib70f60fc38d02c959452882bf593cd498b642fba Reviewed-on: https://gerrit.libreoffice.org/42433 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* consistent naming of externals: png -> libpngMichael Stahl2017-09-151-1/+1
| | | | | | | Change-Id: I82d95e74318600b390d5add716773c658817e504 Reviewed-on: https://gerrit.libreoffice.org/42296 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* clang-tidy modernize-use-emplace in variousNoel Grandin2017-09-141-3/+3
| | | | | | | Change-Id: Id1bbd3f380c17beeaab11f7140d4df1304c3d0d8 Reviewed-on: https://gerrit.libreoffice.org/41750 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* EPUB export: add options dialogMiklos Vajna2017-09-138-3/+383
| | | | | | | | | It just exposes the two options available at libepubgen level already. Change-Id: I428919ffe495b6d7ec2773f542e2fea6733d0a1c Reviewed-on: https://gerrit.libreoffice.org/42241 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle list contentMiklos Vajna2017-09-128-0/+184
| | | | | | | | | Minimal effort to not loose content, no actual list formatting yet. Change-Id: Ic49ed2f1877c608fc4af5d4aa7ebb3b49908fd86 Reviewed-on: https://gerrit.libreoffice.org/42214 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: initial UI componentMiklos Vajna2017-09-124-0/+149
| | | | | | | | | | | | EPUBExportUIComponent::execute() still needs to launch an actual dialog, but otherwise it has enough functionality that only tweaking maFilterData is necessary in the UNO component to pass custom filter options to the exporter. Change-Id: I95af024f5babd66a5aa0b446550f4f0fec45ef43 Reviewed-on: https://gerrit.libreoffice.org/42204 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle section contentMiklos Vajna2017-09-088-7/+120
| | | | | | | | | Just the minimum so content is not completely ignored on export. Change-Id: I2880780ed3ce5d1dd15adbd9222296f52a5e7c3d Reviewed-on: https://gerrit.libreoffice.org/42115 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* EPUB export: inherit text properties in spans from paragraphMiklos Vajna2017-09-084-34/+86
| | | | | | | | | | This is similar to nested spans, but here the outer element is a paragraph. Change-Id: Ibcdfe5aac54a44797067b06d319d19d2d47d5dd1 Reviewed-on: https://gerrit.libreoffice.org/42104 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: fix double escaped NBSPMiklos Vajna2017-09-083-0/+77
| | | | | | | | | | | | The EPUB package interface already XML-escapes characters, avoid a double escape. And once that works, handle NBSP/tabs. Change-Id: I8b7bbdc2592096bdd46fbdb29b48b723ef5cf990 Reviewed-on: https://gerrit.libreoffice.org/42098 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle span-level line breakMiklos Vajna2017-09-074-6/+28
| | | | | | | | | By pulling out common part of the paragraph/span context factory. Change-Id: If5fda87ce9f60e7e10d7f9406c30740bc8707143 Reviewed-on: https://gerrit.libreoffice.org/42064 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle line breakMiklos Vajna2017-09-073-0/+40
| | | | | | | | | When it's directly under <text:p>, as a start. Change-Id: I05e7decbcfa2f4dae36c01179d7efd7c8645a26b Reviewed-on: https://gerrit.libreoffice.org/42059 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle nested spansMiklos Vajna2017-09-074-22/+81
| | | | | | | | | | | | | | | | | | ODT export uses nested spans to represent a combination of named character style + automatic style (instead of having a parent for the automatic style), but librevenge doesn't allow nested spans, so handle this explicitly. The alternative would have been to remember the attribute list as member data, but the underlying SvXMLAttributeList is reused after startElement() returns, so it by the time characters() is invoked, it won't have the data we need anymore. (Would be a trade-off between doing the attributes -> property list conversion exactly once or depending the number of characters() invocation anyway.) Change-Id: I1dd2f060c421c126340db471a257093b30431d17 Reviewed-on: https://gerrit.libreoffice.org/42046 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle style parents for named stylesMiklos Vajna2017-09-064-19/+126
| | | | | | | | | | | Character / paragraph formatting from a style hierarchy should be OK now. Also this time test the actual CSS contents, not just that the rule name for two paragraphs or spans differs. Change-Id: I18a9c11aaf16bb3c4b462415b5e819f16de0893c Reviewed-on: https://gerrit.libreoffice.org/41993 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: pull out FillStyle() from XMLSpan/ParaContextMiklos Vajna2017-09-061-63/+34
| | | | | | | | | To avoid repeating similar code 3 times. Change-Id: I76a7d2329488ba9b77b789c0393ac120e8e775d1 Reviewed-on: https://gerrit.libreoffice.org/41973 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle text properties from text stylesMiklos Vajna2017-09-063-5/+45
| | | | | | | | | | This is the last combination of style -> direct inheritance that was not handled previously. Change-Id: Ie92b38b89a13b81f09cd7300b0d1b939cda3d8ff Reviewed-on: https://gerrit.libreoffice.org/41952 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle text properties from paragraph stylesMiklos Vajna2017-09-052-0/+16
| | | | | | | | | | Same as previous EPUB commit, but this time for text properties, not paragraph ones. Change-Id: I46d59d92028cf4155bfbbf68805a1b6c259e81e2 Reviewed-on: https://gerrit.libreoffice.org/41945 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: handle paragraph properties from paragraph stylesMiklos Vajna2017-09-059-19/+100
| | | | | | | | | | This adds support for inheriting paragraph properties from named paragraph styles. Change-Id: I3cb787f6704329a5e0d11d3cd0266254749ac5ae Reviewed-on: https://gerrit.libreoffice.org/41938 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: write author metadataMiklos Vajna2017-09-043-0/+49
| | | | | | | | | | <meta:initial-creator> is the author and <dc:creator> is the "last modified by" in ODF (it seems), so map the first to EPUB's <dc:creator>. Change-Id: Id701c8c38b0901ae14fbbc7b32d01b43d6d03f68 Reviewed-on: https://gerrit.libreoffice.org/41903 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: support char props on text outside a spanMiklos Vajna2017-08-308-21/+93
| | | | | | | | | | | The librevenge model is simpler: text is always in a span, and paragraph (automatic) styles don't contain char props, either. So handle this complexity on our side. Change-Id: I017222539d8981d2bbbc632258662444bf3a79c8 Reviewed-on: https://gerrit.libreoffice.org/41705 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: initial character properties as direct formattingMiklos Vajna2017-08-294-2/+91
| | | | | | | | | | Handle the case when the formatting comes from an autostyle on the text span. Change-Id: I12f9a752c4f2934a3e155a4442ad3db68a43d395 Reviewed-on: https://gerrit.libreoffice.org/41694 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* EPUB export: write generator stringMiklos Vajna2017-08-292-0/+29
| | | | | | | | | | Should help with debugging when it's not clear the version creating the output had a certain fix or not. Change-Id: Ibd1b5153d3210d30f95eba8927c55e2e812d985c Reviewed-on: https://gerrit.libreoffice.org/41652 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* disable EPUB export test with system libepubgenDavid Tardon2017-08-281-1/+1
| | | | | | | ... because it tests mainly stuff that is not in any released version yet. Change-Id: I39503061e6d5b5116a83a5e299fb2de77a5e7e33
* integrate libqxpAleksas Pantechovskis2017-08-284-0/+111
| | | | | | | Change-Id: Ic7479b82d09c1e36d28267434a77bf4bc158adfa Reviewed-on: https://gerrit.libreoffice.org/41612 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
* EPUB export: allow custom split methodMiklos Vajna2017-08-254-11/+68
| | | | | | | | | | Default is split on heading, but this allows e.g. split on page break instead. Change-Id: Ie392fc76f91d60029c7e5f2a0adc55cb18f6157d Reviewed-on: https://gerrit.libreoffice.org/41577 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* EPUB export: add support for page breaksMiklos Vajna2017-08-258-3/+235
| | | | | | | | | | | | 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>
* EPUB export: allow setting a custom versionMiklos Vajna2017-08-253-8/+59
| | | | | | | | | | | | | 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>
* EPUB export: make sure that the mimetype stream is not compressedMiklos Vajna2017-08-253-6/+43
| | | | | | | | | | | | | 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>
* Add initial CppunitTest_writerperfect_epubexportMiklos Vajna2017-08-244-0/+145
| | | | | | | | | | | 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>
* EPUB export: initial table supportMiklos Vajna2017-08-224-0/+158
| | | | | | | Focusing on just not loosing plain text content, no actual formatting yet. Change-Id: Ic242f849730e1eb174f621f2235fa04563024e4e
* writerperfect: oops, duplicated includeMiklos Vajna2017-08-221-2/+0
| | | | Change-Id: I101856ddf3d636c1ac5535043bf5cd63b6d90acd
* writerperfect: make sure EPUBExportFilter.hxx is self-containedMiklos Vajna2017-08-221-0/+2
| | | | | | By including it first in its implementation file. Change-Id: I8eda0cc8a7e8c37883dbecc84f3f315cff8c3146
* loplugin:checkconfigmacrosStephan Bergmann2017-08-211-1/+1
| | | | Change-Id: Ic9ffe0af9e32b45c304c1edee92ed4b185b4ed19
* allow to build with released libepubgenDavid Tardon2017-08-211-1/+7
| | | | Change-Id: I12d297e8a3e57a3b24d85e4c537996cad0106125
* EPUB export: handle inline imagesMiklos Vajna2017-08-177-4/+258
| | | | | | | | | | 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>
* EPUB export: implement link supportMiklos Vajna2017-08-171-0/+46
| | | | | | | | | | 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>
* remove UL/L suffixes from integer constants on the RHS of expressionsNoel Grandin2017-08-171-2/+2
| | | | | | | 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>
* EPUB export: initial index supportMiklos Vajna2017-08-152-3/+15
| | | | | | | | | | 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>
* EPUB export: initial span supportMiklos Vajna2017-08-151-1/+35
| | | | | | | | | | 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>