100 Commits
Author SHA1 Message Date
Miklos Vajna d8cca1c372 starmath: create XMLImporter instances with an uno constructor
Change-Id: I96623f6d87ec2f380b37a2de51a089e0a4d59136
Reviewed-on: https://gerrit.libreoffice.org/63134
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-09 08:42:02 +01:00
Miklos Vajna c3aef7a8e3 Revert "lok: calc: fix needed when position caching is disabled"
This reverts commit 4cee8ccc2c partially,
which set the dictionaries submodule by accident.

Change-Id: I798daaf5bf7a494880a2cd07820bccc4e23117e5
2018-11-08 14:45:19 +01:00
Miklos Vajna e5542a8c3d xmlsec: replace patch with specifying NSPR/NSS_CFLAGS/LIBS
Change-Id: I386ead3e61a3162c1c4605d2f65ad23a6487389f
Reviewed-on: https://gerrit.libreoffice.org/63046
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-08 09:14:52 +01:00
Miklos Vajna 924f01fdef oox smartart, table list: fix too large width of children
It's possible all children request 100% of space, need to scale down in
that case. This means that children other than the first one is now
readable in the layout result.

Change-Id: I86a05cd77510bbb6686a53e33f13a60034c8e8f6
Reviewed-on: https://gerrit.libreoffice.org/63037
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-11-07 19:36:12 +01:00
Miklos Vajna fe83001574 embeddedobj win32: avoid owning a lock while calling out to event listeners
The deadlock happens from time to time, when converting documents
containing OLE objects via remote UNO (from Java) -- after the
conversion, when closing the document.

The relevant stacktraces are:

>Debug.ListCallStack /ShowLineOffset /AllThreads
Callstack for Thread 8 (Thread Id: 32912 (0x8090)):
...
 6      sal3.dll!osl_acquireMutex(_oslMutexImpl * Mutex) Line 75
 7      [Inline Frame] emboleobj.dll!osl::Mutex::acquire() Line 56
 8      [Inline Frame] emboleobj.dll!osl::Guard<osl::Mutex>::{ctor}(osl::Mutex &) Line 129
 9      emboleobj.dll!OleComponent::OnClose_Impl() Line 1399
 10     emboleobj.dll!OleWrapperAdviseSink::OnClose() Line 119

Callstack for Thread 11 (Thread Id: 21088 (0x5260)):
...
 11     ole32.dll!00007fffc5e44e83()
 12     [Inline Frame] emboleobj.dll!OleComponent::CloseObject() Line 1012
 13     emboleobj.dll!OleComponent::Dispose() Line 484
 14     emboleobj.dll!OleComponent::close(unsigned char bDeliverOwnership) Line 1463
 15     emboleobj.dll!OleEmbeddedObject::GetRidOfComponent() Line 239
 16     emboleobj.dll!OleEmbeddedObject::Dispose() Line 275
 17     emboleobj.dll!OleEmbeddedObject::close(unsigned char bDeliverOwnership) Line 497
...
 26     swlo.dll!SwXTextDocument::close(unsigned char bDeliverOwnership) Line 617

OleComponent::OnClose_Impl() taking a lock is fine, but
OleComponent::close() takes a lock and then later it still calls out
(via OleComponent::CloseObject()), which is a no-go.

Fix the problem by making sure that callers of Dispose() own no lock at
the time of the function call, and taking the lock in Dispose() only
after the CloseObject() call (which invokes event listeners).

