Commit Graph

409034 Commits

Author SHA1 Message Date
Miklos Vajna
e4adb8d9e7 Related: tdf#108269 DOCM filter: reuse oox code for VBA preservation
With this, the project stream import is shared between DOCM and XLSM.

Change-Id: I8fbffefc5acf28adea4875fa6bc4148a99b5ebef
Reviewed-on: https://gerrit.libreoffice.org/38495
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-06-07 14:49:02 +02:00
Varun Dhall
0703af9e78 Exporting EditEngine document into a buffer with ODF Filter
Change-Id: Ib0304de5d873ac833dcc121235b8de494a1bb3bf
Reviewed-on: https://gerrit.libreoffice.org/37999
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-07 14:48:28 +02:00
Eike Rathke
62ef5622dc Reformat an overly long line
Change-Id: I884ba7f3029b00f31438690601da2b7f1a9b3acf
2017-06-07 14:41:22 +02:00
Varun Dhall
223a04e77f EditEngine Exporting flat XML from actual clipboard
Allowing export of EditEngine document into flat XML from actual clipboard
by modifying SotClipboardFormatId

Change-Id: I9c7dfd3ca428d0fa355bd3dfb7bfa0f0e30dada6
Reviewed-on: https://gerrit.libreoffice.org/38226
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-06-07 14:40:08 +02:00
Varun Dhall
33e53bf634 EditEngine: Added ODF_TEXT_FLAT copy for sc
Change-Id: I5e48a6e711f1f7bb5f22b69e2e7c364e4d6edb6b
Reviewed-on: https://gerrit.libreoffice.org/38460
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-06-07 14:33:39 +02:00
Caolán McNamara
cf9a7d8809 fix some .src offsets
Change-Id: I2e36ca50b2141d5d15bd387b38f15e43a9c78343
Reviewed-on: https://gerrit.libreoffice.org/38498
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-07 14:32:12 +02:00
Jens Carl
815324285b tdf#39468 Translate German comments/terms sw/source/filter/html/htmltabw.cxx
Change-Id: Ib2610e701f8c401aff06fb300d8bc13c434958cf
Reviewed-on: https://gerrit.libreoffice.org/38486
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-06-07 14:06:57 +02:00
Stephan Bergmann
c385cf98f1 Fix @since tag
Change-Id: Ic8303d848a551ce1c0da824576a70e148ed3b08f
2017-06-07 14:04:17 +02:00
Stephan Bergmann
9e18e1ed39 Keep list sorted
Change-Id: I4b09c9b2dd8d662a15267378d812013be42d8e69
2017-06-07 14:03:43 +02:00
Stephan Bergmann
a23adf1a19 Make use of OUString::startsWithIgnoreAsciiCase rest parameter
Change-Id: Id5d1df581307ea6eb4e3e634d14ed3dbbe914544
2017-06-07 14:03:13 +02:00
Stephan Bergmann
9417b1132a Make use of OUString::startsWith rest parameter
Change-Id: Ic743bfbf65533bd317e29c8e1482306603b65b0e
2017-06-07 14:02:41 +02:00
Jochen Nitschke
a83740ebcf framework: cleanup xtypeprovider.hxx includes
LayoutManager uses macro impl from comphelper, so use declarations
from comphelper too.

Change-Id: I638492849742782d48c3bb5439c2255e72f9f694
Reviewed-on: https://gerrit.libreoffice.org/38496
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-07 14:00:27 +02:00
Tamas Bunth
cb9be0e492 Replace vcl::SalLayout Release with destructor
Replace SalLayout::Release() with normal destructor mechanism. Release()
uses reference counting for the layout. But in practice, the reference
counting variable is initialized in ctor and is not incremented elsewhere.
So I removed the Release() method and replaced all the Release() calls with
'delete'. It will make easier the use of smart pointers and decrease the
chance of memory leaks.

Change-Id: Ia2e142dea10b87e232d5757d84778e62d87cf081
Reviewed-on: https://gerrit.libreoffice.org/38488
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-06-07 13:52:17 +02:00
Jens Carl
61c3e678f4 tdf#39468 Translate German comments/terms in sw/source/filter/html/swhtml.cxx
Seventh set of translations.

Change-Id: I3bfba60d8915f450f16ac2cecf4dd608a8434e2c
Reviewed-on: https://gerrit.libreoffice.org/38487
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-06-07 13:38:14 +02:00
Thomas Beck
0c745f84df tdf#39468 translate German comments
translated comments in htmlform.cxx and removed unneccessary comments
and overused punctuation marks.

Change-Id: Ie3327ccc0bb3963d0942676b011ab9dcdf078b91
Reviewed-on: https://gerrit.libreoffice.org/38493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-07 13:18:09 +02:00
Michael Stahl
93a41b2053 tdf#108349: fix LanguageType conversions from UNO "short"
The bugdoc uses LANGUAGE_USER_LATIN_VATICAN LanguageType(0x8076).

