Commit Graph

386270 Commits

Author SHA1 Message Date
Miklos Vajna
9b948d7a96 vcl: fix Android build
Change-Id: I05ce4ddb4c933eb1100e3a3410cea27520072933
2016-01-11 10:11:53 +01:00
Xisco Fauli
e6e8a8650d tdf#47262 SVG: Parse gradient styles twice if the referred...
gradient can't be found the first time

Conflicts:
	filter/source/svg/svgreader.cxx

Change-Id: Iaadaac13738dd0d45832a8f38787b22b1d15de29
Reviewed-on: https://gerrit.libreoffice.org/20833
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-01-11 08:51:57 +00:00
Noel Grandin
86bb6fdf9c update unusedmethods loplugin to update unused return values
Change-Id: I825d022d09282bc9b6cffd9178e40e4090d335da
2016-01-11 10:49:24 +02:00
Noel Grandin
f7c23897a3 loplugin:unusedmethods unused return value in dbaccess
Change-Id: Ia7ec0209a635f8482b6ccbaa7ba48a8c6da79090
2016-01-11 10:49:24 +02:00
Noel Grandin
889fc93087 loplugin:unusedmethods unused return value in cui
Change-Id: Ib65ceeeb5e1be0de5e3808e652e910fff3820bf8
2016-01-11 10:49:24 +02:00
Noel Grandin
db48f40e07 loplugin:unusedmethods unused return value in comphelper
Change-Id: If95e3fa61a2c63c4ffc78ef5c27ea5c59088170d
2016-01-11 10:49:24 +02:00
Noel Grandin
6fc3fd29a6 loplugin:unusedmethods unused return value in chart2
Change-Id: Ibd8ae8ade2a1037deac1e29ce1b867c2847a9dff
2016-01-11 10:49:24 +02:00
Noel Grandin
bc80f951c1 loplugin:unusedmethods unused return value in basic
Change-Id: I0ccbf994d2c9be35f43fc3c62e60da90634bacdf
2016-01-11 10:49:24 +02:00
Noel Grandin
1b26a4eb4b loplugin:unusedmethods unused return value in basctl
Change-Id: I23590020acbb9a6760edd755affa121a572aaea5
2016-01-11 10:49:24 +02:00
Noel Grandin
aae44c09d3 loplugin:unusedmethods unused return value in accessibility
Change-Id: Iee5a667a0fadfb04a2cc97d01f6febfd71c15e54
2016-01-11 10:49:23 +02:00
Miklos Vajna
8fd9020b2b svx: SdrDragStat::GetPointAnz() -> GetPointCount()
Change-Id: Ib8728408a81c655c36b46a8483970c38e9a40bc4
2016-01-11 09:09:42 +01:00
Stephan Bergmann
88c7221926 loplugin:staticmethods
Change-Id: I15d48d69dd05de34f1b85896c2b143d6f17eeecb
2016-01-11 08:45:57 +01:00
Chris Sherlock
07bb3d99e7 sfx2: change variable jan to aUsageInfoMessage for clarity
Change-Id: Icc9d9b277ce2dca5ee13c381a105c387a42525c7
Reviewed-on: https://gerrit.libreoffice.org/21337
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 07:15:10 +00:00
Chris Sherlock
7546390fb8 vcl: move vcl/generic/app/ files to vcl/unx/generic/app
These source files as all specific to Unix environments (not, however,
OS X) and are not "generic" (i.e. used across all platforms).

Change-Id: Idba1e9bbe14d8a4bb8e5dd2c2ad1dc75458da53c
Reviewed-on: https://gerrit.libreoffice.org/21335
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 07:14:49 +00:00
Chris Sherlock
22d5d2ca7d vcl: move vcl/generic/print files to vcl/unx/generic/print
These source files as all specific to Unix environments (not, however,
OS X) and are not "generic" (i.e. used across all platforms).

Change-Id: I6008a272c4b961a12702e2ef8727c56df9e80164
Reviewed-on: https://gerrit.libreoffice.org/21334
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 06:04:55 +00:00
Chris Sherlock
cd4c21dea9 vcl: move vcl/generic/fontmanager files to vcl/unx/generic/fontmanager
These source files as all specific to Unix environments (not, however,
OS X) and are not "generic" (i.e. used across all platforms).

