369552 Commits

Author SHA1 Message Date
Chris Sherlock
94fc8ec1b1 sw: convert swd.component to constructor usage
Whilst we are about it, need to expand the macro
SFX_DECL_XSERVICEINFO_NOFACTORY and remove the impl_createInstance
function. Also removed factory parameter from constructor as not
needed.

Change-Id: I400274fa9aaaa95be1c9929bce9dd6f25c780196
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-02-26 14:22:00 +01:00
Stephan Bergmann
50a0cca89b Unused #include
Change-Id: Ic42209c7a53c23d7b003778c2d2c88a8682569e4
2015-02-26 14:20:01 +01:00
Chris Sherlock
80bcdb1e4f sw: convert SwWebDocument & SwGlobalDocument components to use constructor
Change-Id: Ib59fa91eb9d32ea437c182d3c0f3b9348816bf7b
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-02-26 14:20:01 +01:00
Richard PALO
f3cffeb3ae Reintegrate portion of a patch originally submitted by
Michael Stahl <mst@openoffice.org> Mar 30 2011

    solaris11: #i117606#: solaris.mk: add -Bdirect -z defs to LDFLAGS

Change-Id: Iab16960010810185a3b1f7c617c44db3d9822fb5
Reviewed-on: https://gerrit.libreoffice.org/14579
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-02-26 13:18:19 +00:00
Bjoern Michaelsen
530d3c92bd make arbitrary number a constant and add comment on fishiness
Change-Id: I65baf9e4583c78ca3128352112fdeeffce3b3225
2015-02-26 14:06:25 +01:00
Bjoern Michaelsen
6ee7900b58 more constness
Change-Id: I5bbddaebb6cf820afced89e634814f485ec38859
2015-02-26 14:06:24 +01:00
Bjoern Michaelsen
6ce7808d58 unique_ptr, constness, naming conventions
Change-Id: I37cbfbcc887ec82e750ba1bc614f4eda77be933b
2015-02-26 14:06:24 +01:00
Bjoern Michaelsen
7deb4c93a8 cppcheck: assuming these to be intended to actually have a scope
Change-Id: Id1af6eb4064a524b12113b5b52b15f2ea4d6ada4
2015-02-26 14:06:24 +01:00
Stephan Bergmann
3c4f7704e0 Revert "Use the cairo-compatible basebmp surface for headless"
This reverts commit a785df6a5f9ad327210f51163129ef8b59c3af29 plus follow-up
3594c9ce1c94dfc52b9efe526a88baa79ea4b3e9 "presumably destroy flushes" and
b5b19508dafc2702eb3713fb6b07edb5e05d6601 "WaE: -Werror=unused-variable," as it
triggered the assert(nLen <= 8) in ColorMask::ImplCalcMaskShift
(include/vcl/salbtype.hxx) in various tests.

Change-Id: Ic5433522fcd9b8cc7c4e82704cebe7d9bbcea586
2015-02-26 13:58:22 +01:00
Tor Lillqvist
dee6cbbc1a Enable configuring for Android cross-compilation on OS X, too
The build fails in harfbuzz, though, some ICU problem.

Change-Id: I5071a26b1cc0f6524f6b2af8740d915209727381
2015-02-26 12:36:07 +02:00
Takeshi Abe
5822c126b9 starmath: drop a lurking space in the tooltip
Change-Id: I1fb80f10098eee414514e95ddd069d772beadca1
Reviewed-on: https://gerrit.libreoffice.org/14651
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-02-26 09:45:14 +00:00
Andrew
945e8c4f5a tdf#30425 Remove old icons -2
Remove outdated icons from themes, to make future maintenance easier.
Fixed file names and updated 'missing' log, 'copyright' text and 'links' for themes- where needed.
(Checked against current 'images.zip' bundled themes and git history).

