100 Commits
Author SHA1 Message Date
Jan Holesovsky 01488c62bd coda-m sw: Fix crash on closing a document with the fill-bitmap link tracker
Create 2 new Writer documents in coda-m (so that they are both as tabs)
and close the first one.  Collabora Office then crashes in
~FillBitmapLinkTracker:

  #0 0x000000040c0705b4 in sw::FillBitmapLinkTracker::~FillBitmapLinkTracker at engine/sw/source/core/doc/FillBitmapLinkTracker.cxx:108
  #1 0x000000040c070b14 in sw::FillBitmapLinkTracker::~FillBitmapLinkTracker at engine/sw/source/core/doc/FillBitmapLinkTracker.cxx:107
  [... unique_ptr delete ...]
  #6 0x000000040c06eb50 in sw::DocumentLinksAdministrationManager::~DocumentLinksAdministrationManager at engine/sw/source/core/doc/DocumentLinksAdministrationManager.cxx:436
  #7 0x000000040c06ebbc in sw::DocumentLinksAdministrationManager::~DocumentLinksAdministrationManager at engine/sw/source/core/doc/DocumentLinksAdministrationManager.cxx:435
  [... unique_ptr delete ...]
  #12 0x000000040bfd0b50 in SwDoc::~SwDoc at engine/sw/source/core/doc/docnew.cxx:632

The tracker reached its LinkManager through the document:

  m_rDoc.getIDocumentLinksAdministration().GetLinkManager()

SwDoc::getIDocumentLinksAdministration() returns
*m_pDocumentLinksAdministrationManager.  On close the tracker is destroyed
while that manager is being destroyed: ~SwDoc destroys its
m_pDocumentLinksAdministrationManager member, and a unique_ptr clears its
stored pointer before it runs the deleter, so for the whole duration of
~DocumentLinksAdministrationManager (and the ~FillBitmapLinkTracker it
triggers) getIDocumentLinksAdministration() dereferences a null pointer.
The LinkManager it wanted is in fact still alive, it is just unreachable
through the half-destroyed document.

To fix this, hold the LinkManager directly.

Also includes a unit test, and I've tested it crashes without the change.
If it passes on other platforms, the problem might be platform-specific,
because the macOS libc++'s unique_ptr clears its stored pointer before
running the deleter, so the document was already unreachable during the
tracker's destruction.

This was introduced in d8a09afac610 (register writer XATTR_FILLBITMAP URLs
as SvBaseLinks via SwFormat and SwContentNode).

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: I6fba231dde0b6b41f3af9c83208c7a2d5c7f0767
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4131
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 96558fba2bc16d2245af1776a44c238bd60f4480)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208582
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-25 01:48:51 +02:00
Jan Holesovsky bc2da4e14c sd: Read paragraph emptiness from the outliner, not the shape's UNO text
In a dbgutil build (on macOS - but probably does not matter), type a word in a
slide's text box, select it, copy it, move the cursor past it, and paste.
The paste asserts:

  assert( IsUpdateLayout() && "Should not be used for Update=FALSE: GetTextHeight" );

The paste merges paragraphs, which reaches
EffectSequenceHelper::disposeTextRange through the ParagraphDeleted callback
(SdPage::onParagraphRemoving).  To decide which effect to drop it called
isParagraphTargetTextEmpty(), which reads the shape text through the UNO text
forwarder and so forces a text frame layout recompute
(NbcAdjustTextFrameWidthAndHeight, then GetTextHeight).  The paste runs with
the EditEngine layout updates suspended, hence the assert in
ImpEditEngine::GetTextHeight.

Decide the previous paragraph's emptiness in onParagraphRemoving, where the
editing outliner with the live text is at hand, and pass it down to
disposeTextRange.  This drops the UNO read and its layout side effect for
every case, animated or not.

Includes a unit test that executes the sequence described at the beginning;
without the fix, it fails with an assert.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: Id6ae3c8a121f036f87fa43ce134541376ff0b179
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3669
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 89a1a74dc95054698c1097b0aea0466ad6a6e092)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206213
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-09 10:53:57 +02:00
Jan Holesovsky a232377644 It seems better to configure for sandbox
LOKit will need to run in the sandbox in the end, and this avoids a
crash in coolwsd, so let's configure with this right away.

Change-Id: Iac58b20192274fea749befd8bb77592852edb64c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197208
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-13 23:05:33 +01:00
Jan Holesovsky e0380553b4 Allow running and debugging right from Xcode
Using gmake from Homebrew, as LODE does not work for me at all.

Change-Id: Id2a4206ec7080d87ec2a3f40dcdef2ab3d23d1c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194562
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196865
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2026-01-10 16:24:43 +01:00
Jan Holesovsky b7c8cdb951 pkg-config from Homebrew seems not to cause trouble
Change-Id: I26e00cffe1eead5b6313bcf471aeecbfddba3388
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194561
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196864
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Jenkins
2026-01-09 23:01:10 +01:00
Jan Holesovsky c48d2cff99 Check that the build starts with the right make version
Can be a problem on macOS - where the 'make' is version is too old for
gbuild.

