Commit Graph

384479 Commits

Author SHA1 Message Date
Eike Rathke
67ab2ce3c6 remove comment that makes no sense, tdf#94810 follow-up
nStart should not become <0, not even when searching for $ end.

Change-Id: I79586471f1a7908372fa3ee044a6f66499b1790f
2015-11-23 20:12:15 +01:00
Mike Kaganski
4cf1d290ba tdf#94810: fix reverse offset mapping
With simple transliteration, TextSearch::searchForward used to use
whole string to perform the search, then started to create substring
to search. But it left the precautions from
commit c00601dab0 by Eike Rathke:
searching for $ may actually return a result set pointing behind the
search string which it does with the ICU regex engine.
The precaution made it to skip reverse mapping if index was 0.

Commit 9aae521b45 by Michael Stahl
didn't consider the case when nStop is 0, and startPos > 0. Then it
tried to get offset[-1].

Anyway, using value of startPos in those conditions seems illogical.

Removed those precautions (and made assertions for that).
Fixed handling zero indexes.

Change-Id: I2066abc51fff7fb7323bc7f6198bdea06439d4f3
Reviewed-on: https://gerrit.libreoffice.org/19840
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-11-23 19:03:32 +00:00
Caolán
0c75202ad2 only one headless text renderer now
Change-Id: I045d7a58f3eae20c733fe93faa3a64687e7c85e3
2015-11-23 17:15:51 +00:00
Stephan Bergmann
0721765417 loplugin:nullptr
Change-Id: Iefd6d4a08a4a5f90f4f2f95889f6425aabe61334
2015-11-23 16:58:26 +01:00
Stephan Bergmann
9ca49c1b95 pInst no longer needed
...since 254ca2513c "loplugin:staticmethods"

Change-Id: I7d051a9add4e5176c1dac0b281cd09939da3f3a2
2015-11-23 16:57:11 +01:00
Miklos Vajna
527190f0c0 sw lok comments: handle mouse up/down events on the vertical scrollbar
Change-Id: Ib1c334825a6629224fe0c8fba564656d53e67410
2015-11-23 16:46:26 +01:00
Miklos Vajna
4397654806 vcl lok: fix scrollbar to accept mouse events in twips
Change-Id: Ieaedaa525d613f8ba55f336c613da163a09f7a33
2015-11-23 16:46:25 +01:00
Stephan Bergmann
086bd3c574 loplugin:cstylecast
Change-Id: I4a02309c3ef4cb8c88edd538012ed2a8c43da307
2015-11-23 15:58:19 +01:00
Stephan Bergmann
254ca2513c loplugin:staticmethods
Change-Id: Ia22b7f53a85e55fd33762adceba9a1b1827d6f34
2015-11-23 15:38:16 +01:00
Laurent Balland-Poirier
96ff6372e1 tdf#95677 Force sign to exponent for Excel export
Change-Id: I7896d1d064cd92fd45a6b32ac64f534f68213169
Reviewed-on: https://gerrit.libreoffice.org/20064
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-11-23 14:28:01 +00:00
Caolán McNamara
d058765ff3 updae getTileMode
Change-Id: Ic8d67f08d40f475020c0534570fe3bea07aa431b
2015-11-23 14:26:00 +00:00
Caolán McNamara
3dc8907dd3 we always have cairo and top down devices now
Change-Id: I0eb3083bf402e86f95206e619e5da2e76aa627a8
2015-11-23 14:26:00 +00:00
Caolán McNamara
b639fe60ea VirtualDevices either match another device depth, or are 1 bit
cairo can therefore always render to a svp virtual device with
need for a fallback

Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23 14:25:59 +00:00
Caolán McNamara
c43a3a5867 establish that Virtual Devices either match Physical Device depth or ...
are 1 or (rarely) 8 bit and lock that down.

Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23 14:25:59 +00:00
Caolán McNamara
b0f5416d7e Do all svp text rendering with cairo
enabling us to delete a whole pile of foo

For android we patch cairo, which is internal in that case, to swap the rgb
components so that cairo then matches the OpenGL GL_RGBA format so we can use
it there where we don't have GL_BGRA support.

Change-Id: I25e34889c7b7263438b143dd2a2ad882fb0f190a
2015-11-23 14:25:58 +00:00
Adolfo Jayme Barrientos
e34f290eec Updated core
Project: help  7724039cdcb5a74d493e6290e144f91e24eaeb84

tdf#87313 Update instructions to Firefox 42

And remove references to the dead Mozilla Suite.
2015-11-23 14:00:59 +00:00
Noel Grandin
28f21af719 fix Image::operator==
comparing the pointer values in std::unique_ptr's can never be true
(since they cannot point at the same thing, by definition)

