summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)AuthorFilesLines
2022-08-10crashtesting: keep a reference to the passed in LibXSLTTransformerCaolán McNamara1-1/+1
otherwise, as seen with: soffice --headless --convert-to docx forum-mso-de-42789.docx and error will notify the other thread that the load has ended and the other thread will destroy the passed in LibXSLTTransformer early while this thread assumes it continues to exist Change-Id: Ieea9ecc3439ea73cd0433e5e12b87811906c49aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137819 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit 5acf7bd13ed7f9d5c56a30f2be08a47d8e15d89c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137956 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-07-20tdf#127236 vcl: fix missing encryption of PDF images during exportMiklos Vajna1-1/+1
Regression from commit 78e25558e86188314b9b72048b8ddca18697cb86 (tdf#106059 PDF export: create a reference XObject for JPG images with PDF data, 2017-02-23), once a PDF image was inserted to a document, an encrypted PDF export lost those images. The reason for this is that we started to preserve PDF images as vector data with the above commit, but this means we copied over PDF objects from PDF images to the export result as-is, so encryption was not performed for them. Fix this by separating the write of the PDF object headers, stream content and object footer and then calling checkAndEnableStreamEncryption() / disableStreamEncryption() for each object, even if it's not something our PDF export created but comes from a PDF image. Note that when existing PDF files are signed, PDF objects are also copied into a vcl::filter::PDFDocument, but such PDF images are never encrypted, so it's fine to have stub implementations in vcl::filter::PDFDocument. (cherry picked from commit 7d56dae3375dc0180aa6d20983b3f5f962302588) Change-Id: I2f74b9f51cd35b4319221532ca890e197bab9cf3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137260 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-07-12svg filter: transform animations: support for scale and translateMarco Cecchetti1-5/+226
Now the emphasis grow and shrink animation is supported. Now the animation engine is able to handle array of values instead of single value param when computing the next animation state. Change-Id: Ic200103c6c26a63de8eecc37dcd36ba1a2f0d391 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134870 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit a6ed16394c4a95cf204f38c30cb025bc99f00027) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136418 Tested-by: Jenkins Reviewed-by: Aron Budea <aron.budea@collabora.com> (cherry picked from commit 3170a77121aed419cb5a606ee8e7bce7e9c275ac) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136860 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-27svg filter: support for emphasis spin animationMarco Cecchetti1-7/+61
Partial support for transform animations. At present only rotate is supported. Change-Id: If9ba69ec0b74bc3b527a963cb0c0bf3a7bfa5220 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134626 Tested-by: Jenkins Reviewed-by: Aron Budea <aron.budea@collabora.com> (cherry picked from commit 32f2f43929e2869bf2e66f5f70795beb03cb39a1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136459 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-15Fix extended tipOlivier Hallot1-1/+1
(after translation round) Change-Id: I4eea58f44af49d19de9b1aa44fc9ad15e8edda12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135609 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> (cherry picked from commit 817f98279b58a0eaaa0e5ac26f76f1d2788c39ce) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135842 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-11Fix typo on xmlfiltertabpagegeneral.uiOlivier Hallot1-1/+1
Change-Id: I2bc3caa254d997c815bfd36f47504dbc70cadff8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135611 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> (cherry picked from commit e0c5f8b4f6152d19044f998edc293b4bb636e66c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135551 Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-10new loplugin:moveitNoel Grandin2-2/+2
look for local variables that can be std::move'd to parameters off by default, since it doesn't do proper data flow analysis Change-Id: I3403a0fcffd165bdea6a772528bc53995c5fdb40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02Removed duplicated includeAndrea Gelmini1-1/+0
Change-Id: If0b82a13aa5f8fca25fec4d4c72a05a4bf9f98ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135281 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-01clang-tidy modernize-pass-by-value in filterNoel Grandin23-47/+64
Change-Id: Id55c90665eaa29ee2ece07606429411549e06b8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135242 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-25elide some OUString allocationNoel Grandin1-1/+2
Change-Id: Idcb296980ea498373a0fb4f8c0c584eef2c5c9f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134922 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-25allow comphelper::OEnumerationByName to use a vector too for namesNoel Grandin2-5/+3
so we can skip some allocation. Use a std::variant to preserve existing functionality Change-Id: If01ebb04f7895fd52fa3f5d90648868fd38dc39e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134929 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-24modernize and improve PropertySetInfoNoel Grandin1-4/+2
(*) use o3tl::span for the array param, which means we don't need a null entry to terminate the array (*) use std::unordered_map to speed things up (*) mark the array as static at a few more call sites Change-Id: I05b6cae7552f44459e183ec05cb94e60edb3bfe0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134832 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-24ConfigFlush can be directly instantiated hereNoel Grandin1-4/+2
Change-Id: I97934ecf7aafbeec3db9e7149e149a468ae21374 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134854 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-24m_xRefreshBroadcaster in BaseContainer is dead codeNoel Grandin6-24/+8
because we are assigning a newly created object to a weak reference, which means the newly created object is destroyed just after it is created (verified in a debugger). This was introduced in commit e03dd544aec890a6fdf4638380c95104430752a3 Date: Wed Jul 20 08:27:45 2005 +0000 INTEGRATION: CWS fwk18 (1.5.224); FILE MERGED 2005/07/06 09:29:56 as 1.5.224.1: #123808# update sfx filter cache at runtime and commit 49a28fd6309011ba71c8efe1c37c4a585b06f20f Date: Wed Jul 20 08:27:31 2005 +0000 INTEGRATION: CWS fwk18 (1.4.224); FILE MERGED 2005/07/14 12:22:13 as 1.4.224.2: #123808# listen on config to be informed about changes 2005/07/06 09:29:56 as 1.4.224.1: #123808# update sfx filter cache at runtime Change-Id: Ic27cae4a499439009e89b003635067df440d4cf2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134853 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-24avoid some unnecessary work when importing graphicNoel Grandin1-1/+1
calling SetLogicRect triggers a bunch of listeners, but that work is unnecessary while we are still loading the data Change-Id: If71448400878a52551a1a3225d1c9cc1052f9867 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134839 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-23elide allocation of CacheItem when enumerating filtersNoel Grandin7-32/+26
Change-Id: I44f83485b984548118364dc58cbc3939001506d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134805 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-19reserve vector in FilterCache::getMatchingItemsByPropsNoel Grandin1-0/+1
Change-Id: Ic996b2d2e72c4aebc889d8c2a921b77c7c492276 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-17simplify CacheItem::updateNoel Grandin1-7/+1
both branches of the if can be easily accomplished with the same code Change-Id: Iadef72b1e125a11fc27f628a26900ae30dc98220 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134479 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-16tdf#121740 elide temporary CacheItem object in BaseContainer::getByNameNoel Grandin5-25/+37
shaves 2% off load time Change-Id: I91cc04916d77bc7ece1561462403067478a74bca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134345 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-14tdf#149072: fix export PDF with PDF/UA in GUI after Index language was setJulien Nabet1-0/+8
Regression of a1f9fea520f5b3f5d54a284886aa531693f32e7a Make accessibility check dialog async First add of m_xDialog->response(RET_OK) fixes the bug the second one is just here to have same behaviour as before the quoted patch Change-Id: Ib24459e4e946b83172271a9097930e5977e676be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134311 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-05-14tdf#121740 cache hashcode in SequenceAsHashMapNoel Grandin1-1/+1
shaves 2% off load time Change-Id: I5bd4eabf61205df21a27d2822acd2676a7732a3d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134315 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-14cheaper to let Any do the comparison in isSubSetNoel Grandin1-109/+99
rather than constructing temporary OUStrings Change-Id: Ibb083e3fab8a465ae5288359424b297faac83617 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134317 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-14use comphelper::WeakComponentImplHelper for TerminateDetectionNoel Grandin1-5/+4
Change-Id: I6184bdef7b487f71549cd50c96c764a93ef791de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134274 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-11only instantiate SfxFilterMatcher when we need itNoel Grandin1-1/+3
Change-Id: Ibb6162ddc6bec73beef6fffc8cf53976dc82313a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134156 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-07osl::Mutex->std::mutex in filter::config::CacheUpdateListenerNoel Grandin2-9/+11
Change-Id: Ib791be8495f2ad2855cceb94d45f2bd0995e3710 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133975 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-06remove unnecessary sequenceToContainerNoel Grandin5-16/+15
If we are not going to manipulate the resulting vector, then it is actually slower, since we have to allocate more storage for the vector Change-Id: I6d5f5b0150cea9e8a0663ccb1398b0237f3fca9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133943 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-06tdf#103954: Z compressed graphic formats support for EMF/WMFofftkp2-2/+2
- Added .emz and .wmz file opening support - Added a function to check for Z compression that all z comp. formats can use - Added 3 unit tests for emf/emz/wmz files and the example files have been checked with a different tool (File Viewer 4) - emf/emz file detection changed from magic byte checking to extension checking, like wmf/wmz does Change-Id: I3e433fd23d18482648a51cd04b8f467368e97b62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132456 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-05-05use more o3tl::getTokenNoel Grandin2-10/+12
found by inspecting call sites of OUString::getToken Change-Id: I4269c7476c7aa46fac39528227e350568f0eb34a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-04Just use Any ctor instead of makeAny in filterStephan Bergmann12-42/+42
Change-Id: I68bbbc2cc80ac5efde78e10706b488bf78c058bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133816 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-03add o3tl::equalsAsciiNoel Grandin1-2/+3
Change-Id: I042b8dcadbf7581de325c161763fe35aecde5ca2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133694 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-29use more string_view in INetURLObjectNoel Grandin7-8/+8
Change-Id: I4462f7cf4740fa4d1b129d76a0775f4250f41bbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133555 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28Add initial support OfficeArtBlip TIFF formatBartosz Kosiorek1-33/+63
Additionally the magic number were replaced with enum Change-Id: I7d825ec84ff5cd5ff315ee37613e3b84cb6f0567 Change-Id: Ic33022a0e225099f2397dd300f4792055184fd10 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133526 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2022-04-26Two more uses of rtl::createUriCharClassStephan Bergmann1-20/+6
...that 6a9f342addf8b1c766163575c7b63e7fcc1f714e "Introduce rtl::createUriCharClass" had missed Change-Id: Id37399cb88df25aff22d42e889aea12c1ca90797 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133423 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-19new loplugin:stringviewvar looks for OUString vars that can beNoel Grandin1-5/+5
... that can be string_view Change-Id: I0ddf66725e08b58e866a764f57200dd188b9f639 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133066 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-15ofz: Timeout 23s->4sCaolán McNamara1-14/+6
Change-Id: I10d48584e0ab0ce52cabe8077602f557b6392492 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133012 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-14use more string_view in filterNoel Grandin4-25/+26
Change-Id: Ieff65b96487051721f9016c005523f31b7415901 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132984 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-14ofz#46630 Indirect leakCaolán McNamara1-62/+60
Change-Id: I2af5f9e0b8ac210f6d1a7700ac6cb6213d706e19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132986 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-14Make accessibility check dialog asyncNickWingate2-21/+32
Signed-off-by: NickWingate <nick.wingate@collabora.com> Change-Id: I88913b3d7e580a1d8c69a39454f2598e11ba43ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130438 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Mert Tumer <mert.tumer@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> (cherry picked from commit 61fed0c4fe53738254d116543417f1c7028a0f39) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130451 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
2022-04-13tdf#139991: move 0-byte file handling to SfxFrameLoader_Impl::loadMike Kaganski6-106/+107
This centralizes the code that handles templates, and allows the empty files to use default templates. This partially reverts commits: ada07f303e7cd1e39c73abe0741aefe7d9d73a57 Author Miklos Vajna <vmiklos@collabora.com> Date Wed Oct 28 14:54:52 2020 +0100 tdf#123476 filter: try to detect 0-byte files based on extension 2854362f429e476d4a1ab4759c6a1f1c04150280 Author Mike Kaganski <mike.kaganski@collabora.com> Date Wed Jan 27 16:05:54 2021 +0100 tdf#123476 filter: Also handle empty ODF dff586735b6618d9b011823594a33287d8f7f223 Author Mike Kaganski <mike.kaganski@collabora.com> Date Mon May 03 17:04:04 2021 +0200 tdf#123476: also use filter by extension when its service is the same The unit tests from these commits are retained and extended for templates. Change-Id: I755738d2d5a6d6955d84d6e12f3accc017e0391f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132938 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-04-13loplugin:stringviewparam whitelist some more functionsNoel Grandin6-12/+15
for which we have o3tl:: equivalents Change-Id: I4670fd8b703ac47214be213f41e88d1c6ede7032 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132913 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-12loplugin:stringview more o3tl conversionNoel Grandin1-2/+2
look for call sequences that can use string_view and the new o3tl functions in o3tl/string_view.hxx Also add a few more wrappers to said #include file Change-Id: I05d8752cc67a7b55b0b57e8eed803bd06bfcd9ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132840 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-10use more string_viewNoel Grandin1-2/+2
found by tweaking the loplugin:stringview and making it whitelist getLength Change-Id: Ic15d3703d1fb07658e99e1db1c89e2fa5bc70c19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132771 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-10loplugin:stringview check for getToken and trimNoel Grandin1-1/+2
since we now have o3tl versions of those that work on string_view. Also improve those o3tl functions to support both string_view and u16string_view Change-Id: Iacab2996becec62aa78a5597c52d983bb784749a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132755 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-08move comphelper::string::toInt32 to o3tlNoel Grandin2-4/+4
so we can use it in places where we cannot include comphelper Change-Id: Iba0ba3e4c0dcf0f9d1f09092a77c3b2010ec4f6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132732 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-08allow to override the generator/producer string in output documentsLuboš Luňák1-4/+10
Add a (non-gui) setting GeneratorOverride that, if set, is used for odt/docx/pdf generator string identifying the application that has written it instead of the normal productname etc. string. Change-Id: Ibe12a063e7e6b5a09c69cdf66cba073793650d62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132495 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-08use more subView when converting to Int32Noel Grandin2-2/+4
Change-Id: I54e3ddf79ba793fd4328bf8bda7f949b65349651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132693 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-08Removed duplicated includeAndrea Gelmini1-1/+0
Change-Id: I898c24abd5366a85705b5f54258b16b22e044355 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132715 Tested-by: Jenkins Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2022-04-08loplugin:stringviewparam convert methods using trimNoel Grandin1-15/+16
for which we add a new o3tl::trim method Change-Id: I9d37b6264eea106aa2f3502bd24b8cccf7850938 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132658 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-03cid#1503358 silence Unchecked return valueCaolán McNamara1-3/+3
and cid#1503359 Unchecked return value Change-Id: I12e1a3501674c8d99a705e3a84aa9afe7b8b0754 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132477 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-03loplugin:stringviewparam convert methods using matchNoel Grandin1-3/+4
which converts to a combination of substr and o3tl::starts_with Change-Id: I5b01a181b9e6bee3483e4f49f1a9426abcc682d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132458 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>