summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2013-04-05new module i18nlangtagEike Rathke
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05No need to setenv SAL_LOG in the code for iOSTor Lillqvist
One can set environment variables to be used when debugging an app in Xcode, which is when it is interesting to see SAL_INFO output anyway. (This is very different from Android, where one can't set environment variables "before" an app starts, as apps there aren't separate programs that would be exec'ed.) Change-Id: I3971d1b2d1a849deac2722a90271ef2458db1643
2013-04-04remove HAVE_SFINAE_ANONYMOUS_BROKENLuboš Luňák
Since we no longer support the old Apple SDK using gcc-4.0.1, we can remove the cruft to work around its problems. Woohoo. Change-Id: Idf275e76449443f1f0314e75dab993f213a77eb7
2013-04-03fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: I20f539bd9fa62bef2e9a2a82b59e0b15f4efdd48 Reviewed-on: https://gerrit.libreoffice.org/3179 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-03Asserting rtl::O[U]StringBuffer::operator [] preconditionsStephan Bergmann
...and fixing two call-sites. Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
2013-04-02vcl: convert some fprintf to SAL_INFOThomas Arnhold
Change-Id: I4b9a20e62e8e137a1bfaa1c654307f15c33e3d3c Reviewed-on: https://gerrit.libreoffice.org/3143 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-31If you can't load a shared library it should be a warningPeter Foley
This has bitten me more than once when working on Library_merged. Change-Id: I829f5d010b6df2935fd191bdec9bac04bb003f16
2013-03-31Must percent-escape the APP_DATA_DIRTor Lillqvist
On the iOS Simulator it contains spaces, as in /Users/tml/Library/Application Support/iPhone Simulator/6.1/Applications/9A6DFE86-77AF-4B78-8FFB-93FCA6C38EE1/LibreOffice.app Change-Id: I90c76b909901c881aa51482880b1120fea19b99b
2013-03-30fix loplugin unused warningsPeter Foley
Change-Id: I23fc6bf62e74f192f77c74ed48d5276737375f3c
2013-03-30OSL_FAIL -> SAL_WARNThomas Arnhold
Change-Id: I1871e5e3a319b2d5177ae4bd470046c022c14eb7 Reviewed-on: https://gerrit.libreoffice.org/3121 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-03-30fix loplugin warningsPeter Foley
Change-Id: I17593ac6e495213a1ef99d4d5525a6e38aee0bc7
2013-03-30Protect CoreGraphics.h inclusion with <premac.h>, sighTor Lillqvist
Change-Id: I9d16929d3b8fb5114e72eee850da64433394df9c
2013-03-30Draw the frame virtual device bitmaps directly to the destination CGContextTor Lillqvist
Much faster. No need for the pixelBuffer inbetween. Change-Id: I6493faca6da3a3e9a1285e00c887928b85dca56e
2013-03-30Refactor the iOS Viewer app and rename it to "LibreOffice"Tor Lillqvist
No, it isn't any closer to being "ready" despite the name, but still, using the current approach, it clearly isn't restricted to be just a viewer. Also drop the verbose LOViewer prefix from class and file names in it. Change-Id: Ib4e8a31d6fa1b35169ee98cf2aa8f0f22957164c
2013-03-30Add lo_tap()Tor Lillqvist
Change-Id: I635be54c27c93de0a11be7bdd01979b99dadda28
2013-03-28Half-assed attempt at enforcing operator [] preconditionsStephan Bergmann
...inspired by comments to <https://gerrit.libreoffice.org/#/c/3068/> "String::AppendAscii cleanup in dbaccess," but it quickly becomes apparent that lots of code rely on s[s.getLength()] == 0, so live with a weakened precondition check for now. Change-Id: Ifad96c706b14433df4a084ab8054b32433b8b5b6
2013-03-28add missing dep on sal/typesizes.hDavid Tardon
Change-Id: I45e2949bd50ef1b72e40f6dbc67a05bbbbeeeb5b
2013-03-28add missing deps on uwinapi headersDavid Tardon
Change-Id: I8a6d62a611879aaa6f6b823ecb11618c26e4123c
2013-03-27svx/source/inc/trace.hxx -> SAL_INFOStephan Bergmann
Change-Id: I019f41aeb41ec150087e6f544cff3b36719d1845
2013-03-27-Werror=unused-macrosStephan Bergmann
Change-Id: Ia02ff34be9eff80fd8f9d76f034d76c3791342f2
2013-03-27WaE: macro is not used: STACKTYPETor Lillqvist
Change-Id: If20c7637d13f37029e447e779586fcfad21c3305
2013-03-27At least Mac OS X SDK 10.7 doesn't experience TimeValue clash hereStephan Bergmann
(causes -Werror,-Wunused-macros, rather) Change-Id: I1dc05a5cf73aec7827df662342f5d9189215e64e
2013-03-27-Werror=unused-macros (Android)Stephan Bergmann
Change-Id: Ibd06e49e78a6d6a69521a65b53b056e85b64765b
2013-03-27-Werror=unused-macros (Android)Stephan Bergmann
Change-Id: I7b88ff1a8c53fbb875d5cb84060c726fd7d06c9c
2013-03-27Hopefully _BSD_SOURCE not needed anywhere for MAP_ANONStephan Bergmann
(-Werror=unused-macros on Android) Change-Id: I393face32e7d4782b5c8037fa8ebeb21ec3c6e7a
2013-03-27-Werror=unused-macrosStephan Bergmann
Change-Id: I3c64ed78577988767a7da859e68a7f63f890f7dc
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-26No need for a template hereStephan Bergmann
Change-Id: I43262c984c311fcb1e1a9eca9b4dec4092351dea
2013-03-26Could the failing MSVC tinderbox be due to implementation-defined /Stephan Bergmann
...for negative integers in < C++11? Rather unlikely, but lets see... Change-Id: I9abfcbf2c0e409fab4c77b62e5f734d3c2cc2719
2013-03-27Add log area 'vcl.headless'Tor Lillqvist
Change-Id: I40053b9a51c5a640b46c6d615a5d7e067a5e138a
2013-03-25remove external include guardsThomas Arnhold
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-26Fix bogus SAL_WARN useTor Lillqvist
unknown log area 'IMPL_LINK_NOARG(SwSaveLabelDlg, OkHdl) [loplugin], huh? Change-Id: I265102a552615208db43fc7b6617189ad99b6aad
2013-03-26Introduce temporary lo_set_view_size() hack like on Android and call itTor Lillqvist
Change-Id: I44df0946f59d1b9a2a6ea935b3c2ea3c96c1260d
2013-03-26Temporary hack for iOS: open files read-only if read-write open failsTor Lillqvist
Change-Id: Ifc400d9843b23ef942c43af3a2b8830ccff71a7e
2013-03-26Fix warning: unknown log area 'sw.docx' [loplugin]Tor Lillqvist
Change-Id: I0e97399220b2eb2da54072241ddee43a683d17ef
2013-03-25Add test case for toInt overflow detectionStephan Bergmann
Change-Id: I1c5b66888baac8aa1bc99c06579e0ef3638a4877
2013-03-25Handle oveflow in O(U)String::toInt() functionsZolnai Tamás
Return 0 when overflow. The base idea in unsigned case is checking wheather (Max-nDigit)/nRadix < n But for efficency, take out nDiv = Max/nRadix from loop and corrigate it with -1 if needed. In signed case use minimum value if the number is negativ. Change-Id: I5b77580adbf12421b6c4b785ba9bc2a080accba2 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-25Clean up new toUInt64Stephan Bergmann
Change-Id: Ic908cb5cc9169ab1baae2c1c52070adfb9afba39
2013-03-25Fix warning: unknown log area 'chart2' [loplugin]Tor Lillqvist
Change-Id: Ifdfdc1869dbee46d507b552ed62364f6058888e2
2013-03-25Add some debugging printoutTor Lillqvist
Change-Id: Iea0decde41be8b9325b19651433f1b3b79f851a9
2013-03-23coverity#704247 Logically dead codeJulien Nabet
Change-Id: Iaefddeb816d36d4a07234d903fafab3d6b83e1d2 Reviewed-on: https://gerrit.libreoffice.org/2952 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-22WaE: unused functionsTor Lillqvist
Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6
2013-03-22clean up DBG_ERRORnThomas Arnhold
Those were DBG_ERRORn before and were falsely changed to OSL_TRACE by me. See: 1707a350af8a0909ae88c2b11deb714f8b2a93ff 533f89e49395bbc31baaab9ade46db934b383e14 Change-Id: I4f4188ba25b988128a539542f49797ea6985702e Reviewed-on: https://gerrit.libreoffice.org/2900 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-22For convenience, include config_global.h in sal/config.hStephan Bergmann
...which must be included first thing everywhere anyway. Change-Id: Idbbf941b526f48a89d6398e19404b1ff0e23a6b4
2013-03-21Re-work the vcl aspects of the iOS portTor Lillqvist
Don't try to use similar code as for OS X to manage windows, events etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in the Android port, use the "headless" vcl backend. Do keep using CoreText, though, not FreeType & fontconfig. Start changing the iOS "Viewer" app to correspond to the Android "desktop" app (so it should be renamed). Work in progress since a long time, several crucial details still missing, but committing for now. Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee
2013-03-21std::min() parameters must be of same typeTor Lillqvist
Change-Id: If8ac23dcf2a9e5811c1b2fe84c92d78cdfbc825b
2013-03-21Kill fprintf in sdext in favour of SAL_LOGThorsten Behrens
Change-Id: I2253c1a4d90ab348764cd8863b8aaf2036a254de
2013-03-20Deprecate confusing rtl::OUString::compareToAscii(asciiStr, maxLength)Stephan Bergmann
Change-Id: I3a41036ec03cdaefea94b19dbedf59e5a5e37dc8
2013-03-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-19further OUString cleanupThomas Arnhold
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6