Change-Id: I1039072a2c36b9f960467176118bce457732f0b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194560
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196845
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-09 14:29:57 +01:00
Jan Holesovsky 7b1068c39e Initial distro-config for LOKit on macOS
Change-Id: If251f2fbc33e74b28b2f8fc3d14813f3fba2f431
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196866
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-08 17:57:15 +01:00
Jan Holesovsky bd2d0bec67 coda-m: Don't skip the tile painting on macOS
Change-Id: Iecbb24f2bc4b3824cd556baa864327c0c52b1475
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195349
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-12-10 13:15:30 +01:00
Jan Holesovsky 857a760f31 Make vcl build on macOS with --enable-headless
Change-Id: I210767a9918b6a672a5227e6c40873bad90f7188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194794
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-29 01:10:45 +01:00
Jan Holesovsky 6c0d2d3b94 This is not present on macOS either
Change-Id: I4352df00081f094e7a3c4f3e3b5cc0308114470d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194793
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-28 20:56:24 +01:00
Jan Holesovsky aad732825e Make it possible to build cairo even on macOS
Change-Id: Iea337f2fdd0f90e2b0612cd2cda9c1ea1f4739a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194792
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-28 20:56:17 +01:00
Jan Holesovsky 5d4a689293 Introduce --enable-headless to add it as a possibility on macOS
Change-Id: I3ea0fbdab2d36bf9c9565ed3274eee978ba6764d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194791
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-28 20:56:03 +01:00
Jan Holesovsky 7c8a7f9887 LibreOfficeKit is actually supported on macOS
Change-Id: I9d00dc356d11533ca3f8b436bf44fdb2bf1c82f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194788
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-28 20:55:51 +01:00
Jan Holesovsky 1cfc0d9c10 Fix macOS build after libxml2 upgrade to 2.14.3
Change-Id: I94c8fbfb150a214c7517c849336b0025813a181b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188130
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2025-07-22 08:32:19 +02:00
Jan Holesovsky 4132bd5477 No need for openssl in the cross build's instdir_for_build
So disable it from the configure & make sure it is not brought in by the
non-iOS check.

Change-Id: I9bbf1c593d1d48197951002e04e7f925d35ecba9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146034
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2023-01-24 11:28:53 +00:00
Jan Holesovsky ab080ab1ab tdf#152199: Don't crop twice
We have a "GraphicCrop" property that is supposed to roundtrip the
cropping in OOXML, but there is no core feature backing it (ie. the
image is not shown cropped when this is imported and set).

Instead, to show the image "cropped", we crop the image physically on
import (throw away pixels that are 'outside' of the cropped area).

But - the "GraphicCrop" is then saved on export, together with the image
already physically cropped, which leads to garbled DOCX on re-import.

Given that the core feature to show image cropped when the "GraphicCrop"
is set, let's avoid setting it when we physically crop the image.

Change-Id: Ia1090ea9c6d22e60c77d52bf65281f6588d07d4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143216
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2022-11-24 21:58:46 +01:00
Jan Holesovsky e50cffea75 Clarify the cairo warning in ./configure
To know what to expect.

Change-Id: Ia660a1ebdbb76c04aa96934cabc16e1cbfc4cfd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142478
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2022-11-09 13:17:52 +01:00
Jan Holesovsky 142d3e1591 sc lok: Double-click should behave more like on desktop
When editing was introduced in Calc LibreOfficeKit, there were lots of
limitations.  Particularly the thinking was that it would be good if a
double-click into any text (even if spanning over more cells)
actually started editing that text.

These days, the LOK behaves much more consistently, so it is better to
behave as the LibreOffice on desktop (or other tools, like gdocs) do:

If the cell:

* Is empty

    -> single click places the cell cursor
    -> double click places the cell cursor & shows the text caret

* Is empty, but covered by text bleeding from other cell

    -> same as if it was empty

* Isn't empty

    -> single click places the cell cursor
    -> double click places the cell cursor & places the text caret
       inside the text where the user clicked

        + this is actually different in gdocs - there the caret is
	  placed at the end of the text; in LO it is where the user has
	  double-clicked

Change-Id: Ib5884f887c98f803b06d8bed5057ec435be480ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142196
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2022-11-03 21:52:40 +01:00
Jan Holesovsky 9067b827f0 Add a comment how to use MetafileXmlDump in the tests
Change-Id: I5088874be3fbf2ac114f5e5d0cd9571a3caf48dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128040
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-01-06 16:52:59 +01:00
Jan Holesovsky d602c433a0 T602 is an obsolete format, don't assume .txt files are T602
Without this, when the user tries to open a 0-bytes .txt file, they are
asked for a Save As operation after they hit the Save button.

When we remove the 'txt' from the T602 detection, it rather asks if the
user wants to use ODT or Plain text (and lose formatting).

Change-Id: Ic48fa61064a9ed78c64d56bc8864f0e12528e072
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123216
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2021-10-12 09:49:56 +02:00
Jan Holesovsky c6564fb00a Fix build with system boost
Change-Id: I86ffabd30535b594a40d786f7c4602abbbb5a54a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121513
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2021-09-06 18:41:46 +02:00
Jan Holesovsky 0dc9da5df4 lok: Disable the "AutoInput" again.
This partially reverts "lok: sc - suppress LOK editengine events for the calc input bar."

The feature itself is very problematic in Online:

1) causes unwanted jumps to other cells,

2) causes the selection blinking in the cell when typing, and

3) it is very annoying in the form that in which it is implemented
   in LibreOffice anyway, compared to other office suites.

Let's disable it, and enable again when we address the above issues.

This (partially) reverts commit 91319ad56887f932b2da334db560d5d0a79a0280.

Change-Id: I2234455c29069f74d13896474f3499035935931b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113047
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 65990058f041c3f1d280a69d411eb4ceacf5a721)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113112
Tested-by: Jenkins
2021-04-29 17:53:57 +02:00
Jan Holesovsky 56e7c74b29 lok: Don't even iterate through the redlines when they are disabled.
It is not necessary, when we are not issuing any output anyway.

Change-Id: Id952549befb1bef04a2dd9237d286922939eaae2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106509
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 8f44a939ad09d0365607ae8960e2abfe77e3fe72)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106517
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-11-25 11:02:35 +01:00
Jan Holesovsky 706aff5098 uitest: Rename the "SET" to "TYPE" for Edit boxes + implement the real "SET".
To be consistent with the other controls: "TYPE" actually enters the
characters one by one, while "SET" sets it as a whole.

