Commit Graph

110 Commits

Author SHA1 Message Date
fe7a4bccfd Adapt vcl to various loplugin warnings on Mac OS X
Change-Id: I4553ce218fbcf2ac681b284c71e7d558a451511c
2014-02-21 23:47:23 +01:00
0d8be97d0a writerfilter: convert some fprintf to SAL_INFO
Change-Id: I5fe47cfaee84c17584ba7c3d160e65b55f4e3474
2014-02-18 11:35:50 +01:00
f03e95da68 convert biblio choose data source dialog to .ui
Change-Id: Ia94c417be95f5cd8c1d694a61c5004b0e8486416
2014-02-17 09:51:39 +00:00
d55495daf9 Do not throw if AcceleratorConfigurations are missing.
Which can happen on mobile platforms if we don't want them.

Change-Id: I53639ccc75886708850d2d3a01eec76104b7f2c9
2014-02-10 16:43:54 +01:00
9bbb7ca9f7 Typo: formating -> formatting
Change-Id: If4aba89909a3ef049a756182c37d8a5d6812ae70
2014-02-06 22:41:48 +01:00
995073b08e fdo#43157 - Clean up OSL_ASSERT
Changed OSL_ASSERT to SAL_WARN_IF

Change-Id: I6f81a265aefe769e1449b1f10c796bf3aa1d0f1c
2014-02-05 12:39:03 +00:00
ed69dd79ff convert OOODEBUG to SAL_INFO
Change-Id: I63a990dca554c9defd4f168fa250ebc1685baafd
2014-02-03 10:48:25 +01:00
eed1a2ca87 Missing log are
Change-Id: Ia1ad04c24f0d50cdb5aac3a5f6d5171bd5c23c70
2014-01-29 10:55:20 +01:00
09ce5fe4ac Add cppuhelper.shlib
Change-Id: I61579c7f84bb3df0d9c493cb93b47a00b0d174b4
2014-01-24 17:58:32 +02:00
31f57cb679 Use the "sfx" log area consistently in sfx2
Change-Id: I497d2d93e1a1819ff709c94007ae98f5ef312e77
2014-01-23 08:12:37 +02:00
8293b29304 Use assert() and SAL_WARN() instead of DBG_ASSERT() and OSL_FAIL()
Change-Id: Id3be30bc95325e8f18cf8cb55da2217984a26035
2014-01-23 07:24:23 +02:00
86a372ade0 More informative logging in codeSnippet()
Change-Id: I6909ed60b39a65e6a6464427b2f839aa2bff3863
2013-12-24 02:47:07 +02:00
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
014fbd610e Improve CppunitTest_services
Change-Id: I4b22ce7e5fa91d5008f72e1f351d25063065ba43
2013-12-19 22:46:34 +01:00
4c539fac01 vcl get rid of xub_StrLen and STRING_LEN in outdev3
a new log section (sal.rtl.xub) is used to display alert in case of
suspicious len == 0xFFFF (aka STRING_LEN)

Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e
Reviewed-on: https://gerrit.libreoffice.org/7117
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-18 01:54:16 +00:00
f2111a7ed1 remove SGI compiler checks
Change-Id: I8b4bce4b9c0cc457732b2de4af93049010de1097
2013-12-16 22:01:18 +01:00
66397a4fd2 fdo#72598 Remove SunStudio cruft from code base
Change-Id: I5150eec33228e18e274a8ae4effd3f185851b7f4
Reviewed-on: https://gerrit.libreoffice.org/7103
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-12-16 20:52:39 +00:00
1327020b67 Re-enable building test-active.oxt
Change-Id: I56bd0630f8d238488d9d6598d87acefe1a08fdf0
2013-12-16 11:24:12 +01:00
c49721950c Re-organize OS X and iOS code in vcl a bit
Now with the ATSUI code gone is a good time for some
re-organisation. Get rid of "aqua" in file names and the separate
"coretext" folders. CoreText is all we use now for OS X (and has
always been so for iOS), so no need for a "coretext" folder, we can
keep the CoreText-using code under "quartz". Keep OS X -specific code
in "osx". Ditto for headers.

Keep "Aqua" as part of class names for now, though.

This is also preparation for planned further unification between OS X
and iOS code.

Change-Id: Ic60bd73fea4ab98183e7c8a09c7d3f66b9a34223
2013-12-06 15:05:00 +02:00
83e835156b Bin ATSUI code
TDF has been shipping a CoreText-using LO since 4.1 and the sky hasn't
fallen. Getting rid of the ATSUI code will make other needed
refactoring easier.