Change-Id: I53befee21478188c7f79723b7d7596e66077d1c2
Reviewed-on: https://gerrit.libreoffice.org/63014
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-07 17:32:33 +01:00
Miklos Vajna edbb7a39c7 tdf#117137 sw: add testcase for this DOCX import bug
Fails with commit ac27f4e7ab (tdf#117137:
DOCX import: don't try to set grab-bag as UNO prop, 2018-04-21)
reverted.

Change-Id: Ice5f9831234ba7ba72a730ea6e33648a339a2a88
Reviewed-on: https://gerrit.libreoffice.org/62998
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-11-07 14:55:44 +01:00
Miklos Vajna caec23449a CppunitTest_sfx2_misc: use CPPUNIT_TEST_FIXTURE()
Allows not spelling out the test names 3 times.

Change-Id: I394bd4c796cb2bc65cacd9f61bd37162db48a810
Reviewed-on: https://gerrit.libreoffice.org/62976
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-07 13:13:32 +01:00
Miklos Vajna 20f84aa139 unotest: backport CPPUNIT_TEST_FIXTURE macro from cppunit.git
Added upstream as
<https://cgit.freedesktop.org/libreoffice/cppunit/commit/?id=48145587c4c2dc4f1e07d83073e136336c81ce79>.

Change-Id: If3adbad3187e3d2b4319be7b295b41d5b7e9c08d
Reviewed-on: https://gerrit.libreoffice.org/62975
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-07 13:13:15 +01:00
Miklos Vajna e83c1f0ef9 tdf#120515 ODT filter: relax layout requirement before export
This reverts commit 343af46fc3 (ODT
filter: make sure we have a layout before export, 2017-11-29) as it
causes a performance problem with large documents (see bugreport).

I added it initially for the EPUB export, but there this is no longer
needed as commit 3ed8466b55 (EPUB export,
fixed layout: switch to a metafile-based approach, 2017-12-01) switched
to the better metafile-based approach.

Change-Id: Ie404e23db77b8ded1d29f42b6279a3cd06a574b5
Reviewed-on: https://gerrit.libreoffice.org/62924
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-06 09:12:23 +01:00
Miklos Vajna f051e54ab8 sw: prefix members of HTMLAttr
Change-Id: I9f87913ce537e634f8c10ddfee59002293c1fc3f
Reviewed-on: https://gerrit.libreoffice.org/62872
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-11-05 10:09:08 +01:00
Miklos Vajna e49c42d17f oox smartart, vertical bracket list: fix node counter condition
The visible effect of this was that the 2nd level text nodes were
missing from the layout result.

The cause is that when it comes to counting nodes of a condition, we
assumed that the current layout node is a presentation of a model node,
but this is not necessarily true.

Fix the problem doing a "first presentation child of", then a "presentation
of" navigation in that case, which leads us to the correct model node,
so counting its children works.

(An alternative way of getting non-zero children would be a
"presentation parent of" navigation, followed by a "presentation of"
navigation, but that would lead us to the document root, so we would
count the number of 1st level elements, not the correct 2nd level
elements.)

Change-Id: Iccebe0e2e56b7acb7fbe2c38a7c9ebb2abb309b9
Reviewed-on: https://gerrit.libreoffice.org/62703
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-11-01 07:36:08 +01:00
Miklos Vajna f4818faf83 oox: remove dead QuickDiagrammingLayout
This would create a com.sun.star.drawing.DiagramShape, and work with
that, but nobody implements such a service.

Change-Id: Iaaed3ace95d86e52ba50e059ab89698197709189
Reviewed-on: https://gerrit.libreoffice.org/62671
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-31 09:00:22 +01:00
Miklos Vajna 42cbd5aa43 sw: turn on clang-format for docxtablestyleexport
This had (consistent) manual formatting before, but recently I broke it.

Change-Id: Ifd925797c5599aa55852b2e2fb7d16c5812cd159
Reviewed-on: https://gerrit.libreoffice.org/62673
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-31 09:00:10 +01:00
Miklos Vajna 4fa9e6f7f8 svtools: fix up misleading indentation
The intention was to only conditionally warn. Thanks Noel for spotting
my mistake.

Change-Id: Iaa035dba1f834c13a179ef66c3f39777f3843bdb
Reviewed-on: https://gerrit.libreoffice.org/62641
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-30 23:06:37 +01:00
Miklos Vajna d8469be467 oox: missing <vector> include
Change-Id: Ib0808750854c1d59f8d208dbbe4e95045ceb56d0
2018-10-30 18:14:55 +01:00
Miklos Vajna 8780fa41dc svtools: fix lost replacement grpahic when updating it via OLE fails
How to reproduce the problem:

1) Create an ODT file which has an OLE object, where the native data i
an OLE2 container, containing a Package stream, containing a DOCX file.

2) Install some external application on Windows which registers itself
as a handler for the DOCX CSLID [ this is where writing a testcase for
this bug is challenging ].

3) Load the ODT file in hidden mode, e.g. connect to a

 ./soffice "--accept=socket,host=localhost,port=9999;urp;StarOffice.ServiceManager"

process from remote Java, load the file with Hidden=true in the
Arguments parameter of loadComponentFromURL().

4) Save it in a format that reads the replacement graphic of OLE
objects, like HTML or DOC.

Expected result: the replacement graphic is there.

Actual result: the <img> tag has no src attribute (HTML case).

The root cause is that in case the document is loaded in hidden mode
then the IDataObject::GetData() call in OleComponent::getTransferData()
fails, so the OLE objects enters a state where it no longer has its old
replacement graphic, but it doesn't have a new one, either.

Fix the problem by making this update more transactional in
svt::EmbeddedObjectRef::GetReplacement(), so the "document conversion"
scenario (load in one format in hidden frame, save in other format)
works.

Change-Id: I624c372baea56a85fb949bd99046f3af1f258c36
Reviewed-on: https://gerrit.libreoffice.org/62549
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-30 13:52:23 +01:00
Miklos Vajna f3a40a66e3 sw: make members of DocxTableStyleExport::Impl private
Change-Id: I1d2a1ac7c651a706e4ef03d04df4222d4e2aaba5
Reviewed-on: https://gerrit.libreoffice.org/62525
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-30 08:38:17 +01:00
Miklos Vajna 9630a2dfc7 external: upgrade libxmlsec to 1.2.27
Allows dropping 3 upstreamed patches.

Change-Id: I0dd739817b507eb5993ad18e8c4a128e0be7254a
Reviewed-on: https://gerrit.libreoffice.org/62526
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-30 08:38:05 +01:00
Miklos Vajna 19a0698079 tdf#120735 sw: clear the font cache text glyphs when layout finished
The motivation for remembering the text glyphs was to avoid repeated layout
calls during one sw layout run, this still preserves that optimization.

Approximate numbers for memory usage after importing the bugdoc finished:

- old: 401MB

- new 366MB (91% of baseline)

Change-Id: Ie960c606a8246c9c696745b2dcc9a49c3c570c07
Reviewed-on: https://gerrit.libreoffice.org/62496
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-29 11:11:21 +01:00
Miklos Vajna e503ed2c53 sw: prefix members of SwExtraPainter
Change-Id: I90a2f05d40f79c005bec6b4bdb42cc6603521a80
Reviewed-on: https://gerrit.libreoffice.org/62495
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-29 10:30:10 +01:00
Miklos Vajna 397b64afc6 oox smartart, linear layout: take horizontal position from constraints
Both horizontal size and position looks sane now.

