Commit Graph

6755 Commits

Author SHA1 Message Date
9af27324f5 convert Link<> to typed
Change-Id: I38f2c15b4f8bb1d7187b019d26a2644b087898c1
Reviewed-on: https://gerrit.libreoffice.org/18357
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-07 06:56:57 +00:00
b484e9814c tdf#83227 oox: reuse RelId in DML/VML export for the same graphic
So that large images are written only once to the ZIP container when
they are exported using both markups. This affects drawinglayer images,
the Writer ones are handled directly in sw and were already
deduplicated.

Change-Id: Iff7c769329b42939833056b727b070f6a60da5e3
2015-09-07 08:45:29 +02:00
6d64d2f38d Minor refactoring and cleanup of Scheduler and Timer.
Members are now const-correct.
Replaced compile-time constants with enum.
Refactored common functions from Timer to Scheduler.
Disabled timer-precision unittests as they misfire often.

These changes are non-functional.

Change-Id: I6bb3d9fc402cadd556d9063ed9a4888f114c73d7
Reviewed-on: https://gerrit.libreoffice.org/17977
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-04 18:43:41 +00:00
27949c810d tdf#93928 don't hide the zoom slider and its handle with a tooltip
Change-Id: I8e5a3a02e80b845ef65dfed35cc3c324197ed88c
2015-09-04 18:29:36 +02:00
da26fa2409 Avoid OpenGL information logging when not using OpenGL
Change-Id: I7ce9b5cedc620c14e6315acde66aefe60e8bd5ab
2015-09-04 17:35:19 +03:00
20f1ba114c Add explanation and enforce non-instantiability
Change-Id: I3ea699dcda21b695a486c86d7f7b7a8abc2a8fbe
2015-09-04 17:35:18 +03:00
b14cdcbf68 natural sort contents of writer navigator
i.e. graphic1, graphic2, graphic10
not
i.e. graphic1, graphic10, graphic2

Change-Id: Ic8596144b594a933cb1366e29d3c45a4c90d7d07
2015-09-04 14:54:25 +01:00
262e7be014 Revert "LOK: added a general getCommandValues method"
This reverts commit 9640dcea46dd3201aa4c27f6a3918f7419288a2a.
2015-09-04 15:46:48 +03:00
b70b4ae26a fix slider drawing, change to always draw the whole widget
Change-Id: Ifca2f72962b808a355bd7dcc20babaeb61272bf8
2015-09-04 21:39:47 +09:00
ed7ea68854 convert Link<> to typed
Change-Id: I42eba6c9b6295d94dddc49942d47d59f474bfd28
2015-09-04 13:08:30 +02:00
2ec2247773 convert Link<> to typed
Change-Id: I743c74b134552eefb14d35e54491494160f1ffbd
2015-09-04 13:08:30 +02:00
66a205d56f convert Link<> to typed
Change-Id: I047c52f37b21b1264396d7077a1f35f6d2b13f3f
2015-09-04 13:08:30 +02:00
8f0f4faad2 convert Link<> to typed
Change-Id: Ibf658f42227ee3f4277f0089b6f8a8ac771dab1a
2015-09-04 13:08:29 +02:00
5b77f6d04f convert Link<> to typed
Change-Id: I1acb6462aa32a0ee61e8ede3ed3e9607b8069298
2015-09-04 13:08:29 +02:00
37a04c46c5 warning C4521: multiple copy constructors specified
Change-Id: I1b28b6d18e33b85e335ca24e717e3eef7077cf8f
2015-09-04 12:40:07 +02:00
5fba3a9a00 Prevent perfect forwarding ctor from hijacking copy construction attempts
...and hope that this will already be enough to help MSVC 2015 re.
<http://paste.openstack.org/show/444734/>.

"This leads to beavior that's intuitive only if you've spent so much time around
compilers and compiler-writers, you've forgotten what it's like to be human," as
Meyers so aptly put it.

Change-Id: I4015bf831cd4cfed6988cc3517f719b756e27bb8
2015-09-04 11:51:40 +02:00
9640dcea46 LOK: added a general getCommandValues method
This method returns a JSON mapping of the posible values for the given
command (e.g. .uno:StyleApply, etc).

returns:
{commandName: "cmdName", commandValues: {json_of_cmd_values}}

Change-Id: Ic8f970d077af6be9bc226f72f725b6cdf2d4c160
2015-09-04 12:22:28 +03:00
2c1019739b svx: prefix members of SdrPaintView
'mpModel=pModel' is more readable than 'pMod=pModel1'.