Change-Id: I967dc270b1d92fe76107732a511cc3e70d3d65c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104435
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105739
Tested-by: Jenkins
2020-11-15 15:41:56 +01:00
Jan Holesovsky dd2532203b lok: Simplify the check for command in sendDialogEvent.
Change-Id: I1d2c967b68113d2528b80e91c32170f749ed9335
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104434
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105738
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-11-13 14:34:50 +01:00
Jan Holesovsky ca35aea6ed chart2: Add the possibility to edit title & subtitle from the sidebar.
Change-Id: I4be15acbc2127ebb6eca8864a0209ba57b488100
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104313
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105736
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-11-13 14:33:45 +01:00
Jan Holesovsky 824e092dbf CppunitTest_sw_htmlexport: The actual PNG data does not matter.
The test was supposed to test whether the PNG data is embedded (or not),
not the actual content of the data.  Turns out that a different zlib
affects the PNG content, so let's ignore that part, and only check that
the data is actually embedded.

Change-Id: I603bd546d97abda7c47248db0a95349f4a48b4aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101329
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-26 08:19:27 +02:00
Jan Holesovsky 425e29eb8c Revert "android: avoid expensive load of un-used sidebar icons on mobile."
Unfortunately we need this on Android for the tablets, otherwise the
sidebar lacks the icons.

Also it is not easily possible to use the isLOKMobilePhone() check here,
because that is per-view in general, and handled in sfx in particular,
making it hard to use here in vcl.

This reverts commit 9a38b194eec5bcf6cb8d073e5d35173c5856f28f.

Change-Id: I2b599e884ad4d00b7c246743c180a5324c9a143d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99300
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-08-02 11:30:15 +02:00
Jan Holesovsky dfc28be248 configmgr: Use a proper LanguageTag-based locale fallback mechanism.
Without this, zh-Hant-TW locale used via the LibreOfficeKit was reduced
to zh-Hant and further to zh, which was interpreted as zh-CN, causing
incorrect strings particularly in the sidebar.

Change-Id: I58e53f71d13824e422a7b3634f3822d55090f8ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99203
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-07-23 10:40:27 +02:00
Jan Holesovsky cae77280d1 android: Add a CP x86 configuration too.
Change-Id: I8d584811244cd613b8637d9dd2cf1bfe1985ecec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97610
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 9213bfce95aa3300d87c5fece638a0d8101c718e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97579
Tested-by: Jenkins
2020-07-01 18:00:09 +02:00
Jan Holesovsky f613e69b49 android: Add a CP x86-64 configuration.
Change-Id: Icdfee0a6609487f5ac2423c74344cb605b7e4fbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97130
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-06-26 11:27:08 +02:00
Jan Holesovsky aed7f71d67 LOK: Emit the doc. modified state even when changing the cell inline.
The "LOK: emit modified status on entering cell data" patch did this
only for the formula input line, and did not change the state when the
user just clicked on the cell and started modifying it; so this patch
extends it.

Also change the actual DocumentModified state of the document directly
instead of just sending a flag, so that the state in LOOLWSD and in the
core don't get out of sync.

Change-Id: Ie516ce5a74d94247d79cf993517d7f4a6657cc94
Reviewed-on: https://gerrit.libreoffice.org/75701
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95516
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-06-04 19:56:14 +02:00
Jan Holesovsky c6a3f51a89 formula bar: Change completeFunction() to accept string instead of index.
The 'index' is unsafe, because the set it tries to index can change in
the meantime.  Instead, use the function name and search for it in the
set, to get the recent index.

Change-Id: Id2a021c32f421057c87b6f7f4fffcc1c98009acb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93666
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93910
Tested-by: Jenkins
2020-05-10 21:43:51 +02:00
Jan Holesovsky efff12770f pdfium: Test insertion of PDF into a document.
Change-Id: Ide2643349fbf5cdf79e68c2c504d1cd486c09d7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90996
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-25 15:56:55 +01:00
Jan Holesovsky 6ac2d66c78 pdfium: Make Insert -> Image... use VectorGraphicData for PDF.
In principle, the current Svg/Emf/Wmf and PDF handling is trying to
achieve the same thing: Keep the original stream untouched, provide a
replacement graphics, and a kind of rendering.

To hold the data, the Svg/Emf/Wmf and PDF were using different structures
though.  This commit consolidatates that, and makes the Insert
-> Image... (for PDF) actually using the VectorGraphicData to hold the
original stream.

This breaks loading the PDF as a document via PDFium - I'll fix it in
the next commit(s).

Change-Id: Iac102f32b757390a03438c165e430283851cc10b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90561
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-03-17 22:01:15 +01:00
Jan Holesovsky aa415fc726 android: Fix 32bit build.
Change-Id: Ife6740860cd7e1844b1ff0166694652538048a44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90411
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-12 16:57:18 +01:00
Jan Holesovsky 6d9a31a58c android: Use the best speed compression as on iOS.
Change-Id: Ib2be570a924c6ac6e226f47e6b183975df1fca2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90258
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 07fb148971b6853c2020cea6660fa62d6caacb85)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90281
Tested-by: Jenkins
2020-03-11 17:03:29 +01:00
Jan Holesovsky 435e95410c Disable gtk in the build-config when cross-compiling.
Not needed at all and gtk3 is already disabled there.

Change-Id: Ic6f8be17645df22a414ae4b191a97b9bf1c16d1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90206
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-09 15:44:07 +01:00
Jan Holesovsky e701ab6945 android: Hardcode the 'double-tap' in case of the native app.
We know we are mobile, so why bother...  We could go even further, and
do that directly in the comphelper, but that would need more testing I
guess.