Change-Id: I6f040e4f0ff49be74420fafc4bcc5e899b6e94f7
Reviewed-on: https://gerrit.libreoffice.org/62397
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-26 19:08:26 +02:00
Miklos Vajna b083b08081 oox smartart, linear layout: take width from constraints
Finally the "parent text" of the test document now has correct width.

Change-Id: I05c552dda66ad91f19cfc335b464549920269f69
Reviewed-on: https://gerrit.libreoffice.org/62395
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-26 17:45:39 +02:00
Miklos Vajna 8a678b1f51 oox: remove dead QuickDiagrammingImport
This would create a com.sun.star.drawing.DiagramShape, and work with
that, but nobody implements such a service.

Change-Id: I32a63dd258a5f168e37c5926a832dadd45c2b179
Reviewed-on: https://gerrit.libreoffice.org/62371
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-26 09:03:23 +02:00
Miklos Vajna 923061d17d oox smartart: work towards accessing parent constraints
The "Vertical Box List" preset in PowerPoint contains two linear
layouts, the inner one nested in the outer one. All the constraints are
stated on the parent layout. This commit doesn't actually read those
constraints yet, but adds infrastructure to look up parents of layout
nodes and also to get the constraints of a layout node.

No functional changes intended.

Change-Id: If844d17a90f8f180a9d21245249a2744bea32b31
Reviewed-on: https://gerrit.libreoffice.org/62367
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-25 20:00:28 +02:00
Miklos Vajna 094e7b6a10 sw HTML import: avoid custom default page style in reqif mode
Would be "HTML" by default, but reqif-html is mostly very simple
documents and the custom page styles is unexpected.

Change-Id: I3f1b293bcd074305cf5cc87f03248e934d5fac4d
Reviewed-on: https://gerrit.libreoffice.org/62317
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-25 16:47:19 +02:00
Miklos Vajna 5af5242516 sw: fix some IWYU warnings
Change-Id: Ic7e6aa31e5c6d210101da7223a294092ab5b7481
Reviewed-on: https://gerrit.libreoffice.org/62334
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-25 11:22:21 +02:00
Miklos Vajna 8160d5db20 vcl: use default member initializer for PDFElement
Less code and other classes in the same header already do this.

Change-Id: I8a64cabcdb4b95acb7e2f55ec371568702d9c331
Reviewed-on: https://gerrit.libreoffice.org/62333
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-25 09:04:24 +02:00
Miklos Vajna 548e60a8c4 tdf#120491 EPUB export: fix IngramSpark validator error
Change-Id: I7b6d2217525dbf2e8c9c78a14ea7601c4170857a
Reviewed-on: https://gerrit.libreoffice.org/62267
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-24 12:43:25 +02:00
Miklos Vajna 808ba7c15c sw: prefix remaining members of SwIndexMarkPane
Change-Id: I60e66fe3f92c5952172323ec2d4b0dda1f2ab5f1
Reviewed-on: https://gerrit.libreoffice.org/62266
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-24 11:01:50 +02:00
Miklos Vajna b61d278427 oox smartart: fix width of shapes with agl=lin, linDir=fromT
Smaller width only makes sense in the fromL/fromR cases, I think.

Change-Id: I21c643b90556e47593b62abc2466e808d1ef31e5
Reviewed-on: https://gerrit.libreoffice.org/62024
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-19 21:34:07 +02:00
Miklos Vajna 71fcb90fb7 oox WpsContext: bTextFrame is always false
Since commit d379d18666 (oox: import WPS
shape with text as shape with textbox, 2014-06-18).

Change-Id: I5cc1f9938a2c091c868e6e1572e7ae35e87109a7
Reviewed-on: https://gerrit.libreoffice.org/62016
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-19 21:20:41 +02:00
Miklos Vajna 95ed72a4cd sw: create SwUnoModule instances with an uno constructor
Change-Id: If05d773d6823833ef075484807bf427dcc2c1426
Reviewed-on: https://gerrit.libreoffice.org/61955
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-19 08:14:06 +02:00
Miklos Vajna a7e86beb00 oox: ignore SmartArt "fallback" with empty shape list
This way at least something shows up in the import result. Far from
perfect, though.

Change-Id: Iae5a073d458598e7b5059ebdf435d50ce7c7df80
Reviewed-on: https://gerrit.libreoffice.org/61925
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-18 17:51:00 +02:00
Miklos Vajna 181a1b36ac xmlsecurity: avoid repeated manual calls to PORT_FreeArena()
Change-Id: Id62a894b08e6221c858304d7cb198a5a3f0cbd43
Reviewed-on: https://gerrit.libreoffice.org/61893
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-18 09:13:53 +02:00
Miklos Vajna 4fb3e08a9a oox: add an environment variable to bypass the SmartArt warning
That dialog is counter-productive if you develop that feature itself.

Change-Id: Ia635a2ff0ecc29a0d11be5c621a7c2a76469f9ba
Reviewed-on: https://gerrit.libreoffice.org/61880
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-17 21:19:37 +02:00
Miklos Vajna a463287a3b sw, writerfilter: avoid some unnecessary value parameters
Change-Id: I409eb644bdf519e097c87911b90f83c5ecd913ee
Reviewed-on: https://gerrit.libreoffice.org/61853
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-17 10:51:04 +02:00
Miklos Vajna c081264c84 pep8 -> pycodestyle
To silence this warning:

/usr/lib/python3.6/site-packages/pycodestyle.py:2190: UserWarning: [pep8] section is deprecated. Use [pycodestyle].
  warnings.warn('[pep8] section is deprecated. Use [pycodestyle].')

