Commit Graph

7575 Commits

Author SHA1 Message Date
b005836619 tdf#61511 RTF export: handle page background solid color fill
Change-Id: I562419b6d4fb791ef5b255effe9a4510d930bdbc
2016-01-12 09:07:16 +01:00
813a319fe8 loplugin:unusedmethods unused return value in include/filter
Change-Id: Ibd7d701b6991ae76d0cba0bfbb9cb79150c90c72
Reviewed-on: https://gerrit.libreoffice.org/21362
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-12 07:40:08 +00:00
1f9a610de1 loplugin:unusedmethods unused return value in include/editeng
Change-Id: I1314480950b0d3a3e5ed066d71c175604dd41970
Reviewed-on: https://gerrit.libreoffice.org/21361
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-12 07:39:42 +00:00
bbfeab3b13 loplugin:unusedmethods unused return value in include/basic
Change-Id: Ib1a006adaa92e257d40a20ff0d8beeb37e7c2fe0
Reviewed-on: https://gerrit.libreoffice.org/21360
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-12 06:40:03 +00:00
a5c2328313 BASIC: Store directly SbxVarEntry in SbxArray
Change-Id: I64ae6c2a45e0ed880f5b76ca2ad420d684fdfeb4
Reviewed-on: https://gerrit.libreoffice.org/21308
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Arnaud Versini <arnaud.versini@libreoffice.org>
2016-01-12 06:06:49 +00:00
414c5c5aee vcl: change from Impl_Font to ImplFont
Change-Id: I5edacec5c74398777ab0006c0d4e76d7d3050876
Reviewed-on: https://gerrit.libreoffice.org/21376
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-12 02:39:54 +00:00
27154c4bb5 vcl: split off ImplFontCharMap into it's own header file
Change-Id: I6173cd191cd771b1f030fa737617b1067278ee10
Reviewed-on: https://gerrit.libreoffice.org/21338
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-12 00:05:22 +00:00
9f2e50408f loplugin:privatebase: Make derivation from Timer explicitly private
Change-Id: I5c3bcd19bb63f78c8d06961d39b0932220cb3762
2016-01-11 13:17:09 +01:00
ba539fa91f tdf#96513: Limit LOKDocView's zoom in [0.25, 5.0]
Change-Id: Ibee485909dca1ea4a3774fca7a840afbf2d9883c
Reviewed-on: https://gerrit.libreoffice.org/20819
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-11 11:34:54 +00:00
00d1c2800c oox: deterministic oleObject stream numbering
... like in sw.

Change-Id: I4ba5d404c4160e907330832b7710c1d96430badf
2016-01-11 11:22:25 +01:00
da40d2558e Remove BitmapFilterStackBlur, which is unused...
...ever since it got introduced with 28c61871e876e6a2cac47439f768504b1a4c94a0
"vcl: stack blur implementation + basic test & performance test"

Change-Id: I78672cf74c24930df92121baecb9886df4382036
2016-01-11 10:42:23 +01:00
8fd9020b2b svx: SdrDragStat::GetPointAnz() -> GetPointCount()
Change-Id: Ib8728408a81c655c36b46a8483970c38e9a40bc4
2016-01-11 09:09:42 +01:00
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
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
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
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
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
077cc9fbaa prepare for hidden flag in function description for Function Wizard
Change-Id: Ic018ea5b962a66b6543e57d9cc1d44711e51de6e
2016-01-09 13:33:30 +01:00
31bc9a228e tdf#96888 Kill internal vcl dog-tags ...
This is a cleanup to https://gerrit.libreoffice.org/#/c/21233/

Change-Id: I731b9cb8e64fb07e8d0a6d89e4f420e2e4570a8e
Reviewed-on: https://gerrit.libreoffice.org/21279
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 12:15:47 +00:00
ad241f51fe vcl: change ImplFontEntry to LogicalFontInstance
There is a TODO in the code that suggests to do this, when I looked at the
collaboration diagram on Doxygen things made a LOT more sense.

Change-Id: If335498bb70872ffa5738cc5c17660faec84c35e
Reviewed-on: https://gerrit.libreoffice.org/21257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-08 23:43:50 +00:00
774fb6d2e7 tdf#96480: ODF import: eliminate duplicate cross reference heading bookmarks
7c3c3006deaaaf1bb3f2f4eeeaf11da3bcebe53c is apparently worse than it
appeared at first glance since there are numerous assumptions about
bookmarks, such as that if they were inserted successfully they may be
copied successfully, which isn't the case for duplicate cross reference
bookmarks.

