Commit Graph

403477 Commits

Author SHA1 Message Date
Noel Grandin
3c6b7c8b43 loplugin: unnecessary destructor sc
Change-Id: I877bc0927aff7d175c1978fdf3db55d2e048d3b9
Reviewed-on: https://gerrit.libreoffice.org/33510
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-25 08:15:15 +00:00
Noel Grandin
4fabc2347c loplugin: unnecessary destructor scaddins..sdext
Change-Id: I6ae02ad25863ec7e0f780020dbc69c9a99488c24
Reviewed-on: https://gerrit.libreoffice.org/33511
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-25 07:31:25 +00:00
Federico Bassini
92c2c5f62d gbuild-to-ide: moduleDict targets -> all paths replaced with relative
in moduleDict[<module>][<target>] all absolute paths are replaced
with a relative path:
-include/libs relative to core(contained in json) directory
-json objects, makefile, relative to <module> directory

Change-Id: I5dd64942c2a4d6fc2f01037ee7417de91c41906a
Reviewed-on: https://gerrit.libreoffice.org/33506
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-01-25 07:15:23 +00:00
Noel Grandin
96def52140 move GetPosByValue from SfxEnumItemInterface to SfxAllEnumItem
which is it's only use-site

Change-Id: I35943282ad4f5fd5ad297831d63e8abee9a2ddff
2017-01-25 09:10:13 +02:00
Stephan Bergmann
857b403f78 -DOPTIMIZE appears to be unused, since forever
Change-Id: I56c91974a27cf100bc0faa1b009f4bf6358b47f5
2017-01-25 07:58:50 +01:00
Stephan Bergmann
236f69e710 Minor loplugin:stringconstant improvements
Change-Id: I0b39526c0f0854ddbb29e77ece303cf2bdd842c4
2017-01-25 07:58:10 +01:00
Jochen Nitschke
a7ecbbec9e cleanup css includes and using namespaces
Change-Id: I29c3f89c50f858ff4592d0058f15d856de465d77
Reviewed-on: https://gerrit.libreoffice.org/33490
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-25 06:47:36 +00:00
Mike Kaganski
f26bbdb386 tdf#105511: use LO language settings to set default RTF language
... when file containd ansicpg0/cpg0
This allows user to change this setting and get proper document
language. Similar technique is used currently for DXF and WMF.

Change-Id: I884a973d98384c92d45a1d2e19720ffe3e6aa20d
Reviewed-on: https://gerrit.libreoffice.org/33505
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-01-25 06:46:53 +00:00
Stephan Bergmann
999183f7fd Default -ferror-limit=20 doesn't make sense for CompilerTest
Change-Id: Ic535de878c17749cdb2e7a6eadeb27dd2194810e
2017-01-25 07:30:01 +01:00
Takeshi Abe
6d898945d5 Fix typo in comments: relativ -> relative
Change-Id: I58833e503e93b8057f92710c5828bba6cecd4e09
Reviewed-on: https://gerrit.libreoffice.org/33488
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-25 06:05:54 +00:00
Noel Grandin
3cda5ffdda use tools::SvRef in ScSpellDialogChildWindow
since it is a ref-counted object

Change-Id: I14a2c666a8fe8ab0ccb55f91f7573e7d3c8caf47
2017-01-25 07:33:17 +02:00
Noel Grandin
244677ccf7 use rtl::Reference in SwChartDataSequence
instead of storing both a raw pointer and an uno::Reference

Change-Id: I828ad411c989f14a9175ab173f1a4fe75fed535f
2017-01-25 07:33:17 +02:00
Noel Grandin
b4adb0c533 loplugin: unnecessary destructor forms..idlc
Change-Id: I765e0fa61f8134a60e5ea24452c6bbcb3fa8b054
Reviewed-on: https://gerrit.libreoffice.org/33492
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-25 05:20:06 +00:00
Markus Mohrhard
6c98339f75 uitest: some pep8 fixes
Change-Id: Ib889604f1b6d11e874c27fb5d2757a792a687366
2017-01-25 00:35:56 +01:00
Markus Mohrhard
21248f909e uitest: document more UNO helper methods
Change-Id: I941f5ba20a7e3176e8d9f5f64c64ada6551d533a
2017-01-25 00:35:56 +01:00
Federico Bassini
c3580d08a6 gbuild-to-ide: replacement of the code
this patch do 2 things:
1a) create class testide, a duplicate of
VisualStudioIntegrationGeneration to work on it without touch the
real one
1b) place xcodeintegrationgenerator under testide, and under this
last one all of generators that work yet