Change-Id: Ia371d42fe0e31b5c6f17313fbf6baad4c256cbe9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89236
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89695
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-28 14:03:45 +01:00
Jan Holesovsky 16fb30a16d android: Don't show the multiline toggle in the formula input bar on phones.
The interaction there currently distorts the view and occupies too much
space anyway.

Change-Id: I093432dcfc223e4ea8b0f5a3cc45368f90c3cc0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88477
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88481
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 14:33:41 +01:00
Jan Holesovsky ed3d1f3e13 If asked to do so, enable icecream even in the 'build' part of configure.
Otherwise it is used only in the 'host' part of the cross-compile build.

Change-Id: Ifb8d88e18c131e3019a4f3168afc1b743f3cc8e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88486
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:56:36 +01:00
Jan Holesovsky b412daf79f Introduce INCLUDE: in the distro-configs...
...to be able to have a common base for things, and then apply some
additional stuff on top - in this case the Android branding for the CP
builds.

Change-Id: I43118bba84fddb8508cc4688c83c2d81a103d781
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88440
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 8dd75f47d9d571ed557fd360b8f9ff7aaca335af)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88400
Tested-by: Jenkins
2020-02-11 20:25:32 +01:00
Jan Holesovsky f2f8a2ec10 android: Actually let's avoid the exceptions via bridges only on aarch4.
Change-Id: Id2830f09ca6afd11f6f866565f37bdb7ba45bfb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/84205
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-11 15:24:34 +01:00
Jan Holesovsky d9676143dc android hunspell: All languages we pack are the supported ones.
Without this, we disable all the languages, because the env. variable is
not set.

Change-Id: If8f6a9ec6270391d1f8c2bf225c8ea4bb1aae688
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88220
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88367
Tested-by: Jenkins
2020-02-11 10:22:46 +01:00
Jan Holesovsky cc0759f1e2 android hunspell: Hardcode the ReferenceOOoMajorMinor for version check.
From some reason it fails to be read from the versionrc; and I'm not
really eager to debug why...

Without this, only the dictionaries that do not mention the
OpenOffice.org-minimal-version are registered; which would be just 2 of
them.

Change-Id: I9fe0bc138eadbdcbe5e0d8231e7e90ef268163bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88219
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88366
Tested-by: Jenkins
2020-02-10 18:16:34 +01:00
Jan Holesovsky 99e143cb77 android hunspell: Don't explicitly disable extensions on Android.
We need the bundled extensions for hunspell.

Change-Id: I423d71376652b7d54dfdcc81462a19db9dc785bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88218
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88365
2020-02-10 18:16:17 +01:00
Jan Holesovsky 4f9531c81d android hunspell: Turn on the hunspell build on Android...
...and try to register it for use - it's a bundled extension.

The attempt to use the Android's native spell checking failed because
the combination of gboard + google's spell checker makes every word in
the app appear as if spelled correctly.

I haven't found any easy way around that, so let's use hunspell instead;
but for that, we need to make the bundled extensions work on Android.

Change-Id: If6563e497f1d3085c26eda571567242b2c1f6181
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88217
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88364
Tested-by: Jenkins
2020-02-10 18:14:40 +01:00
Jan Holesovsky 4a9ef85e65 lok formula input: Don't show un-needed elements with the LOK active.
Change-Id: I82effbdd48dab5b9de2cd05859e74e5c1027a4df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86991
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87063
Tested-by: Jenkins
2020-02-03 12:25:47 +01:00
Jan Holesovsky 322f31dcf5 android: Set the correct path for the liblangtag data.
Change-Id: I8b8bf76f086812c5f995c6ef513f0b7f773475ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87787
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-01 09:26:59 +01:00
Jan Holesovsky 74e46a9f2e android lok: Correct the hint in the slides from click to double-tap.
Change-Id: I71744dc48f50115c9b4245ac2c81a6431ecbdce6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87678
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins
2020-02-01 09:25:40 +01:00
Jan Holesovsky 27172d6cfb android: Avoid building the apk when configured with --enable-android-lok.
Change-Id: I6e82d1c1c00d67f5ff370a7625e33efbb172ca38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86110
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit f4c83939edb9adb9d81a8a442f5449e619df03dd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86131
Tested-by: Jenkins
2020-01-02 18:11:43 +01:00
Jan Holesovsky beb758215b android: Use correct path for the .mo resource files.
They are read by boost::locale, so we cannot have them as normal assets,
instead we have to have them in asset's 'unpack', so that they are
unpacked to the filesystem and can be read as normal files.

Change-Id: I5e902ee4b5294d1f693f51993b8bc2069f1c835a
Reviewed-on: https://gerrit.libreoffice.org/85442
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85458
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-01 23:43:24 +01:00
Jan Holesovsky 736c330308 android: Make the Calc input bar working on the Android device too.
Thanks to Marco Ceccheti! - he's found what was wrong there.

Change-Id: I45500f7f55ced60965a42ad6cb8032481594b409
Reviewed-on: https://gerrit.libreoffice.org/85612
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86089
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-01 23:42:25 +01:00
Jan Holesovsky 1fd65c35f9 android: Don't crash when double-tapping a text box.
Here we were accessing the notification from a destructor; so avoid that
when the pDoc is already being destructed.

Change-Id: I686bc9acf66788bfed6cf478fc7a1646ca8fd259
Reviewed-on: https://gerrit.libreoffice.org/85235
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 589147c64804adc5ceba895510559e2b6806d467)
Reviewed-on: https://gerrit.libreoffice.org/85246
Tested-by: Jenkins
2019-12-17 11:21:18 +01:00
Jan Holesovsky 976586021e lok preload: Some symbols are in-process when we need them.
But OTOH in the preload case, the libraries we'd otherwise load are not
there.

