Commit Graph

418771 Commits

Author SHA1 Message Date
Andrea Gelmini
c6ed4635e8 Updated core
Project: help  c2ef507d3275257c83558c794b3ebb1385f8a4fa

Fix typo

Change-Id: I3fecf4aef43a11a2534b36a846097382201ce8e5
Reviewed-on: https://gerrit.libreoffice.org/48831
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-29 15:31:51 +01:00
Christian Lohmaier
2ff6afcce2 tdf#89215 only process state changes after TileProvider is ready
otherwise the handling tries to access properties like fonts too early
and trigger NPEs

Change-Id: I132c02f936c7b3e70fced1e1e022a6cf803ed5ff
2018-01-29 15:21:41 +01:00
Caolán McNamara
daa254b71e ofz#2977 speed up tiff import
10 secs to 4 secs

Change-Id: I5460b174c580176c9f16ca608abf21bd4aa77656
Reviewed-on: https://gerrit.libreoffice.org/48822
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-01-29 15:22:36 +01:00
Mike Kaganski
0f8be9de7e Guard read access of static data
Change-Id: I257bf0a1efb36b5d2c4cd7d932cc400dfafa0846
Reviewed-on: https://gerrit.libreoffice.org/48821
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2018-01-29 15:21:00 +01:00
Mike Kaganski
3b57cb72ec tdf#32935 tdf#49134 tdf#114466 Activate newly opened modal dialogs
... based on ForceFocusAndToFront setting

Change-Id: Ic76faa082f433d5a0150e49c30d7eda3c6c24c5f
Reviewed-on: https://gerrit.libreoffice.org/48287
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-01-29 15:18:27 +01:00
Mike Kaganski
903627c069 Function already take const OUString&
Change-Id: I87af48158b4afaf81da8545f9bccf459f11031d6
Reviewed-on: https://gerrit.libreoffice.org/48823
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-01-29 14:43:58 +01:00
Stephan Bergmann
f164c68296 Introduce dedicated SwXMLTableContext::MAX_WIDTH, replacing USHRT_MAX
For one, this should make it more obvious what the magic constant USHRT_MAX
meant in the context of SwXMLTableContext::m_nWidth (and shows that it should
arguably have value SAL_MAX_UINT16, not USHRT_MAX).

For another, at least some Android builds are stuck with a broken C library that
defines USHRT_MAX to be of type unsigned int instead of signed int, which caused
various -Wsign-compare that are removed as a side effect.

Change-Id: If2676954f4e7159b0c0d3656b8bc0186f0771e10
Reviewed-on: https://gerrit.libreoffice.org/48661
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-29 14:12:56 +01:00
Stephan Bergmann
506a1b1e3d Assume this wants to cap GetColumnCount()*MINLAY <= m_nWidth <= USHRT_MAX
...even if GetColumnCount()*MINLAY > USHRT_MAX could ever be true, in which case
it will now cap m_nWidth == USHRT_MAX.

(The original code didn't have the cast of GetColumnCount() to sal_Int32, then
7e7c8a51f0 "#80552#: bug fixes for progress" added
a---presumably misplaced---C-style cast to the check (but not the assignment),
presumably to silence some signed-vs-unsigned warning.)

Change-Id: I2403ee3c5e8fe35ae2a7a7b7da9081a7fb7b59b1
Reviewed-on: https://gerrit.libreoffice.org/48654
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-29 14:12:47 +01:00
Katarina Behrens
ad01b00316 tdf#100898: custom animation panel is now Tab-reachable
the same fix as in 777bf677b3. Move on, nothing to see here

Change-Id: I4b4fe9f87b25c6e04329c052c532ab4da5a30d75
Reviewed-on: https://gerrit.libreoffice.org/48820
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2018-01-29 14:08:55 +01:00
Julien Nabet
0408d6f4a9 Modernize a bit vcl (part3)
by using for-range loops

Change-Id: Id8f5687510fa55d22873ef159b6399d219643698
Reviewed-on: https://gerrit.libreoffice.org/48811
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-29 13:39:17 +01:00
Andrea Gelmini
c101df2171 Fix typos
Change-Id: Iedd82d035454c940d76a94c7e910c81827c1389c
Reviewed-on: https://gerrit.libreoffice.org/48828
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-29 13:26:15 +01:00
Andrea Gelmini
8f9941d5ed Fix typos
Change-Id: I67ea0d54a06f1280ccdbc1ce65b940d78df701b3
Reviewed-on: https://gerrit.libreoffice.org/48827
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-29 13:24:29 +01:00
Szymon Kłos
077e0f3b64 tdf#114677 Correct title in Base forms cleanup
Change-Id: I224858ffce50b00273d80f915831ec7789cfa64a
Reviewed-on: https://gerrit.libreoffice.org/48819
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2018-01-29 13:13:40 +01:00
tagezi
42bfd68be7 Removed valueless lines of comments
Additionally, some lines are converted to a format of 110 characters