Change-Id: I23650c86a7b74c2ac150b981e4be88eaea07e936
Reviewed-on: https://gerrit.libreoffice.org/21314
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 06:04:23 +00:00
Chris Sherlock
6c1a179347 vcl: rename adobeenc.tab to adobe_encoding_table.hxx
Change-Id: Id7dbcd97acaf6a7deb13de2582c7a3515cedfac1
Reviewed-on: https://gerrit.libreoffice.org/21313
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 04:45:43 +00:00
Ashod Nakashian
24ef3924d8 PCH support on Linux
Fixes and improvements to support Precompiled Headers
on Linux.

Change-Id: I8145c146b0dba56c7a4d0fdf9c330164b67ada53
Reviewed-on: https://gerrit.libreoffice.org/21307
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-11 03:55:46 +00:00
Chris Sherlock
09a1566bf1 vcl: move all glyph files from generic to unx
All the files in glyph are only used by Unix based systems, with the
exception of OS X. Therefore, it's not really "generic" as in "used
across all platforms" but is generic as in "used in all Unix-based
systems".

Change-Id: Id89c09df74f0ddafee5c88c55bac4c35f9b23ef8
Reviewed-on: https://gerrit.libreoffice.org/21312
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 03:30:42 +00:00
Chris Sherlock
557a6d2008 vcl: rename gcach_ftyp.{cxx|hxx} to freetype_glyphcache.{cxx|hxx}
Change-Id: If17c0c36108c2437accba105e11a93a009d2c91f
Reviewed-on: https://gerrit.libreoffice.org/21311
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 03:30:24 +00:00
Chris Sherlock
12490c5a7f vcl: move gcach_ftyp.cxx to vcl/unx/generic/glyphs
Change-Id: Id12edc0660a2c22c6d04b820ad052bde4fa75143
Reviewed-on: https://gerrit.libreoffice.org/21310
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11 02:44:14 +00:00
Caolán McNamara
9e5fb97292 avoid crash on vcldemo bad index
Change-Id: I3a778f41897da885ea039526e4701ebebfe57c4d
2016-01-10 21:06:14 +00:00
Caolán McNamara
680abab771 crashtesting: don't fail on export of fdo65321-3.ods to xlsx
with broken ole object

Change-Id: I8dc9e1035893d5cb931d13eafcc3e3ec1c9c00d4
2016-01-10 16:37:13 +00:00
Caolán McNamara
e634cd9f4f crashtesting: fix assert on re-export of ooo74510-1.odt to docx
Change-Id: Id66ab14772b002b140ba6bbfd098c19aeb1a537f
2016-01-10 16:37:13 +00:00
Caolán McNamara
4e4554f1a6 cppcheck: noExplicitConstructor
Change-Id: I62f1260d75d8a79bd230e2813fc58373aa83b6ab
2016-01-10 16:37:13 +00:00
Andrea Gelmini
64d624b651 Fix typos
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
Reviewed-on: https://gerrit.libreoffice.org/21209
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10 14:17:20 +00:00
Aybuke Ozdemir
d61c16966b tdf#95505 Dump usage stats to text file
1de031c94b2ef9c4ae45a8906b250a95d3c47c47

