summaryrefslogtreecommitdiffstats
path: root/swext
Commit message (Collapse)AuthorAgeFilesLines
* java: 'final static' to 'static final'Noel Grandin2015-06-151-35/+35
| | | | | | | | | 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>
* java:regulatize the order of 'final' and public/privateNoel Grandin2015-06-112-9/+9
| | | | | | | | | | 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>
* odt2mediawiki.xsl: ensure the node selectionRobert Antoni Buj Gelonch2015-05-201-24/+6
| | | | | | | 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>
* odt2mediawiki.xsl: hide table of contents if there is a customized tocRobert Antoni Buj Gelonch2015-05-191-0/+2
| | | | | | | Change-Id: I3be7f0929db94658ac1eabb0996364f53b52034c Reviewed-on: https://gerrit.libreoffice.org/15795 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
* odt2mediawiki.xsl: tabulation in toc entriesRobert Antoni Buj Gelonch2015-05-181-0/+31
| | | | | | | Change-Id: I596bd1c8814efcf2070d3e6d2ff126c03c0ec168 Reviewed-on: https://gerrit.libreoffice.org/15785 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
* tdf#75360 tdf#90474 line breaks in exporting to mediawikiRobert Antoni Buj Gelonch2015-04-271-4/+7
| | | | | | | 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>
* odt2mediawiki.xsl: vertical & horizontal align of a imageRobert Antoni Buj Gelonch2015-04-271-43/+126
| | | | | | | Change-Id: I45cdffe132a796ccf06023f4465a2633df1926f3 Reviewed-on: https://gerrit.libreoffice.org/15544 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* tdf#75531 failed to convert the marginsRobert Antoni Buj Gelonch2015-04-271-0/+8
| | | | | | | Change-Id: I025c4c14bcae9c925809f44425fabb6bc3d66806 Reviewed-on: https://gerrit.libreoffice.org/15451 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* tdf#75019 bookmarks in exporting to mediawikiRobert Antoni Buj Gelonch2015-04-271-7/+51
| | | | | | | | | | 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>
* odt2mediawiki.xsl: table cell color in cell attributesRobert Antoni Buj Gelonch2015-04-201-20/+41
| | | | | | | Change-Id: I44f1969a227a811cdb740b387e30cf10994360b9 Reviewed-on: https://gerrit.libreoffice.org/15445 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* odt2mediawiki.xsl: reuse table cell code, check USE_DEFAULT_TABLE_CLASS, use ↵Robert Antoni Buj Gelonch2015-04-201-155/+78
| | | | | | | | | 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>
* odt2mediawiki.xsl: improve export filterRobert Antoni Buj Gelonch2015-04-201-67/+356
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Typo: formated->formattedJulien Nabet2015-03-251-1/+1
| | | | Change-Id: Iefd4d375a0dfb36732233852f906c6b85dccc2a5
* java: remove more dead codeNoel Grandin2015-01-052-5/+0
| | | | | | found by looking for unused parameters (in Eclipse) Change-Id: I03cf9bc8312e59747b2d0ac153ee2fc8d76be893
* java: remove dead codeNoel Grandin2015-01-051-17/+0
| | | | | | found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
* java: unused importsNoel Grandin2014-12-101-1/+0
| | | | | | | Change-Id: I05824a6f19a5f3048a52101b96f6bf3d3099df08 Reviewed-on: https://gerrit.libreoffice.org/13403 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: remove some unused local variablesNoel Grandin2014-12-052-9/+1
| | | | Change-Id: Ia01528460e2f4b610d123e29cad66520abc6a965
* java: remove some unused fieldsNoel Grandin2014-12-051-3/+0
| | | | Change-Id: I1b6fb6b47439c448ac31983702772e2115c70d56
* java: make fields final where possibleNoel Grandin2014-11-186-13/+13
| | | | | | found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
* java: reduce excessive code indentation levelsNoel Grandin2014-11-123-86/+86
| | | | | | | | | by using early return in some methods Change-Id: I3611c8c89b3a94ef7e1772d178acf065fd7fcdc7 Reviewed-on: https://gerrit.libreoffice.org/12374 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: final fields that can be staticNoel Grandin2014-10-172-5/+5
| | | | Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
* java: when rethrowing, store the original exceptionNoel Grandin2014-10-161-1/+1
| | | | Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
* java: reduce the depth of some deeply nested if blocksNoel Grandin2014-10-161-25/+25
| | | | Change-Id: I3c0c7f08d4d8ea594e72fc0d9b93d085d4ab4bf5
* mediawiki: use String.length()==0 instead of String.equals(empty string)rbuj2014-09-111-2/+2
| | | | | | | Change-Id: I849da46aee801686cf6a581d65276ab60575c078 Reviewed-on: https://gerrit.libreoffice.org/11372 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* mediawiki: use a character literalrbuj2014-09-102-2/+2
| | | | | | | Change-Id: I1dadf4f905fcf06aee616cc0cfea3d77a145a3a1 Reviewed-on: https://gerrit.libreoffice.org/11371 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* swext: use proper syntax for accessing outer class thisMichael Stahl2014-09-082-7/+7
| | | | Change-Id: Ie2d466b4e1a567d204b109208fce84842bea2a19
* missing importsCaolán McNamara2014-09-081-0/+2
| | | | Change-Id: Id569f55097cf513825b62225ec8861319b0a93cf
* mediawiki options went missingCaolán McNamara2014-09-081-0/+11
| | | | | | | | | regression from 34bcf9b498bccb5c924f4cec850ff15d88df6f07 Change-Id: Ibd0645bd218c81da110b3704a530e3849b761fb4 Date: Wed Aug 13 10:08:31 2014 +0200 java: remove dead methods found by UCDetector
* mediawiki: improve storeConfiguration & loadConfiguration methodsrbuj2014-09-081-53/+48
| | | | | | | | | | | | * Use enhanced for-loops (storeConfiguration & loadConfiguration) * Use curly braces to reduce the variable scope and, to reuse variable names (storeConfiguration) * Avoid map.get(key) in iterations over each map's entry (storeConfiguration): for (Map.Entry<String, Object> entry : ht.entrySet()) Change-Id: I678d5a9f205efb2c89ab868b59e1b654419381d8 Reviewed-on: https://gerrit.libreoffice.org/11331 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* mediawiki: if...else if...else Statementrbuj2014-09-061-1/+1
| | | | | | | Change-Id: I3722aef2064e0878ac9a1b1f835d20f507f178af Reviewed-on: https://gerrit.libreoffice.org/11299 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* mediawiki: use contains to check if a string contains a substringrbuj2014-09-061-1/+1
| | | | | | | Change-Id: Ic98d295bb56c5466a388930b6cea403d6307b850 Reviewed-on: https://gerrit.libreoffice.org/11298 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* mediawiki: the assigned value is never usedrbuj2014-09-061-5/+3
| | | | | | | Change-Id: Icb2c4477b96c6bab9004b9c7ead2272b86e78dfb Reviewed-on: https://gerrit.libreoffice.org/11297 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Use COMMONS_LOGGING_VERSION vblerbuj2014-08-201-1/+1
| | | | | | | Change-Id: I0c76ec7e3f9b95166b4005dd1ad5349b3889c3e4 Reviewed-on: https://gerrit.libreoffice.org/10993 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* java: remove unnecessary constructor declarationsNoel Grandin2014-08-202-10/+0
| | | | | | | in the absence of any other constructors, the compiler will automatically generate a public no-arg constructor Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909
* java: don't catch and then just rethrow an exceptionNoel Grandin2014-08-201-25/+18
| | | | | | without doing anything else useful Change-Id: I5803d84d46e0a70e1759f2202e2c2273087f8723
* java: use 'Short.valueOf' instead of 'new Short'Noel Grandin2014-08-192-2/+2
| | | | Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
* java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin2014-08-191-4/+4
| | | | Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
* java: use Boolean.valueOf instead of instantiating Boolean objectsNoel Grandin2014-08-195-14/+14
| | | | Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
* java: remove unused methodsNoel Grandin2014-08-191-26/+0
| | | | Change-Id: Ibb905e6f3e7d92a0e558f1f6562e5b472cd2717b
* upgrade to apache-commons-1.2Thomas Arnhold2014-08-161-1/+1
| | | | | | | Change-Id: Ic356c6a23f42b5fe37be1075e8508bb168eac9a1 Reviewed-on: https://gerrit.libreoffice.org/10927 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* java: remove unused importsNoel Grandin2014-08-142-6/+0
| | | | Change-Id: Ic60b30141fd1dc61acfb97b811aec680a2ab9c22
* java: remove commented out codeNoel Grandin2014-08-142-5/+0
| | | | Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
* java: remove dead methodsNoel Grandin2014-08-135-135/+4
| | | | | | found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
* java: remove unused fieldsNoel Grandin2014-08-132-6/+5
| | | | | | found by UCDetector Change-Id: I4a7c56a9918054c23469de5680658e7b501f0165
* java: reduce scope, make some methods privateNoel Grandin2014-08-139-22/+22
| | | | | | found by UCDetector Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
* java: reduce scope, make fields privateNoel Grandin2014-08-131-1/+1
| | | | | | found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
* java: reduce scope, make constants privateNoel Grandin2014-08-123-11/+11
| | | | | | found by UCDetector Change-Id: Ide9975e361ed17ac8cdcbe67ba74c563a9392d57
* java: remove unused parametersNoel Grandin2014-08-121-8/+3
| | | | Change-Id: If51df0579dad2496d88699e6c850976d7e89ca9b
* java: add @Override annotation to overriding methodsNoel Grandin2014-08-125-0/+17
| | | | Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
* java: remove unused parametersNoel Grandin2014-08-114-16/+14
| | | | Change-Id: I47c618117e079bb2ef90d92c449c8166ea957fa5