Change-Id: Ib678134678ed19de9dcd9d1f47e8e7c16ae59f74
Reviewed-on: https://gerrit.libreoffice.org/33495
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2017-01-24 19:39:03 +00:00
Xisco Fauli
efbbf4a795 tdf#105466: Add uitest
Change-Id: I21ba4b716b3b7d2c1c23db816701331ba462b379
Reviewed-on: https://gerrit.libreoffice.org/33494
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-01-24 17:37:40 +00:00
Tor Lillqvist
31e12a9e63 Move two include files to oox/inc as they are used only in oox
Change-Id: Ie13614c1977f45aa8086f4db65ca86b7d9212735
2017-01-24 18:37:56 +02:00
Stephan Bergmann
09768d8ee4 Use proper check for FunctionProtoType
...as at least MSVC SAL_CALL-annotated functions have an AttributeType wrapped
around the FunctionProtoType.

Change-Id: Ic085e2e3649e6b2fc8ca380047133a8edbe20589
2017-01-24 17:30:51 +01:00
Caolán McNamara
e2eaaa8a57 Resolves: tdf#104552 table properties dialog drops previous border color
Change-Id: Ie39ea17fe56cc88efc65f6916aaeb1bd1b77c51f
2017-01-24 16:12:08 +00:00
Noel Grandin
c5df32e5cb loplugin: unnecessary destructor jvmfwk..lotuswordpro
Change-Id: Iaa4f9b178ab265342255066af7fff09f5b33ab37
Reviewed-on: https://gerrit.libreoffice.org/33496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-24 15:56:31 +00:00
Caolán McNamara
d92b12604b tdf#105467 new color widget doesn't support XStringListControl
so this threw and mangled the dialog. New color dialog doesn't need
to be told the name of colors, it figures that out itself.

Change-Id: I89382b6b26312fc90c967620c654ea611cbd9616
2017-01-24 15:49:49 +00:00
Caolán McNamara
e3bd10f8d5 adjust the hide of the zoom so its dynamic on docking/undocking navigators
Change-Id: I525d0abf5618ffc2f614857a29e530f7140c0de7
2017-01-24 15:12:32 +00:00
Caolán McNamara
b37ac48935 Resolves: tdf#105450 calc navigator gets 0 height on toggle off/on when docked
Change-Id: Icd346cdf0a208ccaeddd77e6803f4f906361324c
2017-01-24 15:12:32 +00:00
Caolán McNamara
25a10ae68e add psd fuzzer
Change-Id: I8969e9f5020a6c1957b7f326e5dcca52915ddd4f
2017-01-24 15:12:32 +00:00
Caolán McNamara
ecf852299b coverity#1242895 Untrusted value as argument
Change-Id: I1f0d8aee19d2723861aa70f31176db08299cd9b9
2017-01-24 15:12:32 +00:00
Caolán McNamara
84568fa10a coverity#1399021 Unchecked dynamic_cast
Change-Id: I3befc9be20f8d414ec786f1a94f1f85ce94fb44b
2017-01-24 15:12:32 +00:00
Tor Lillqvist
dda1c7b6fa Drop incorrect "artistic" prefix from some token names
Apparently copy/paste mistakes in the
642a252cf1 and
21d4cfe19e commits from 2014; most of
the picture effect type tokens added in that commit do have names that
start with "artistic" but not all.

Does not break any unit test. (Does not fix the bug I am investigating
either, though.)

Change-Id: I2c3bb7243e1feaa3fa949b58d3acf34825d6987b
2017-01-24 16:57:45 +02:00
Tor Lillqvist
c0ee5231c9 Probably makes more sense to return DONTKNOW if the element is DONTKNOW ...
... and not the namespace token without any element token ORed in.

DONTKNOW is what the two callers look for.

Does not break any unit test. (Does not fix the bug I am investigating
either, though.)

Change-Id: Ibd75ee06797d7b62476d4bf2302338b2bb3266d4
2017-01-24 16:57:03 +02:00
Takeshi Abe
d8aa450396 tdf#105382 Set URL-decoded default filename for minimized presentation
See mailing-list thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076702.html>
for a discussion on the original presentation file's URL.

Change-Id: I51ccd7672513118f39518c4ed21902de16b2298f
Reviewed-on: https://gerrit.libreoffice.org/33261
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-01-24 13:22:37 +00:00
Stephan Bergmann
80cec5faa5 AccStatisticsObject is apparently dead code
Change-Id: I4e04b13538d1242ea38d1400df0ced813171bc5e
2017-01-24 13:37:59 +01:00
Noel Grandin
26f6dadb4f manage SvRefBase-subclass by tools::SvRef in ScXMLTableRowCellContext
ScXMLTableRowCellContext

Change-Id: Ia624e971f31cc517f65b6ae15729476cea091d86
2017-01-24 13:35:19 +02:00
Caolán McNamara
a3fe4ca1b1 just build the hunspell lib, not the rest
might hack around link failures of the hunspell tools under arm

Change-Id: Ib5db702c2898e909e2bb91f4c4bc6b91bd08f47b
2017-01-24 11:22:03 +00:00
Noel Grandin
fe2164949b teach unusedvariablecheck plugin about SfxPoolItem subclasses
which can all be treated as SAL_WARN_UNUSED