The UNO API uses signed "short" for these in various interfaces,
and so the LanguageType constructor complains about
out-of-(short)-range values.

Avoid this by deleting the problematic constructor, so that the places
that currently call it with API parameters can be changed to first
cast the parameter to unsigned.

(Yes, we need to write "template<>" twice in a row. Don't ask me why, i
 just work here. sberg says we also need to omit the explict <short>.)

Change-Id: I2443a89bc8d579504fc707ded3d145f9a625597a
Reviewed-on: https://gerrit.libreoffice.org/38473
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-07 12:59:23 +02:00
Stephan Bergmann
26e7cb5ef4 Remove gb_LinkTarget_add_generated_cxxobjects
...in favor of gb_LinkTarget_add_generated_exception_objects.  The former would
have needed any flags to be passed in explicitly (but no call sites did), so
e.g. StaticLibrary_graphite didn't have any debug information (when building
with --enable-debug).  I guess there is no downside to having C++ exception
support enabled in these places, and using _add_generated_cxxobjects instead was
likely an oversight in the first place (at least in the case of
external/graphite/StaticLibrary_graphite.mk, it was that way ever since
1ceb47d96d "graphite: convert to gbuild", but for
no apparent reason).

Change-Id: I9986a6c5ec30a521095dbe5315e5ca649741a790
2017-06-07 12:32:52 +02:00
Xisco Fauli
ed11b38a7e uitest: InsertBreak dialog
Change-Id: Iab997ecedd11167cc079b3c5e3c4308383439448
Reviewed-on: https://gerrit.libreoffice.org/38468
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-07 12:28:44 +02:00
jan Iversen
25a09c8776 iOS, add support for arm64
Added general support for arm64
Removed experimental/prototype from normal build

Change-Id: I832256c72fbd408084bc802440343c874e7e6d28
2017-06-07 12:26:24 +02:00
jan Iversen
1e30c98eec iOS, clean up document types to support.
Icons removed, which will be unused

Change-Id: Ibfd4be71ea3ae22bea8be61f7151312c5864429c
2017-06-07 12:25:51 +02:00
Mike Kaganski
ef117cad3a tdf#108039: check for nullptr in rtl_uString and OUString
rtl_[u]String_newConcat now checks allocation result to return
early and avoid SIGSEGV. Other functions are not modified, to
keep old behavior relying on allocation success and crashing
early on OOM to avoid added overhead in performance-critical
places.

OUString operator+= now checks rtl_uString_newConcat result and
throws std::bad_alloc on failure, to specifically address BASIC
problem. It keeps strong exception guarantee of leaving this'
state unaltered.

Concatenation in BASIC now checks for bad string allocation
(previously SIGSEGV was generated).

Unit test included.

Change-Id: I1513311d3d58eac43b2d2ec9a230e22dff0b4245
Reviewed-on: https://gerrit.libreoffice.org/37965
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-06-07 11:48:57 +02:00
Szymon Kłos
9d1edef89b Watermark: RTF import / export
* "wzName" should contain shape name
* MS Word watermark has text inside the "gtextUNICODE"
  (do not create additional shptxt)

Change-Id: I7929ec83a9219d6087d36ccbf6d7e735acf63722
Reviewed-on: https://gerrit.libreoffice.org/38219
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-06-07 10:35:24 +02:00
Miklos Vajna
f5375d5539 tdf#108123 RTF paste: fix asymmetric shape <-> table manager stack
Make sure that even if the text append stack is empty (and we return
early) the table manager push/pop operations are in sync with the shape
start/end, otherwise we'll have an empty table manager stack.

That is a problem as
writerfilter::dmapper::DomainMapper_Impl::getTableManager() assumes that
it always has at least one element.

Change-Id: I92b3381e820bc8eaeb351532a6ce8909490c0f30
Reviewed-on: https://gerrit.libreoffice.org/38490
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-06-07 10:33:01 +02:00
Xisco Fauli
dcd407d522 uitest: Combine all table tests in one file
Change-Id: Ief374a02eabed4587874cb6182742ae86c084d62
Reviewed-on: https://gerrit.libreoffice.org/38474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-07 10:25:29 +02:00
Jochen Nitschke
78628cd384 sal: use thread safe local static in getInternMutex
Change-Id: Iac7ca87e05228f3a2a187646496869a8b1bff602
Reviewed-on: https://gerrit.libreoffice.org/38436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-07 09:05:41 +02:00
Julien Nabet
8a400cfa46 tdf#98888: mediawiki inserts redundant emptylines in <ref>
There's a newline in case of heading, table or bibliography following text:p
ok but only if we're not in text:note node

