Commit Graph
324 Commits
Author SHA1 Message Date
dennisroczek fe1c13d4ba remove notice about cite.php
The extension Cite is distributed with MediaWiki 1.21 (released May 2013) and is integrated in core since MediaWiki 1.25. No need to keep that notice any longer.

Change-Id: I8a91fbb45bc6f410b551c206177d63c584349c37
Reviewed-on: https://gerrit.libreoffice.org/51795
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-03-24 14:05:45 +01:00
Jens Carl 3d0c0abea7 tdf#39468: Translate some random German comments and terms
Change-Id: I5499676506a7570482388eb153f4667785b016ed
Reviewed-on: https://gerrit.libreoffice.org/42770
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-09-26 11:57:30 +02:00
Samuel Mehrbrodt 28dff3780f Clean up xsl files
* Remove trailing spaces
* Use 4 spaces for indentation everywhere

See discussion at https://lists.freedesktop.org/archives/libreoffice/2017-September/078433.html

Change-Id: I0bb9a0b9b0502cdf0870529cea37ee9c4d1ffdf4
Reviewed-on: https://gerrit.libreoffice.org/41009
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-09-20 16:11:23 +02:00
Julien Nabet 6a24160894 tdf#80671: mediawiki, no superscript tags allowed in footnotes
Change-Id: I54c2cc0fc6b2a9c631fc83f59c2204dd5e374d2c
Reviewed-on: https://gerrit.libreoffice.org/38666
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-06-11 23:05:32 +02:00
Julien Nabet e34b02834b tdf#97743: mediawiki account
To find main url in header section, search link containing:
- load.php
- or opensearch_desc.php

In Wikipedia or wiki.documentfoundation.org, I haven't seen any link with index.php

Change-Id: Iccb27aa8aaaf936faf8ec3b3f67eaa98d0426f19
Reviewed-on: https://gerrit.libreoffice.org/38631
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-06-10 23:02:15 +02:00
Julien Nabet c7874d890d Typo in mediawiki: height and width mixed
It'll change nothing since InsertThrobber function (which contains these args)
are called with value=10 for both vars
Just for sanity sake then

Change-Id: Ie084a5a3cb15a121574aa0d06b43f1a6d34c0d09
Reviewed-on: https://gerrit.libreoffice.org/38639
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-06-10 22:12:48 +02:00
Julien Nabet 8a400cfa46 tdf#98888: mediawiki inserts redundant emptylines in <ref>
There's a newline in case of heading, table or bibliography following text:p
ok but only if we're not in text:note node

Change-Id: I71172751a51e29abdd770e758d27b1bc8f15cb0d
Reviewed-on: https://gerrit.libreoffice.org/38470
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-06-07 07:13:54 +02:00
Arianna Masciolini a8124c2eaf tdf#33831 swext: mention images by name in the mediawiki export
odt files with pictures exported in mediawiki format now contain references to each image

Change-Id: Idd73da997e2fe983899dd4514d3c393b3607a52d
Reviewed-on: https://gerrit.libreoffice.org/38160
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-05-29 23:40:37 +02:00
Adolfo Jayme Barrientos b65c618f2d MediaWiki export help: “WikiMedia” → “MediaWiki”; minor copyediting
Why is “wiki” always capitalized? It’s not a proper name.

Change-Id: I55941f192e149dc93a6576e5ca21edac78299cb4
2016-09-27 15:05:45 -05:00
Noel Grandin 5f42a268c3 remove unused imports in java code
Change-Id: I95041f49dd22ba9a15da3598b04a010eecf761a8
2016-06-06 14:28:41 +02:00
Noel Grandin b9d63d49be remove some unused Java code
found by UCDetector

Change-Id: Ic0295a24b26e206eb53eda2da540755477df86df
2016-03-14 13:44:39 +02:00
Caolán McNamara 57d85c0e8d setListenerState does nothing
and thus callStatusListener does nothing

so there seems no reason to have a m_statusListeners
which is filled by addStatusListener but not emptied by
removeStatusListener

Change-Id: I7efdf7ccfd123bf7c2aa6add4f8db969a0019089
2016-03-02 11:41:40 +00:00
Noel Grandin b4203f530c cid#1326858 Eq: Problems with implementation of equals()
Change-Id: If87666e6e4ac9397ac44bed805fc7c83ad357105
2016-02-23 09:31:05 +02:00
Noel Grandin f126d7fb8f cid#1327459 BC: Bad casts of object references
Change-Id: Ibf80ea0a0f1afbd8269c79d7a7f6f0703567df94
2016-02-23 09:31:05 +02:00
Noel Grandin c39a9240c5 cid#1327465 Eq: Problems with implementation of equals()
Change-Id: I63921f5a84adcb3d1e562327fd1f47282efe6fbd
2016-02-23 09:31:05 +02:00
Caolán McNamara f0b3d21433 coverity#1326198 Dereference after null check
Change-Id: I3db353d04094ba47fe915ea5dc4d96fc4612cc68
2016-02-06 21:09:13 +00:00
Caolán McNamara 2b198c3380 coverity#1326498 Resource leak on an exceptional path
Change-Id: I28b848ef94039e4c79242599b2031b8789857a46
2016-02-06 20:58:44 +00:00
jan iversen 77031644f1 cid#1326434, 1326446, 1326248, 1326254
null pointer dereferencing, added null check