The eehtml.cxx change probably fixes some CJK/CTL bug somewhere

Change-Id: I6852129540f316075aee907971ac19418d71dd9a
2017-01-24 13:19:39 +02:00
Noel Grandin
1d7c589d50 loplugin: unnecessary destructor cppcanvas..filter
Change-Id: I009cdd60869a67d210edf879ddb451663a7b8676
Reviewed-on: https://gerrit.libreoffice.org/33491
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-24 11:02:35 +00:00
Caolán McNamara
04e5d7a614 can use memcmp here, for hopefully a little import boost
Change-Id: I5084eff570a66cc2596b400cbb83d1eb24889f0b
2017-01-24 10:17:57 +00:00
Caolán McNamara
a8f67df121 return early
Change-Id: Ic95f968bcd7acdde170a1128a512f03f77e334cf
2017-01-24 09:56:12 +00:00
Stephan Bergmann
d63b767c69 loplugin:useuniqueptr
Change-Id: I502ebf4024cd9b0ee61d58d6b6a8e342c7ceac08
2017-01-24 10:38:23 +01:00
Caolán McNamara
f0b38738d8 Related: tdf#105426 upgrade to hunspell-1.6.0
Change-Id: I275222d1a7d78cbfb1ca046562fc8a3c314b0fae
Reviewed-on: https://gerrit.libreoffice.org/33454
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-24 09:34:16 +00:00
Miklos Vajna
44cb1d16f2 tdf#104334 DOC import: don't map STYLREF with switches to SwChapterField
Commit d635b35184 (tdf#99100 DOC import:
handle subset of STYLEREF natively, 2016-04-06) started to import the
STYLEREF field code as SwChapterField in case it had \[a-z] switches
after the field argument.

The bugdoc has a \s switch, which is not documented in ISO/IEC
29500-1:2012 17.16.5.59 "STYLEREF", nor is really clear what it would
do.

The original use-case was for the " STYLEREF 1 \* MERGEFORMAT " syntax,
so just keep using fieldmarks for the " STYLEREF <field argument> \[a-z]
" case.

Change-Id: Ibd094e72be4e179c779a79a75769b599d4d9bba8
Reviewed-on: https://gerrit.libreoffice.org/33489
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-01-24 09:12:06 +00:00
Caolán McNamara
06202a90d6 coverity#1399266 Uncaught exception
Change-Id: I1066fda2258e6acbbbad23256f815975564e5e61
2017-01-24 09:09:57 +00:00
Caolán McNamara
b13b78a906 coverity#1399552 Unintended sign extension
and

coverity#1399551 Unintended sign extension

Change-Id: Iedf7edf35f8b7985860fc254597776fbc1f561f5
2017-01-24 09:09:57 +00:00
Caolán McNamara
86895c6d30 coverity#1399550 Dereference after null check
Change-Id: I4a1ba212b64c7b561f0c1b1f7f75fe255c8d1415
2017-01-24 09:09:57 +00:00
Stephan Bergmann
635d4b0eb8 Clarify some INetURLObject::setExtension behavior
Change-Id: I1a9e7233b2861a3d09661a08c07d2043c9c0c3c1
2017-01-24 10:07:31 +01:00
Samuel Mehrbrodt
6ebf8368a5 Crashdump: Make crash directory configurable
Change-Id: I8106ec674080ede7072581dab2e6700040de5828
Reviewed-on: https://gerrit.libreoffice.org/33032
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-01-24 08:36:43 +00:00
Noel Grandin
a449e0d242 use rtl::Reference in FastParser
instead of storing both a raw pointer and a uno::Reference

Change-Id: I6b67a6098a3ccdce7e29ee8d601c743897032eaf
2017-01-24 10:26:23 +02:00
Noel Grandin
b1211e965a use rtl::Reference in XFSaxAttrList
instead of storing both a raw pointer and an uno::Reference

Change-Id: I227ac624b03a172e10840c4d1e2c4ca0362b33a4
2017-01-24 07:03:11 +02:00
Noel Grandin
bd281dc6e1 use rtl::Reference in AccessibleBase
instead of storing both a raw pointer and an uno::Reference

Change-Id: I583de7a25893baa65363aa6d3199564f63f4fa60
2017-01-24 07:03:11 +02:00
Noel Grandin
33319078e9 use rtl::Reference in ControllerCommandDispatch
rather than storing both a raw pointer and an uno::Reference

Change-Id: I46496da508689d82211940da765d53378f72fd7a
2017-01-24 07:03:11 +02:00
Noel Grandin
8d611dcc31 use rtl::Reference in ChartModel
instead of storing both a raw pointer and an uno::Reference

Change-Id: I86846c2c756255eb5627a4b1e5144c41865db895
2017-01-24 07:03:11 +02:00