Commit Graph

339997 Commits

Author SHA1 Message Date
Jan-Marek Glogowski
95f60222e7 fdo#67011: Run Display::Yield through KDEXLib::Yield.
Drag'n'Drop is handled in a second thread, which tries to "yield
the display" while the main Qt thread probably is already
yielding. Both need the YieldMutex, which freezes the application
until the D'n'D thread times out.

Trying to yield the display throught the application yield
results in a recursive loop.

So this catches and breaks the recursion, but just inside the Qt
thread, so other processes can "yield on the display", instead
of simply disabling the Display::Yield.

Change-Id: Ifba91aa89fe5b0a89cc94820935dc996a065112f
Reviewed-on: https://gerrit.libreoffice.org/6750
Tested-by: Jan-Marek Glogowski <glogow@fbihome.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2013-12-04 08:17:04 -06:00
Stephan Bergmann
8d74243a65 Improve test code
Change-Id: I196a7f654bf8f061a4b050ea1fbe01fae9f450c2
2013-12-04 15:07:11 +01:00
Khaled Hosny
13086125ab Rename coretext/salgdi2.* to coretext/salgdi.*
The "2" part was a temporary measure so an older version of the file,
that is long gone, can coexist.

Change-Id: I3a22b287bfb1351bb73e9dabbfa67100fe17bb97
2013-12-04 16:04:24 +02:00
Andrzej J.R. Hunt
56d4f4b7b9 fdo#70144 Don't reset Document's modified flag when inserting new table.
It is unclear why the modified flag should ever be blindly overwritten hence
we no longer touch the modified flag here. (This change appears to have no
undesired side-effects.)

Change-Id: I246eb7d84249794fa4d52fcd9b008d8340bbc82d
Reviewed-on: https://gerrit.libreoffice.org/6632
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-12-04 07:53:35 -06:00
Miklos Vajna
798a563db1 drawingml import: don't set CharEscapementHeight unconditionally
Commit 840a8573c8 (Fix fdo#70220
Superscript not imported from pptx., 2013-10-07) made it possible to set
CharEscapementHeight even if moBaseline is not set, but this causes
problems in the docx importer + not necessary, according to the bugdoc;
so just don't do that.