Change-Id: I78f3ee1eb5d5bd4ebe7b3a6775db4884859dbcf6
Reviewed-on: https://gerrit.libreoffice.org/21712
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-23 08:31:46 +00:00
Caolán McNamara 65abc5e301 coverity#1326413 Dereference null return value
Change-Id: Icd3728ca151ede50ab41ad7fbb150a3054df6739
2016-01-15 20:24:47 +00:00
Andrea Gelmini 64d624b651 Fix typos
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
Reviewed-on: https://gerrit.libreoffice.org/21209
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10 14:17:20 +00:00
Jan Holesovsky eb95283d98 Killed the 'lastedited' element, it's useless, we have git.
Change-Id: I61a7f92843ef888f64eb5b97267ba30227d64d73
2015-11-12 09:54:45 +01:00
Noel Grandin b73db446ac java: combine nested if statements
Change-Id: I0457b81668e9427a3c8d6a4af93438b7fb2bb7ba
2015-11-05 14:55:15 +02:00
Caolán McNamara b1e949ed10 coverity#1326963 RV: Bad use of return value
Change-Id: I86aaa7904b3d6e551dcaf0e8d207bea2f2f134c3
2015-10-20 21:18:34 +01:00
Caolán McNamara b23deda0bb coverity#1327463 Dm: Dubious method used
Change-Id: I452603d75aa2e96d4c5e7fc00d730c98a265c186
2015-10-20 21:18:32 +01:00
Caolán McNamara 8da886989b coverity#1327464 Dm: Dubious method used
Change-Id: I7fb3182f181909a289f4253370904215518c1f23
2015-10-20 21:18:32 +01:00
Caolán McNamara eacf46e60b coverity#1326241 Dereference after null check
Change-Id: I54c00e1d4e5ebccf141293cd97d99efeebda1083
2015-10-15 14:26:07 +01:00
Noel Grandin ee3ebedbae java:remove unused imports
Change-Id: I9529bf81dcfcd6761485af5d66789c1a9a83eeec
2015-10-14 16:07:49 +02:00
Michael Stahl 18b934af99 swext: increment the extension version number to 1.2.0
... and also set the User-Agent header so the servers know who's messing
with them.

Change-Id: I0173db05868c5fcd0f85435adf78884ca562596d
2015-10-09 10:14:21 +02:00
Michael Stahl 2ccef1c93d swext: add a logging out stream to help debugging TLS connections
Change-Id: Idbabae3edad5e95a37fa9834d24a72ebd13087ae
2015-10-09 10:14:20 +02:00
Michael Stahl 4b6ceed4a4 swext: Wiki Publisher does not use those apache-commons libraries
... itself, they were apparently just dependencies of
commons-httpclient, so remove them.

Change-Id: I8fd5c85db058c4aa14c4f5fea20fd17ba361b0b2
2015-10-09 10:14:20 +02:00
Michael Stahl f7d149a731 swext: remove commons-httpclient dependency from Wiki Publisher
JRE 6 has sufficient HttpURLConnection etc. stuff to make this work
without bundling external libraries.