Change-Id: I71172751a51e29abdd770e758d27b1bc8f15cb0d
Reviewed-on: https://gerrit.libreoffice.org/38470
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-06-07 07:13:54 +02:00
Justin Luth
9d6bf9d45d tdf#74177 writer: ignoring comment allows number recognition
The presence of an annotation anchor was causing number recognition
to fail in Writer's table cells. Formulas accessing the cell
read a value of zero.

Annotation anchors are only used in SW right now, so SVL didn't
want the overhead in their code. So this wrapper function should
be called first to cleanup SW specific things that interfere
with number recognition.  Specifically known to be needed in
cellfml.cxx, but converted everywhere for consistency.

The formula in older documents is not "fixed" during document loading
since the table/formulas are not refreshed at load time.
Only documents saved with incorrect results will notice this,
and any cursor access inside the table will cause a refresh.
Printing also causes a refresh (but not print preview or PDF export).

So this patch only fixes document creation or modification, which
should be adequate for this bug.

Change-Id: Ib46f2b7899ae9a0fdc3aae5887bb2d61535d29f3
Reviewed-on: https://gerrit.libreoffice.org/32909
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2017-06-07 06:53:41 +02:00
Krunoslav Šebetić
d4721434d8 Updated core
Project: dictionaries  c1631744a57759f139a94884191dd29facca795a

Update Croatian dictionary to 2.1

Change-Id: I3a9e87d53caf3e5bfe3e4ef6f1096d7635ff6ff1
Reviewed-on: https://gerrit.libreoffice.org/36552
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-06-07 05:54:05 +02:00
Christian Lohmaier
1f66f410a7 Updated core
Project: translations  633cd820822ba89da7d410cf8bed009c2ffd3d47

update translations for 5.4.0 Beta2

and force-fix errors using pocheck

Change-Id: I6d5e3a4c3d81bc5d1f7e324ddc4387b2228fdd3e
2017-06-07 04:31:32 +02:00
Katarina Behrens
28ae89f465 gpg4libre: add 'Start certificate manager' button
Change-Id: Ief3239fd1b3ff1f4e2e95e4413aa9f707f3dfb50
Reviewed-on: https://gerrit.libreoffice.org/36689
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-06-07 03:11:19 +02:00
Eike Rathke
59c9d0653c Perf-sc: tdf#100709 Use a "one and a half" alloc strategy for ScMarkArray
ScMarkArray::SetMarkArea()
before, Ir:   3 059 572 314
 after, Ir:   1 195 743 815

ScDocShell::Load()
before, Ir:  17 337 645 368
 after, Ir:  15 497 093 406

Change-Id: I83959f0dfcf6480781a44b5cfc36242a5c35ebd4
2017-06-07 00:50:54 +02:00
Markus Mohrhard
90a286ad4e make check on linux includes now uicheck
Change-Id: I4760fc80ca2ca4a2496cb1a8bf3c3d1348ee0e77
Reviewed-on: https://gerrit.libreoffice.org/38461
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-06-06 23:11:26 +02:00
Caolán McNamara
3408497c6a something not right with qpwfuzzer depends, disable for now
Change-Id: I0aadbd552d1ba4a64daddba5bfcb3d6ffe534488
2017-06-06 21:05:27 +01:00
Caolán McNamara
cc3812dccd coverity#1371243 Missing move assignment operator
Change-Id: Idbd8b87d1336105cc34054277ae492077d86e8c9
Reviewed-on: https://gerrit.libreoffice.org/38453
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-06 21:37:02 +02:00
Caolán McNamara
e4008dc0c3 first arg of ApplyBlockFrame is never null
Change-Id: Ie65fce6041278c6758df266c4ef097a5758f75dd
Reviewed-on: https://gerrit.libreoffice.org/38448
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-06 21:36:47 +02:00
Caolán McNamara
9b56acd6ca nullptr never passed to ApplyFrameAreaTab
Change-Id: Iece6c99b6414eb2701af61a64d0ff80f52a0379d
2017-06-06 20:34:00 +01:00
Jochen Nitschke
cbcaff7510 ucb: replace double checked locking patterns
with thread safe local statics
and prefix statics

Change-Id: Iaa7c9056847f75612d6cf6c6e44d3896fca734de
Reviewed-on: https://gerrit.libreoffice.org/38433
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-06 20:58:18 +02:00
Eike Rathke
ca8a4a7abc Eliminate dynamic_cast<const SfxVoidItem*>, use SfxPoolItem::IsVoidItem()
Change-Id: I09dafffd64dd107e802d016494d884f32363521a
2017-06-06 20:57:45 +02:00
Eike Rathke
f300a627b9 Perf-sc: tdf#100709 SfxPoolItem::IsVoidItem() instead of dynamic_cast
SfxItemSet::GetItemState()
before, Ir:  4 048 231 416
 after, Ir:  2 577 117 709