Change-Id: I0a2f9b266562a797d1625b3c50261e7e43315fb7
Reviewed-on: https://gerrit.libreoffice.org/61827
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-16 14:29:06 +02:00
Miklos Vajna 2b920bdc12 tdf#112520 RTF export: write ZOrder only for toplevel shapes
RTF export at the moment exports children of group shapes as a flat
shape list. This means that the order inside the group shape is not
relevant for the toplevel ZOrder, so just don't write it.

Change-Id: I870707cb28c2f177c0e5d9cf5328260e76b661f3
Reviewed-on: https://gerrit.libreoffice.org/61805
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-16 09:02:46 +02:00
Miklos Vajna 8e3814fd78 sw: prefix members of SwTableRep
Change-Id: Ib5c35ba6e53f70df8fe6dbcaf189590c754bb3cb
Reviewed-on: https://gerrit.libreoffice.org/61773
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-15 10:40:42 +02:00
Miklos Vajna c7b83934fc tdf#119992 sw: compare sub-strings in SwTextGlyphsKey comparison
Time till the layout reaches idle, before:

77.412 seconds

After:

26.221 seconds (33% of baseline) for me.

Change-Id: Idd0c5255070c836fde2fb048b02c851f5f2321e4
Reviewed-on: https://gerrit.libreoffice.org/61724
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-12 20:38:31 +02:00
Miklos Vajna b6137b659e sw: create DocxExport instances with an uno constructor
Change-Id: I34e674e4f3225e724fd9ed6d513fb66c2d5ebdd9
Reviewed-on: https://gerrit.libreoffice.org/61696
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-12 09:08:45 +02:00
Miklos Vajna e4c7f31cf9 xmlsec: replace xmlsec1-vc.patch.1 with backport
Change-Id: I2d40b1512420b5601c0ea6db42f319caf7c4170f
Reviewed-on: https://gerrit.libreoffice.org/61634
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-11 09:11:20 +02:00
Miklos Vajna 87e3539d69 pdfium: remove not needed FPDFImageObj_GetBitmapBgra() patch
Last usage was removed in commit
45c753aff6 (svx: pdfium's
FPDFImageObj_GetBitmapBgra() is not needed after all, 2018-09-28).

Change-Id: I2412fa24859ad5bcd3ced634d3c4f41d2f35aebe
Reviewed-on: https://gerrit.libreoffice.org/61599
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-10 09:00:29 +02:00
Miklos Vajna 5da57ff00b tdf#119993 sw: clear the font cache text glyphs on table col change
This helps not storing pre-computed vcl text layouts which are most
probably never re-used anymore.

Approximate numbers for memory usage with 10 column resizes for the
bugdoc:

- old: 310MB -> 454MB

- new: 309MB -> 310MB

Change-Id: Ifb88b88e1bffe2c2670089930fc2d22ff19576ce
Reviewed-on: https://gerrit.libreoffice.org/61562
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-09 09:24:52 +02:00
Miklos Vajna e056e30f82 compilerplugins: the useuniqueptr clang plugin test fails on 5.0.1
I'm not sure what is the first version that passes it, let's go with 6.0
for now.

Change-Id: I7a150fbc2a722a6a47d91de4b00893303add5cc8
2018-10-08 12:31:17 +02:00
Miklos Vajna cb9ba1c2d0 Related: tdf#120287 sw layout, TabOverMargin: fix left margin handling
The old code only worked when left and first margin was 0; feed the
relevant margin to SwTextFormatInfo, so SwTextFormatInfo::GetLineWidth()
can compare against the right rectangle.

This way TabOverMargin compat flag results in layout that matches the
Word behavior for all 3 bugdocs from the bugreport.

Change-Id: I6f81ad33b14e95ba4213c8956b3a9790ba6eee84
Reviewed-on: https://gerrit.libreoffice.org/61518
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-08 12:09:02 +02:00
Miklos Vajna 4854acc792 sw: prefix members of SwUndoTableNdsChg
Change-Id: I70c6a0c9ff6306ba3c703028a732626fd92ad378
Reviewed-on: https://gerrit.libreoffice.org/61515
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-08 11:15:54 +02:00
Miklos Vajna cb2f30897c Related: tdf#120287 sw layout, TabOverMargin: fix too wide tab portion
What happened is:

- the paragraph was split into two lines, at the correct position

- but then the first line checked how wide the tab portion can be, and
  there it concluded that it has a lot of space, so the tab portion was
  1418 twips wide, instead of the expected "almost zero" 69

The root of the problem was that first the text break was determined
using the TabOverMargin rules (more horizontal space), but later a check
validated the result ignoring the TabOverMargin flag (less horizontal
space). Fix this inconsistency by using GetLineWidth() in
SwTextPortion::Format_() instead of manual calculation.

Change-Id: Iaa7144341dfeaa8d177716dd87165598f11fd573
Reviewed-on: https://gerrit.libreoffice.org/61403
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-05 13:28:20 +02:00
Miklos Vajna 63a29bd44d sw: create RtfExport instances with an uno constructor
Change-Id: I08cbfa2b9ccc7bc1c5d1ebeb9e06238472b2fa26
Reviewed-on: https://gerrit.libreoffice.org/61393
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-05 10:27:44 +02:00
Miklos Vajna 54204d53eb tdf#120287 sw layout, TabOverMargin: imply PrinterIndependentLayout=high-res
In case an ODT document has the usual layout compat flags enabled (by
the DOC/DOCX/RTF imports) to emulate Word behavior, then it's expected
that Word will lay out the resulting ODT document similar to Writer.