Change-Id: I617d85e2c2d4b6b5b0d235cdd3cd9129e276b28d
2015-09-04 09:04:18 +02:00
24d90b8aa8 convert Link<> to typed
Change-Id: I936606b6fdbb5db50661bde68fc8472bb9dd8861
Reviewed-on: https://gerrit.libreoffice.org/18317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:32:49 +00:00
6741a0f25a convert Link<> to typed
Change-Id: I5469c9983ef94b418b729af841f8db10b9116667
Reviewed-on: https://gerrit.libreoffice.org/18316
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:32:36 +00:00
5702e894b8 remove unused Link<> member
Change-Id: I987e799e785326b3b36f67aed1134ab6fe74f1db
Reviewed-on: https://gerrit.libreoffice.org/18315
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:31:43 +00:00
4ea70f87f7 convert Link<> to typed
Change-Id: I2136c3db2742afcb4722f69297276bea1e0119f4
Reviewed-on: https://gerrit.libreoffice.org/18306
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:31:30 +00:00
5338d2abe4 convert Link<> to typed
Change-Id: I4d6c37e82a5b96c09b989df248f94f0afe228b46
Reviewed-on: https://gerrit.libreoffice.org/18305
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:31:16 +00:00
bb1dcd35f3 remove unused Link<> fields
Change-Id: I81401ae6d1b1e95375bf4a5792b3b83189be5683
Reviewed-on: https://gerrit.libreoffice.org/18304
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:31:03 +00:00
90ea122185 convert Axis constants to an enum and hilight suspicious absence
that compiler warnings then shows (which I saw manually in the first place)
of AXIS_SECONDARY_X

Change-Id: I873623141020633ea73f14f5c93322c2346b8efb
2015-09-03 16:09:33 +01:00
3fb50fbe2b basic: remove over-engineered XEnumeration service
... that was causing duplicate WeakImplHelper symbols now.

Change-Id: Ibbf84a2059f30bfeb5c265adcafb4b56d2534dc8
2015-09-03 16:31:59 +02:00
055f76b8f1 tdf#93870 - GL accel. via VCL canvas for presentations when GL enabled.
Change-Id: Ia31a88cb3d9e6baa987b22f77f407a3f592031f1
Reviewed-on: https://gerrit.libreoffice.org/18285
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2015-09-03 09:37:33 +00:00
411e32244c convert Link<> to typed
Change-Id: Ic15d0539aa00b46694a1715b6dda9d78bb1c00d8
Reviewed-on: https://gerrit.libreoffice.org/18269
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03 07:21:26 +00:00
37603521c0 convert Link<> to typed
Change-Id: I8bea5ac685b0076649412bd95501461242797d77
Reviewed-on: https://gerrit.libreoffice.org/18266
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03 07:20:35 +00:00
5beffcf3f1 convert Link<> to typed
Change-Id: Ic0482dc5ed26eb2fc6ccde73022eff8b4786de83
Reviewed-on: https://gerrit.libreoffice.org/18258
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03 07:20:27 +00:00
16b0e217c1 tdf#93867 - clear current GL context before thread switch.
Fixes regression from otherwise a nice cleanup in:
    d20092259c7ea63885a539f911788715f8147ee9

Also get polarity of debug logging only with a context right.

Change-Id: Id322471f01e5656e758aefc57b0d4d5ad073ec54
2015-09-02 22:46:48 +01:00
0c9ddb24ee Don't redefine snprintf as VS 2015 supports ISO standard
Make the workaround in snprintf.h conditional on older MSVC version.

Investigation reveals that the GetShortPathNameW is presumably used by
legacy Duden extension that was built by Sun in a setsolar environment.
The uwinapi.lib was never part of the SDK, so ordinary extensions cannot
link against it. The PRIVATE export of the symbol that is only possible
with DEF file therefore does not matter much. With VC2015 there is no
need for LO code to use uwinapi.dll at all and gb_UWINAPI can be unset
in this case.

Change-Id: I23a5636db9431b0fa4350b665a6a69613d625264
Reviewed-on: https://gerrit.libreoffice.org/16677
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-02 20:40:21 +00:00
7164ec07ca Don't call GL debugging methods if there is no context.
Change-Id: Ie6b824953b8ad19fd1b6a146cb6bf52bbb152ef7
Reviewed-on: https://gerrit.libreoffice.org/18276
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-02 17:37:11 +00:00
0c648002ad opengl: Don't cache the menubar background.
It can change based on the _toolbar_ size.  The toolbar itself is fine though;
it may depend on the menubar size, but that should be constant.

Change-Id: Id2c68c89f4ec0774bc74b8c4a5b9a5e59e22137f
2015-09-02 18:55:05 +02:00
54962518fa tdf#93859 opengl - don't cache radiobuttons, refactor code dupl.
Radio buttons and check boxes can't be cached with current
framework as they have an additional rendering state provided in
additional data.