Change-Id: Ib95ac449bd8fdf6376261ddc86108f0d23f2200e
2013-12-04 14:52:26 +01:00
Cédric Bosdonnat
e8df1838ec fdo#62531: checkout failed due to bad import of properties in libcmis
Change-Id: Ic9477039d7a1d9649487be634052608efe0d07b7
2013-12-04 14:14:16 +01:00
Caolán McNamara
f141505929 Relater: rhbz#903281 NULL follow frames on drag/drop
Change-Id: I50319fb218518edd23ff8c859c355265595050d6
2013-12-04 13:12:49 +00:00
Tor Lillqvist
0d9bd19c5b Add a comment
Change-Id: Icd7ecafa46392133b8f6b82574a699e843ce588f
2013-12-04 15:09:57 +02:00
Tor Lillqvist
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
Caolán McNamara
cce14c9717 Related: fdo#72258 re-orient dialog vertically
Change-Id: I9f703e2ab5c787641e9cc62f223f39dbd5d02529
2013-12-04 12:17:21 +00:00
Caolán McNamara
f8d96ebdf7 Resolves: fdo#72258 options is .ui now, so drop SfxNoLayoutSingleTabDialog
Change-Id: Ie1def5b116c4b998e62f840b992633a8c0d4d61a
2013-12-04 11:42:32 +00:00
Manal Alhassoun
6931f43133 convert Contour queryboxes to .ui
Change-Id: Ie6dad2409a7d58a1c01973e8740f436cb597cb99
Reviewed-on: https://gerrit.libreoffice.org/6923
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:25:53 -06:00
Miklos Vajna
cbeb028519 DOCX import: parse drawingML group shapes in oox only
This is similar to commit d5c934d150
(n#792778 DOCX import: parse group shapes in oox only, 2012-12-14),
except that was for the VML importer.

The only difference is that in case of drawingML,
OOXMLFastContextHandlerShape::lcl_createFastChildContext() is only
called for the children of the group shape, not for the element itself,
so compare against the start token, not the current element.

Change-Id: Iddeabb20bbd5f0153e2fc4e6df463830126fdd37
2013-12-04 12:13:33 +01:00
Tor Lillqvist
14d49ded71 WaE: private field 'mbPrinter' is not used
Change-Id: I78b364394b3bedafe66b2b72b3191a8ae778432b
2013-12-04 13:10:19 +02:00
Caolán McNamara
bcd6496d0e add test-case for CVE-2013-3906-1.tiff
Change-Id: I2cac26f3e949cbef16fb0c03e99d6aa9b04a7553
2013-12-04 11:07:04 +00:00
Caolán McNamara
171653e4b7 remove unnecessary inline keyword
Change-Id: I00a0c94dd9131be3969e2cfd1320682774dced3f
2013-12-04 11:07:04 +00:00
Samuel Mehrbrodt
06299d6c16 Prefer the Liberation fonts over Arial/Times
The new Writer template was supposed to use the Liberation fonts: http://nabble.documentfoundation.org/Default-Writer-Template-td4076271.html
So I changed the defaults to prefer them over their MS equivalents. When they are not available, they will be substituted as used.

This should not cause problems since the Liberation Fonts have the same metrics as Times, Arial and Courier New.

Change-Id: I00dc14db2aee3b6f57eec7b6f93b69fcf8e5c2cc
Reviewed-on: https://gerrit.libreoffice.org/6886
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:06:50 -06:00
Khaled Hosny
0b9d8c678c Those AFM files are not used anymore
They were used to build metrics for printer built in fonts, which was
dropped in the previous commit.

Change-Id: Id9fb3108facec61eb6de0a2d16546f1187465e50
Reviewed-on: https://gerrit.libreoffice.org/6861
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:05:06 -06:00
Khaled Hosny
003a3d7a55 No more uses of printer built in fonts
Less parsing of AFM files at startup.

Change-Id: I62d4c81d6e892f2356df22b53bb35c0f9f7bc344
Reviewed-on: https://gerrit.libreoffice.org/6860
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:04:04 -06:00
Khaled Hosny
ef1b4c3a5e Device-specific font substitution is not used
This was only used for printer built in fonts, which was dropped in the
previous commit.

Change-Id: Iff62786284470ff3873c8d4b0aae0614bf69c7f3
Reviewed-on: https://gerrit.libreoffice.org/6859
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:01:50 -06:00
Khaled Hosny
24657548a7 Don't perform printer font substitution
The so called printer resident fonts is a relic of a bygone era, when
life was simple and there was only ASCII and Type1 fonts.

It is just broken by design these days, offers nothing useful and can go
wrong in many ways. Since 1f3a91cf2a this
"feature" is disabled by default anyway, so scrap this code to make room
for some long due cleanup.

Change-Id: Id124b2cad1a484099701a885c4d96e6a12af8d9a
Reviewed-on: https://gerrit.libreoffice.org/6858
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 04:59:47 -06:00
Khaled Hosny
6230cdd2d8 Drop font substitution tab page
The relevant VCL code will be dropped in the next commits.

Change-Id: Ieaa550d671fa43f2e5a96e2df7f256de2faf2fa4
Reviewed-on: https://gerrit.libreoffice.org/6857
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 04:55:11 -06:00
Arnaud Versini
c0125d64cb VCL : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.

Change-Id: I6a785b42be72736560ec69f1a7949f2f0b9414a3
Reviewed-on: https://gerrit.libreoffice.org/6805
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 04:50:21 -06:00
Marcos Paulo de Souza
35c1d6f761 fdo#60698: Merge hatchwindowfactory into svt
They are used at same conditions, and hatchwindowfactory just have
four files, so we don'y have any reason to keep them separated.

Change-Id: Iae3bb26ab1e95a309bf0d83c4ef17a0bf0261179
Reviewed-on: https://gerrit.libreoffice.org/6811
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 04:47:39 -06:00
Stephan Bergmann
42b7335391 Revert "throw new ..." fix in Managed C++ code
...where it is correct and 336353a87e "Related
rhbz#867808: More apparently bogus 'throw new ...' in C++ code" had changed it
by accident.

Change-Id: Id7fc1adf8c0068a3b59794d156b21f68b5ac7e72
2013-12-04 11:38:04 +01:00
Miklos Vajna
1da04bd7a8 SwRTFWriter: fix string conversion
Regression from 02bfed8a53 (convert
sw/source/filter/ww8/*.cxx from String to OUString, 2013-10-14), check
for string length before invoking OUString::operator[].

This can be reproduced if copy&pasting some text inside a Writer doc
from normal text to rectangle shapes inside group shapes.

Change-Id: Ia8f774b27ca63773792e6af913dfe7e493bea4b8
2013-12-04 10:56:33 +01:00
Noel Grandin
564ee696c9 fix SwInterHyphInfo commit again
The original commit was eb56848029
"convert SwInterHyphInfo from xub_StrLen->sal_Int32"

My first attempt at fixing the commit was
a073e81c3a.

This is the second attempt.

Change-Id: I030c0a3107e1321006744473efe3ca3341251ad4
2013-12-04 11:47:58 +02:00
Noel Grandin
a073e81c3a fix SwInterHyphInfo commit
fix for commit eb56848029
"convert SwInterHyphInfo from xub_StrLen->sal_Int32"

Change-Id: I197edf7d5558cd44200f8f04ba29f028fba25639
2013-12-04 11:29:15 +02:00
Noel Grandin
b273106226 convert OutputDevice::HasGlyphs from xub_StrLen->sal_Int32
Change-Id: Ic8f0ae3d263d6cb02e6faa7226db0241681fc45f
2013-12-04 11:29:14 +02:00
David Tardon
79eab004dc upload libodfgen-0.0.4
Change-Id: I1c0527b01a958fca6e0cb3febb1915762f8a0074
2013-12-04 10:04:48 +01:00
David Tardon
5ae5901ccb upload libetonyek-0.0.2
Change-Id: I3eed72cf1aa4ee1dc1f931a3d4245d8cc4d69897
2013-12-04 10:02:45 +01:00
Noel Grandin
d6de313b04 STRING_NOTFOUND is no more
Change-Id: Ia8937e07786c497c5cb8485fa161fd68231c17f8
2013-12-04 08:55:36 +02:00
Noel Grandin
eb56848029 convert SwInterHyphInfo from xub_StrLen->sal_Int32
Change-Id: Ie5a877fb90c360506f05d0417524966e137e5d77
2013-12-04 08:55:35 +02:00
Noel Grandin
e7c10fba90 remove usage of STRING_NOTFOUND in formula.cxx
and tidy up the method a little

Change-Id: I408fd96286749ec9e3743dbdad8cf424a7bb9035
2013-12-04 08:55:35 +02:00
Noel Grandin
a0be5278c2 remove condition that cannot be hit
GetFunctionEnd cannot return STRING_NOTFOUND

Change-Id: Ic9abee0ea77789e01acedf57c6c13edb0a5c08d9
2013-12-04 08:55:35 +02:00
Noel Grandin
8b306ebb2c convert xub_StrLen->sal_Int32 in doctxm.cxx
Change-Id: I0981631d516e18c065c3f5fcc1a049119b47ec76
2013-12-04 08:55:34 +02:00
Noel Grandin
39c8524f7d remove some STRING_NOTFOUND usage
from old, probably dead code. Completely untested. But at
least it's not in my grep results anymore.

Change-Id: I9d917d0558bcab25a48fa36140beaa92150b62c9
2013-12-04 08:55:34 +02:00
Noel Grandin
aa4a39c9d7 remove unused #define SQL_COLUMN_NOTFOUND
Change-Id: Ic8914484c23c586036280bdf12a3fef3128d03ff
2013-12-04 08:55:34 +02:00
Eike Rathke
882665d821 resolved fdo#72288 made case insensitive matrix string query work again
The SharedString stored at ScQueryEntry::Item was constructed from an
OUString passed from ScMatrixValue::GetString() so
rItem.maString.getDataIgnoreCase() in QueryEvaluator::compareByString()
was NULL and never evaluated equal. Made ScMatrixValue::GetString()
return a SharedString instead.

Change-Id: I473d5724dfb97707fea58e6b72b1396c049b79c8
2013-12-04 00:38:12 +01:00
Eike Rathke
bfd1909c87 remove and reinsert formula cell from/to tree during CompileXML
... to keep the count updated, which actually silences the dbgutil
warning of ScDocument::RemoveFromFormulaTree() when loading .ods

Change-Id: I8453d688ca673a47fee15c84478262e1da53e408
2013-12-03 22:11:15 +01:00
Matúš Kukan
7eb3e0b389 Kill --with-check-jobs as it is ignored anyway.
since 4eebd65858

Change-Id: Ia754906e0de06690e43f2b1063f315659e50da3e
2013-12-03 21:42:19 +01:00
Michael Stahl
37d9edc4a7 vcl: d'oh /me still to dumb to type
Change-Id: Ie8a5b7493c08a0a63f2791d3cfb00b490609eb7c
2013-12-03 21:20:33 +01:00
Michael Stahl
c4d79527ce vcl: fix sal_Int32 GetTextBreak harder
Change-Id: I75181d12ca8b883055e5314504633af38b5e49c7
2013-12-03 21:09:43 +01:00
Michael Stahl
af43ae6f85 vcl: try to fix some sal_Int32 GetTextBreak()s
Change-Id: If4aee2b42f0d2e15ca228863754959b7486437ee
2013-12-03 20:30:08 +01:00
Winfried Donkers
c3760e9099 fdo#70797 fix incorrect argument handling of CHISQ.DIST
Change-Id: I6187aa673034e6dc18f48f7b6b7ac88989ab55ec
Reviewed-on: https://gerrit.libreoffice.org/6914
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-12-03 11:50:47 -06:00
Stephan Bergmann
b40dcdf4f5 -Werror=unused-parameter
Change-Id: I4dfa96b8ea2684969d9eeecfd88136742ce2d4a1
2013-12-03 18:04:20 +01:00
Caolán McNamara
d83328b233 longparas: convert GetTextBreak to sal_Int32
Change-Id: I693e4c9916e1968c33ebd922829662f6efc27bfb
2013-12-03 16:09:36 +00:00
Caolán McNamara
f1bd4db855 drop unused argument
Change-Id: Ifc262144b7a4c027529ad2927996a4ebf766a5c2
2013-12-03 16:09:36 +00:00
Caolán McNamara
434bcc93d9 we don't need to copy this string anymore
Change-Id: Ie705cb2c949ef9212a69c9d875e3c3217a3146bb
2013-12-03 16:09:35 +00:00
Stephan Bergmann
86268546a0 Clean up string concatenation
Change-Id: I83515f8907b000eb0506410e9b04f28f4257a3b8
2013-12-03 16:23:14 +01:00