Change-Id: I7c3fe97f7ebb2530eeb62d0522cd8a8b1c7269e1
Reviewed-on: https://gerrit.libreoffice.org/47121
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-29 13:11:14 +01:00
Johnny_M
d58105e451 Translate German variable name
Korr -> Corr in math

Change-Id: I33c3d0fa62aa0c4b6fd418ba2e49b90b019b8714
Reviewed-on: https://gerrit.libreoffice.org/48782
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-29 12:57:00 +01:00
Johnny_M
2277630190 Translate German variable name
Korr -> Corr in SW

Change-Id: I95836bf9c6211bdf6a215ce9f213d3105b86c8f0
Reviewed-on: https://gerrit.libreoffice.org/48784
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-29 12:56:31 +01:00
Johnny_M
479c13df08 Translate German variable names
Korr -> Corr in SVX

Change-Id: I51311013024557aca1b4b3f660e6c5cef31f3f1b
Reviewed-on: https://gerrit.libreoffice.org/48783
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-29 12:56:04 +01:00
Julien Nabet
eb1bae576b Related tdf#115273: Set NULL
instead of "Set null" to explicit the fact that NULL is a keyword

Change-Id: Iab393ffc1af07d027ef93168c8de58f3635af11c
Reviewed-on: https://gerrit.libreoffice.org/48817
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Jenkins <ci@libreoffice.org>
2018-01-29 12:33:32 +01:00
Stephan Bergmann
13c744e33f Improve code checking for a valid port number
Change-Id: If827ffaee9a2aa861a0746353bdbfd5df1049303
Reviewed-on: https://gerrit.libreoffice.org/48716
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-29 11:00:20 +01:00
Miklos Vajna
4231073282 sw: prefix members of SwExtUserField, SwFileNameField and SwFileNameFieldType
Change-Id: I0722417149c9fbcd2aee3491c841c036a5677c8d
Reviewed-on: https://gerrit.libreoffice.org/48807
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2018-01-29 10:59:03 +01:00
Michael Stahl
88fe1bb839 xmloff: add a comment too
Change-Id: Ic23c36250938009b17f4b916f0d13a097d018a0c
2018-01-29 10:41:37 +01:00
Armin Le Grand
75802ae40a BorderlineFix: Corrected wrong indexing in Array initialization
Change-Id: I4222ef1c82620a05cea9f6db1a0664196cfb3bd4
2018-01-29 10:16:56 +01:00
Armin Le Grand
753b35b27e BorderlineFix: Use svx::frame::Array tooling in Draw/Impress
For creating the needed BorderPrimitives for TableCells for the
Tables used in Draw/Impress, adapt the ViewContactOfTableObj doing
this to use svx::frame::Array tooling now. This will correct the
error for not taking the neighboured connects for merged cells
into account and unify one more space to the same tooling.

Change-Id: I2e6f732985e9b963359f156628bd29ddfec1a80c
2018-01-29 10:16:56 +01:00
Armin Le Grand
c4e6f6cfa1 BorderlineFix: Corrected Draw/Impress TableStyle accesses
In Draw/Impress the indices for accessing the correct
neighbouring TableStyles were wrong and thus created wrong
visualizations, corrected that.

Change-Id: Iebc5f294adb62fa4c6358e2f8c27d29cc3163fbc
2018-01-29 10:16:56 +01:00
Armin Le Grand
9a03edf7f6 BorderlineFix: Fix WriterPaint if scrolling CellTableBorders
Similar to CalcBorders in Writer the overlap regions for
FrameBorders have to be taken into account when repainting the
CellBordes of WriterTables

Change-Id: I488ba158e1de579bfb06b9c8353adaa2cac706c6
2018-01-29 10:16:56 +01:00
Armin Le Grand
07609f3ae2 BorderlineFix: Fixed visual updates when scrolling
For Cells with DoubleLine the connections to perpendicular
DoubleLine-Styles may have to be displayed in a Cell which
is 'around' the orig cell in a Cell-Border of one. To represent
that and to avoid repaint errors when scrolling in, the preparation
of Primitives has to take accordingly more neighbour cells into
account. Tested this change with the usages in Calc, UI (Dialogs)
and Calc exports Print/PrintPreview/PDF. This does not affect
Tables in Writer and/or Draw/Impress.