So fix this differently, by eliminating the duplicates and mapping all
reference fields to refer to the surviving bookmark.

It was not possible to do this in SwXBookmark by checking the makeMark()
return as that would raise interesting problems such as it's currently
guaranteed to have 1:1 SwXBoomarks to core Marks so we can't just
connect 2 SwXBookmarks to the same core Mark, and we also can't leave
the SwXBookmark unconnected after attach.

Another alternative would be to temporarily allow inserting the
duplicate bookmarks and then eliminate them after the import, but what
is implemented now is to check from xmloff for duplicates, which is
reasonably simple.

Change-Id: I7ee4854d1c9d8bf74201089cbb7287b1bd8ee3b9
2016-01-08 20:31:47 +01:00
ca66b8c025 SfxTemplatePanelControl doesn't have to be a DockingWindow anymore
so we can drop one more DockingWindow from .src files leaving
just one left

Change-Id: I2e12398ce7682193aace966ebb8d153ec9acea2e
2016-01-08 18:20:25 +00:00
57a5912dac tdf#96647 add Interlingue Occidental [ie] to language list
Change-Id: I79f4581ee5d371f22f94043f1e5fa62a2ad430ff
2016-01-08 17:29:47 +01:00
3113ecb2fc Related tdf#96833: hide user and password for WebDAV servers...
...because they are asked for and stored in a successive user
interaction.

Change-Id: I09a3a1e59fe3819a28d7565e83b0db968dfee74b
Reviewed-on: https://gerrit.libreoffice.org/21040
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-08 12:52:17 +00:00
d74161f238 vcl: small typo in parameter names - Doxygen is complaining
Change-Id: I57a70f7f6833af5e2cf94f526e99d1353247afb9
Reviewed-on: https://gerrit.libreoffice.org/21249
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-08 12:23:01 +00:00
6b7d41094d lool - page border shadow can be disabled
Support for text documents and presentations.

Added a command line option for gtktiledviewer:
--hide-page-shadow.

Reviewed on:
	https://gerrit.libreoffice.org/21210

Change-Id: I1e427693d7af40cb5731d1730ac5b7c486d45c29
2016-01-08 10:33:44 +01:00
c5c5626dd5 vcl: document some OpenGL parameters
Change-Id: I3e3982170e9f0f898d88fdfed2c5004dfffc6aed
2016-01-08 17:39:01 +11:00
8d481730c1 vcl: document parameter of loadImage
Change-Id: Icbd617c3ce1571a867e0ebe749d40125275631a6
2016-01-08 17:39:01 +11:00
deadfe8ec9 vcl: fix Doxygen parameter name
Change-Id: I64566aa7dcd3c50e083180945d08039dd89364b3
2016-01-08 17:27:44 +11:00
bc9879b0f1 vcl: should be using @tparam for template parameters
Change-Id: I650448b4c24173a88b594185c2332861288ec753
2016-01-08 17:27:44 +11:00
3f787ee4ad vcl: fix WaE messages
Change-Id: Ib861efdaa9e18a22fb967bcef251792c9b9f5768
Reviewed-on: https://gerrit.libreoffice.org/21240
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-08 05:45:47 +00:00
301f101c36 vcl: fix parameter documentation in ITiledRenderable header
Change-Id: I258887a332c2a990ec2f76ed06e893bd1cc38c76
2016-01-08 15:18:26 +11:00
49b114f8f6 vcl: correct parameter documentation of outdev.hxx
Change-Id: I49d520d62609ade9d074244a9bb1eabffbd43356
2016-01-08 15:06:30 +11:00
778d9b4f65 vcl: document parameter
Change-Id: I6215f0af4b5ce0d310c0a00c1806edbe7a5017eb
2016-01-08 15:00:13 +11:00
8900ffa6fb vcl: update documentation of drawAlphaRect
Change-Id: Ib70e01f4047a4af8ab152541c4234737ec6e5816
2016-01-08 14:58:35 +11:00
7e57359f3f vcl: pProgress is not a parameter of Bitmap::Filter
Change-Id: I1c22b6d3e88e9442ebf8fc5a4599cafe72f9c90d
2016-01-08 14:36:54 +11:00
77a2d4b9b1 vcl: document parameters in svapp.hxx
Change-Id: Ifab1794363cd9bbe2cc1bb8010edbe25f0a0ac0d
2016-01-08 14:34:34 +11:00
74cd24b588 vcl: silence doxygen warning
Change-Id: Ia29146ce50144d8ed3ee9a3daaed221a1e2f056b
2016-01-08 14:13:13 +11:00
c89f9b19ce vcl: silence doxygen warning
Change-Id: I132672582136abfcec0eeafd2400757def824dbf
2016-01-08 14:04:16 +11:00
9321c56094 vcl: StartPresentationMode should be using a sal_uInt32 as function param
Change-Id: I78a484a25be660f754d116263a203ae1a926ac18
2016-01-08 13:51:58 +11:00
e37fb68cc6 vcl: get rid of rtl alias in include/vcl/opengl/OpenGLHelper.hxx
Change-Id: I70df154ba599bcccfd8c4a0a567b7b565d957768
2016-01-08 13:47:03 +11:00
f666550ba2 vcl: doxygen issue - missing @endcond in vclptr.hxx
Change-Id: I5cb9566e372568a8836803807e730f983bdff4cd
2016-01-08 10:31:53 +11:00
63a3c07d7c svx: fix windows build, rename SvxEscapementItem::GetProp()
90e07dd6f5d64a0d0041361c1592a6cd93ff2ac0 introduced a new unit test
which calls SvxEscapementItem::GetProp(), and apparently the unit test
also #includes windows.h somehow, so GetProp macro is defined to
GetPropA and that fails to link since SvxEscapementItem doesn't have
this member function.  Thank you, C preprocessor, you barbarous relic.