An example was libcuilo.so where the instantiation of the spell checking
dialog was failing, because it was impossible to find the
makeSentenceEditWindow symbol.

Change-Id: Ifc0bc5d8b295912728505fe3ce11fa4a0d198124
Reviewed-on: https://gerrit.libreoffice.org/80229
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-12-06 10:18:21 +01:00
Jan Holesovsky 790b5de894 drawPixel() should still get 'true' for bXorModeAllowed.
That part of 7b267be4b2 was not necessary.

Change-Id: Ie085f635d4adb6f574f3eca37976f9aded505524
Reviewed-on: https://gerrit.libreoffice.org/84534
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-12-05 22:58:47 +01:00
Jan Holesovsky eb15ac837e android: Avoid throwing exceptions through the bridges.
From some reason it does not work, so let's do the same we are doing on
iOS; at least for now.

Change-Id: I915f8683a112548fc3defc1114f9dce3aa7be30e
Reviewed-on: https://gerrit.libreoffice.org/84067
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/84204
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-12-05 11:02:01 +01:00
Jan Holesovsky 7b267be4b2 headless: Don't leak the cairo context in drawPixel().
Change-Id: If841f655ac634eee2dc7ca6e9445d2f204546545
Reviewed-on: https://gerrit.libreoffice.org/84445
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 5b607ae89de9494c01952852df30a6f77206eadc)
Reviewed-on: https://gerrit.libreoffice.org/84450
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2019-12-05 10:18:44 +01:00
Jan Holesovsky 227ab55b1a lok: Fix the condition of setting the transparent background.
Change-Id: I7b201296efe6541761896e0af1b230aecb534cdc
Reviewed-on: https://gerrit.libreoffice.org/84211
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins
2019-12-04 14:12:29 +01:00
Jan Holesovsky a9e04c08b8 android: Fix nss build on aarch64.
Change-Id: I51c03e13fba4619a881ade27d149722698859815
Reviewed-on: https://gerrit.libreoffice.org/81888
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-12-02 13:30:50 +01:00
Jan Holesovsky 0464540310 android: Fix location of the built freetype library.
Otherwise it is not found when the the fontconfig's ./configure is
running, which leads to linking failure during the fontconfig's
./configure time, which leads to an undefined HAVE_FT_GET_NEXT_CHAR
which leads to not using the actual FT_Get_Next_Char, but instead some
dummy code that leads to an infinite loop on the app startup; huh.

Change-Id: I40b7a403fbe75582bb98f15f1afe7a4050fd13aa
Reviewed-on: https://gerrit.libreoffice.org/83922
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 94eb59078731b2e4093d983bc618d051f4e31740)
Reviewed-on: https://gerrit.libreoffice.org/84190
Tested-by: Jenkins
2019-12-02 12:25:00 +01:00
Jan Holesovsky 5313ff56d7 bridges arm64: Use [[falltrough]].
Change-Id: I28d3cabab74bea6ea9f2712c240110a44643c54d
Reviewed-on: https://gerrit.libreoffice.org/84193
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-12-02 11:34:25 +01:00
Jan Holesovsky 668b03284c android: Get rid of the 'old' vs. Online-based runtime distinction.
No need for this when we have a compile-time distinction now anyway.

Change-Id: Ic86c8cce38a86635ea3efb4229c08f63059c9ee6
Reviewed-on: https://gerrit.libreoffice.org/83719
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins
2019-12-02 11:13:54 +01:00
Jan Holesovsky b648e36c77 android: Hint how to enable fontconfig logging.
Change-Id: I8901780fa29c6d27bb53e44b07d95259b5bd02df
Reviewed-on: https://gerrit.libreoffice.org/83920
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit f3af7708e3535d3171832aa2308d1e7f6193def4)
Reviewed-on: https://gerrit.libreoffice.org/84189
Tested-by: Jenkins
2019-12-02 11:13:38 +01:00
Jan Holesovsky c6dadf5035 android: Fix linking of liblo-native-code.so on aarch64.
Forces gold as the linker; but according to the switches that were used,
I suppose gold was used previously anyway, so hopefully not really a
problem.

Change-Id: I7bc54abf0d3b4b3d86d53e4ea6f01146cf196216
Reviewed-on: https://gerrit.libreoffice.org/81905
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit fa145a035fbab652ec8f3ee870e44e43dd1d770a)
Reviewed-on: https://gerrit.libreoffice.org/81915
2019-12-02 09:14:37 +01:00
Jan Holesovsky 9feea0f581 android: Add also aarch64 to avoid linking errors.
Change-Id: Ifdd696dc37de541bc722807054cd4ba7b862c175
Reviewed-on: https://gerrit.libreoffice.org/81904
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 620f39b816e3f10a4e047bb4f5ed5f4fdad2b364)
Reviewed-on: https://gerrit.libreoffice.org/81914
2019-12-02 09:09:38 +01:00
Jan Holesovsky bd8fcf5b47 android: Introduce --enable-android-lok configure switch to fix RGB vs. BGR.
This indicates that the build targets the Online-based Android app, for
which we need to avoid various tweaks that are needed for the 'old'
Android app present in the android/ subdir of core.git.

In particular, the switch used in this patch fixes a RGBA vs. BGRA
confusion that caused yellow <-> cyan switch in the Online-based Android
app.