Change-Id: I494096c3988ea26fa2b336621857d32b64b040f0
2013-12-04 14:34:06 +02:00
40ad0e8f6c Declare SAL_THROW as documentation-only and deprecated
...which it effectively had been already anyway.

Change-Id: I6c9ae34f59e8bd44a6be38e6e719ad0a96773c1c
2013-11-28 13:15:39 +01:00
b24957e812 clean up some COM initialization
CoInitialize{Ex] always exist in all supported Win32 versions, so just
call them.

Change-Id: I45f227319aae811b6c94a3ac475467a06146b8e9
2013-11-28 00:59:48 +01:00
d8565bd266 Mark sal_Char, sal_sChar, sal_uChar as deprecated
...there never was a good reason to have SAL abstractions for the C/C++ char types anyway.

Change-Id: Id5da718cf26f12ebe57bc71e076c32d763c0982e
2013-11-27 12:52:32 +01:00
9219b5d004 Add descriptions for the sc.opencl log areas
Change-Id: I9b6157dd9836f889d54b3dbabc0e0aaada63bd1b
2013-11-26 11:36:32 +02:00
90c03dd628 Reduce verbosity a bit
Still lots of gratuitous unconditional writing to std:cerr in there. But
maybe that's what we want.

Change-Id: I28a65d6535c814bf5c047a7255dd3970fffda5dc
2013-11-26 11:10:09 +02:00
3b176d77e7 Use SAL_INFO() instead of printf()
printf() and SAL_INFO() / SAL_DEBUG() output apparently don't end up in
correct order in a cppunit log file which can be extremely confusing. So let's
use SAL_INFO() (with the tag sc.qa) for the qahelper debug output.

Change-Id: I529482c07651f84688ec5751d2b3dfc7d89cb4ca
2013-11-21 00:05:33 +02:00
c0307ec2ba WIP commit of threaded OpenCL compilation work
Change-Id: I210d0ded9cb38569b0831355522d8309cee05f56
2013-11-20 18:23:04 +00:00
448727e598 uia: merge VCL pieces of IAccessible2 work.
Original code from:
    Author: Steve Yin <steve_y@apache.org>
    Date:   Sat Nov 16 23:58:19 2013 +0100

        Integrate branch of IAccessible2

With these improvements:

Make IAccessible2 an experimental feature, with fallback to Java a11y.
Move initial setup of windows into the bridge and clean, remove conditionals
Check for presence of AT in the bridge as well to clean. Merge VCL events
extensions and their handling. Clean and split WB_GETOBJECT handling out to
it's own method. Add component prefix namespacing.
Cleanup msaa service info, and implement XComponent to share mxAccessBridge.
Add suitable debugging output, remove VCL dependency from UAccCOM causing
registration issues.

Change-Id: Ib19e38ddca71182018df438df27dcdb555d91402
2013-11-19 10:02:27 +00:00
f15efcb0f5 Add sc.opencl
Change-Id: I1a6544701afa7658464334d454451284a34530cb
2013-11-13 23:13:43 +02:00
2af31d84ad svtools.filter -> vcl.filter
Change-Id: I26bbef9cadd890728f685053230e12408be3557e
2013-11-12 15:30:53 +00:00
bda91b953b fdo#65108 inter-module includes <> include/sal
Change-Id: I4adce49a3f19eb16eb0b0d4a743b150c28a4a453
2013-11-09 18:48:42 -06:00
d837c7b773 Remove legacy EMX check
Last release from 1998 :)

http://en.wikipedia.org/wiki/EMX_(programming_environment)

Change-Id: I01b1dbf0d91c44d8e1da447aa24efc8878b41e1f
2013-10-30 22:44:42 +01:00
dbddac3261 fixincludeguards.sh: include/s*
Change-Id: I57fcfd442d2b5815e7c07a9cbd660f3698168dee
2013-10-23 23:22:29 +02:00
e165bf2af0 Define SAL_MATH_FINITE for Android, too
Using the same "finite()" as on (GNU/)Linux seems to work.

Change-Id: Iad3baa967194f09d7ca25fb9b316b780de5bb90f
2013-10-23 10:49:21 +03:00
6954aad4e5 Reduce copypasta: Introduce SAL_NEWLINE_STRING and use it
Contains the platform-dependent on-disk line separator ("\r\n" for Windows,
"\n" otherwise, and yes, I assume an ASCII-based world).

Use it instead of static constant char array fields, with ifdeffed
initialisations, in various classes here and there.