Change-Id: I6c71980c718169024006f02a96c442a71d798d55
2015-10-09 10:14:19 +02:00
Andrea Gelmini 2de378ecac Fix typos
Change-Id: I92f9eda138c387dde3095e1a6281bdcec3a2adde
Reviewed-on: https://gerrit.libreoffice.org/18982
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-30 06:15:39 +00:00
Noel Grandin 0c18bedb73 java: 'final static' to 'static final'
this is the canonical order, and it makes the code easier to read

Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470
Reviewed-on: https://gerrit.libreoffice.org/16242
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2015-06-15 08:45:19 +00:00
Noel Grandin efd4bfa818 java:regulatize the order of 'final' and public/private
Make the order be 'public static' or 'private static'
Just makes the code nicer to read.

Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2
Reviewed-on: https://gerrit.libreoffice.org/16202
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-11 09:34:00 +00:00
Robert Antoni Buj Gelonch 9947af03f9 odt2mediawiki.xsl: ensure the node selection
Change-Id: I78d773feaa1766904d455bd9ff5f9ea79c7b6dce
Reviewed-on: https://gerrit.libreoffice.org/15801
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-20 14:09:05 +00:00
Robert Antoni Buj Gelonch 6c3e4b8e54 odt2mediawiki.xsl: hide table of contents if there is a customized toc
Change-Id: I3be7f0929db94658ac1eabb0996364f53b52034c
Reviewed-on: https://gerrit.libreoffice.org/15795
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2015-05-19 07:30:36 +00:00
Robert Antoni Buj Gelonch b532d46551 odt2mediawiki.xsl: tabulation in toc entries
Change-Id: I596bd1c8814efcf2070d3e6d2ff126c03c0ec168
Reviewed-on: https://gerrit.libreoffice.org/15785
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2015-05-18 17:26:19 +00:00
Robert Antoni Buj Gelonch b32953d198 tdf#75360 tdf#90474 line breaks in exporting to mediawiki
Change-Id: Icb44653a9286c8bfbe912f391f0492fe49498f58
Reviewed-on: https://gerrit.libreoffice.org/15449
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-04-27 14:08:11 +00:00
Robert Antoni Buj Gelonch c4a8c792c7 odt2mediawiki.xsl: vertical & horizontal align of a image
Change-Id: I45cdffe132a796ccf06023f4465a2633df1926f3
Reviewed-on: https://gerrit.libreoffice.org/15544
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-04-27 13:25:54 +00:00
Robert Antoni Buj Gelonch 4f351515bc tdf#75531 failed to convert the margins
Change-Id: I025c4c14bcae9c925809f44425fabb6bc3d66806
Reviewed-on: https://gerrit.libreoffice.org/15451
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-04-27 13:21:57 +00:00
Robert Antoni Buj Gelonch 26b9122e78 tdf#75019 bookmarks in exporting to mediawiki
Add support for exporting common bookmarks
Add support for going to a specific bookmark (including TOC)

Change-Id: I2775d8b03a5bd986ffcbdf7c95a1fbed755e3bd6
Reviewed-on: https://gerrit.libreoffice.org/15486
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-04-27 13:16:07 +00:00
Robert Antoni Buj Gelonch a323ec686a odt2mediawiki.xsl: table cell color in cell attributes
Change-Id: I44f1969a227a811cdb740b387e30cf10994360b9
Reviewed-on: https://gerrit.libreoffice.org/15445
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2015-04-20 15:55:08 +00:00
Robert Antoni Buj Gelonch 50c43b030b odt2mediawiki.xsl: reuse table cell code, check USE_DEFAULT_TABLE_CLASS, use current vbles
Change-Id: Iedaddf11604b13c7db1d2b588a5f205f691ea2b4
Reviewed-on: https://gerrit.libreoffice.org/15440
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2015-04-20 13:52:14 +00:00
Robert Antoni Buj Gelonch f472ab2d13 odt2mediawiki.xsl: improve export filter
Replace <text>&#10;</text> with <value-of select="$NL"/>

Image
 + Add the alternative text in a image
 + Add support for image align with wrap='none'

Paragraph
 + Replace <center></center> tags
 + Add support for background-color and font-color

Table:
 * Cell:
   + Use align element
   + Add support for background-color and font-color
   + If all cells have the same style then specify that in the row section

 * Table:
   + Add support for table align and table width

 * Row:
   + Fix new line at the end of the row

 * Header
   + Treat the header like the row

Text:
 + Add support for background-color and font-color

Change-Id: Icd7196006b6d06d6c0c030d967686ed8f8a5e454
Reviewed-on: https://gerrit.libreoffice.org/15391
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2015-04-20 07:56:52 +00:00
Julien Nabet 25d3c618d8 Typo: formated->formatted
Change-Id: Iefd4d375a0dfb36732233852f906c6b85dccc2a5
2015-03-25 21:12:16 +01:00
Noel Grandin 10039462df java: remove more dead code
found by looking for unused parameters (in Eclipse)

Change-Id: I03cf9bc8312e59747b2d0ac153ee2fc8d76be893
2015-01-05 09:59:03 +02:00
Noel Grandin 43cc8ad33e java: remove dead code
found by UCDetector

Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
2015-01-05 08:23:29 +02:00
Noel Grandin 7d812b09b5 java: unused imports
Change-Id: I05824a6f19a5f3048a52101b96f6bf3d3099df08
Reviewed-on: https://gerrit.libreoffice.org/13403
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-10 08:03:50 +00:00
Noel Grandin c199b76d88 java: remove some unused local variables
Change-Id: Ia01528460e2f4b610d123e29cad66520abc6a965
2014-12-05 11:15:57 +02:00
Noel Grandin db203e59d6 java: remove some unused fields
Change-Id: I1b6fb6b47439c448ac31983702772e2115c70d56
2014-12-05 11:15:56 +02:00