Change-Id: I5f394868f51ce87013677834cfafb967b9bb333e
Reviewed-on: https://gerrit.libreoffice.org/83342
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 49002a143a4534df5f6139e07fefd06174621c59)
Reviewed-on: https://gerrit.libreoffice.org/83718
Tested-by: Jenkins
2019-11-27 15:52:35 +01:00
Jan Holesovsky c503fc6e47 android: ODR fix of RID_PAGEFORMATPANEL_MARGINS_CM.
Without this, we get a linking error that RID_PAGEFORMATPANEL_MARGINS_CM
is defined twice.

Change-Id: Ib9c07adcb0a8def991d1e39429c1bb4947cd7d32
Reviewed-on: https://gerrit.libreoffice.org/82159
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-11-07 08:21:10 +01:00
Jan Holesovsky f68a36b62e android: Fix problems with unwinding in the Online-based Android app.
This partially reverts a7f6338875.  The
problem is that with that approach, the problems with unwinding as
described in 312eeeee42 were plaguing the
Online-based Android app, leading to mysterious crashes with stack
traces like:

 #00 pc 0005f2b6  /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 68c87e04526a60689ecb5deb329804a0)
 #01 pc 05caaae7  /data/app/libreoffice.debug-fBEOIUwPHY3_k3eQid159Q==/lib/arm/liblo-native-code.so (BuildId: 1c3d0e6336ddfc3578e1c186944160252a750b8b)
 ...
 #06 pc 07452e43  /data/app/libreoffice.debug-fBEOIUwPHY3_k3eQid159Q==/lib/arm/liblo-native-code.so (BuildId: 1c3d0e6336ddfc3578e1c186944160252a750b8b)
 #07 pc 0005a37c  /apex/com.android.runtime/lib/bionic/libc.so (__restore_rt) (BuildId: 68c87e04526a60689ecb5deb329804a0)
 #08 pc 0005f2b2  /apex/com.android.runtime/lib/bionic/libc.so (abort+162) (BuildId: 68c87e04526a60689ecb5deb329804a0)
 #09 pc 07565d3b  /data/app/libreoffice.debug-fBEOIUwPHY3_k3eQid159Q==/lib/arm/liblo-native-code.so (BuildId: 1c3d0e6336ddfc3578e1c186944160252a750b8b)
 ...
 #11 pc 07565641  /data/app/libreoffice.debug-fBEOIUwPHY3_k3eQid159Q==/lib/arm/liblo-native-code.so (BuildId: 1c3d0e6336ddfc3578e1c186944160252a750b8b)
 #12 pc 0001e394  /apex/com.android.runtime/lib/bionic/libm.so (__gnu_Unwind_RaiseException+108) (BuildId: 0ee3a75927e0da4fa0fe29469ccf8b39)
 #13 pc 0001eee8  /apex/com.android.runtime/lib/bionic/libm.so (_Unwind_RaiseException+20) (BuildId: 0ee3a75927e0da4fa0fe29469ccf8b39)

Change-Id: Ie4e7b20380c9104770229a8d30036ad76093283d
Reviewed-on: https://gerrit.libreoffice.org/81485
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-10-25 13:46:01 +02:00
Jan Holesovsky 4c0bccbb21 android: Allow specification of the API level.
Change-Id: Icf33e2703f42a7866ce895437cf5f276066eeebe
Reviewed-on: https://gerrit.libreoffice.org/81227
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 59eee888bf7174114e5749855d95e8ff7dd15013)
Reviewed-on: https://gerrit.libreoffice.org/81327
Tested-by: Jenkins
2019-10-24 00:37:05 +02:00
Jan Holesovsky 7e20dcbae4 android: Allow using SDK and NDK directly from the Android Studio.
Just specify:

--with-android-ndk=$HOME/Android/Sdk/ndk-bundle
--with-android-sdk=$HOME/Android/Sdk

in your autogen.input, install the appropriate components via Android
Studio and you are done.

Change-Id: Ic99790b781b9017eb4e642380e230d6f7b49e9b7
Reviewed-on: https://gerrit.libreoffice.org/81228
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 246f1b5b4485b7db9f9584e4b3b819c87e331c0e)
Reviewed-on: https://gerrit.libreoffice.org/81328
Tested-by: Jenkins
2019-10-24 00:36:08 +02:00
Jan Holesovsky 044709575e pdfium: Switch the condition for better readibility.
Change-Id: I8acf1e98f032f6943b2e7d09ac276f0f1ac4b120
Reviewed-on: https://gerrit.libreoffice.org/81061
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 105d98caa70389c12ad4f9a2a2b7474a4be73aa2)
Reviewed-on: https://gerrit.libreoffice.org/81326
Tested-by: Jenkins
2019-10-24 00:35:44 +02:00
Jan Holesovsky 707436f0b3 jsdialogs: Expose the panel names.
Change-Id: Ifa837bfcaba6e63c7058e34f1e386f571bfb4d61
Reviewed-on: https://gerrit.libreoffice.org/80481
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit b13e2e7d2b2767d4fadaf825756ee38bc941ad57)
Reviewed-on: https://gerrit.libreoffice.org/80490
2019-10-08 18:12:31 +02:00
Jan Holesovsky 1dbaff6160 tdf#127941: Don't be _that_ eager to assert(!IsTextEdit());
Turns out that this is still a condition that can happen regularly:

* open Impress
* click an object with a spelling mistake
* press F7 to activate the spelling dialog (don't choose it from the
  menu)
=> assert()

It is unclear how to sort this out correctly without refactoring, and
also unclear how many other cases fail this condition, so let's change
to SAL_WARN_IF for the moment.