Change-Id: Ibea1f2cc1acfb8cc067c3892a41f73bf44f2c78a
2013-10-13 13:49:24 +03:00
c61891c096 [API CHANGE]: Drop SAL_PRGEXTENSION from <sal/config.h>
It is unused in LO source code.

It was not really clearly defined what it meant and what it could be used
for. Its value was ".exe" for Windows and ".bin" for other platforms. But we
do have a "soffice.bin" on Windows, too, corresponding exactly to the
"soffice.bin" on Linux. On the other hand, on OS X we don't have any
"soffice.bin", just a "soffice".

Change-Id: Iceee19cc8768c5aaaeeb9bba34b9cde50073498b
2013-10-11 13:22:37 +03:00
21055f014c -Werror,-Wunused-variable
Change-Id: Ia3e6da86b47099106c4be793a1477979d327a2b9
2013-10-11 10:48:41 +02:00
54ec8a9a71 -Werror,-Wunused-variable
Change-Id: I7777008aac6331d7598f496c4808ab34c73f814e
2013-10-11 10:25:32 +02:00
ac8c5ea6c4 Sort lists lexicographically
Change-Id: I6e44e37d70be90e6cebaaa17e1ee5851b80c7722
2013-10-11 10:25:32 +02:00
e52f1bd7b3 Add opengl canvas implementation.
Adds opengl canvas implementation - display-list-based, all
rendering done as textured geometry. Needs shader support.

Currently compiles and works on Linux, Mac should be ~easy to
add, win32 eventually.

Change-Id: Ibf3eb88d6a36a91b2960a3a6320d708160e4fc14
2013-10-07 17:33:45 +02:00
4290420215 Make Java-based connectivity drivers work with jvmfwk "direct mode"
...so they work from CppunitTests (which make use of that "direct mode").

Change-Id: I92b72fb708ac1868644111b208f92ac58610ed11
2013-09-16 11:39:24 +02:00
5bb0c9d790 Use SAL_INFO instead of framework's own "event logging"
That "event logging" consisted of two macros, both used in a single place.

Change-Id: I8faffd9756399f1902e52aa41968b71a964a4324
2013-09-08 23:51:41 +03:00
04c3f9d185 Use SAL_INFO instead of framework's own WRITE_LOGFILE
Change-Id: Ieb1a45ca75c7a475d02535cd176396a0aeb68510
2013-09-08 23:51:41 +03:00
d52e46c418 oox: Enhancing the debugging output
Change-Id: Ifc055befd5d7436d44e95ce105c52f3c4f061796
Reviewed-on: https://gerrit.libreoffice.org/5768
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-09-04 13:36:01 +00:00
78d09575da Add SAL_WNOUNREACHABLE_CODE_PUSH and _POP macros
To be used around code where some compiler, in some circumstances,
generates bogus warnings about unreachable code, that it would be much
uglier to work around otherwise.

Specifically, I will at first now use this to get rid of MSVC warnings
about unreachable code when calling a function defined in another
source file (but going into the same library) that always throws. The
compiler notices this when one uses link-time code generation and it
thus can do global inlining of code from all compilation units that go
into a library (or executable).

For MSVC, the __pragma that the SAL_WNOUNREACHABLE_CODE_PUSH macro
expands to needs to be in force at the start curly brace of a
function, so place the PUSH macro before the function definition. For
clarity, I guess it is best that the corresponding POP macro comes
after the end of the function.

Change-Id: Icef5259c5360b9facdc136fec1f207665ce79d90
2013-09-04 15:00:03 +03:00
24a076337a ucb: rename "cmisucp" log area for consistency
Change-Id: Ie9ef3324bb7a9e954db57548d7862a90b070ebd3
2013-09-02 16:59:29 +02:00
b9ac217b4a ucb: add missing ucb.core log area, and ftp/ext too
Change-Id: Ifa2df0e2dcc193ae02202687c0d6b7ab930db58f
2013-09-02 16:59:29 +02:00
11d743af10 Some OSL_WARN -> SAL_WARN_IF
Change-Id: I076adcd2f94c38a74f2dce618bc16efec577ed91
2013-08-31 00:09:48 +02:00
fc1f68d5b9 Clean up logging and string handling
Change-Id: I39823e303097ef32f3cc394b0d9215ae351a88f3
2013-08-28 13:26:39 +02:00
2599bc9d67 Switch from OSL_TRACE to SAL_INFO()
Change-Id: I2222a8db929e2f17aff9f72ff2ae1ca6e081e576
2013-08-25 00:29:18 +03:00