Change-Id: If97378582377a64ed798eb44596ac56b89e3eb12
Signed-off-by: Andrew <dent.ace@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/14583
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-02-26 10:32:41 +01:00
Stephan Bergmann
29c0bcffe1 Better CPPUNIT_ASSERT_EQUAL output for sal_Int8 etc.
Change-Id: I236e8db4cf63fc284b1491591001357a0c662471
2015-02-26 09:51:08 +01:00
Miklos Vajna
a4dbfa82fd Extract SwTxtAttr::dumpAsXml() from SwTxtNode
Change-Id: I20914ec147b2af096bd40ec0e4da7567a44abaaa
2015-02-26 09:31:31 +01:00
Julien Nabet
463f7be3f7 Cppcheck: Same expression on both sides of '||'
Change-Id: Ib4979a90134a71f6f26d20ea9430d2ae7f338dbc
2015-02-26 08:04:24 +01:00
Yousuf Philips
fe9f69f6c8 tdf#84909 Move slide view toolbar and hide slide sorter toolbar
Change-Id: Id71a46d19e67599af26d0e34303dc73517c4d17f
Reviewed-on: https://gerrit.libreoffice.org/14638
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-02-26 01:46:15 +00:00
Yousuf Philips
41db10812b tdf#84909 Remove presentation button from outline toolbar
Change-Id: I5d1244fa50974c63133d0ca98de11cba0d7fb902
Reviewed-on: https://gerrit.libreoffice.org/14639
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-02-26 01:45:07 +00:00
Michael Stahl
7fde44c856 tdf#89666: vcl: speed up HbLayoutEngine line layout for large paragraphs
When formatting a 180k char Writer paragraph, most of the time is spent
in vcl::ScriptRun::next(), which is called twice per line from
SwTxtGuess::Guess(), once via GetTxtBreak() and once via GetTxtSize().

In the second call, from GetTxtSize(), the end position of the line is
known, and passed to vcl, and iterating beyond that position seems
pointless.

This reduces vcl::ScriptRun::next() from 24 to 11 billion callgrind
cycles when built with GCC 4.9.2 -m32 -Os.

Change-Id: Ia23fcccaf5ef9c9ecdcb54bfc8f0f8a043c8711e
2015-02-26 00:06:31 +01:00
Michael Stahl
88d4b2fb08 tdf#89665: i18npool: fix pathological transliterate slow-path
TransliterationImpl::transliterate() has a slow-path for the case when
more than one trasliteration module is cascaded which swaps 2
uno::Sequence.  This is unbelievably slow because non-const
Sequence::operator[] does a function call into cppu to check whether COW
has to be done.

This speeds up transliterate() from 344 billion to 101 billion callgrind
cycles when built with GCC 4.9.2 -m32 -Os.

Commit d2771b63b94a8aae3c25c83e9dae9f83242f46c1 added a second
transliteration module that is enabled by default, making the problem
visible, especially with long paragraphs in Writer.

Change-Id: I2799df9173ac73aab8c4eb4cc6f592976b06c8da
2015-02-26 00:06:30 +01:00
Michael Stahl
b825167228 vcl: these compare functions use subtraction and could overflow
Change-Id: I84c7a4cde694395fa70c60edffd63fb45ffcb3a8
2015-02-25 23:58:04 +01:00
Michael Stahl
250ef02bd8 connectivity: replace magic numbers with constants from CompareBookmark
Change-Id: Ifcd5766ce10de44f38d5c383cd7dc35b75152e88
2015-02-25 23:58:04 +01:00
Tor Lillqvist
86796f127b tdf#84881: Try to fix "The signature includes an embedded timestamp but ...
... it could not be verified"

I got some insight reading this question and reply on stackoverflow:
http://stackoverflow.com/questions/18761993/steps-to-include-timestamp-in-pdf-signature

I had been doing the timestamping wrong in the same way: I had timestamped the
hash of the PDF document, not of the signature. That is wrong. If you think
hard, it is obvious: It is the (rest of the) signature that needs an
authenticated timestamp, not the PDF document contents. After all, if the
document contents is timestamped, but not the signature, that doesn't prevent
tampering with the signature after the timestamping. When you timestamp the
signature, that proves the date of the signature. (And the signature proves
the authenticity of the document contents.)

So I had to re-engineer the code a bit. I create two originally identical NSS
CMS messages with signatures, encode one signature into DER, take the hash of
the signature, get a timestamp from the TSA for that hash. Then I add that
timestamp to the other CMS message as an unsigned attribute of its signature,
sign it, encode it, convert to hex, and store it the document.