This works most of the time, but in case exact spacing matters, it's
important that PrinterIndependentLayout is not disabled, as that doesn't
match the Word default and will result in mismatching Writer vs Word
layout.

Change-Id: I0fbe110a6417ffa5d919fb81236a60bfa1fc30f5
Reviewed-on: https://gerrit.libreoffice.org/61352
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-04 13:29:36 +02:00
Miklos Vajna 32dfaf1e23 xmlsecurity nss: avoid deleting the dsig context manually
Change-Id: I0198c1b0d6ba6c27072376943895718d536a284c
Reviewed-on: https://gerrit.libreoffice.org/61323
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-04 09:06:16 +02:00
Miklos Vajna 2b402bbd34 writerfilter: pass these by value and use std::move()
Change-Id: I9a763eacf8887230ba5d88ac69cb13d0cfb1a7ee
Reviewed-on: https://gerrit.libreoffice.org/61274
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-03 09:06:19 +02:00
Miklos Vajna 800bf1071a Related: tdf#120028 PPTX import: fix font color of multi-col shape text
Not just font color, anything defined via list styles were not imported.

Change-Id: I95e6fc52e30a09ff93fb55d0836e45e177a7b099
Reviewed-on: https://gerrit.libreoffice.org/61230
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-02 12:34:16 +02:00
Miklos Vajna 616fd24183 tdf#115262 sc: fix cumulative placement error of images
Commit 708d1c5ab2 (sc lok: emit
RowColumnHeader info in twips, 2015-11-02) improved precision of the
twip -> pixel conversion ratio, but ignored the detail that limited
precision used to silence cumulative errors that appear with larger
precision.

The original use-case was better precision of row/column headers for the
LOK API, so keep that as-is, but go back to the original behavior on the
desktop.

Change-Id: Ide169ab1745a9a9299caf3334559884ff7223cbe
Reviewed-on: https://gerrit.libreoffice.org/61219
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-02 09:03:28 +02:00
Miklos Vajna 72f30d79bc sw: prefix members of SwSetExpField / SwSetExpFieldType
Change-Id: I63327930ba5b082bcd82fa107b6c9c73b3b6e627
Reviewed-on: https://gerrit.libreoffice.org/61175
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-10-01 16:55:14 +02:00
Miklos Vajna 35aafd712b sw layout-level redline hiding: add more doxygen documentation
Thanks Michael Stahl for the conference talk that was the input for
these.

Change-Id: Ia48248f4739218ee7832559353aab06183a934d7
Reviewed-on: https://gerrit.libreoffice.org/61079
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-28 18:41:50 +02:00
Miklos Vajna 45c753aff6 svx: pdfium's FPDFImageObj_GetBitmapBgra() is not needed after all
Given that we do check for the different formats just below anyway.

Thanks Ashod Nakashian for pointing this out!

Change-Id: Ie481f6f3fa66ee182668bd6ea7171da2a04cca9d
Reviewed-on: https://gerrit.libreoffice.org/61078
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-28 16:21:04 +02:00
Miklos Vajna ff4a319f51 oox: create ShapeContextHandler instances with an uno constructor
Change-Id: Ie780ff9f3a8c61d13ad10cc2dbe24d3ec165470e
Reviewed-on: https://gerrit.libreoffice.org/61063
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-28 15:10:45 +02:00
Miklos Vajna 27a2de0bd3 xmlsecurity nss: avoid deleting the keys manager manually
Change-Id: I53a88116148db9e1ceac4024781516173c3d4666
Reviewed-on: https://gerrit.libreoffice.org/61021
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-27 12:15:02 +02:00
Miklos Vajna 60eaa7d7b8 sw: use auto when initializing with a template cast ...
... to avoid duplicating the type name.

Change-Id: I98379b35baeccf685bcadecf794e73e91024da0b
Reviewed-on: https://gerrit.libreoffice.org/60979
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-26 12:18:56 +02:00
Miklos Vajna 49614a9ea9 tdf#119599 RTF import: fix missing deduplication of font size
Deciding when to and when not to deduplicate repeated direct formatting
of paragraph / character properties is stricky, this bug is about a case
when deduplication should happen and did not, since commit
1970a68627 (tdf#113408 RTF import style
dedup: separate paragraph and character handling, 2017-10-31).
Especially that deduplication works in both directions: it should remove
properties which are duplicated and also should insert explicit default
values for not repeated properties.

Fix the problem by making the getDefaultSPRM() aware of the context
(which style type it deals with), and then by making sure that only
default properties relevant for the given style type are inserted.

Change-Id: I35b6599cc47fa51b8754fd921c61a3b31a283547
Reviewed-on: https://gerrit.libreoffice.org/60946
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-25 08:40:12 +02:00
Miklos Vajna 1be1327b60 sw: prefix members of SwRedlineExtraData_Format, ...
... SwRedlineExtraData_FormatColl and
SwRedlineExtraData_FormattingChanges.

Change-Id: I7dedf293ba06879985d4652e073642d5a15d97ca
Reviewed-on: https://gerrit.libreoffice.org/60922
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-24 09:29:33 +02:00
Miklos Vajna c8b2849d14 Related: tdf#120028 PPTX import: fix font size of multi-col shape text
Normal shapes have a TextFitToSize property for this, but table cell
content has to be scaled manually, as the rendering has no automatic
support for them. Luckily the file format has the info we need to scale
at import time.