Change-Id: I3bcc68cdf7b4fc1825a87a9773892c359421024e
2018-01-29 10:16:56 +01:00
Armin Le Grand
c5a3cae896 BorderlineFix: Corrected handling for 'rotated' CellBorders
CellBorders can be rotated (including their Text) and need special
visualization that is based on an own sheared/rotated coordinate
system. Currently only possible for single cells (not merged ones)
and needs to handle all borders (also bottom-right directly in the
rotated cell, not in the neighboured ones to have the geometry,
plus avoiding these in the non-rotated neighbour cells.
Also corrected adding CellRotation data to svx::frame::Array
in calc using SetCellRotations() which now gets called in the
ScOutputData constructor to ensure it gets called in all places
where it is used.

Change-Id: I47bdfc29ba5ca76bbc07d98cb64733f867b1ee20
2018-01-29 10:16:55 +01:00
Armin Le Grand
b28360c66b BorderlineFix: Avoid BorderLines to be too prolonged
For MergedCells there was an effect that the BorderLines
were painted too far in PrintPreview/Print/PDF visualization,
found reason and changed. Checked (hopefully) all usages,
looks good.

Change-Id: I0acf8dcb20548a98533f3ab317ac72c0d0f0a947
2018-01-29 10:16:55 +01:00
Armin Le Grand
8ed06d685b BorderlineFix: Corrected missing borders in print
In Print/PDF/PrintPreview border lines were missing, this
happened for merged cells. It has to do with access to the
involved Styles and/or 'Clip' set (to avoid creating everything).
Thus a 'mixed' usage of cell and merged-cell stuff was needed.
As it turns out support for this is already there, need to use
it.

Change-Id: Ic16085b97eef5c79a4501279432f43491bca350e
2018-01-29 10:16:55 +01:00
Armin Le Grand
71053a36f3 BorderlineFix: Need to redesign Borderline paint for Calc
To fix some errors, need to change svx::frame::Array conversion
to Primitives, especially regarding handling of merged cells.
These make problems in the currtent form where the full extended
merged cell tries to be converted. This is bad for cropped stuff
and also wrong for double-line stuff attaching to a merged cell.
The solution is to handle cells single and merge created primitives
which is more expensive but will work. This will involve special
handling for X-Ed (crossed) and 'roated' Cells. Also need to be
very careful since all this is used in the meantime for all
visualizations of Tables in multiple apps/situations.

Change-Id: If0652a3ba97a6f27dd5d782ea22b1514303f3710
2018-01-29 10:16:55 +01:00
Abhishek Shrivastava
e3e2f6911d tdf#106780 Fix for invalid attribute in impress ODF
This patch fixes the invalid ODF generated in impress.
In tables now the attribute is shown as table:name="default"
instead of "text:style-name".

For strict XML version we only set table:name="default"

For Extended/Compatibility XML we set both text:style-name
and table:name

Change-Id: I894fd31f5f0eed3f77b216b3114b5da53acf1f9f
Reviewed-on: https://gerrit.libreoffice.org/48373
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-29 10:13:47 +01:00
Caolán McNamara
bfc04bc43e ofz#2976 Timeout
Change-Id: Iff085d6bdbbfc7f2c821fdcef8e412aa91152d93
Reviewed-on: https://gerrit.libreoffice.org/48804
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-01-29 09:51:06 +01:00
Szymon Kłos
5426a14e39 tdf#114677 Correct title in Base forms
Change-Id: I07bdb46cce88e876583e1d4217dff3f77f2f3814
Reviewed-on: https://gerrit.libreoffice.org/48801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2018-01-29 09:46:46 +01:00
Stephan Bergmann
7d95908975 Values need not be bounded by sal_uInt16, it appears
since ESelection's nStart/EndPos have been changed to sal_Int32 with
3cbfcee36d "xub_StrLen and tools/string.hxx final
straw".

Change-Id: Icc96355ff71d07cac5d6037c81b2523156384077
Reviewed-on: https://gerrit.libreoffice.org/48773
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-29 08:47:34 +01:00
Jochen Nitschke
f1e910c5ee inline SvxBulletItem::SetDefaultFont_Impl and SetDefaults_Impl
use initializer lists in constructors

Change-Id: Ib3b836ba96046a5f3bca12ea7702247afe8eac3b
Reviewed-on: https://gerrit.libreoffice.org/48803
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:33:32 +01:00
Jochen Nitschke
8010abe4ab clang-tidy modernize-use-equals-default in drawinglayer
Change-Id: I2fbcac7a22a881681bc8b84274e7d39f1cec18bf
Reviewed-on: https://gerrit.libreoffice.org/48800
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:32:42 +01:00
Jochen Nitschke
9eece764a7 remove redundant initialization
Change-Id: I6b6021b8b89c6fdac570432386bdb11b752c66aa
Reviewed-on: https://gerrit.libreoffice.org/48798
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:31:29 +01:00
Chris Sherlock
623a87a3c3 osl: document osl_File_E_NETWORK enum
Change-Id: I4c16ba13820b5cdec03c21a460d3d0ecc7dd86d5
Reviewed-on: https://gerrit.libreoffice.org/48791
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:31:10 +01:00
Noel Grandin
e4c4033177 loplugin:useuniqueptr in SfxMedium_Impl
Change-Id: Iccd03ce2af58c4c3c90add9fc08c27502b5fface
Reviewed-on: https://gerrit.libreoffice.org/48742
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:22:15 +01:00
Noel Grandin
177f92a90a loplugin:useuniqueptr in SfxChildWindow
Change-Id: I6c9db4cd4f46790295f37c620e2efea4f61870bf
Reviewed-on: https://gerrit.libreoffice.org/48741
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:21:40 +01:00
Noel Grandin
53d21a3143 loplugin:useuniqueptr in OCatalog
Change-Id: Ie06456ac8971494f64711cd70fd2b32a4dce719d
Reviewed-on: https://gerrit.libreoffice.org/48740
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:21:16 +01:00
Noel Grandin
97b5bf4a39 loplugin:useuniqueptr in SpellCheckerDispatcher
the call to ClearSvcList() was also unnecessary, the map will get
cleared by the destructor anyway

Change-Id: I24a077143c0cd57b0cfef721169c62f5b283b9c9
Reviewed-on: https://gerrit.libreoffice.org/48739
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:20:58 +01:00
Noel Grandin
03f427793b make memory management more explicit in BaseContext
Change-Id: I3afdfd7b461c6eccc57c23314f992900d14bd7d8
Reviewed-on: https://gerrit.libreoffice.org/48708
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:20:21 +01:00
Noel Grandin
1168956b91 loplugin:useuniqueptr in BaseContent
Change-Id: I03a6942e883b75e86f4ee4e7d01198dada70238f
Reviewed-on: https://gerrit.libreoffice.org/48707
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:19:32 +01:00
Noel Grandin
53d6326bfa loplugin:useuniqueptr in DataSupplier_Impl
Change-Id: Iaa25aee42d59b481a6b6edf015fe57dbd81cfa3e
Reviewed-on: https://gerrit.libreoffice.org/48706
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:19:20 +01:00
Noel Grandin
af3bd4b7d3 loplugin:useuniqueptr in ResultSetBase
Change-Id: If1fca43f953acaa4d16ef6094b6e0e218e5f6307
Reviewed-on: https://gerrit.libreoffice.org/48705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:18:29 +01:00
Noel Grandin
2a0c5702ca loplugin:useuniqueptr in FTPContentProvider
Change-Id: I3b5a53e274a75078534d0b7f783a7d7d107043d8
Reviewed-on: https://gerrit.libreoffice.org/48704
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:17:55 +01:00
Noel Grandin
8a0935a9bc loplugin:useuniqueptr in XResultSet_impl
Change-Id: I2f333d0d0784fc76f6a3b7a6a9e61b82b856afa0
Reviewed-on: https://gerrit.libreoffice.org/48703
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:17:39 +01:00
Noel Grandin
084571ee6c loplugin:useuniqueptr in ModelData_Impl
Change-Id: I66866ed1698fafe59ba31f99df09fb792da410e3
Reviewed-on: https://gerrit.libreoffice.org/48702
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:17:24 +01:00
Noel Grandin
5da6e7d206 loplugin:useuniqueptr in SfxShell_Impl
Change-Id: If59142c2d55da5f3ccf2de101dbd9f18a8bda84c
Reviewed-on: https://gerrit.libreoffice.org/48701
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-29 07:16:54 +01:00