Change-Id: I26d8b91ad5d851011a670b38b7b98e5582c319cf
2017-06-06 20:53:47 +02:00
Tor Lillqvist
c2b256084b Partial start of separating the iterator out from FormulaTokenArray
The plan is to drop the iterator functionality from FormulaTokenArray
and instead use separate iterator objects. This will make
parallelising code that uses these data structures easier. I call the
new separate iterator class FormulaTokenArrayPlainIterator for now,
feel free to come up with a better name.

No change to what code actually gets run yet, so yeah, this adds
"unused" code.

Change-Id: Ie86f80529354174f0ce8bde1085a54bc6c5ac67b
2017-06-06 21:11:41 +03:00
jan Iversen
8d998ae06a iOS added all known document types.
Update Info.plist to contain the same document types as
used for osX

Change-Id: I3338ca0159c39ef8bd31466e3d9b9a73808b86b8
2017-06-06 18:24:48 +02:00
jan Iversen
c92428d163 iOS, updated icon sets
Added icons for all file types, and updated
app to prepare for Document picker.

Change-Id: I235716b57584f42904c30c23ade05479aeec130e
2017-06-06 18:24:23 +02:00
Caolán McNamara
c2b8e87e6b 2nd arg of ApplySelectionFrame is always not null
Change-Id: I50a5c9c3f0f2b7424fa1b9b27ceeee9ae9348413
2017-06-06 16:59:42 +01:00
Michael Stahl
440ac656f7 msc-externals: Package msvc_dlls only necessary in 32-bit builds
In 64-bit builds the 64-bit runtimes are installed as MSM so this hack
isn't needed there.

Change-Id: Id609d2beaa3de1176138bc206210820397a8b732
2017-06-06 17:30:35 +02:00
Caolán McNamara
44f4ebc032 coverity#1412032 ApplyPatternLines always passed non-null 2nd arg
Change-Id: Ibf1754682a0d586a377709b8dacee1260a1f2ee1
Reviewed-on: https://gerrit.libreoffice.org/38445
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-06 17:13:00 +02:00
Mike Kaganski
dd1ba90f60 tdf#104450: Use Calibri; let LO to fallback to Carlito
Using Calibri will allow to keep originally intended font
on round-trip. If Calibri is absent on a system, LO will
fallback to Carlito for rendering, but keep original font
intact.

Change-Id: I8f29bed29bc7f48912b2637053ff128ea904c7a1
Reviewed-on: https://gerrit.libreoffice.org/38456
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-06-06 17:03:56 +02:00
Juergen Funk
6ca3b3648e tdf#106942 Wrong message when lock file is empty or corrupt
1. Erase empty or corrupt lockfile, when reading it fails and
   skip "Locked Document Dialog" in that case
2. Show Dialog (use LockFileIgnoreRequest -> LockFailedQueryBox)
   when create lock file is not possible.
   Two Dialogs:  "lock file create error" and
                 "empty lockfile is present"
   Set the document to read-only when creating lockfile is not
   possible. If lockfile is corrupt or empty, inform the user.
   They can interrupt loading the document or open it read-only,
   which also erases the corrupt lock file after closing
   the document
3. Handling for the two Dialogs
   Use LockFileIgnoreRequst for create lockfile error and
   add a new LockFileCorruptRequest, (lock file is corrupt).
   Change and generate new messages for both dialogs in english

Change-Id: I35c377f85b5113e8ffb89d83b9544b8ebc81d89f
Reviewed-on: https://gerrit.libreoffice.org/36658
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-06-06 15:58:02 +02:00
Caolán McNamara
cab3468e96 use member initialization list
Change-Id: Iedfc255306428a4354bb73a67da4f93c714e7817
2017-06-06 14:27:11 +01:00
Mike Kaganski
5471a5585c tdf#108350: Use Carlito for DOCX import by default
In OOXML (i.e. Word since 2007), the default document font is Calibri
11 pt. If a document doesn't contain font information, we should assume
our metric-compatible equivalent Carlito to provide best layout match.

A unit test included.

An existing unit test (testN766487) was corrected to match the font
size that Word uses (11; was 12 which doesn't match Word's size).

Change-Id: I3040f235696282dc7a124cd83fb34a6d95a29a17
Reviewed-on: https://gerrit.libreoffice.org/38421
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-06-06 15:17:15 +02:00
David Tardon
581f748e1e fst::flat_segment_iterator only exists since mdds 1.2.3
Change-Id: Ica15e67f84d18e183990aecc3bcee2d4d28042ff
2017-06-06 15:11:27 +02:00