Change-Id: I97730cc93c86c279973702bbf4ddc922f1616c0b
Reviewed-on: https://gerrit.libreoffice.org/80170
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2019-10-04 10:45:52 +02:00
Jan Holesovsky 1cc241cfb4 lok jsdialogs: Add handling of checked state for checkbox and radiobutton.
Change-Id: Id64833a08c62388220921208cba33a60c178e9ac
Reviewed-on: https://gerrit.libreoffice.org/79797
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-01 15:40:40 +02:00
Jan Holesovsky e0a415b13e lok: Enable sidebar also in Impress.
Change-Id: I6c5c7c82a3ad81e590a891f1a8cc76a873823acf
Reviewed-on: https://gerrit.libreoffice.org/79856
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 4ff28e09412d2c0ef73008d3d85dae9b506e4978)
Reviewed-on: https://gerrit.libreoffice.org/79900
Tested-by: Jenkins
2019-10-01 11:38:21 +02:00
Jan Holesovsky 75b8db7fa7 lok jsdialogs: Introduce dumping of widgets hierarchy to vcl::Window.
Change-Id: Ie3267e1f888df371d281e81ead437a150aa8dc1c
Reviewed-on: https://gerrit.libreoffice.org/79796
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-01 10:21:08 +02:00
Jan Holesovsky e9e6d4b058 tdf#116685: Make the RICHTEXT take precedence over EMBED_SOURCE.
Before this patch, copy in Calc, Paste in Writer produced an embedded
sheet.  I suspect is it not what the people usually want; working with
the embedded sheets in Writer is non-intuitive, I suspect people will be
happier with a normal table which they can style etc. appropriately.

OTOH - this is a general change, so it might have some unwanted
side-effects; let's see what if we get bugreports :-)

tdf#127673 was related; but in my view, we shouldn't create the embedded
objects in the first place.

Change-Id: I73710168d8924fdd6275d65e20cf55f38971a3f9
Reviewed-on: https://gerrit.libreoffice.org/79606
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-09-27 09:54:06 +02:00
Jan Holesovsky b3f249c135 tdf#127673 lok: On double-click, don't enter the embedded objects in Writer.
There are all sorts of problems when we'd try to edit the embedded
objects, like that that LOK thinks it is a separate view etc., so better
to disable it for now, before we really need to edit embedded objects.

Change-Id: Ie8c0249cb0ca8b25a2ac97c1ccec4a5a62cbb770
Reviewed-on: https://gerrit.libreoffice.org/79555
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-09-26 09:33:05 +02:00
Jan Holesovsky dfaf6ebc1e gtktiledviewer: Turn an annoying assert into a compile-time check.
So that people don't forget adding the enum values here...

Change-Id: I0342e2ecca4d7d14641e44ca562b1999921182e8
Reviewed-on: https://gerrit.libreoffice.org/79554
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-09-26 09:32:43 +02:00
Jan Holesovsky 758a4998c5 sw sd lok: Don't enter the OLE editing mode right after inserting a chart.
Turns out that it is confusing for the users that they can edit the
properties of the chart rather than its position just after inserting
it in the browser.

Let's change it accordingly.  When the user wants to edit the chart
itself, they have to double-click.

Calc is not handled in this patch.

Change-Id: If5661b843a06ebaeb8d4cd1b2c469aeedda4257e
Reviewed-on: https://gerrit.libreoffice.org/78318
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2019-08-31 01:00:32 +02:00
Jan Holesovsky 254fd20dd5 Embedded PDF: It is a shared_ptr, no need to copy.
Change-Id: Iedb31bbe0e81dc9568e84858d8d26eac03c47ffb
Reviewed-on: https://gerrit.libreoffice.org/70208
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit ff2c5e766517bbc23409f04335c418bb6fcad6eb)
Reviewed-on: https://gerrit.libreoffice.org/77694
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-08-26 14:38:34 +02:00
Jan Holesovsky 5c5ab9c129 pdfium: Returning a const std::shared_ptr<...>& is not recommended.
Change-Id: Iff6acef712c5b95c8cc222fc5293c9304b1c03ec
(cherry picked from commit c0a3f61ef5c42d6cfa7484a2c759e7638da2c096)
Reviewed-on: https://gerrit.libreoffice.org/77692
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-08-25 13:42:52 +02:00
Jan Holesovsky eb581eff6a pdfium: Use std::vector to hold the PdfData.
This fixes the destruction of the static cache of the PDF data; without
this, there were already missing uno runtime info.

(cherry picked from commit 20055ebe1b27f716a2acf1f0f4dda2864ae811bf)

Change-Id: I877c9ccf96c4b7eabf3d643e17f324d86d987f94
Reviewed-on: https://gerrit.libreoffice.org/77691
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-08-25 13:42:06 +02:00
Jan Holesovsky 81f73f1c17 pdfium: Delay the swap out.
If we swap out too early, the constructor of GraphicObject forces a swap
in, so we'd render everything during the load anyway.

Change-Id: I0ea1a755242fd57ef28d082ce4bf534a32199f87
Reviewed-on: https://gerrit.libreoffice.org/56286
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
(cherry picked from commit 242c7663e275a712430a8c4ac8eeacbb8b3bd440)
Reviewed-on: https://gerrit.libreoffice.org/77690
Tested-by: Jenkins
2019-08-25 13:34:17 +02:00
Jan Holesovsky 7fc0ddd9b7 pdfium: Avoid unnecessary copying + some warning fixes.
Reviewed-on: https://gerrit.libreoffice.org/56285
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
(cherry picked from commit 4ab8dde71c8580bcf2b222ae2d1f68bbe339c754)

Change-Id: I114fa6b2d3dda86c55eb245d31ca3a1019197ae9
Reviewed-on: https://gerrit.libreoffice.org/77689
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-08-25 13:32:55 +02:00
Jan Holesovsky e4cec56a69 pdfium: Keep the PDF data in memory, so that we can really share them.
Otherwise the swap out / swap in creates new copy of the underlying PDF
stream.