Change-Id: I1de031c94b2ef9c4ae45a8906b250a95d3c47c47
Reviewed-on: https://gerrit.libreoffice.org/20413
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
Tested-by: Jenkins <ci@libreoffice.org>
2016-01-10 12:23:04 +00:00
Chris Sherlock
536d0e27f0 Cleanup FontCharMapPtr variable prefixes
Change-Id: Ib106b91ab71ee45d5ad469d0beaf4ebaef8b57e1
Reviewed-on: https://gerrit.libreoffice.org/21306
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 12:15:42 +00:00
Chris Sherlock
36ccb37eee vcl: promote ImplFontAttributes to FontAttributes
ImplFontAttributes is no longer merely a pImpl (or "compilation
firewall", take your pick) but is a fully fledged class in its
own right that is used by a number of classes, including
FontSelectPattern, LogicalFontInstance and PhysicalFontFace. Thus
I'm "promoting" the use of this class in the codebase.

Change-Id: I26866080a64796978d1c25efbcd16e3e6f94aaa5
Reviewed-on: https://gerrit.libreoffice.org/21305
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 10:17:46 +00:00
Chris Sherlock
5511b477fd vcl: add missing mutator operations to ImplFontAttributes
Change-Id: I631114978ed6f23711502dd1b5f16e9e982265eb
Reviewed-on: https://gerrit.libreoffice.org/21303
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 03:25:27 +00:00
Chris Sherlock
251fb51430 vcl: Renamed ImplPdfBuiltinFontData to PdfBuiltinFontFace
Base class's name is PhysicalFontFace, which is used to create a
logical font instance. Each platform (including the PDF writer it
appears!) implements it's own factory function - so it's more than
just a "data" class.

I am also aiming to keep naming in the class heirachy consistent,
thus the reason for the name change.

Change-Id: Idb8c5b6a3b23a39ca727d355dcf421307cacbb2f
Reviewed-on: https://gerrit.libreoffice.org/21302
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 02:32:53 +00:00
Chris Sherlock
416d7ccb4e vcl: (OS X only) Change CoreTextFontData to CoreTextFontFace
The base class is called PhysicalFontFace (I believe it was called
something like ImplFontData or somesuch before it was changed), and
it is really primarily used to provide a factory function to create
the logical font instance that LibreOffice can use (i.e. we
distinguish between "physical" and "logical" fonts - as physical font
is the actual font installed on the system, and the logical font is
the one we ask for and have mapped to the physical font face).

I also want to provide naming consistency in the class heirachy to
enhance code readability, so that's another reason I've changed this
class name.

Change-Id: Ib7f23da1e3a1db59f4d04f5bb096f490e2958a4b
Reviewed-on: https://gerrit.libreoffice.org/21299
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 02:32:34 +00:00
Chris Sherlock
d538eb2bfa vcl: (Windows only) Changed ImplWinFontData name to WinFontFace
The base class name for WinFontFace is PhysicalFontFace, which gives
the actual font installed on Windows (this is eventually mapped and
realized into a LogicalFontInstance). However, PhysicalFontFace is
not just a data structure, it also holds the function CreateFontInstance
which must be implemented by the subclasses for each platform to allow
fonts to be used in LibreOffice.

Therefore, to keep the naming consistent I am following the lead of the
base class and renaming ImplWinFontData to WinFontFace (and removing
the "Impl" business, as this is not necessary).

Change-Id: I4debb3af3ab5067b7e12e3659f2c71aba91e848c
Reviewed-on: https://gerrit.libreoffice.org/21298
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 02:32:04 +00:00
Chris Sherlock
15dae2693e vcl: (Windows only) Changed ImplWinFontEntry name to WinFontInstance
The base class is no longer called ImplFontEntry, but is now
LogicalFontInstance. I want to bring the names in the class hierachy
into line for consistency, so this change is necessary.

Change-Id: Ie24197c140bf152f78ed7faf46b7509b82bcbdee
Reviewed-on: https://gerrit.libreoffice.org/21297
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-10 02:31:46 +00:00
Michael Meeks
33208c3471 tdf#96550 - vcl opengl - fix BGR/RGB swap for some 8-bit icons.
Change-Id: Ic71b8a94cabc392e7b83df70c1691de8f4c12b43
2016-01-09 21:26:59 +00:00
Caolán McNamara
9921bae92e cppcheck: truncLongCastAssignment
Change-Id: I55f684c0afb8b0d4ab4b749084a3ab7b66201bda
2016-01-09 21:02:24 +00:00
Caolán McNamara
4cf87913db this dir has lain unused for years now
Change-Id: Ia6638f316b9d7c67e45a30b5808c68b54fdb1680
2016-01-09 21:02:24 +00:00
Maxim Monastirsky
ee3cd777e1 Fix Addons.xcu toolbar items width handling
This is useful for some complex controls (e.g. Combobox).
Regression of cb4177b5f6

Change-Id: I683cc20e9db72a4dd58d89063ec6bfcd05a1068e
2016-01-09 22:58:14 +02:00
Ras-al-Ghul
79af5b389b tdf#96888 Kill internal vcl dog-tags ...
Did some changes to toolbox.cxx file. Patch No. 19

Change-Id: Ia66d208230c8ffeca095af60b311510a826321d8
Reviewed-on: https://gerrit.libreoffice.org/21236
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-01-09 20:35:49 +00:00
Ras-al-Ghul
e02f5d4219 tdf#96888 Kill internal vcl dog-tags ..
Deleted a couple of clear statements

Change-Id: I6ca2c565842e1b33b3e52724981f95b634e94263
Reviewed-on: https://gerrit.libreoffice.org/21275
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-01-09 20:30:29 +00:00
Michael Meeks
60790935cc tdf#96657 - vcl opengl: implement invert: Track Frame.
Change-Id: I422ea8cfb8a81cca36203d496b92e15ea5b449d2
Reviewed-on: https://gerrit.libreoffice.org/21291
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-01-09 20:28:37 +00:00
Michael Meeks
7ede462d8a tdf#96657 - vcldemo - implement invert: Track Frame rendering test.
Change-Id: I07f4622945cf5787102317cfa38875c67104f265
Reviewed-on: https://gerrit.libreoffice.org/21290
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-01-09 20:28:31 +00:00
Caolán McNamara
35fefeaba8 try and fix android build
post...

commit 86d06c9102
Author: Chris Sherlock <chris.sherlock79@gmail.com>
Date:   Sat Jan 9 14:41:15 2016 +1100

    vcl: move some Freetype stuff away from the "generic" folder

I'm not adverse to simply moving these files into the "headless"
dir to further untangle this

Change-Id: Ib0c697b3d829baa92195d29983d39406bb72fce8
2016-01-09 17:22:51 +00:00
Caolán McNamara
5e217d65e0 WaE: C4702: unreachable code
regression from...

commit 31bc9a228e
Date:   Sat Jan 9 03:09:49 2016 +0530

    tdf#96888 Kill internal vcl dog-tags ...

Change-Id: I3fb375701cd1f8d8d0ea7f8a22b727881eaf90eb
2016-01-09 17:11:11 +00:00
Caolán McNamara
7c76db3c88 crashtesting: ooo104626-3.odt assert on reexport to odt
try setting DefaultParentBaseURL based on the parent BaseURL
for objects created this way

Change-Id: I8cb1e9692cc4255c0a0b11b6df4bacee737ae184
2016-01-09 16:57:32 +00:00
Caolán McNamara
77846edf44 OSL_ENSURE on p followed by deref -> assert
Change-Id: I4021053efbdaf1c04a9eb4c8fa52ef3da7b98b67
2016-01-09 16:55:13 +00:00
Caolán McNamara
91cbc10f38 crashtesting: ooo29815-1.doc assert on reexport to doc
try setting DefaultParentBaseURL based on the parent BaseURL
for objects created this way

Change-Id: Id9294e03c9c586a9445257ac9139f26f2b1a6a46
2016-01-09 15:27:53 +00:00
Caolán McNamara
d9b589379c crashtesting: fdo85994-1.doc assert on reexport to doc
try setting DefaultParentBaseURL based on the parent BaseURL
for objects created this way

Change-Id: I1a660ff6e4874321e0308d556c7ce0e10a2605fe
2016-01-09 15:17:08 +00:00
Eike Rathke
f6f73d2e40 Function Wizard: exclude functions with hidden flag from lists
Change-Id: Ia209bb44cef5969e5c9cd360aa5725708d6bdec5
2016-01-09 13:33:32 +01:00
Eike Rathke
8aee44c94f Function Wizard: don't overwrite an unlisted function
* in a spreadsheet cell enter =LOG(foobar(SIN(1)))
* invoke Function Wizard on that cell (Ctrl+F2)
  LOG(foobar(SIN(1))) is marked in Formula edit field
* activate Functions page
  LOG(foobar(SIN(1))) is marked in Formula edit field
  Function LOG is selected
* click Next button
  foobar(SIN(1)) is marked in Formula edit field
  Function ABS is selected
* click Next button
  foobar(SIN(1)) is overwritten with ABS( )
* only Cancel solves the problem

foobar() could be any user defined or macro function that have no
function description in the Formula Wizard.

Change-Id: I1cb69a9e38c0b8f251d783bd0f67b4b24ade50d0
2016-01-09 13:33:31 +01:00