Refactor code to control which controls can be cached in one place
only.

Change-Id: I095a01cbf5dde013247d70ada89020f64c8c6510
2015-09-02 23:25:32 +09:00
b40b601007 ditch gnome-vfs2 support
Change-Id: I882c04fd3a255f55511b1884157de26e7574e6db
Reviewed-on: https://gerrit.libreoffice.org/18262
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-02 11:46:18 +00:00
5e7cf50756 SetXXX(bool) with a default value of false are just wrong
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671
Reviewed-on: https://gerrit.libreoffice.org/18235
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-02 07:14:20 +00:00
76ce16307d refactor to create a HasMarked, no logic change
Change-Id: I667a8582a740f5fbbcdbcd82907e40e82f6165a1
2015-09-01 19:50:10 +01:00
6fcaaca6cf comphelper: fix MSVC --enable-mergedlibs build, OFOPXMLHelper
The OFOPXMLHelper class causes duplicate definition link errors
due to its WeakImplHelper base class.

It turns out that the OFOPXMLHelper class itself is only used by other
exported functions in comphelper itself so just hide the
implementation detail.

Change-Id: I3ac8c561af703193cc2609e2c799b630a0d43127
2015-09-01 18:25:47 +02:00
a01a0785e6 comphelper: fix MSVC --enable-mergedlibs build
Try not to export the WeakImplHelper symbols as that causes duplicate
definition errors with the class OSelfTerminateFileStream that
has the same WeakImplHelper base.

Change-Id: Id41bfed24617113de48c76ab6802b21a8892e66f
2015-09-01 18:25:47 +02:00
d38e4b2ee7 implement undo of delete impress cell contents
Change-Id: I7aa99f3a6668e66b8d02e20b7ea1cf0862e5d760
2015-09-01 16:32:54 +01:00
7a12d4d7fd Removed the crc table from the check-sum header
Now can be accessed through the vcl_get_crc64_table() function

Change-Id: Ife85dde373a48652a0d67460184c1f325eb91702
2015-09-01 16:28:52 +01:00
80eb87f3c9 Changed DLL macro for fixing warning C4273 on Windows
Change-Id: I50e4b30e0932f092db9e7d60e50f88f2b7e83895
2015-09-01 16:28:51 +01:00
33f57c485c switch to 64-bit checksum: now BitmapChecksum is a sal_uInt64
Changed hardcoded checksum value in ooxmlimport unit test (testN777345).

Change-Id: Ied43bf626be82c0e7f6c62e965d0704fc645ac19
2015-09-01 16:28:47 +01:00
209951a8ae switch to 64-bit checksum: conversion from BitmapChecksum to an octet array
Defined BitmapChecksumOctetArray which is an array of bytes whose size
is the same of BitmapChecksum.

Defined a routine for converting a BitmapChecksum into a
BitmapChecksumOctetArray.

Change-Id: I70d17ab8b841795ae27c60b418d6b090bff604bb
2015-09-01 16:28:46 +01:00
b545728fdd vcl_get_checksum wraps the call to the real checksum function
Change-Id: I72916f18966756ecc99e77f1b164e99377eb456e
2015-09-01 16:28:46 +01:00
7fe85d7633 Switching to 64-bit checksum: substituted sal_uLong with BitmapChecksum
A typedef sal_uLong      BitmapChecksum;
has been added to include/vcl/checksum.hxx

Wherever needed sal_uLong and sal_Int32 has been substituted with
BitmapChecksum.

A BITMAP_CHECKSUM_BITS constant equal to the amount of bits used by the
BitmapChecksum type has been defined and used in
`GraphicID::GetIDString` (vstools/source/graphic/grfcache.cxx).

Change-Id: I74bd285089e58a8b18c06233d75b87023c7bf31b
2015-09-01 16:28:46 +01:00
b5e3aa4058 moved chechsum.hxx in include/vcl
Change-Id: I70f82f16d5907ce0bbe2d838c4acee226886aab2
2015-09-01 16:28:45 +01:00
239c25ff95 check for error more frequently
Change-Id: I909c225dd9bd92763ae24b62854a9217fc2e2a0e
2015-09-01 09:40:20 +01:00
b27b9084c5 tdf#93772 - handle framebuffer unbinding on GL context switch.
Also start gl tests in vcldemo:
    $ SAL_FORCEGL=1 vcldemo --gltests

Change-Id: I8f0022770d57cd60c830659e3f7fcc0721320a10
Reviewed-on: https://gerrit.libreoffice.org/18132
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-08-31 19:48:14 +00:00