Change-Id: I6fd8e9d832ed5e1ce1a4fa7f1516c55d51a3283b
2016-01-07 19:18:31 +01:00
5e0d36adc3 BASIC : use std::vector instead of SbArray for Modules.
Change-Id: I9594efb13b3dccc637ccd61eea4b42255c2a775c
Reviewed-on: https://gerrit.libreoffice.org/20817
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-01-07 12:18:40 +00:00
da952d821d tdf#39468 Translate German comments - include/svx
Change-Id: I5344af095e52efb1f1569d2b67ee3cc6b449dd22
Signed-off-by: Michael Stahl <mstahl@redhat.com>
2016-01-06 15:06:46 +01:00
55a5ac48c2 Get parenthesisation right
...for

  #define COMMA ,
  if (SAL_LIKELY(void() COMMA true)) ...

Change-Id: I607d3da52e769035b35cefe1103675d89d5a3b9b
2016-01-06 13:46:48 +01:00
fd6263e376 Make E3dScene3D::GetCamera return non-reference
I stumbled over this when Valgrind'ing CppunitTest_sd_filters_test somewhat
erroneously reported

  Source and destination overlap in memcpy(0x2fde4af8, 0x2fde4af8, 96)

for

  aCamera = rNewCamera;

in E3dScene::SetCamera (svx/source/engine3d/scene3d.cxx), where the compiler
chose to use memcpy in the implicit definition of the Viewport3D (being a base
class of Camera3D) copy assignment operator, and the call pattern of
Get/SetCamera in EnhancedCustomShape3d::Create3DObject
(svx/source/customshapes/EnhancedCustomShape3d.cxx) causes that assignment to be
a self-assignment.

Upon closer inspection, some calls of GetCamera already create a copy from the
returned reference, while others modified the returned reference, but then would
also always call SetCamera on it.  An alternative to the given change would have
been to instead change SetCamera(Camera3D&) to UpdateCamera() and require all
call sites of GetCamera/UpdateCamera to modify the reference returned from
GetCamera, but it looks safer overall to go this way.

Change-Id: I578e72db57630dca1b09124a3b11d177005b797d
2016-01-06 13:22:26 +01:00
cd103a888b sal: don't use reserved identifiers, much less in public API
rename to SAL_DETAIL_BOOLEAN_EXPR

Change-Id: Ifb2b2d09a421313e021062cb37ade8777c30f25a
2016-01-06 13:04:50 +01:00
e75406e54c tdf#39631 - branch hints: comment, and tweak variously, also use.
Find a few million mis-predicted branches (according to callgrind)
and annotate them. Mark string acquire/release as hot, and a number of
deprecated methods as cold.

Change-Id: I678b3981794221c97f9ebb70fd0161c0fda5dceb
2016-01-06 09:38:16 +00:00
eafb1ebf74 tdf#39631: Add optimisation helpers
Change-Id: I3d09eea11e7acabcd9b692bf5abd7676b89f1323
2016-01-06 09:38:16 +00:00