272 Commits

Author SHA1 Message Date
Stephan Bergmann
99839ca138 Remove comment that is no longer accurate/relevant
...after e16fa715c43dcdf836ce8c400b6d54eae87b627d "Handle wchar_t as native
C++11 type on windows"

Change-Id: I8005a48a43f1baba3c04c11ff52d26d756f25204
2017-02-11 13:05:54 +01:00
Stephan Bergmann
8646ab97dc Remove MinGW support
In OOo times, there'd originally been efforts to allow building on Windows with
MinGW.  Later, in LO times, this has been shifted to an attempt of cross-
compiling for Windows on Linux.  That attempt can be considered abandoned, and
the relevant code rotting.

Due to this heritage, there are now three kinds of MinGW-specific code in LO:

* Code from the original OOo native Windows effort that is no longer relevant
  for the LO cross-compilation effort, but has never been removed properly.

* Code from the original OOo native Windows effort that is re-purposed for the
  LO cross-compilation effort.

* Code that has been added specifially for the LO cross-compilation effort.

All three kinds of code are removed.

(An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing
--with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.)

Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568
Reviewed-on: https://gerrit.libreoffice.org/34127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-10 18:01:27 +00:00
Stephan Bergmann
c697ae306c Some clean up
No more need to call sal_detail_log_report from sal_detail_log, now that it is
called from SAL_DETAIL_LOG_STREAM since b3a11c8f4f307bbbb597c9c6e7e61ee93e794873
"tdf#91872: Make SAL_INFO and friends more efficient".

Change-Id: Idb6cf7a4814abe29d5ba68591f39b4279267bc9b
2017-02-09 17:05:22 +01:00
Stephan Bergmann
b6a69585b0 Fold sal_detail_log_backtrace into sal_detail_log
...the latter is LO-privately exported from sal, so it should be OK to add one
more parameter to it.

Change-Id: If6bf3458433aac2cc8b4e0cbd1602306051a777b
Reviewed-on: https://gerrit.libreoffice.org/34080
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-09 15:56:50 +00:00
Stephan Bergmann
8458ec8c9c Fix SAL_DEBUG_BACKTRACE
...after 56d071c10ca8016848f1f059aa3eb197fe928844 "rename SAL_DEBUG_TRACE to
SAL_DEBUG_BACKTRACE" (looks like this doesn't get used much...)
2017-02-09 10:35:20 +01:00
Arnold Dumas
b3a11c8f4f tdf#91872: Make SAL_INFO and friends more efficient
Change-Id: I8a5b1665660b0679439f07d3924bb90cb4c4075c
Reviewed-on: https://gerrit.libreoffice.org/33848
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 10:54:53 +00:00
Stephan Bergmann
9ee0f108ca GCC 7 supports [[fallthrough]]
Change-Id: Ic6fb995a76a30b60b597005e714de03d43c36a7c
2017-01-27 18:04:53 +01:00
Caolán McNamara
e17a34e957 ofz: check if the stream is able to meet the eps len claim before reading
Change-Id: I65407bffb67449e203b8ead23554a4e88387d214
2017-01-26 21:04:30 +00:00
Juergen Funk
fe9c6fa5a4 Expand and improve the output log in Session-Management
in dependency of tdf#104101

Change-Id: I799f81adf4e4751fb505c84aa075363acf70f5a7
Reviewed-on: https://gerrit.libreoffice.org/33034
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-01-19 14:20:43 +00:00
Michael Stahl
0cee740c95 replace #ifdef SOLARIS with #ifdef __sun
Check for a macro that is defined by the compiler, we don't really need
one defined by the build system.

Change-Id: Iccb8e3198396881395c97a6b81690ebe64b7e9d2
2017-01-17 16:38:33 +01:00
Noel Grandin
56d071c10c rename SAL_DEBUG_TRACE to SAL_DEBUG_BACKTRACE
since "trace" is such a generic term, this makes it easier to actually find the feature when you need it.

And add feature to limit stack depth of the reported backtrace.