Change-Id: Ibbcc4b8685995261536cce88b8c0774e148f708e
Reviewed-on: https://gerrit.libreoffice.org/60880
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-21 19:57:02 +02:00
Miklos Vajna aef569ed83 tdf#120028 PPTX import: map shapes with multiple columns to table shapes
Longer term the core Impress shape has to be improved so that it can have
text in multiple columns.

Shorter term, map text with multiple columns to table shapes, that gives
correct layout in many cases and requires changes to the import filter
only.

Change-Id: Id7942b16882ab1f083ded2f0e577e8c9e128697c
Reviewed-on: https://gerrit.libreoffice.org/60859
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-21 13:30:20 +02:00
Miklos Vajna ec3c4775a5 oox: create QuickDiagrammingLayout instances with an uno constructor
This is effectively dead code as commit
547217ecf2 (Document seemingly dead
QuickDiagrammingImport, QuickDiagrammingLayout, 2013-06-03) found, so
the primary motivation is to just get this out of
oox_component_getFactory().

Change-Id: Ibfee57202f0a3b02847b1298ce8895c8cf312322
Reviewed-on: https://gerrit.libreoffice.org/60840
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-21 09:28:36 +02:00
Miklos Vajna c138a26217 xmlsec: drop no longer needed xmlsec1-1.2.14_fix_extern_c.patch.1
Commit 2d1e4290a9 (Merge Gentoo patches
from old build and downstream repositories., 2011-03-13) mentions this
was necessary for libxml-2.7.8, but xmlsec already depends on 2.8.0 and
the same "extern block starts before the include list" pattern is there
in every other xmlsec header, so the patch was incomplete anyway.

Change-Id: I33fadcb3e5583266a37cf7f240b27b2df1544040
Reviewed-on: https://gerrit.libreoffice.org/60782
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-20 09:02:55 +02:00
Miklos Vajna a4923f1d25 CppunitTest_vcl_pdfexport: fix use after free
Just do the minimal fixing, a follow-up commit should clean up the
copy&paste coding that happened here in previous commits.

Change-Id: I44306e2fee57d55997414e62120c7e5037f306fb
Reviewed-on: https://gerrit.libreoffice.org/60757
Tested-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-20 09:02:28 +02:00
Miklos Vajna 56ac8214ab pdfium: update to 3550
Allows dropping all the backports, so only one custom API patch remains.