Change-Id: I38eb6406b61d5a3662adb68ca1558248925d7e90
2015-11-23 15:19:40 +02:00
Noel Grandin
37605424f5 loplugin:loopvartoosmall
Change-Id: I2aca12b994c2fd260803a8897b968ddac848f235
2015-11-23 15:10:37 +02:00
Tomaž Vajngerl
876a67f22f opengl: fix blacklist
Change-Id: Ie171b4be3414b977481d30901270b8b6b23d8c8e
2015-11-23 14:01:34 +01:00
Tomaž Vajngerl
a4fc2b364f vcl: simplify Image internals
Image could be of 2 types - BITMAP or IMAGE, where BITMAP used to
store the content in a Bitmap and IMAGE in a ImplImageData, which
contained a BitmapEx. This was refactored with this commit to
always store the content in a BitmapEx and there are no distinct
image types anymore. This greatly simplfies the code.

Drawing of the image in case of type IMAGE was done in the class
ImplImageBmp which also modified the image according to
DrawImageFlags (for example to create a "disabled" image). This
was moved to ImplImage and the bitmap manipulation code was moved
to BitmapProcessor (done in previous commits).

Change-Id: Iec9f63a7c05618c457d8465f1ec60ed4f16bd579
2015-11-23 13:59:25 +01:00
Tomaž Vajngerl
49b0711dad vcl: add colorizeImage to BitmapProcessor
Change-Id: Ic90368e83d7f9a187eb8404d8aaec4380ff5bcb1
2015-11-23 13:59:25 +01:00
Tomaž Vajngerl
15f66df860 vcl: Bitmap processor to create a disabled image
Change-Id: Iba5d86988736fa28329e1ba2783dfb15e37815a8
2015-11-23 13:59:24 +01:00
Tomaž Vajngerl
f1592d3821 ImplImageRefData is not used anywhere anymore
Change-Id: I578cc029815aaf7c2a36ad127d90cf833b5646c4
2015-11-23 13:59:24 +01:00
Tomaž Vajngerl
d95a715dd8 remove unused constructor parameter
Change-Id: Ia2d1a8d7d43ceac36b6bce87f5a733d6bce3bd6f
2015-11-23 13:59:24 +01:00
Miklos Vajna
30b511ae38 sw lok comments: fix vertical scrollbar with custom zoom
With this, if a comment has enough content that it gets a vertical
scrollbar, then tiled rendering output looks OK, even with non-100%
zoom.

Change-Id: I699aadc11b6c34fb0791e70705719fd61169d972
2015-11-23 13:47:32 +01:00
Miklos Vajna
7ce0889ec9 android: remove duplicated bitmaps
Change-Id: I5e16aa9da0aabe4302ebdd30b080b6bad4767006
2015-11-23 13:47:31 +01:00
Reto Schneider
334082b332 Fix help for argument --pidfile (--pidfile=file)
Change-Id: I131efc46630437dae28e6698ea849e587abce68e
Reviewed-on: https://gerrit.libreoffice.org/20093
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-11-23 12:44:26 +00:00
Mike Kaganski
d59ef5b2dd tdf#60351: Use Wrap Polygon also for PROP_SIZE_PIXEL
Since commit 2b5bf2f1c5
"graphic import improved" from 2006-11-20 by Oliver Specht,
there is an unused code reading pixel size (PROP_SIZE_PIXEL) of an
image in a part of GraphicImport::createGraphicObject() that imports
the wrap polygon.
When there's no PROP_SIZE100th_M_M in graphic, the imported wrap
polygon was simply dropped, and then automatic contour was generated
for graphic. Now we import contour correctly in this case.

Also, as paragraph background overlaps non-opaque graphics,
we need to set opaque to true regardless of behindDoc value of
wp:anchor.