Change-Id: Iab3e4ceb2e8480e7b5e2b920eb6c5d7631e21c43
Reviewed-on: https://gerrit.libreoffice.org/31752
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-10 06:31:33 +00:00
Takeshi Abe
b55c205460 [API CHANGE] Retire SAL_ABS
which had served since d441fa1f8cc0a17a2bc166bf2f2a44f76b83a773;
we now have polymorhpic std::abs.

Change-Id: Ibe48ac51508f7d9f5a44d712550237db7f553df3
Reviewed-on: https://gerrit.libreoffice.org/32225
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-21 07:54:51 +00:00
Stephan Bergmann
afa4a05459 Remove the sal.rtl.xub SAL_INFOs
...that were apparently meant to flag cases where conversion from old tools
strings to rtl strings was done wrongly.  But that flagging is probably of no
use: SAL_INFOs are usually disabled, so won't be noticed; and SAL_WARN or assert
would not be acceptable, as cases like 'nLen == 0x0FFFF' can legitimately
happen with long strings.  I did a successful 'make check' with these SAL_INFOs
temporarily turned into assert, so there seems to be at least no gross
conversion error remaining.

Change-Id: I57f11db9119fb12555e3bfef17c077ee5eef3844
2016-12-14 11:33:28 +01:00
Stephan Bergmann
58fc735175 Reuse existing sal.osl log area
Change-Id: Ib1fc80c79355322489b7ebd37cbbbbb6614ec67a
2016-12-13 11:03:55 +01:00
Noel Grandin
c3586b684c OSL_TRACE->SAL in chart2..oox
Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2
Reviewed-on: https://gerrit.libreoffice.org/31907
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-13 06:12:00 +00:00
Noel Grandin
a005fbeddc OSL_TRACE->SAL in framework..sal
Change-Id: I9a897af88aa9f6f7ca98ce521c69b5a4ee8462e9
Reviewed-on: https://gerrit.libreoffice.org/31903
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-13 06:10:04 +00:00
Noel Grandin
02ed1924eb OSL_TRACE->SAL in sd..sdext
Change-Id: I6b224fa890dc96aada7140af27078da5e25c3ff8
Reviewed-on: https://gerrit.libreoffice.org/31898
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 12:17:26 +00:00
Stephan Bergmann
a1959d05b8 Remove irrelevant SAL_INFOs
Change-Id: Ieb58ed113c6a3e85a806ec57a6557e2d37bf9b06
2016-12-09 21:37:22 +01:00
Noel Grandin
e61521f6cf OSL_TRACE -> SAL in sw..ucb
Change-Id: I18f5511f70232d91095ac8527a6c5883c36294f5
Reviewed-on: https://gerrit.libreoffice.org/31762
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-08 17:27:26 +00:00
Noel Grandin
3224f26cfe OSL_TRACE->SAL in unotools..uui
Change-Id: I7f391604401b8a10f5d451673ed6223c031c56ab
2016-12-06 12:31:23 +02:00
Samuel Mehrbrodt
1161de521e safemode: Add option to disable H/W acceleration
Change-Id: Ic6751717c14d317b5a4bc64c4fd1cf2b2f5efabf
Reviewed-on: https://gerrit.libreoffice.org/30112
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-11-01 14:54:04 +00:00
Stephan Bergmann
97c28ad74f Various loplugin warnings in --enable-telepathy
Change-Id: I4c437491466c3029f2a9c93fb630c7b5a8d2ff21
2016-10-28 08:52:46 +02:00
Stephan Bergmann
1f9b6013e5 clang-cl loplugin: dtrans
Change-Id: I1d55f3e7ecbde486f318d5175b1570f0caa33255
Reviewed-on: https://gerrit.libreoffice.org/29870
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-16 14:19:20 +00:00
Miklos Vajna
53bba96ac0 xmlsecurity: add initial Executable_pdfverify
We have code to verify ODF and OOXML signatures, this adds initial
support for verifying a PDF signature.

Initially this is a standalone executable, need to turn this into a unit
test + hook it into sfx2 in follow-up commits.