(I first tried to use just one CMS message, but NSS stopped with an assertion
when I tried to encode the signature of the same message a second time, after
adding the timestamp attribute to the signature. Go figure.)

(I did verify the the encoded signatures, taken from what should be identical
but separate CMS messages, was in fact identical. So I am fairly sure the idea
described above is sound.)

But, it doesn't help. Adobe Reader still complains "The signature includes an
embedded timestamp but it could not be verified".

Change-Id: I4e4cd0443005e82f597586942badc7145ef64160
2015-02-25 22:57:50 +02:00
Tor Lillqvist
0874849206 tdf#84881: Slight refactoring and redordering of function calls
No change to functionality or end result. Preparation for an attempt to fix
the remaining problem with RFC3161 timestamped signature.

Change-Id: I5790a85399e9f94d816e8fab791a03d607113116
2015-02-25 22:55:16 +02:00
Caolán McNamara
b5b19508da WaE: -Werror=unused-variable
and assert is bollox as well

Change-Id: I966aa4efe1191f1a7957d3117d9c3ccabe041178
2015-02-25 20:34:32 +00:00
Caolán McNamara
b1453e7fc7 fix bustage
Change-Id: I249fe09319d6e0995d9ffdc7e4396b9b1787ad28
2015-02-25 17:28:42 +00:00
Caolán McNamara
3594c9ce1c presumably destroy flushes
Change-Id: Ibf176df1e54138480030086abad0d045d27f19d1
2015-02-25 17:06:16 +00:00
Caolán McNamara
a785df6a5f Use the cairo-compatible basebmp surface for headless
That way the conversion from basebmp to cairo becomes unnecessary on blitting
the thing onto a cairo surface for gtk3 and opens a route to using cairo, e.g.
especially for text, to render to basebmp surfaces.

Change-Id: I1d11f503410af9c92a97018e9ee20045412b157e
2015-02-25 17:06:15 +00:00
Caolán McNamara
940914489c rename BGRU to BGRX
Change-Id: I0f28b986542b4d30c0a2cb75e15fb258af98e9cd
2015-02-25 17:06:15 +00:00
Caolán McNamara
daf248bf85 rename BGRX32 etc to BGRA32
Change-Id: I60e1951fe56e4b00ee0caa142eb0e19dcb6d12b7
2015-02-25 17:06:15 +00:00
Caolán McNamara
f974db5d89 check if reads were successful
Change-Id: I69ab0ca9c017c9a1c10d18fd850f32a92c641d12
Reviewed-on: https://gerrit.libreoffice.org/14631
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-25 17:05:31 +00:00
Chris Sherlock
cd231286f4 sw: convert import & export components to constructor usage
Change-Id: I15b64f874f72715cea04f656e1b883c6cf45a86c
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-02-25 16:26:41 +01:00
Caolán McNamara
4b06c351bd give basebmp a cairo compatible 24 bit surface
where each unit is actually 32bit with unused upper 8bit.

Change-Id: I5c406cebe406d2db6fda73d744dfd22a99b80ba3
2015-02-25 14:56:25 +00:00
Stephan Bergmann
923a8604aa Avoid unnecessary bad downcast (pDev can be VirtualDevice)
Change-Id: I9c3a6afea188d04c0d31d5685468b3d45a342840
2015-02-25 14:50:47 +01:00
Andras Timar
e956e648c8 translated German dbgutil popup texts
Change-Id: I7af6b84da0ebfe9067690153665fb2470fdebcf4
Reviewed-on: https://gerrit.libreoffice.org/14607
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-02-25 13:29:49 +00:00
Andras Timar
b848e32dfd bnc#637947 export shape shadow to DrawingML
Change-Id: I6e0b093d99dba731ff5723d6575f887346463908
Reviewed-on: https://gerrit.libreoffice.org/14605
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-02-25 13:25:30 +00:00
Ashod Nakashian
c91bfb9ac7 Fix crash while scaling large bitmaps.
Fast bitmap scaling overflowed the LUT used by the nearest-neighbor algorithm.
When a bitmap has 46k pixel on a side and is enlarged, the scaling code
overflows the 32-bit long, resulting in negative indexes, which then segfaults.