Change-Id: I13dc4f62be86d0859862cbd95bb14e07bbcf53d6
Reviewed-on: https://gerrit.libreoffice.org/60697
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-19 09:04:33 +02:00
Miklos Vajna 3c25e7a31b tdf#118784 sot: lower priority of RTF clipboard format on macOS
This was a problem since commit 29d4ecf323
(tdf#115574 sot: fix Excel -> Writer paste, 2018-03-29), the root cause
seems to be that (older?) Safari provides RTF clipboard content which
simply doesn't contain the images.

Just to back to the old behavior on macOS for now, hopefully the
problematic RTF producer will go away in the long run.

Change-Id: I5c40b28671978cfbf8593f1cc9775985dffc5030
Reviewed-on: https://gerrit.libreoffice.org/60641
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-18 09:56:34 +02:00
Miklos Vajna 570f3c12fd tdf#119820 sw: optimize SwTextGlyphsKey comparison
Import time before:

12.192 seconds

After:

5.836 seconds (47.87% of baseline) for me.

Change-Id: Ifd650addaae3fe25b45cf0fd452f78372e60c467
Reviewed-on: https://gerrit.libreoffice.org/60591
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-17 22:43:39 +02:00
Miklos Vajna 487a05e898 sw: prefix members of SwRevisionConfig
Change-Id: I51150783d0e624ae33efdd36857c2e26fb970ae0
Reviewed-on: https://gerrit.libreoffice.org/60558
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-17 11:22:45 +02:00
Miklos Vajna b5937112d4 tdf#119875 sw: fix invalid pos of frame after 0-sized section with laycache
The interesting part of the layout of page 2 is:

- frame #40 is a section frame with a text frame which is in a list
  ("A")
- frame #48 is a section frame after that, with the same top=19213

Given that frame #40 has height > 0, they overlap when the page is
rendered. What happens is:

- frame #40 grows
- there are other section frames between #40 and #48 in-between, but
  they don't have an SwSection
- these frames are skipped
- then the position of #48 is invalidated

So the next time we calculate the position of #48, we look the last
skipped (previous) section frame (which still has top=19213, since its
position was not invalidated above), and since its height is 0, we
conclude that our current top=19213 is valid after all.

This is like this since commit 84a3db80b4
(initial import, 2000-09-18), so leave the code there that invalidates
not only the next frame, but all the way down to the first
non-SwSection-less-SwSectionFrame. But instead of just invalidating the
last frame, invalidate the in-between SwSection-less-SwSectionFrames as
well.

In practice this did not cause a problem in case the document has no
layout cache. If it does, then the frames are created on pages hinted by
the cache, then later moved to their final place. In practice this bug
was visible only in this later case. (I.e. such a layout cache can be
only created if the machine that saved the document last time does not
have the fonts needed by the document installed; and then the document
is opened on an other machine which has those fonts.)

Change-Id: I02ae9f63d0b4b5e9d014df53ed2cf21a04b15090
Reviewed-on: https://gerrit.libreoffice.org/60502
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-14 19:54:17 +02:00
Miklos Vajna 515f97e3dd oox: create QuickDiagrammingImport instances with an uno constructor
This is effectively dead code as commit
547217ecf2 (Document seemingly dead
QuickDiagrammingImport, QuickDiagrammingLayout, 2013-06-03) found, so
the primary motivation is to just get this out of
oox_component_getFactory().

Change-Id: If0a585c2fc4b87ceb00e6f772fef2ac65d10dc67
Reviewed-on: https://gerrit.libreoffice.org/60470
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-14 09:05:07 +02:00
Miklos Vajna 0a398f5af0 sw: move frame id SwFrame to SwFrameAreaDefinition
Otherwise it's not easy to see which frame position was invalidated in
SwFrameAreaDefinition::setFrameAreaPositionValid() in a SAL_DEBUG()
statement.

Change-Id: I5771a81b98524bbce6557653a1a366e7a91c583e
Reviewed-on: https://gerrit.libreoffice.org/60443
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-13 19:36:43 +02:00
Miklos Vajna fb7c57aa0f xmlsec windows: replace debug runtime patch with configure switch
Change-Id: Ib24c800216492ce4b090522831d21e80888185d1
Reviewed-on: https://gerrit.libreoffice.org/60414
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-13 09:02:59 +02:00
Miklos Vajna 1b267db43b pdfium: replace FPDFFormObj_GetMatrix patch with backport
Change-Id: Ic819fb1097986437cae99f4769bd93f20b6db44a
Reviewed-on: https://gerrit.libreoffice.org/60358
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-12 09:06:57 +02:00
Miklos Vajna 5fe2c43a94 IWYU: ignore UNO include files, similar to how the clang loplugin does
Otherwise we could break some external code for no good reason.

Change-Id: I01b1e266425688d3d4b5293c0f8609d78c6b7f2f
Reviewed-on: https://gerrit.libreoffice.org/60331
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-12 09:06:44 +02:00
Miklos Vajna 7823684cb6 tdf#119316 sfx2 store: no move on macOS
osl::FileStatus::getAttributes() and osl::File::setAttributes() doesn't
preserve all the necessary file properties (at least "Hide extension" is not
handled), so always copy on macOS instead.

Change-Id: I529467cc3d432d04e593f936c13ed4656a18150c
Reviewed-on: https://gerrit.libreoffice.org/60294
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-11 08:59:12 +02:00
Miklos Vajna d53897ca46 CppunitTest_sw_uiwriter: improve readability
Change-Id: I31121878ab71f318d3e5cbbcc769c9b9be10f004
Reviewed-on: https://gerrit.libreoffice.org/60244
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-10 12:56:14 +02:00
Miklos Vajna a909d67f47 sw: prefix members of SwRedlineData
Change-Id: Idf21b7f3330fdc4ecca6245494a788a33efee2a7
Reviewed-on: https://gerrit.libreoffice.org/60236
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-10 12:34:44 +02:00
Miklos Vajna 433fce6571 vcl: less text layout calls in ListBox
Number of GenericSalLayout::LayoutText() calls during Writer startup at
this call-site: 1068 -> 614.

Change-Id: I3bef56e550294a6b2c9fe73c0c6531249c9f1f30
Reviewed-on: https://gerrit.libreoffice.org/60164
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-10 09:05:38 +02:00
Miklos Vajna 2a73c9e04b sw: less vcl text layout calls in SwFont::GetTextBreak()
Number of GenericSalLayout::LayoutText() calls during "dt<F3>" in Writer: 105
-> 89.

Change-Id: I0f2bb241536209cfccc1d78bed6f54bf5c31e627
Reviewed-on: https://gerrit.libreoffice.org/60133
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-07 16:02:49 +02:00
Miklos Vajna c3c43c7966 oox: create PowerPointImport instances with an uno constructor
PowerPointImport_getSupportedServiceNames() was copy&pasted from
oox::core::FilterBase::getSupportedServiceNames(), so it can go away entirely.

Change-Id: Ia6352cea1c2d65ba94cae66b500de951d82f455a
Reviewed-on: https://gerrit.libreoffice.org/60124
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-07 11:58:02 +02:00
Miklos Vajna bcb9be395c svtools: less text layout calls in Ruler
Number of GenericSalLayout::LayoutText() calls during Writer startup: 2603 ->
1616 (18 -> 1 layouts / included number).

Change-Id: I9a1a1131707bb6bc31683bbf609319f4bc22de92
Reviewed-on: https://gerrit.libreoffice.org/60087
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-06 16:18:47 +02:00
Miklos Vajna 5ac1f17e08 xmlsecurity: just two bools are fine, no need for bitfield complexity
Change-Id: I3e28ef5646ff39b0e3e8ed8962bfacf5b79176a7
Reviewed-on: https://gerrit.libreoffice.org/60069
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-06 11:26:53 +02:00
Miklos Vajna d70bf1c4ca vcl: less text layout calls in Menu
Number of GenericSalLayout::LayoutText() calls for each & every menu
item till a Writer document is opened: 3 (before) -> 1 (after).

Change-Id: I08a3d174bf15bafbcbce612712f2ab773cd5e085
Reviewed-on: https://gerrit.libreoffice.org/60045
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-05 18:05:43 +02:00
Miklos Vajna 51dca926f5 pdfium: replace FPDFTextObj_CountChars/GetTextProcessed patches with backport
Change-Id: I9c198ff0cd31de064fcc4a3bb0ed92066f38e4c5
Reviewed-on: https://gerrit.libreoffice.org/60007
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-05 09:11:21 +02:00
Miklos Vajna a910fb442e sw: less vcl layout calls in SwFntObj::GetCursorOfst()
GenericSalLayout::LayoutText() calls for a single word document's
initial layout: 5 -> 4.

Change-Id: If806b6f91faef1a5ad56b3439efc12bbabe030af
Reviewed-on: https://gerrit.libreoffice.org/59973
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-04 15:34:21 +02:00
Miklos Vajna 72be5ac08a tdf#119381 sfx2 store: don't break symlink targets
osl::File::move() would not follow symlinks for the target, so don't
move the file in that case.

Change-Id: I907e1ba8db04dad670c884ea0283947f953117da
Reviewed-on: https://gerrit.libreoffice.org/59949
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-04 14:33:37 +02:00
Miklos Vajna 009fdd4b83 sw: prefix members of SwXTextColumns
Change-Id: I03add1c19ce225eeec92d6d3d43063b59c6b7967
Reviewed-on: https://gerrit.libreoffice.org/59917
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-09-03 16:01:48 +02:00
Miklos Vajna aeff83240c sw: save more vcl layout calls in SwFntObj
This builds on top of commit 436b829f5b
(sw: save one vcl layout call in SwFntObj::DrawText(), 2018-08-16), but
now layouts are shared not only inside SwFntObj::DrawText(), but also
between SwFntObj::GetTextSize() and SwFntObj::DrawText().

To get there, create an SwFntObj cache member that stores already
calculated vcl layouts. SwFntObj already derives from SwCacheObj, so no
need to explicitly expire this cache member.

Total number of GenericSalLayout::LayoutText() invocations go down from
8 to 5 with this when pressing a key in Writer.

Change-Id: Ifbe84a5c00025604f9c1331b56074b3dc27864b5
Reviewed-on: https://gerrit.libreoffice.org/59879
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-03 09:13:32 +02:00
Miklos Vajna 4ccac77652 oox: create DocumentPropertiesImporter instances with an uno constructor
Change-Id: I2600a59e4eac7375882aff0491ecf16bad449520
Reviewed-on: https://gerrit.libreoffice.org/59841
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-08-31 09:08:47 +02:00
Miklos Vajna 81fac013cb sw XHTML export: xml:lang is not relevant for ReqIF
I suppose if language is set, that happens in the wrapping ReqIF
document, not in the XHTML fragments.

Change-Id: I970c3810b7f02bbafc37dd85e095b254cc651330
Reviewed-on: https://gerrit.libreoffice.org/59810
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-08-30 18:45:42 +02:00
Miklos Vajna 5d997c029e sw XHTML export: improve dummy OLE object handling
It is possible that we not only have a dummy OLE object, but both the
replacement image and the native data is missing. Handle these enough so
that we don't give up exporting the document and also produce valid
output.

Change-Id: Ia973ecfbfb7e8fdecdc831b29d3a82c988ed7ea5
Reviewed-on: https://gerrit.libreoffice.org/59806
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-08-30 18:43:08 +02:00
Miklos Vajna 59bcc90cad xmlsecurity: use comphelper::containerToSequence()
Allows not iterating the certificate chain twice.

Change-Id: I3993f8af24b28bef505d0e8c24bce8065580c2cf
Reviewed-on: https://gerrit.libreoffice.org/59780
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-08-30 09:12:56 +02:00
Miklos Vajna b0e74b65a8 vim-ide-integration: remove no longer needed workaround
Fixes the problem that e.g. this code:

OUString str;
str += "";

is marked as a compile error, when clang would still work with c++11,
but the tree is configured for gnu++17.

Change-Id: Id60c0cf4b8c693b534f16ba813cf01a4bad7e560
Reviewed-on: https://gerrit.libreoffice.org/59746
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-08-29 11:25:04 +02:00
Miklos Vajna b4c003397e pdfium: replace FPDFTextObj_GetFontName() patch with backport
Change-Id: I36d86e7ccca66b09f2f49e401d77deb52fbf742a
Reviewed-on: https://gerrit.libreoffice.org/59738
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-08-29 08:37:24 +02:00
Miklos Vajna 60362accc7 XHTML import: <br></br> is one line break
But only for XHTML, HTML stays unchanged to be in sync with web
browsers.

Change-Id: I3a1cf6651dab565bafece68963acb112ae715cdd
Reviewed-on: https://gerrit.libreoffice.org/59727
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-08-29 08:37:10 +02:00
Miklos Vajna 38afe2976e tdf#119050 sfx2 store: don't inherit temp file permissions when overwriting
The too aggressive error handling in commit
fb04780cf8 (tdf#116117 sfx2 store: don't
inherit temp file permissions when renaming, 2018-03-12) means that if
the file is already there, then we don't try to stat() it; even if there
is no problem with that.

Change-Id: Ie0b9084064834e339bcae3ad7b4a35c54cb9d3c2
Reviewed-on: https://gerrit.libreoffice.org/59684
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-08-28 15:28:09 +02:00
Miklos Vajna 24534b101c tdf#119451 vcl layout cache: fix glyph fallback handling
Type "🐶" into Writer with e.g. the Liberation Serif font, glyph
layout doesn't execute, a literal 0 glyph id is rendered.

Fix the problem by returning the glyph items (to be inserted into a
cache) after handling glyph fallback.

Change-Id: I928b0087de309dbe04936c6e7732d79bec541596
Reviewed-on: https://gerrit.libreoffice.org/59665
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-08-28 09:04:36 +02:00