Change-Id: Ideb5ec63f761c74fd4527cf1766b0aa739e275ee
2016-10-12 16:50:31 +02:00
Stephan Bergmann
974b7fe6df clang-cl loplugin: sal
Change-Id: If04d3f07dc8bffac8887773b5424c09848cd8f1a
Reviewed-on: https://gerrit.libreoffice.org/29404
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-04 06:51:29 +00:00
Stephan Bergmann
f255c3e96e [API CHANGE] Remove HAVE_GCC_VISIBILITY_FEATURE, always true
* GCC documents -fvisibility at least as far back as the GCC 4.0 online
  documentation at
  <https://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/Code-Gen-Options.html>.

* For external code, odk/settings/settings.mk unconditionally set
  HAVE_GCC_VISIBILITY_FEATURE for all platforms other than Windows.

Make this a fatal configure error for now.  The check should be removed
completely after LO 5.3 branch-off.

Change-Id: I1de415b6ed1591e0a7b6640ece861b6f0ef74112
Reviewed-on: https://gerrit.libreoffice.org/29073
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-20 07:34:27 +00:00
Gökhan Gurbetoğlu
f62d222869 tdf#43157 - Clean up OSL_ASSERT, DBG_ASSERT, etc.
Change-Id: I8114e338451b5b2e79b2318f558cbd075f024f08
Reviewed-on: https://gerrit.libreoffice.org/28584
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-09-05 12:53:19 +00:00
Jan-Marek Glogowski
9031b1aeac Add SAL_INFOs to dump the SwPageFrame lifecycle
Debug area name is "sw.pageframe".

Change-Id: I136cc8192137a8c682900a6ce2c557f6b6b3a6cd
2016-08-29 13:13:17 +02:00
Tor Lillqvist
99ee4ebb0e If no WARN in SAL_LOG, use the INFO selection for WARNs, too
Often the choice whether some particular message is displayed with
SAL_INFO or SAL_WARN has not necessarily been that well thought
through. Many SAL_WARNs are not actually warnings but purely
informative. If you want to see the INFOs for an area it makes sense
to want to see also the WARNs for it. So make it so, unless a specific
WARN selection is specified.

Change-Id: I6286c5f856b29e68bedb7f20efadf56953f94b72
2016-08-18 17:02:03 +03:00
Tor Lillqvist
ed815a242e Add handling of a +RELATIVETIMER flag in the SAL_LOG environment variable
Outputs a timestamp in decimal seconds (with millisecond accuracy).

Simplified the handling of SAL_LOG if no "level" is specified. Now
just a totally unset (or empty) SAL_LOG causes the default of "+WARN"
to be used. Given how the code works, it would have become too
unwieldy to check for all combinations of TIMESTAMP and RELATIVETIMER
but no WARN or INFO.

Change-Id: I7bb5bb665d4e764e7eee447e93486f6467042e97
2016-08-18 15:37:03 +03:00
Tor Lillqvist
e4626191f7 Mention what negative or multiply specified flags mean (nothing special)
Change-Id: I8ac1839aab3438aa685aa8cdab2e972447352599
2016-08-18 14:43:31 +03:00
Tor Lillqvist
fb00c725bb Add handling of a +TIMESTAMP flag in the SAL_LOG environment variable
Change-Id: I9bdcd8b2d7b46a087d7f5461b6f7c3d9f02ec084
2016-08-18 14:20:17 +03:00
Stephan Bergmann
fb7793ea70 Remove unused log-area
Change-Id: I4a11f040bb56de0bc761b185395dc87533c3bf01
2016-07-13 14:20:58 +02:00
Stephan Bergmann
e764999b71 Sort lists
Change-Id: I5bfbc8dbba63531ddb05e40e94f626aa5c86071d
2016-07-13 14:20:22 +02:00
Jakub Trzebiatowski
40fba0f441 GSoC Writer Table Styles Import
This patch is implementing import of table styles (table-template).

Modified shared code: Added "background" to the cell styles export.

To make cell export properties map accessible by both export and import code,
moved from xmloff/source/table/XMLTableExport.cxx to xmloff/txtprmap.hxx.

To avoid export of default valued properties implemented XPropertyState for
SwXTextCellStyle