Change-Id: Ifa5eec9f8ccaf5ba051732b6e4f965ae8606a1cf
Reviewed-on: https://gerrit.libreoffice.org/20103
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-23 11:32:08 +00:00
Noel Grandin
0cda1453a0 loplugin:unusedfields in svx/
Change-Id: Ia6531b1ff8882ad06084f11dd10e2b1fe3c8cf24
2015-11-23 13:30:55 +02:00
Noel Grandin
e2c03fde58 loplugin:unusedfields svtools/
Change-Id: Ibab9bab1e36dd6bb938c2977d143d40a287bf4ab
2015-11-23 13:30:54 +02:00
Noel Grandin
32303d0620 loplugin:unusedfields in svl/
Change-Id: Iae589bc1e0333c8e4cf89a3d061ba10094874520
2015-11-23 13:30:54 +02:00
Noel Grandin
bc8c158ec6 loplugin:unusedfields in store/
Change-Id: I0fae339e3736f98d5d534b8a01a3040c237c6621
2015-11-23 13:30:54 +02:00
Noel Grandin
d47079668e loplugin:unusedfields in sot/
Change-Id: Ia1711d9289992525ed366f3dedcf95b6289f1eaa
2015-11-23 13:30:54 +02:00
Noel Grandin
a07fc5bc15 loplugin:unusedfields in soltools/
Change-Id: I895a487b4c7be27fe81a2c4c122adb2aba37c638
2015-11-23 13:30:54 +02:00
Noel Grandin
04fe52e947 loplugin:unusedfields in slideshow/
Change-Id: I509dd0bdda284abb2b8abdb809bf1dec8b9632ce
2015-11-23 13:30:54 +02:00
Noel Grandin
018bacf44a loplugin:unusedfields in shell/
Change-Id: I3a3f7144483cebaad6d64588ff0570f29ab24e27
2015-11-23 13:30:54 +02:00
Noel Grandin
1aa29c8291 loplugin:unusedfields in sfx2/
Change-Id: Id0d81901501683001107677c5573450c857ad094
2015-11-23 13:30:54 +02:00
Noel Grandin
990691b144 loplugin:unusedfields in sdext/
Change-Id: Ibf5083cde3553289b3a29c9b992800e4bd82e6e4
2015-11-23 13:30:53 +02:00
Noel Grandin
980fe3f791 loplugin:unusedfields in sd/
Change-Id: Id6da990828ece02132032285116f3a20de423519
2015-11-23 13:30:53 +02:00
Michael Meeks
56a9594649 Update-check, expand to allow reporting of H/W and OS versions.
Off by default.
Expand config options to show the user agent used.
Re-use this to show more useful info in Help->About too.

Change-Id: I1044116ef9beeb341a537c0f4451dca54e198f67
Reviewed-on: https://gerrit.libreoffice.org/20098
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-23 11:18:08 +00:00
Stephan Bergmann
91cbbb7797 loplugin:sallogareas
Change-Id: Ibffaa2e3924877b22abbcd17aaa8fac01607f639
2015-11-23 09:56:10 +01:00
Miklos Vajna
fc06f801ee LOK: add Document::getTileMode()
So that clients can know if they get old-style RGBA or new-style ARGB
output in paintTile().

Change-Id: Icfde4b3259444b3524e64478ccd976664a3fe0ed
2015-11-23 09:52:32 +01:00
David Tardon
2e64d3edfa add missing semicolon
Change-Id: I449c29112046729bae9b5cb0cd87ee6847fb6a4b
2015-11-23 09:43:24 +01:00
Takeshi Abe
3168dbbbe3 starmath: Prefix members of SmCaretPos2LineVisitor
Change-Id: I277a66d32af51af7e28fd424dedd7980619e9d6e
Reviewed-on: https://gerrit.libreoffice.org/20104
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-11-23 08:10:57 +00:00
Miklos Vajna
29d2b9fc74 sw: nTwipstoEMU -> nPosXEMU and nPosYEMU
It was used for both x and y positions, hard to read.

Change-Id: Ie2461662671405a6348aa24c3946b376c123f699
2015-11-23 09:05:05 +01:00
Tor Lillqvist
c5ee08d809 Change comment to match reality
See include/vcl/devicecoordinate.hxx.

(But why do we use the vague 'long' and not sal_Int32? Note that
'long' is not necessarily any "longer" than 'int', so if we don't want
to use (the admittedly ugly-looking) 'sal_Int32', why not simply
'int'?)

Change-Id: I8d27b43b64eaed86dd95eb89866db8d5680cc60b
2015-11-23 08:59:10 +02:00
Noel Grandin
05eda0dc19 loplugin:unusedfields in sc
Change-Id: If5123e676a27302f3e11475309bc748977c6f430
2015-11-23 08:55:53 +02:00
Noel Grandin
56b2a2d874 loplugin:unusedfields in oox,package,reportdesign
Change-Id: I83d03dcc76b5f0d54ebb0513ae972acb0db8eef1
2015-11-23 08:26:11 +02:00
Stanislav Horacek
8c10722513 Updated core
Project: help  229eff368cdbfd556ed83f051eb2000d2700ff7b

Insert - Section - Footnotes/Endnotes tab is available in both views

Change-Id: If21268f37c254753eac5ae4c52c931ebde73b6e8
Reviewed-on: https://gerrit.libreoffice.org/20120
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-11-23 01:06:09 +00:00
Adolfo Jayme Barrientos
eb6c51c1d1 Updated core
Project: help  7dd9f9b4144f5b3edb1acb2faaf3a9332dd590f4

tdf#86831 Kill reference to long-dead URL

Change-Id: I529c04e60732dd7cf6bd1765ec6c1ab67594b7e0
2015-11-23 00:25:28 +00:00