This isn't as rare as it sounds. At least in web-view in writer the border/shadow
bitmap is as long as the document (which is an issue in its own right,)
which can overflow for large documents during scaling and segfault.

Change-Id: I1ccf73d02469f6601a9a7e67b30524cb497cf6bc
Reviewed-on: https://gerrit.libreoffice.org/14597
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-25 12:23:09 +00:00
Stephan Bergmann
0316c6c2d3 Avoid unnecessary bad downcasts to SwCharFmt
At least in JunitTest_sw_unoapi it happens that this downcast is called from
~SwCharFmt -> ~SwFmt -> SwClient::ModifyNotification -> SwDepend::Modify ->
SwClient::ModifyNotification -> SwEndNodeInfo::Modify, i.e., the downcasted
object is in destruction and no longer an SwCharFmt but only an SwFmt.  Whether
or not that chain of calls is actually sane---casting down to merely an SwFmt
is a quickfix at least.

Change-Id: I33f0d76c42daa2530b8d417df059de57190c5070
2015-02-25 12:14:17 +01:00
Noel Grandin
15b406f073 convert SFX_CHILDWIN constants to enum class
Change-Id: I8eb0c9bda0883bc08aed3acd7eaa72480848c6f3
2015-02-25 12:39:49 +02:00
Jan Holesovsky
bc81d76567 native-code.py: Add more forms constructors.
With this, ODF_text_reference_v3.odt does not report any broken services, but
the app still crashes anyway - tdf#89642.

Change-Id: If73835534184ffbac1c91b2c5bca33bded50c41f
2015-02-25 10:56:17 +01:00
Noel Grandin
2f928b2d09 remove NUMBERFORMAT_ constants
.. in favour of just using the underlying constants from
css::util::NumberFormat

Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
2015-02-25 10:34:27 +02:00
Noel Grandin
3e475e574e convert EXCHG_DEST_ constants to enum class
Change-Id: I8484b985e46ad34fa45b02aa07130d3259336082
2015-02-25 10:34:26 +02:00
Noel Grandin
515c266bc6 remove unused header definitions in SotExchange
Change-Id: I795ce25011509de8f2aff488d4d46b86290ab3a3
2015-02-25 10:34:26 +02:00
Noel Grandin
d76ddd19fa remove unused EXCHG_SOURCE_ constants
Change-Id: Ic2391f4da06e26ee11a2463d2508b0dccdbf52bd
2015-02-25 10:34:26 +02:00
Noel Grandin
fcf339ca5f convert SFX_SLOT_ constants to enum class
Change-Id: Icc3aad14d9d0c59c1c1c8f124f0626a9f947b93f
2015-02-25 10:34:26 +02:00
Stephan Bergmann
1c4e95db10 Fix dangling pointer
Change-Id: I352702ac50708a8f8c40e2752821178223052b7c
2015-02-25 09:08:35 +01:00
Miklos Vajna
9ed292b945 Extract SwFmtAutoFmt::dumpAsXml() from SwTxtNode
Also remove code from SwRangeRedline::dumpAsXml(), where that extra data
pointer seems to be ~always 0, so don't bother dumping it.

Change-Id: I4509b9366c1862248fcd3cc7ca6bb257ea7517f8
2015-02-25 09:07:13 +01:00
Yousuf Philips
6a835bbbd1 ICONS: Fix icons in sifr and tango in Calc
Change-Id: Ib6e23cbbcc7037dfdab53c4243091afbf819d445
Reviewed-on: https://gerrit.libreoffice.org/14613
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-02-25 06:32:21 +00:00
Laurent Godard
d60157196f calc : add UNO properties for "Record changes"
with unit testing

Change-Id: I2a0e09f699c8489f61453b4144dd6181bd9b47fd
Reviewed-on: https://gerrit.libreoffice.org/14603
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-02-25 00:24:18 +00:00
Julien Nabet
9844458410 Typo: curently->currently
Change-Id: I2362c2c7a1c637b02eeebcae8ee1e3c0fc2b2422
2015-02-24 23:49:49 +01:00
Julien Nabet
b4b9b94efd Typo: feture->feature
Change-Id: Ie1c92ff5f65b019d3f1306917cd924036eea7909
2015-02-24 23:48:01 +01:00