summaryrefslogtreecommitdiff
path: root/svtools
AgeCommit message (Collapse)AuthorFilesLines
2014-03-31Resolves: #i124085# disabled CF_DIBV5...Armin Le Grand2-11/+20
(no advantages but some problems), increased png support (cherry picked from commit c991f7cae8dcb306cb0d1f32bc5fcd8ea0a1ea81) Change-Id: I52bef1295b32eb3692a0428c96edd0c55287f34a Reviewed-on: https://gerrit.libreoffice.org/8784 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-05fdo#75260: Correctly draw double lines for both Writer and Calc.Kohei Yoshida1-6/+3
Fix all sorts of incorrect double line handling in drawinglayer in order to draw thick-thin double line types correctly. Also change handling of border lines in writer tables. There are still some outstanding issues but it's much better than how it was before. Also realized that Word and Excel handle simple thin double lines differently; Word varies widths of all of the lines and the gap whereas Excel only has one fixed size for its double line. For this reason I decided to add a separate double line type (DOUBLE_THIN) to handle Excel's double line. (cherry picked from commit 2c62596cf264ef10749d8bfdb2bb2ebef2d98fbc) Conflicts: cui/source/tabpages/border.cxx sc/qa/unit/subsequent_export-test.cxx sc/source/ui/view/tabvwsha.cxx sw/source/core/layout/paintfrm.cxx xmloff/source/style/bordrhdl.cxx Change-Id: Iaaa353b6e4f998b524262bea59260b4333e0cdb4 Reviewed-on: https://gerrit.libreoffice.org/8464 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-05fdo#73263: Change the default color for reference border to non-red.Kohei Yoshida1-1/+1
See the referenced bug report for the reason behind it. Change-Id: I4284807adaf82ae9581208a13ebd5071d36be5c7 (cherry picked from commit 95a7e952552adb834f92d1477f83938e7c8d0204) Reviewed-on: https://gerrit.libreoffice.org/7862 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-01-29fdo#73487, fdo#73886: Overhaul cell borders to make them look sane.Kohei Yoshida1-70/+46
Change-Id: Ie563f272b60ec8b6b8a4ff0df7256902997610c1 Reviewed-on: https://gerrit.libreoffice.org/7597 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann1-6/+6
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. (cherry picked from commit a3f32769fc4bb23c64168b412dd10ec769a3854d) Conflicts: sc/source/ui/unoobj/nameuno.cxx sc/source/ui/unoobj/styleuno.cxx sfx2/source/appl/sfxhelp.cxx stoc/source/security/permissions.cxx sw/source/core/unocore/unocrsrhelper.cxx (None of those bogus startsWith calls seem problematic enough to warrant backporting also to libreoffice-4-2-0.) Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21 Reviewed-on: https://gerrit.libreoffice.org/7578 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21fdo#71511: in autodetected a11y HC mode, pull background color from themeBjoern Michaelsen2-2/+38
- ... and reload ColorConfig after tweaking relevant a11y settings - dark theme default to high contrast - as per fdo#35365, having a dark document background is inconvenient for non-a11y endusers - a11y standard require the (rather ugly) background for a11y - thus, when "automatically detect high contract mode of operating system" in Tools->Options->a11y is enabled, use the dark document backgroundby default, otherwise use a white default note that the autodetect HC option is somewhat broken anyway: it resets the icon theme hard, so there are not simple roundtrips enableing/disabling it for that, but those havent been there before either. (includes: Ia35a41717224dfb7437054bb885c61d7e0b189d7) Change-Id: Id8ad1eb3d57b3708ac5a241092208e3a8d98ade0 Reviewed-on: https://gerrit.libreoffice.org/7484 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-01-16fdo#51180 reset (Multi)Selection on Clear()Lionel Elie Mamane1-0/+7
Change-Id: I06dde63093eab4e5e1c692f6363aca70b89de96a Reviewed-on: https://gerrit.libreoffice.org/7430 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-12-18the MS Serbian Latin Neutral messEike Rathke1-1/+1
There are two LangID values mapping to Serbian Latin (without country) which lead to the UI language selector displaying "sr-Latn" instead of "Serbian Latin" because conversion picked the other one. Consistently use LANGUAGE_SERBIAN_LATIN_LSO and don't trap into LANGUAGE_SERBIAN_LATIN_NEUTRAL (whatever that might be). Change-Id: I6ae6c2027048c99096b4d9d703a0dc73784b52f1 (cherry picked from commit 4256491ffe48b8be09ec66a003988193e8585584)
2013-12-16initial install-package-foo target for partial installsBjoern Michaelsen1-1/+1
make packageinfo target add uiconfig file translations add missing l10n config files add missing help files in packageinfo Reviewed-on: https://gerrit.libreoffice.org/6754 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Conflicts: helpcontent2 translations a2498a118e729276a78ef3a4eb43b5d0b302d326 9bb39bdd677af4be0da621370c51eb9e22ecc33f a7e654cdeffd832f51016ff51aa180fe3924ff4e 4ee41fdb600cb3a89da387dffe64e6a30192761c 349fb24a388775c58be7a326832b3fc0ec38180f 8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06 Change-Id: Id5f6f5c1f3e46df2d9033ccd5bbf2af6ab38a9e8 Reviewed-on: https://gerrit.libreoffice.org/6982 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-12-12fdo#72125: GetTextWidth() can get very expensive.Jan Holesovsky1-1/+19
Let's just count an approximate width using a cached value when we have too many entries. Change-Id: I2113887c477bc774dd00df538ec1a01f102f4726
2013-12-10svtools: don't dereference invalid iteratorMichael Stahl1-0/+2
Can be reproduced by opening Data Sources in Writer and closing document. Change-Id: I703ceffee3a1896acd06076d8b77085e8785acd3 (cherry picked from commit 6692eeca9a3ba7a9ba461564172275fbb78992e9)
2013-12-09fdo#72156: GraphicObject: Added missing delete of streamUlrich Kitzinger1-0/+3
Change-Id: I1b84941b0e4b17d5819b1e4af0da9ce3f673710f Signed-off-by: Ulrich Kitzinger <ulkitz@hotmail.de> (cherry picked from commit cc36dfc9bf4f327c359d171d8d05f0ede049164e) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2013-12-05crash on exit from xml form document with accessibility enabledCaolán McNamara1-2/+4
(cherry picked from commit 0c3211b1f20383b4fbee8978e88c21e498e35047) Conflicts: svtools/source/contnr/treelistbox.cxx Change-Id: If60075b939569cf339f7ccf7e39e513fbe1f74bf
2013-12-02added Kurdish, Southern (Iran) [sdh-IR] to language list, fdo#63460Eike Rathke1-0/+1
Change-Id: I575c8a51cff1cf451c776818711d2e0fd458a322 (cherry picked from commit fefacbd92f4e3355ecd04841b8eacc75a4a67223)
2013-11-30mark non-translatable .ui strings explicitely as suchAndras Timar1-10/+10
so bin/ui-translatable.sh will not find false positives Change-Id: I35e98ba22ba8c0cc9bbf0de40b31be421acc4c15
2013-11-20wrong border extraction mechanismCaolán McNamara1-7/+3
Change-Id: I70925b9e8f5eb0e735200e2f57a892ada9fad379
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin1-1/+1
Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-20fdo#65355 Ruler Comment control doesn't disappearsRodolfo Ribeiro Gomes1-12/+12
ImplDraw() should not be directly called because it avoids overriden Paint() method. Change-Id: I0f0f6b4af231c1ea50a23fb96f3c9018b5ce2d31 Signed-off-by: Rodolfo Ribeiro Gomes <rodolforg@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/6707 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20Convert chart axis scale tab page to widget UI.Olivier Hallot1-0/+6
Obs: -Several widget positioning methods turned useless and were deleted -Corner case related to axis origin untested (couldn't find where it is used) Change-Id: I6a563c89ddcfbff62494ce7726f3e7d6089e6b57 Reviewed-on: https://gerrit.libreoffice.org/6730 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::appendNoel Grandin3-21/+21
Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin1-1/+1
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-20convert equalsAsciiL calls to startsWith callsNoel Grandin1-6/+6
Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-19Add data for Alfresco Cloud CMIS connectionCédric Bosdonnat1-1/+4
Change-Id: Ie5374f2e81e1429294805f05ae432fba86cc50df
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin20-71/+71
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-2/+2
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-18cleaned up ISO code usage for Kurdish, fdo#63460Eike Rathke1-4/+5
* instead of the 'ku' macrolanguage code use proper ISO 639-3 codes and use 'Latn' script with 'kmr' * use MS-LCID 0x0492 for Central Kurdish (Iraq) [ckb-IQ] * added Southern Kurdish (Iraq) [sdh-IQ] Change-Id: Iaee8be98d0659a0e7bbf041e60025dd1f771066f
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann2-4/+0
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14make l10n buildable separatelyBjoern Michaelsen1-1/+4
- this renames the 'almost' module target to non-l10n - and adds a l10n target which is intended to only build l10n parts of the product - packagers should then be able to build l10n and non-l10n parts of the product independently, thus: - enable quicker rebuilds - distribution of load - updates to l10n without a full rebuild - security fixes to binaries without rebuilding all l10n - the new targets are called build-l10n-only and build-non-l10n-only - note this is not intended to move a concept of split packages upstream -- while this exsists in distros, the number of test scenarios for this would explode upstream Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863 Conflicts: filter/Module_filter.mk
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin1-1/+1
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-13xub_StrLen->sal_Int32Caolán McNamara2-13/+13
Change-Id: Ia17762919b57bc6febed5cc49e8931165870c117
2013-11-11SAL_WARN_UNUSED INetURLObjectStephan Bergmann2-3/+0
Change-Id: Ia9af3b76c2a2ac654b02c1502aa2d0c2c987fbf2
2013-11-11added Puinave [pui-CO] to language list, fdo#71454Eike Rathke1-0/+1
Change-Id: Ib188b2a8dbfbc91f2e89952d6df2c0c357091a78
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-2/+2
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin5-15/+15
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-08remove unnecessary use of OUString constructor in SVTOOLS moduleNoel Grandin6-21/+21
Change-Id: Iad58b125f16226cc6afa9d88d2c792065bbc244f
2013-11-07OAuth2 application keys shouldn't be in the code.Cédric Bosdonnat1-2/+10
The GDrive OAuth2 key is now defined at configure time. If either the client secret or client id is missing, the Google Drive connectivity will be disabled at runtime. Tinderboxes can set up a GDrive key, but they need to make sure it's not persisting in the build log. Change-Id: I09bc748641ec14eae890f273f05bffe4ed421dbb
2013-11-07fdo#63020: Replace ::comphelper::stl_begin()...Marcos Paulo de Souza3-3/+0
And use some templates inside include/com/sun/star/uno/Sequence.hxx Change-Id: I48875fa1517751fc4cb0cf2b6c08b88975a29b47 Reviewed-on: https://gerrit.libreoffice.org/6599 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-06convert xub_StrLen to sal_Int32Noel Grandin1-8/+6
convert for loops using xub_StrLen to use sal_Int32 Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
2013-11-05added French (Burkina Faso) [fr-BF] locale data, fdo#71243Eike Rathke1-0/+1
Change-Id: I788d1d1c54cc0a30cbbdc07066bf133c2814304a
2013-11-05update pchThomas Arnhold1-0/+3
Change-Id: I10f3dbd9513052b3bbe30ddc6523cd231f26ded3
2013-11-05fixincludeguards.sh: svtoolsThomas Arnhold42-116/+116
Change-Id: I7db0d4a7bd948204ff6efd7e61c80efd413967cd
2013-11-04Remove unnecessary includeStephan Bergmann1-4/+0
Change-Id: I65b0caa36da08c5df552d8f1644ec74bfe135bfe
2013-11-04Some clean-upStephan Bergmann1-2/+9
Change-Id: Ic65d1d5dcf2a0a7dbc0b382002b15e47f7998344
2013-11-04fdo#60698: Move generic fpicker to svtoolsMarcos Paulo de Souza5-9/+262
Signed-off-by: Stephan Bergmann <sbergman@redhat.com> Conflicts: dictionaries Change-Id: I6af478d7d6952e0e8f6c8f1b0575fcd50f2ba0e4
2013-11-04remove redundant calls to OUString constructorNoel Grandin3-16/+9
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin1-1/+1
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin4-10/+10
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-28Remove unnecessary SyntaxHighlighter::Tokenizer statefulnessStephan Bergmann1-2/+0
...which reveals that SyntaxHighlighter::notifyChange does nothing, so remove it. Change-Id: I49834af29081ee703d9e62e182e3c1f8ce7e212e
2013-10-28Fold SyntaxHighlighter::initialize into ctorStephan Bergmann1-2/+1
...which reveals that m_pKeyWords, m_nKeyWordCount members are unused. Change-Id: I55020e892d463f2e40d5bcf71efba92778b317c1
2013-10-28Remove unused SimpleTokenizer_Impl::nLine/nColStephan Bergmann1-2/+2
...which are never read; remove thereby unused parameters from functions. Change-Id: I644d2dc1b2d13ae2f932d04243521eef97e67e3e