Change-Id: I88a16a69143783a998201e183bea1a9553e337bd
Reviewed-on: https://gerrit.libreoffice.org/56266
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/69626
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 826208d2da6c92e94b38ef447e47550285742755)
Reviewed-on: https://gerrit.libreoffice.org/77687
Tested-by: Jenkins
2019-08-25 13:30:37 +02:00
Jan Holesovsky 1d77ea8f3e lok sc: Fix the formula input bar and address bar notifications.
Apparently we did not have the pInputWin living in the background; but
now we have.  There is no reason to treat it in an 'else' branch, these
checks should be separate either way.

Change-Id: Ibb8d92fb1e2803942460d2063847917d082fcb2e
Reviewed-on: https://gerrit.libreoffice.org/71863
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/76292
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-07-25 13:45:10 +02:00
Jan Holesovsky 9712f5d231 android: Fix type of a C string to be const char[].
With the wrong type, we were measuring the sizeof() wrongly, leading to
a hard to catch crash at start that appeared only from time to time.

Improve the concatenation too when at that.

Change-Id: I4a4ab2909124281aac99118d66c62d669294d5f7
Reviewed-on: https://gerrit.libreoffice.org/74375
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/74444
Tested-by: Jenkins
2019-06-21 13:00:21 +02:00
Jan Holesovsky 21201ea752 android: Add the sidebar-related constructors to liblo-native-code.so.
Change-Id: I25acb8965d190fc443d75357352e4d02c9b03cc2
Reviewed-on: https://gerrit.libreoffice.org/74265
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/74443
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-06-21 12:59:52 +02:00
Jan Holesovsky 1a99219283 android: Define the icon theme in distro-configs and switch to colibre.
No need to reinvent the wheel and hardcode it in configure.ac.

Change-Id: Idb08ea0e5ce228bb0758dbdf023f3aee44da76eb
Reviewed-on: https://gerrit.libreoffice.org/74247
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/74442
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-06-21 12:59:31 +02:00
Jan Holesovsky f362a3d8cc android: Fix non-debug build.
Change-Id: If8bb944417da9a0aa6343d7dc87e7a1931689f1f
Reviewed-on: https://gerrit.libreoffice.org/74149
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-06-18 12:31:10 +02:00
Jan Holesovsky 0abdf307ea android: Unregistering in runLoop() is important even on Android.
Otherwise we get crashes in online Kit when attempting to shutdown
reasonably cleanly and the poll kicks in.

Change-Id: I9a1744b42fec9f8ffddc6094773bda943caedf2a
Reviewed-on: https://gerrit.libreoffice.org/74064
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-06-17 07:00:20 +02:00
Jan Holesovsky 2e01334881 Transition sidebar: Apply the transition duration right away.
In the desktop version, the value that is entered there always ends up
applied.  In the Online, there was a scenario when it did not: enter a
value and switch slide by clicking the slide sorter.

There is no harm to apply the value right away when the user edits,
because in the desktop version, there was no way to avoid applying the
value anyway.

Change-Id: I519423d60f682735aeb1d471b3397ff9671c15fd
Reviewed-on: https://gerrit.libreoffice.org/72924
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins
2019-06-14 20:23:10 +02:00
Jan Holesovsky 3db9a5838c lok: Fix status of InsertPage, DeletePage and DuplicatePage.
Status true / false means checked, status enabled / disabled means the
visibility (enablement) of the uno command.

Change-Id: Ib2671984f59ffd5e6f1823a65ea42b33bdfe67d6
Reviewed-on: https://gerrit.libreoffice.org/73384
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 0a8eefb55a2cd473bb7f07f19e23051d3e3a22c1)
Reviewed-on: https://gerrit.libreoffice.org/73865
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2019-06-12 14:57:24 +02:00
Jan Holesovsky e9660591f8 android: Fix build after welding AboutDialog.
Without this, the vcl's AboutDialog conflicts with the AboutDialog from
cui during linking of liblo-native-code.so.

Change-Id: Ie6e5ddd52bb7bdee1c7d53c37ea566d7ce6c9385
Reviewed-on: https://gerrit.libreoffice.org/73613
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-06-07 13:41:05 +02:00
Jan Holesovsky 935f6199d0 Add a parameter to insert a text box directly.
This is useful for the Online, where we want to insert the text box
directly into the document so that it is visible right away.

Change-Id: I09ab2efba758aac077fa37ddfd20b1486b35b3ef
Reviewed-on: https://gerrit.libreoffice.org/72912
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-05-24 23:26:25 +02:00
Jan Holesovsky ad9d2faff8 Attempt to load the theme when LibreOfficeKit is active.
Change-Id: Ie8640b7179a96cb40fb774ede097ca7b3640edd8
Reviewed-on: https://gerrit.libreoffice.org/72349
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 7d55c2b8886ae00a60aa469503f596ee488c25c0)
Reviewed-on: https://gerrit.libreoffice.org/72353
Tested-by: Jenkins
2019-05-15 17:22:37 +02:00
Jan Holesovsky a3e649c338 git-review: Use the hostname instead of alias.
Change-Id: Ibbcb29b411bf413bf110c7d734ff8dc2763b2708
Reviewed-on: https://gerrit.libreoffice.org/72351
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2019-05-15 15:13:47 +02:00
Jan Holesovsky a6d146074d lok: We changed the (unstable) ABI, but let's allow the older C++ API.
Helps building the Online before the appropriate patch gets merged.

Change-Id: I9983d546bb0cb7fb472806622a0a10e3a4d3ab87
Reviewed-on: https://gerrit.libreoffice.org/71665
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-05-02 11:39:30 +02:00