Change-Id: I8b4f12e4b51f478f8ce8fde1203cd4611d7ae852
Reviewed-on: https://gerrit.libreoffice.org/26721
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-07 09:02:15 +00:00
Tor Lillqvist
5e9b46f66f Bin unused log area
Change-Id: I40f2364bd4941941a8766bc492e303e56c9e4256
2016-06-27 18:45:14 +03:00
Miklos Vajna
ed2d342e97 Remove unused SfxObjectShell::libreOfficeKitCallback()
All clients have been converted to use
SfxViewShell::libreOfficeKitViewCallback() instead.

Change-Id: I793dad5194769f331037b12a1b1afba96ddea4ba
Reviewed-on: https://gerrit.libreoffice.org/26584
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-06-23 09:10:22 +00:00
Markus Mohrhard
89f3205a4a uitest: loplugin:sallogareas
Change-Id: Ieb01166fbb0b07d1218072ae8bb953a36582361c
2016-06-18 17:02:43 +02:00
Markus Mohrhard
5abf40cb3c uitest: plugin:sallogareas
Change-Id: Ib0ebd774542129f8a7c68e276f1f03cc46f32fb8
2016-06-18 17:02:41 +02:00
Noel Grandin
9f4e283fc8 loplugin:sallogareas
Change-Id: I6ce045db236b81aa8bc7bce2a0e20c4132c5931f
2016-06-13 10:25:40 +02:00
Stephan Bergmann
e2574399f7 loplugin:sallogareas
Change-Id: Ib28e76ed6947431c6466d11aaadca8d95abfc275
2016-06-13 08:51:57 +02:00
Michael Stahl
106bcf1368 loplugin:sallogareas
Change-Id: Id9204f2499bd995f36c5962da56a6d486fe4ca59
2016-06-06 15:31:53 +02:00
Stephan Bergmann
2562d39d56 Revert "loplugin:sallogareas"
This reverts commit 94e6d9d0667781fc733bd18d7cf2b81d4a5366cb, which wasn't
necessary after 69c997428b748357918994ae1b0e2dbd052687d0 "loplugin:sallogareas".
2016-06-06 14:47:32 +02:00
Noel Grandin
94e6d9d066 loplugin:sallogareas
Change-Id: Id285f7b7f100f7bfd21ca786ef260243aad35825
2016-06-06 14:20:03 +02:00
Markus Mohrhard
7259f07dea use the existing URL to path tools
Change-Id: I20aa47556205f5efc70f8f5ea39c63009110f986
Reviewed-on: https://gerrit.libreoffice.org/25646
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-05-30 08:16:38 +00:00
Stephan Bergmann
14cd5182c5 Replace fallthrough comments with new SAL_FALLTHROUGH macro
...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in
preparation of enabling -Wimplicit-fallthrough.  (This is only relevant for
C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.)

Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but
that would require adding back in dependencies on boost_headers to many
libraries where we carefully removed any remaining Boost dependencies only
recently.  (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its
future evolution will not have any impact on the stable URE interface.)  C++17
will have a proper [[fallthroug]], eventually removing the need for a macro
altogether.

Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-05-10 16:42:16 +02:00
Andrea Gelmini
a5fee58c72 Updated file path.
Since commit 6c7659b584ea7ed3652ca4eb9a2297f36310c365
the new path is include/sal/types.h

Change-Id: I742ea2f6df06ff7345f3bbed0c90af13acafdbd7
Reviewed-on: https://gerrit.libreoffice.org/24718
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-05-08 07:28:17 +00:00
Tor Lillqvist
edb1c6583c loplugin:sallogareas
Change-Id: I4ca21392f38d1ab567e87d6f231641993c0e862c
2016-05-06 13:41:28 +03:00
Stephan Bergmann
acdc855f0b Trivially improve sal/types.h code indentation
...to trigger rebuilding of PCH on Windows after
e16fa715c43dcdf836ce8c400b6d54eae87b627d "Handle wchar_t as native C++11 type on
windows"

Change-Id: Ia1cafb8a2f207f34b6fb1cb53fbaf23d90e6b296
2016-05-03 22:05:42 +02:00
Stephan Bergmann
e02a29c0a7 Improve documentation
Change-Id: I13683f971bf56f6c5e226d749e60ccb25af559a5
2016-04-27 13:48:07 +02:00