Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 9dd263a

Browse files
authored
WIP: M-575 faster input, switch lok to unipoll and integrate collabora (#99)
* Squashed 'libreoffice-core/' changes from a0612242a3..c5f3fd75e5 c5f3fd75e5 don't deref null m_pDocShell f67080fe46 CryptTools: simplify the define conditions a bit 16effa3e37 pdf: PDF dialog set the default member var. values in header file 45ce6fb9e6 slideshow: render text shape with all paragraphs animated properly cfdc63bb68 slideshow: render fields slide number, footer, date/time a8a7853bc9 slideshow: check JSON content for slideshow rendering test 3227919ea1 slideshow: simplify rendering, render text fields each in own layer 7ff3545754 lok: slideshow: provide support for interactive animations sequence 7b7dbaf835 tdf#158460 xls/x export: don't force wrap-text for imported single-line 1764d69175 tdf#159690 tdf#159938 Revert "tdf#158252 sc: Enable text wrapping... 7df2088a55 tdf#161453 tdf#158252 tdf#159690 Revert "sc: Fix wrapText ... dcbf6dba50 fix(swfexport): Fix crash on matrix export d2482093fe call PathSettings::initialize after utl::Bootstrap::reloadData ffc25dbd35 Add unit tests for .uno:DeleteContentControl command 5d4ae3db29 sw: add .uno:DeleteContentControl command af5554b941 add XInitialization to PathSettings 1509ba3dc6 Bump version to 24.04.10.0 3843bdcd3c sw lok: async readonly dialog when pressing delete key on protected content 95e9c210ef switching PageKind without switching EditMode retains current page f8cf2eaba6 use bNewFontLists of true to refetch new font lists a334219781 delete useless parts of GalleryCodec::Read c6ba955476 cool#9992 lok doc sign, create-certs.sh password-less mode: still create a .p12 2ebb120548 tdf#163667 speed up spreadsheet with lots of cond formatting (II) 01f0f02246 make the autotext shortcut warning dialog async 8ee5952a13 Drop requirement that there is internal/shared autotext. 0051570648 tdf#161349 writerfilter: only copy page background vml fill f4dc18b42e Fix unchecked dereference 7d7d94b771 tdf#163667 speed up spreadsheet with lots of cond formatting 7f7c806ff4 Related: tdf#162072 compare fallback to what "serif" resolves to 1e485adefc fix GetBackColorFilterEntries missing colors a2eb59fafd tdf#163486: PVS: Initial and final values of the iterator are the same 53b2e17e49 sc: fix: unnecessary updates to ScPosWnd when named range are empty 459a9401f3 sc: autofill: send to-be-deleted cell addresses 4f7b778bd0 Fix Gtk-warning in condformatmanager.ui fe040625c2 lok: calc: fix assertion on toggle autofilter 86422743e6 sw: redline changes may try to set broadcast on non PostIt fields 1f4009e98c fix bug in XclExpXF::Init (tdf#163667 related) 5690f62d32 sc: fixed incorrect conditional format list usage 69c6ce6d8c sc: fixed crashing on conditional format entry selection 42593961a7 cid#1633842 Uninitialized scalar field f8c87d617f svx: calculate fill color with transperency ee4b332453 cid#1633859: COPY_PASTE_ERROR 41803670f7 tdf#157240: also set font color together with font b14098b698 cool#9992 lok doc sign: allow injecting sign cert/key during pdf export 139997e4b3 diff-pdf-page.py: remove intermediate composite step e4cd6c8118 diff-pdf-page.py: change assumed background to transparent 635c4092e2 diff-pdf-page.py: allow use of "magick" (on Windows) 0e0d8377b3 diff-pdf-page.py: use magick order for -composite 0f77a35efd bin: add a diff-pdf-page.py script to diff reference vs our rendering via PDF 706902351a sd: lokit: add notes to presentation info c617e551c2 In dark mode, configuration of master page is checked for auto color. 087c4c549f Bump version to 24.04.9.1 6631d1064d tdf#163516 Draw fails to restore Layer data Title and Description b245943faf windows packaging: reduce parallelism further to three 053a87df94 tdf#159007 Revert "optimization to skip SdrObject::GetViewContent()" d2b1344dd3 tdf#163381 XBitmap.getMaskDIB() is inverted 2990c7ea4d cool#9992 lok doc sign: never remember previous .uno:Signature params d48264d518 cool#9992 lok doc sign: allow late-init of the sign cert a0b328f132 cid#1633319 Resource leak e0856bc538 Optimize JsonToPropertyValues a bit 94c0664d54 comphelper: test uno::Any parsing from JSON 9ed5dd5d1b Don't need to send both text and html 9fef2827aa slideshow: fix para. rendering when using SdrBlockTextPrimitive2D 0e05a04a9b lok: encourage more sharing of config Node pages. 914e79524c SimpleReferenceObject: add ability to staticize the ref-count. 751cf52d97 jsdialog: send cell address on startup with jsdialog too 9ffc274bbc cool#10115 sc: enable ScPosWnd for lokit with jsdialog 115776004c sc: fix: unnecessary updates to ScPosWnd even if NamedRanges are same 97b62e203f Update git submodules d3bc1970fa make quotes warning clearer for conditional format dialog 89fe841cdc sc: simplify boolean checks by removing redundant comparisons bdb0dd485d Prevent 'Failed to dispatch .uno:None' message 598e93b1b1 sc: prefill easy condition dialog with editing condition data 71858e5e55 don't need to use dlsym for cairo_surface_set_device_scale... 373a0470bd Optimize a bit: only create std::locale once in parseDudenResponse bc4a9f007b we don't need to copy the Name here, a reference is sufficient 596ac57136 shave some time off SdStyleSheet::setParentStyle 0287036fa4 treat divs as requiring a new block/para 90b0cd76ee Update git submodules 656bf70a0c PDFDocument::ReadWithPossibleFixup: clear before reading fixup 0a485dc9f4 tdf#160127: Improve grammar check popups from Duden 5cfd9fcca3 Revert "tdf#160127: revert 7697ef9d8fbbed7afba10c00ff9f5362d0540cdd" 4ed57abebb Revert "Return earlier if there are no proposals from Duden checker." cccbf8608f feat(json): Allow serializing any 18e1f0e92a We're not interested in using an empty reply 3eec192578 sc: change how .uno:FreezePanesColumn/Row get the index a260cc52b2 Reapply "Prevent cursor invalidation if the cursor position doesn't change." bd7fac1441 Update git submodules 0639e25610 Update git submodules d51b9be02d Dereference before nullptr check e010913d49 tdf#163341 package: fix reading Zip64 produced by stream-write-ods ee7457688c tdf#163364 package: ask to recover for this invalid ODF package 3d3b29551a avoid PDF export crash when ReadWithPossibleFixup falls back to Pdfium b9d77aafe7 tdf#163152 don't convert image's sRGB colorspace cf049bdcd4 vcl: Use fabs() for double argument 01b8ba0e61 tdf#161479 make presentation work on fractionally scaled display 3eae55420d Allow replies with rich text content from command arguments 329ca3b148 allow creating rich content comments via .uno:InsertAnnotation args 2a3053921e use row&column address for autofill preview popup ce9ab2c38a lok: calc: fix formulabar after accept formula command 2a6dc9dfd8 sc: give warning about condition input in easy condition dialog ee58156c54 tdf#158773 do the cheap checks first 6d1b5abcc4 use ConvertStringToHTML for the URL too 643871896f tdf#163032 sw: fix painting of row frame with rowspan > 1 cell 52f1ef792c tdf#161810 sw smart justify: fix overhanging lines containing tabs 31c4cf23f4 related tdf#162884 writerfilter: map to built-in Internet link, etc. 9eb5896134 tdf#163154 revert "tdf120224 writerfilter: consume excess bookmark a6f52bbdc4 tdf#158323: CRASH when switch back from HTML to Normal View... 8bff1d6e15 tdf#158124 KEY_DELETE events do not need an ExtTextInput event 218810884a tdf#163170 Add support for MS Visio Template format with .vstx extension 50c7e5a218 tdf#163145: revert commit 6f224a17dbf635319503a81ce4038b1ae2ad6de0 390888297f tdf#163135 eliminate native "secure coding" warning 0c05896845 tdf#163091: check rParam.mnX before passing it to RowInfo::cellInfo f1d8f8fcdd cool#7406 Revert "cool#9019: draw/impress: disable the Grid for now" 6b21c4af3d cool#6382 lok: sw: text wrong format on inserted text dc533d82f4 slideshow: Fix "calculating" the hash for the object's paragraphs 959bbd2ddd slideshow: Render each animated paragraph in its own layer 8903ddff87 sc: make sure autofilter color area is caluculated 9cf582bc9a We don't need to constantly fetch SvtCTLOptions::GetCTLTextNumerals fbf819d456 related tdf#125038 DOCPROPERTY:fix spurious text outside IF field 243c3df55c Back out "Drop Macromedia Flash export filter" 37efd07802 Partial back out "loplugin:constantparam" 96a0800040 Partial back out "loplugin:unusedmethods" 43162f38da SW: extract transform DocProperties bbc4519d20 Bump version to 24.04.9.0 87a8b79857 improve ODF sheet saving performance 5c17afa358 Resolves: tdf#163275 crash in async dialog use after free 541272d3ea feat(lok): Add extra impress export formats 777afd5bd9 RegisterAnswer is never passed null ac5d2b5bad add a 'simple-html' export to editeng dbb054045f Refactor focus handling in `LevelHdl` and `SwTokenWindow` 26e4f2fdca allow editeng html import to treat divs as inserting a newline dd42aa47b2 tdf#160591 PPTX export: fix colormap mapping in slide master b4e424adbf support setting writer comment contents from simple-html 304264810f cool#7406: Refactor Impress->getPartInfo & use JsonWriter. 7ea2394e7b cool#7406: Refactor Calc->getPartInfo & use JsonWriter. d6b5d08041 Split out this html parsing hunk as a separate NewLine method 4baad2222e Log using LOK_WARN instead of std::cerr 1cb191e6fc cool#9992 lok doc sign: avoid storing the sign cert in the model after sign 71a448f55a tdf#163000 don't add any fonts with an 'hvgl' font table d1ed24ba34 Get SolarMutex before calling ImplClearAllFontData 65f2b78449 cool#9992 lok doc sign: update sign status after modify the list of trusted CAs 10ed0fe180 perf: improve ScFlatUInt16RowSegments::dumpAsString() 025e089c08 sidebar: move apply to all slides above repeat settings 8da7537528 Revert "Prevent cursor invalidation if the cursor position doesn't change." a20c92d864 cool#9992 lok doc sign: convert the certificate chooser dialog to async 335bb5b39c fix(lok): Expose the import options dialog 283f771b92 fix(lok): Expose the character encoding dialog 6a2071cafa Prevent cursor invalidation if the cursor position doesn't change. e32687c45e cool#9992 lok doc sign: only take sign cert from the view in the cert chooser a5dcb80e34 tdf#163000 don't add any fonts in the system "reserved fonts" folder d9de429497 Fix typo in code a9d412b7d4 cool#9992 lok doc sign: conditionally show the add button in the sign dialog 2d746f4c68 desktop lok: fix crash in getStyles() 266597c532 cool#9992 lok doc sign: fix import of the private key f337386d92 null-deref seen in testing 5c1b808edf Bump version to 24.04.8.1 ed75469d32 Related: cool#9735 allow LOK_CALLBACK_DOCUMENT_SIZE_CHANGED during paint 99e1233836 cool#9992 lok doc sign: store signing cert in the view 4418b3e453 tdf#162916 writerfilter TOC: import "no page number" flag 13267d5a40 cool#7406 Inform lokit side about the grid state. 927fd9820b prefer the per-ViewShell rendering data for default document bg color 6039a47c4e Don't change focus from sd navigator if it will be immediately refocused 281c8fbfa7 cool#9992 lok doc sign: handle .uno:SignatureCert/Key/Ca view options 66e87acd7a tdf#163086 Resize SVG pin icons to 24x24 and clean them up 5179c4a1b8 vcl: mask scale regression in BitmapFastScaleFilter 43ee465b7d update credits 71e75bdfce Resolves: tdf#162958 When using formula with Impress Style is lost ab2fd7c9af cool#9992 lok doc sign: extract duplicated code to SfxLokHelper 93730aee7d tdf#163092 sw: fix broken anotations on save to docx d679849aca SW: Transform DocStruct: Added Log warnings adc7adfd8d package: add unit tests with invalid zip packages b519007d22 libtiff: upgrade to release 4.7.0 b460bb3e36 ofz#68840 another putcontig8bitYCbCr22tile issue 26fba48e4b cool#9992 lok doc sign: add password-less mode to create-certs.sh 67699071ba cool#10040: fix: send LOK_CALLBACK_CELLFORMULA with LOK formulabar update ca7af7bef0 upgrade to current Karla font that contains the 'fi' ligature 983b6dea54 lok: getSlideShowInfo: return the slide names 330545f0b0 Update git submodules 4c2642166b curl: upgrade to 8.10.1 b246c10f12 tdf#162866 package: fix loading AutoCorrect file with case-insensitive 1729a7fa05 xmlsecurity: add unit test with docx that can only be opened with repair 6d7c5d520b package: tweak password fallback in ZipPackageStream::getDataStream() 4c425ea275 tdf#162841 package: fix loading AES-GCM encrypted macros from ODF c8ff76bc59 tdf#162987: check return value of GetViewBindings 6283511a57 Check return value of GetViewBindings 8176838684 tdf#162823 package: fix loss of ODF encrypted basic macros 6005406316 sw: 0.03928 -> 0.04045 2624d88194 ofz: 22 byte .zip is min size 9f3e378282 libpng: upgrade to 1.6.44 d39cc55b5d update credits 383ce45d19 update credits b68abec629 lok: impress: Fix variable name b4ee23f969 remove LOKSlideRenderer implementation bc71b10fc3 cool#9992 lok doc sign: fix signature status after load fd88a5bcb2 reset m_bEnd after use to quit lcl_workerfunc 3fa8df9e7f LOK: send state of EditDoc for write protection status b851cb61d3 This should iterate over the thesaurus languages, not the spelling ones e20ed80104 cool#9992 lok doc sign: implement signature removal c5fc86e770 Output what languages are handled by LanguageTool 26e433e0e3 move setLanguageToolConfig out of extern "C" zone 9031c05671 lok: slideshow rework: check that requested slide is the expected one 9e30eb5b06 null deref in SwXTextDocument::initializeForTiledRendering 3bb2668f5e sw: add new command to make a response comment root 5b7c389f05 tdf#162884 writerfilter: map to built-in footnote style name 12dea9efce poppler: upgrade to release 24.08.0 2cf4829e72 poppler: Upgrade to 24.06.0 de539d4b80 poppler: Upgrade 24.05.0 f8d9ec5674 tdf#161007: Report Builder Wizard fails dbfe3a3de0 curl: upgrade to 8.10.0 4f890c4cbc expat: upgrade to release 2.6.3 e1c53750f1 cid#1619147 Dereference before null check f6167e16c7 Python: upgrade to 3.8.20 339219d745 xmloff: fix deref before null check 70a2280118 poppler: upgrade to release 24.03.0 829b27794b tdf#155751: dBase: BETWEEN won't include first and last value in queries 524364596a sw: fix hiding of flys in hidden sections, part 3 221838f5c1 curl: upgrade to 8.9.1 f4b1b19254 curl: upgrade to 8.9.0 aa38003c4b sw: fix problem with 0-height tables after unhiding section 1b23e6d533 cui: fix another plausible crash f09c7dc21b sw: fix hiding of flys in hidden sections, part 2 5fd622e9cd fix crash in Hyperlink dialog 691699e566 sw: fix empty pages after hiding section due to SwTabFrame 6c38013ff0 tdf#161741 tdf#161705 pgnum wizard: avoid undo crash (sledgehammer) f860ec9c12 sw: fix hiding of flys in hidden sections 5f3b55b078 mariadb-connector-c: upgrade to 3.3.11 a24287b0af openssl: upgrade to 3.0.15 a68d1d75ad curl: Upgrade to 8.8.0 1e0250dadd sw: fix problem with 0-height text frames after unhiding section 4eb92f592b sw: layout: fix page breaks when unhiding a hidden section 22295d710f tdf#162764: make the two dialogs modal e546323a76 tdf#162725 sw smart justify: fix last line with multiple portions e9dfff1f58 tdf#162109 tdf#162220 sw smart justify: add unit tests 76b29bc352 tdf#162220 sw smart justify: fix shrinking for single portion lines 6d28246b95 tdf#152919: update UserFields 207f8e02b1 Resolves: tdf#160675 reformat 'blanked' metricspinbutton after setting value 6dacba0118 tdf#157198 auto correct done on EndExtTextInput not seen until next update 36f7a3ca8c vcl: fix testMultiPagePDF with zlib-ng 9a3e84b0f2 tdf#127610 subtract width of shortcuts from width available for tab items a4f2e754bc tdf#161805 cui: Populate line tab menus when page gets created 2135db283d Resolves: tdf#162455 svg->curve causes text in objects to disappear e4251f16e8 reduce time spent in RecalcPageNums when importing PDF 44fea573fe slideshow: use unified hash for animations and layers a0b779adad cool#9992 lok doc sign: allow sign of macros & the document itself in one step 5f0083fdee null pattern deref seen in ScViewData::SetEditEngine 7d7b668d37 sc: fix -Werror=shadow d9338fcf8f SW: extract transform charts (using dialog code) 4cb25fa922 cool#9992 lok doc sign: async read-write DigitalSignaturesDialog b46628863a cool#9992 lok doc sign: async DocumentDigitalSignatures::ImplViewSignatures() 38122c330d cool#9992 lok doc sign: async DocumentDigitalSignatures::signDocumentContent() 11af9233ab cool#9992 lok doc sign: make SfxMedium::SignContents_Impl() async e8e7ba59e6 Related: tdf#129061 Avoid formula import and use fallback for now e3786f684f tdf#162781: also shift down tables with text::HoriOrientation::RIGHT 8c74383e6f Bump version to 24.04.7.2 44ae09905e Update git submodules aede1fbb77 slideshow: lok: export hiden slide d5a6f7dff9 add OpenGL transitions even when OpenGL is not available 5044236b08 feat: Make move/copy sheet an async jsdialog 294b9a04e5 slideshow: export isField property for layers 84e00eae91 lok: slideshow: animated shape bounding box in twips 980e9c52b8 lok: getSlideShowInfo: interactions: check that properties are available 791c5f20dc slideshow: lok: export bounds for animated layers 610b6180e5 slideshow: lok: correct z-order c7623db052 slideshow: fix initVisible value cc1cf3d93c LOKit/impress: Send click actions for slideshow c4d56ce68e writerfilter line spacing: don't convert PROP to PROP 798e1a5aab lok: slideshow: render animated objects as separate layers d87e4e331b lok: slideshow: render background as separate layer 7db8e37adc slideshow: extract initial visibility of the animation target a54bedd792 svx: fix "NatNum12" preview string format b256f3bc54 cool#9992 lok doc sign: add SfxObjectShell::AfterSignContent() 72c88c2286 Identify layers so can be recognized as animation target 4a8731411b add autofillpreviewtooltip type for LOK_CALLBACK_TOOLTIP 33301e8623 Render objects that are in an animation as a separate layer c68182b3fb Make rendering more flexible, render fields in separate layer 24c428e9b6 tdf#162782 SVG export: fix handling of semi-transparent text inside a list 5a1c372ec7 sc: check only background color for automatic font color b8b5da4119 intruduce RenderContext, RenderOptions to remove code duplication 30a5734a36 render master and slide content separately (drawinglayer render) 51d99782dd render slide layers with VCL / drawinglayer primitives 1f04bdc319 cool#9956 uui lok: avoid showing the password dialog for now 9a959b9282 Remove unused callback. bf980c7b7c Return earlier if there are no proposals from Duden checker. d9890cc6b9 tdf#160127: revert 7697ef9d8fbbed7afba10c00ff9f5362d0540cdd b440026713 lok: slideshow: export slide duration also when there is no transitions bd63513cbb lok: slideshow: not export endless and repeat property per each slide f93d46429c lok: sw: restrict deletions on comment only mode 832eee1511 sc: make SelectRange dialog async 092a215ef3 tdf#162707 DOCX export: fix lost paragraph styles with many numberings d859abfaba null deref of pTableView seen 040528ee50 tdf#162715: do not import theme when pasting from clipboard 8b60301862 sc: maintain calc function list per language f7b72cabd3 lok: slideshow: export animations tree as json: some improvements c513d0785d sw: call HasFullPageFly() later in SwTextFrame::FormatAdjust() 45330b2a16 Revert "Fix font color must not change depending on background" ad0925dc02 tdf#162662 sw: fix layout loop with full-page anchored shape that wants to wrap 3f7c2c644d Fix Repository.mk after 'add --with-docrepair-fonts option' (tdf#161941) a0fc5c330f If there editeng backcolor is unknown, assume bg is the doccolor fc4f7590e0 Bump version to 24.04.7.1 ee7138afe1 A number of bogus GCC 13 warnings still hit with recent GCC 14 trunk 82e2031cfc -Werror=calloc-transposed-args 6ceabeaf43 Silence new GCC 14 trunk -Werror=alloc-size 1bf32a4ba1 cid#1616924 Dereference after null check 927de2758b tdf#162480: Make sure to use correct anchor point for text box creation edf1a745b9 Resolves: tdf#162093 TableRef item specifier may occur standalone 1a624e151f cid#1557116 dangling reference 4a9874f441 postgresql: Upgrade to 13.16 6f70538f9f LOK: avoid dark auto color font on dark background 072ffc3d85 ONLINE: Insert slide to specific position 2ca381b31e sc: LOK: automatic text color was based on doc color instead background 1ae9e6fc33 ONLINE: Fix multi user dark mode link color problem 8099437399 Resolves: tdf#162597 'ok' in chart range dialog doesn't commit datarange 35a50bc51c Resolves tdf#159541 - Fix font color must not change depending on background dddb8c4328 tdf#162574 sc HTML paste: handle not well-formed json for td data-sheets-value 2329d0ebf6 speedup sorting of marks in markmanager 77ae7611fb In desktop we want to update all the calc shells for dark/light mode 2949681e7d text drawing boxes don't redraw with a new text autocolor choice c2a2ed2b9a ‘bShowingPlaceHolder’ may be used uninitialized [-Wmaybe-uninitialized] 803d79b993 lok: enable Zoom transition and RotateIn sub-trans. type 883d01dd47 lok: disabled misc shape wipe non supported transition 27c2b99bcd lok: enable MiscShapeWipe transition and sub-tras. Heart, FanOutHoriz. f5e4232396 Revert "Add one more property to JSON object to distinguish time fields better." 1cb43ae6b3 reduce use of dynamic_cast in marks 195623eec4 tdf#161941 add --with-docrepair-fonts option 1a6622b2f2 Add a test for setAllowChangeComments function. 22a79ef716 sfx2: fix crash in SfxObjectShell::IsHelpDocument() 4edf109f9c sc: fix crash in ScModelObj::initializeForTiledRendering() 78f2ca09e6 nss: 3.101.2 is the ESR release b5ba5e0ed8 tdf#162109 sw smart justify: fix overhanging last line e63cb1b0ca sw: do not paint hidden frames d1a22ae63f sw: layout: allow table in hidden section to move back 7d0c6a0b0b Related: tdf#161533 Test fixes for CJK systems be5e7ffd7c tdf#160843: fix page count reset d3969d1c78 Add missing property to com.sun.star.graphic.MediaProperties service 1af71783a9 tdf#161139: add unit test to sw filters pass 1092312bbf Handle possible exceptions in SwView::ImpSetVerb 9111b77846 Another case of pointers comparison 64e35d7e92 tdf#162439: compare strings, not pointers 996218bce9 package: ZipPackage: add additional check for entries STORED with 011545763d tdf#162121 sw: fix tab stop position in columned ToX fab6f878ae tdf#140061 keep SwCharFormat instances alive while SwDoc is alive babcaf0e6b fix build on armhf with gcc 14 1e87d4fc99 tdf#156689: don't initialize the last columns from the default attributes 6873dfaba1 update credits 48d6b04237 tdf#140289 vcl: appease Adobe Acrobat Pro, always produce /Tabs a201afd913 configure,curl: enable GSSAPI on Linux/MacOS/etc. 24291153ce package: ZipFile: check Zip64 end of central directory for consistency e7b9c449e1 Resolves: tdf#141398 auto-select first entry of filtered results f766ca77ca HTML/ReqIF export: make sure to close input tags a3482be66d libxml2: upgrade to 2.12.9 d660f69dbb Resolves: tdf#162278 get popup position relative to the dest parent ad05ff3ab1 tdf#162035 sw: fix crash with field in SwMultiPortion b69887b42a tdf#161264 don't hide paragraph with empty mail merge fields 2f4d180bc9 tdf#161871 Revert "Removed Type and Usage Columns from Certificate Chooser" cf84c493f3 Resolves: tdf#160509 use BorderWindow client for dialog parent 3a41a83471 Resolves: tdf#162087 FormulaCompiler::OpCodeMap::maHashMap must be uppercase 1115148905 tdf#161858 prevent crashing by catching any JSON exceptions 9305e314f8 tdf#162062 only apply fix for tdf#161833 if there is a palette a5f1298802 tdf#161729 clear style sheets in same order as they were added a13aa376bc tdf#162010 match based on key equivalent instead of key event d932bc21d9 tdf#162171 alpha mask pixels are now alpha instead of transparency 2fa5d985e5 (related tdf#126008) sw: add config to disable table autoformat ... cf03e539ac (related tdf#126008) sw: when removing table auto format, don't... 266192097e (related tdf#126008) sw: allow removing table autoformat from a table 4636d81f0b package: add additional consistency checks for local file header c564ddb41a android: Handle cursor keys 0259ae2fa2 tdf#122756 clone formatting includes table number format 84276bb492 package: don't check case insensitive duplicates for ZIP package 9bdde672e5 Resolves: tdf#158753 GtkAssistant loses current page on hide+show 6973eb0c83 Resolves: tdf#161989 unset gtk emphasis defaults to light 576882588d tdf#121140: GPG checkbox only for file formats with GPGENCRYPTION flag 5cd2dba6c6 tdf#160976 rtfexport: export first header as well as default header 43c46151a7 crashtesting: crash on hyphenation of ooo56629-9.odt 8941140c7c null deref seen in SdXImpressDocument::getPostIts fa9428e820 Add one more property to JSON object to distinguish time fields better. d805785b2c lokit: calc: send named ranges as well on calcfunctionlist callback ad124b2de2 LOKit: Enable the Execute Interaction command for Impress 321166fe6e cid#1616505 Uninitialized scalar field 0bf1be9778 impress/draw: make the SdActionDlg (Interaction...) dialog async 74982577a5 LOKit: Enable the "Interaction..." command for Impress. c025051b17 Related: cool#9735 sw lok: handle the AnyInput() callback during idle layout d30701722b optimise GetDataEntries a little 4293485f7d Fix: Make the repeat slideshow property independent of the TransitionType e616514888 fix: repeat slideshow duration display issue c7fa6db887 Related: cool#9735 vcl lok: add an AnyInput() callback 17379f4011 fixed tdf#162471: display comment dates in ods if available b37e4b0210 slideshow: improve grammar for repeat slideshow in sidebar 8f1a575b87 lok: fix repeat slideshow after duration issue bb509f7cd4 lok: enable additional transition uno commands a1ba79bd29 speed up getInnerFieldmarkFor some more with bisectional and reverse search d88c8c753d lok: enable transition repeat after x property 7c8c96a073 fix null deref on fetching postit outliner 8423a7a21a tdf#162466 calc: added handling of firstHeaderRow="0" on xlsx files 378967ae8c lok: sd: transition information: export fade color 47680e0058 cool#9699 - Don't show Help button when there is no help d7349b9ac4 LOKit: enable the Distribute command 3bffaff6d3 Bump version to 24.04.6.2 b6e0586379 sc: comments loaded incorrectly in xlsx 5797d70b10 tdf#162370: check if nNext is valid, too b8c537ed32 cool#9735 sw lok: take LOK vis area into account when deciding idle layout 7f259891ed Simplify GetObjectRectangles function with JSonWriter. 1fd9f1a62b tdf#162398: InsertItem_ may modify items 8b00f3a3c5 Add SdrModel "IsImpress" function. 7d34d4944c slideshow: change transition drawing view to icon view 47e3d66637 jsdialog: support textWithIconEnabled into Dump icon view f33e6d336d Related: tdf#162295 DOCX import: optimize copying headers/footers 36d0d5a639 We need --with-buildconfig-recorded to display build config in admin console 2815d11bb6 cool#9704 calc jsdialog autofilter send disabled entry information 85593acefd use the new linker on macOS (introduced in XCode 15) df56b594cb cool#7710: Make Slide Properties Dialog in Impress Async 612284a12d lok: avoid excessive progress updates. b3ff9095cd tdf#162295 DOCX import: optimize the check if the header/footer is empty 6475f4de73 reduce cost of dynamic casting in SdrMarkView::CheckSingleSdrObjectHit 183078c3a4 When a shape is selected, send other shapes' rectangles. 6d795d6f04 Fix potentially uninitialized pointer variable f148ea4fb4 slideshow: add flag to skip animation rendering bfa513d4f5 optimise ScTable::dumpColumnRowSizes a little 3552517086 tdf#162280 vcl: consider font family type for glyph caching de15d0a566 m_aPixelSize should be in pixels, but GetPrefSize depends on GetPrefMapMode f805a645b9 fix(invert): Avoid spurious LOK invalidations 5cc22e2052 feat(invert): Allow inverted background on init ee467e85ef test(invert): ensure background-invert separation 9ebe378059 feat(invert): Allow specifying a theme 64f915b0f7 fix(invert): Use separate view IDs when inverted cd7968a4dd Bump version to 24.04.6.1 35288ca649 tdf#153040 PDF export: disable export of form fields as PDF forms by default b969200547 test: Refactor pixel assertion 3b5738ab1a cool#9352 unassign cursor on SdrObjEditView to avoid crash b24e920c6d MSVC 2022 Preview: One HAVE_CPP_CONSTEVAL blocker down, one up 6eef1dbd3b Bump version to 24.04.5.3 facdda16ad fix: Skip invalidation if it won't go through 143475dbdf Related: tdf#162072 DOCX import: handle font family for characters 8fe4ca79d4 LOK: Mention name of unknown command in exception 7bfc3f4240 lok: remove code that renders other slide layers to increase speed 75e04a3a28 CppunitTest_sd_annotation_tests: fix gcc build 412c7e98d3 drawpage::getCount is expensive 26657c107f Revert "lok: Sidebar: Fix Shadowed btn not fitting properly in the grid" a26c07e37e lok: Sidebar: Fix Shadowed btn not fitting properly in the grid 7a2ac2d87c fix-up 2 slideshow: provide animations info 3f28702656 slideshow: enable comb transition 3dfa66c20d fix-up slideshow: provide animations info 315ea3acca Resolves: tdf#162161 reexport of specific pdf appears blank c877ca6fc9 slideshow: enable mics shape transition 99f9d663a2 lok: render the whole slide temporary (with bg and master content) 892b7c3e0b annot: make all keys work when writing in annotation window 5a0e097113 tdf#161994 annot: trigger selection of the current annotation 7c347798d8 annot: simplify getting the proper window for popup ab5774a2f1 tdf#161911 annot: fix for annotation with 0 size 6e05c4ae0d crashtesting tdf135164-3.docx 2ffea94540 lok: sd: slideshow: provide animations info c0e2a021b0 annot: add tests that checks annotation after an text edit 6f146c8b97 annot: add test that checks annotations after page is duplicated afaefb06e1 annot: AnnotationObject should be the size as the text content 6f35891442 annot: don't show the annot. object if LOK and not PDF document 8115c82f1f sc: now conditions can be edited from easy conditional format dialog ef433cc3ac tdf#162072 vcl, fontconfig: consider font-family-generic for substitute b57fd970d0 Related: cool#9504 sw: don't invalidate num rules when pasting into bullets 3dcf0f9008 SW: fix warning ‘iType’ may be used uninitialized f121df5c82 tdf#162002 DOCX import, font embed: only discard subset fonts with few glyphs 01593fc7c0 lok: sd: slideshow render: some bug fixes a90699037b cool#9504 sw: don't invalidate num rules when pasting into a non-num paragraph ed350639eb lok: add media (video) info to the presentation info JSON daf9e4b718 slideshow: add transitionDuration and highResDuration properties for impress 379de66f07 slideshow: Enable venetian transition for impress 6481ab40e4 lok: sd: slideshow render improvements 3e7b11a304 lok: sd: slideshow render: avoid using nullptr 243ff9fa0e tdf#162002 DOCX import: ignore subsetted embedded fonts for editing e598a34ed1 tdf#160139 sw RTF paste: don't empty headers/footers c4c1848bd6 sw: layout: ShrinkFrame() may do nothing for layout frames... c4a2d9e06d sw: layout: invalidate upper when hiding frame c39e163029 tdf#161990: take MapMode's origin point into account 7dbc5804e5 tdf#161985: getOpacity is also called from other places 06b9781145 tdf#67943 tabs must have radio button role and tab button subrole 3ed8874df9 tdf#160427 native menu changes can only be done on the main thread 8cdf1e07e8 merge-app-bundles: fix _ctypes.cpython path 4b21973bef cid#1608592 Double lock e8049f0b4b package: ZipFile: don't accept duplicate entries (case insensitive) 3c6dc6b629 tdf#161712 invoke ScSimpleUndo::EndUndo() before ShowBlock() 505ec55289 update credits b69cdcce6c Revert "tdf#158556 speedup docx load" 77225a6c77 use a throwaway TMPDIR for ghostscript-using helpers 1b46c20b3c ScriptForge (Document) tdf#161946 Fix CreateMenu() / Before c6f363da03 package: avoid throwing RuntimeException in getZipFileContents() b6d3cef04d package: ZipFile: treat junk at the start of zip as invalid 187e2cfd4d comphelper: treat zip file path segments '.' and '..' as invalid 9f6b5061f2 Related tdf#161461: break out of loop once data flavor is set 41b2772243 svx: fixed textbox text always black on dark theme 57dd4b32f1 SW: fix EOL in transform Document Structure 5d8f987091 [cp] Disable Show Donation button 09a258fb01 Bump version to 24.05.5.2 df13bf7983 WaE: seed size_t with 0 not -1 for windows, as per master. 7c6a8fc4ef delay parsing of formula in EnhancedCustomShape2d edbe0f79ab remove RecalcObjOrdNums in DoTextBoxZOrderCorrection 9186e01a06 SW: random ID for new content controls 578fb7b822 Sw: extract/transform document structure 2 9880a99b86 tdf#161970 sw content controls: fix PDF export for the ExportNotesInMargin case decb72c909 lok calc: allow remove and edit hypelink outside of edit mode 5c08aa36d3 jsdialog: enable new style dialog e01bbc7657 jsdialog: enable name dialog a42d9a713c make writer insert special character async 0fbf9a9d4f make query set ins mode dialog async dcdd1551a3 tdf#161771 sw content controls: fix DOCX export of empty dropdown list item 5c513ef617 jsdialog: enable interaction handler without LOKNotifier cool#9453 e1cfc655e5 Move break inside conditional statement to match macOS code 839346d3f2 Related tdf#161461: break out of loop once data flavor is set 4ff670389d return early if there is no m_pDocShell 2d400829e5 [cp] Revert "tdf#136604: Remove Source Sans Pro fonts" 3966e64367 sfx2: fix signature infobar being shown for every repaired document dcc660fc56 tdf#161833 treat semi-transparent pixels as opaque 2f5dd9b284 sfx2: SfxObjectShell should not trust any signature on repaired package 8364610292 package: ZipFile: check Info-ZIP Unicode Path Extra Field 889545a8cb package: ZipFile: don't accept duplicate CEN entries ff7755a6e5 Make window's default mouse position a large negative 1a3f037945 Bump version to 24.04.5.1 d634731427 Update git submodules a4cdd8f958 crashtesting: divide by zero d160ac57a9 tdf#161310 Translate My AutoText in Insert toolbar 951c7d6748 tdf#141773 AutoCorrect: fix broken [All] dictionaries 77ba58757a tdf#96787 AutoCorrect: find item with ".*" and between :colons: 2f9899b871 Related: tdf#161708 sw content controls: fix custom default of dropdown to PDF 8a3c802b2d tdf#159680 fix memory leak of CTFontRef c61898a30a Fix autotext shortcut generation 4e7ac2acef tdf#161646 sw page number wizard: fit into existing margins 574d5ce168 NFC sw textfld.cxx: make rDoc an actual reference 954c34990a lok: Avoid launching an un-necessary thread. 2d2c24d62c lok calc: allow copy hyperlink outside of edit mode ae6067a774 LOK: Disable map mode in DrawViewShell's ctor b2cf4469fb Send statechange info after .uno:TableCellBackgroundColor 313ba0472d tdf#160753 - sc: fix XMATCH function in search for empty cell 5c879d4843 tdf#126573 Add Excel2021 array function UNIQUE to Calc 2b3ce26285 tdf#126573 Add Excel2021 array function RANDARRAY to Calc d43c8f42ff tdf#126573 Add Excel2021 array function SEQUENCE to Calc 406cab8c51 Related tdf#126573 Add Excel2021 array function SORT to Calc 19b644dec0 Related: tdf#128425 tdf#127293 - Extend function wizard description 9b7904e0c1 Fix button alignment in the manage conditions dialog in Calc badd8bdd91 SW: transform document structure 7e322c7ad0 Bundle fonts of Google's DocRepair Project 89c6934570 reduce number of SvxTextEditSourceImpl listeners on SdrModel de98fd93e8 reduce number of SvxUnoShape listeners on SdrModel 6b77dd78bb licence: Fix div tag and move License Statements 643e703460 tdf#158051: fix *σ’ -> σ’ 4fdac624e5 tdf#157009 android: Add missing subdir for Triple-T/F-Droid icon e6558e247c sd: use SAL_RET_MAYBENULL in GetViewFrame() 870e157582 svx: use SAL_RET_MAYBENULL in GetSfxViewShell() 4c32cf7254 tdf#158051 AutoCorrect: don't apply final sigma before apostrophe e3edd05c13 tdf#161498 use COL_ALPHA_OPAQUE for finding opaque pixels 3d87842b76 tdf#160170 sw: fix overshrunk justified lines at hyphenation d9e8f4ec4b tdf#159175 Do not allocate a CGLayer for each NSWindow when using Skia 51ada85986 libcmis: fix UAF on invalid certificate 6d6f1f8210 tdf#157833 tdf#155692 sw: fix hit area to resize row/col 66c0dacad3 sd: warning C6011: Dereferencing NULL pointer 444a7fed91 tdf#161721 sw: text formatting: TabOverMargin not crazy enough 0a52e12e6b tdf#161721 sw: text formatting: TabOverMargin allow 55cm of crazy e6098e7383 tdf#161086 bitmap location wrong with SVG with an embedded PNG 293c7bd927 tdf#161718 sw: fix background flys blocking footnotes e8248b32cc Related tdf#148569: do not apply macOS fix to non-macOS platforms f7f7879a3a tdf#159835 sfx2: Skip sidebar menu update for gtk4 to work around crash 2a94382411 tdf#159835 sfx2: Keep sidebar menu up to date 24762ed052 tdf#161213: fill can use context-stroke and vice versa ff88be15e7 tdf#159835 vcl: Notify when floating window toggled 3edf4f2438 tdf#159835 sfx2 Connect SidebarController menu handlers earlier 7031e6c976 tdf#159835 Deduplicate a few lines in DockingWindow::SetFloatingMode 125abd614c tdf#159835 sfx2: Simplify TabBar::OnToolboxClicked 3a1b07f6d3 tdf#159835 sfx2: Move logic to populate sidebar menus to TabBar 2bb1d681e7 tdf#159835 sfx2: Use reference instead of pointer 09d55f39db libxml2: upgrade to 2.12.8 db10a874f2 openssl: upgrade to 3.0.14 ba614f60b8 tdf#160888 package: fix opening password protected scripting library 53a862ef8e licence: add zxing-cpp fb1f4f348d sd: warning C6011: Dereferencing NULL pointer 4ade8177ae remove ability to trust not validated macro signatures in high security 98c066564b Fixes copy/paste error 4064229f3a svgio: Add missing 'rebeccapurple' color a510012b08 tdf#161786: fix Math crash when typing "oper" 83e9851b8e tdf#161219 Exporting XML filter as package results in empty jar 399253ca8c sc: display all the conditions of same ranges in conditional format manager 2661be5f8f sc: preview style in easy format dialog 8374dd472c sc: now formula conditions can be managed from condition format manager 9928f1fa14 sc: added date condition option in conditional format manage dialog 58c3f70c51 sc: manage conditional format with simpler dialog 3e28c7a6ab Related: tdf#161652 sw, RTF paste: avoid duplicated numbering styles adac244e96 simplify logic in DoTextBoxZOrderCorrection 359ec4206a speed up complex doc with lots of footers/headers 37ae676589 SW: exctract document structure 221a82b541 UniqueID class that generates and stores a uniqueID for an object 12ff4396d9 jsdialog: support on demand rendering for icon view 5779dc944c Update getPartHash function. 7596e81071 lok: export transition info to getPresentationInfo JSON structure 5e18f15d2c lok: test for getPresentationInfo LOK API function c6c14fc03a tdf#160349: add .uno:ChangeTheme to notebookbar to toggle dark mode a76ac5400e test: send document bg color on new theme 0da6c82a50 tdf#161779 DOCX import, drawingML: fix handling of translation for lines 174dd0d856 fix(writer): send document bg color on new theme 7fb545b10c sw: simplify SwShellCursor::Show() 6e2f34a483 Related: tdf#161652 sw, RTF paste: only keep used paragraph styles cefe556b91 sw: fix crash in SwShellCursor::Show() 70552902d1 lok: expose presentation info and slide render functions 0d959d4835 sd: slideshow render interface and implementation 649ecf83b7 sd: function to return a presentation info in a JSON document f9f4570e05 LOK: Do a ".uno:DocumentStatus" "state changed" callback 711f22c987 tdf#161708 sw content controls: handle font color when exporting to PDF form 6d91efc9c9 Update pdfium to 6536 d1f29087cc Update pdfium to 6425 82a7a38abe Update pdfium to 6296 c7ff8768db make joinThreadsIfIdle return false if it cannot join 57f781eee6 lok: sc: fix warning autofilter message box bddd3bac5f allow an exemption to be made for a specific host beec08ef49 map LO_CERTIFICATE_AUTHORITY_PATH to CURLOPT_CAPATH 8b1b3d3748 Update git submodules 8d4baa85c2 fix crash in "delete comments by author" in impress 41755c2004 crashreporting: crash in CustomAnimationPane::UpdateAnimationLB 35feccda4a tdf#161190: fix crash when exporting spreadsheet as PDF... 3147a82bfe sfx2: use SAL_RET_MAYBENULL in GetDispatcher() and GetFrame() 00e8a6c93b sc: warning C6011: Dereferencing NULL pointer 968015242b Fix bashism in configure tests for curl and libcmis 7a1318aabe tdf#161631 writerfilter: move another member to SubstreamContext 7f67833c50 tdf#144208 speedup doc with lots of redline (10) 23f564485f tdf#160877: call lcl_getRDF since graph-names can change fc97a6dd59 tdf#158023 Add \ before parentheses if they are in the <t> tag. a42e6122cd tdf#150582 linguistic: fix always rejected words with U+2019 apostrophe c56a01b251 language-subtag-registry: upgrade to 2024-06-14 469deb7f8c tdf#148569 set extra drawing constraints when scaling 86742dfbc2 tdf#158914 add back reusing weakly cached ScAccessibleCells 3bcfca0544 tdf#161573: Do not show unrelated messages during broken ZIP detection 5b6631f6fa when SAL_CUPS_PPD_RETAIN_TMP is set output what the ppd file was saved as e34c17c013 wina11y: Fix handling for special text offset -1 fcdf8aa527 Resolves: tdf#159741 canceling printing results in 'modified' document ee625ff99d tdf#155212 clear the cached system font list after loading a font e2bcb083a3 tdf#160522 Chart > 4 columns, Only 4 colors bbf9989edb sw: fix SwTextFrameInfo::GetSpaces() for line containing only spaces 3f3b3e1888 tdf#158658 sw: text formatting: make TabOverMargin even more crazy 1e4af581d6 tdf#158658 sw: text formatting: try to make TabOverMargin more crazy 22d11dba5c tdf#161346 sw: PDF export: fix crash on field in hidden text frame 974cffea5e tdf#77388 sw: fix missing table border at cropped images 875ea581fa tdf#161508: add another loop control hack 8de5d5d637 tdf#160399 speed up print preview 330d206731 tdf#161511: create column if not exists 8350a8e981 Resolves: tdf#160401/#i78474# small caps do not exist in CTL fonts 357fd9d649 Resolves: tdf#160635 allow larger tiff images 291b949958 tdf#160801 fix crash by delaying resetting of attributes 8d8bd66f37 (related: tdf#161215) sw: layout: fix another floating table loop f5fc7856c1 tdf#161217 sw: layout: don't move into to-be-deleted section frame 24910c8638 tdf#161215 sw: layout: don't move into section frame on same page 3c7ff85f46 sw: evaluate undocumented STYLEREF field heading switch 9d17c35e4a writerfilter: import undocumented STYLEREF field heading switch 319aead405 tdf#161457 - Fix autofilter result is wrong when cells contain e7e4ed0a5f tdf#57414 tdf#160769 autorecovery: keep open docs in RecoveryList 063fd6d291 tdf#157931 sfx2: fix modified status of Base forms 98c93072db tdf#161488: allow failed image loading in repair mode f768147d7a Adapt flatpak build to upstream changes e419af1e5a NotoNaskhArabic: upgrade to v2.019 4e28648f65 tdf#161426 sw: fix selection in multicolumn floating table b985e3a4af NotoNaskhArabic: upgrade to v2.018 27e162ddbd NotoSansHebrew: upgrade to v3.001 ed1b7a2c33 tdf#157533 sw: fix cursor position deselecting formula in table 6cfbc9f9dc tdf#161360 sw: fix cursor position deselecting image in table 3a09ece4ce tdf#161332 sw: fix missing selection of floating table b398809a3a tdf#161261 sw: fix lost size of image resized in fixed-height cell e2c78c0755 tdf#160844 we don't want scrollbars to be a target for Ctrl+F6, etc fa794a7c41 tdf#161461 stop crashing by retaining NSString 895aa53cb0 slideshow: add removeAllShapes to the LayerManager 4749d5667a reduce cost of calc column height calculation 964f2e5457 Fix insert comment not working after document load. 48220c56c6 LOK: fix UI language fallback, e.g. zh-HK -> zh-TW 37e7adc00c tdf#161652 editeng, RTF copy: only write used paragraph styles f344daa0b8 sw: fix assertion failure in SwView::ExecTabWin() 8501006405 LOK: differentiate page kinds in sd::ViewShellBase::setEditMode 98dfcfc9a9 annot: use createBitmapFromBuffer also when rendering the PDF 8e4b0615ac tdf#161635 sw DoNotCaptureDrawObjsOnPage: fix handling of left padding c3281e0715 annot: clone annotations in SdrObjects when the page is duplicated 800d8580ec cool#9309 lok: sync language in comphelper::LibreOfficeKit on view creation 586d9531c8 annot: update object text when annotation text changes 1f5a4fa596 annot: add undo to annotations inserter when synching 2af35f8558 annot: support fill and line transparence for PDF annotations dcb411bc33 annot: make sure the annotation subtypes in PDFium match with ours 98775b28a2 annot: read PDF FreeText annotation "DS" and "RC" keys 15708d7732 vcl: convert PDFiumLibraryTest to CPPUNIT_TEST_FIXTURE 6490cf00f7 annot: add support to import Stamp annotation from PDF 110b5685a3 annot: add annotation marker for free text annotation 17b7c400d7 annot: update annotation object when annotation position changes 1deed7d8f8 annot: document new annotation classes and methods d329fb26e4 annot: don't render objects marked as annotation in PDF export 016cd38601 annot: add custom selection overlay for the annotation object 0aae22f0a1 annot: make annotation pop-up window working again d65acecc18 annot: update annotation position, size, text when those change fec3f4bbf0 annot: Add tests for annotations - insert, delete, undo/redo 4095c0af85 annot: new Annotation sdr object, replacing annotation tags bc27cdb0b2 tdf#161570 DOCX import: fix lost numbering in paragraph style 5d802d7f4e Bump version to 24.04.4.2 git-subtree-dir: libreoffice-core git-subtree-split: c5f3fd75e5ba6776d3e42482b96c5112ec3fc97f * Fix build regression * WIP - Still not working * Upgrade emscripten for some nice loader fixes, optimizations * macOS build via OrbStack * Fix UnoApiTarget for macOS build and gbuild-to-json (clangd) * New emcc defaults revert our settings for some reason * Loop runs with unipoll now, but Timer now has a missing virtual table for UpdateMinPeriod * Working - Unipoll main loop in JS, need to implement paint after poll * Update snapshot to include oovbaapi.rdb * Add uno snapshot for workdir_for_build * Fix macOS build from clean build * WIP * Working
1 parent f8ebc2b commit 9dd263a

File tree

1,070 files changed

+55465
-11167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,070 files changed

+55465
-11167
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ libreoffice-core/diag.json
66
libreoffice-core/vs-code-template.code-workspace
77
libreoffice-core/.cache
88
libreoffice-core/a.worker.js
9+
.cache
10+
.npm
911

1012
.DS_Store
1113
libreoffice-core/debug

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM emscripten/emsdk:3.1.73-arm64
2+
3+
RUN apt update && apt-get install -y --no-install-recommends \
4+
git \
5+
build-essential \
6+
zip \
7+
nasm \
8+
python3 \
9+
python3-dev \
10+
autoconf \
11+
gperf \
12+
xsltproc \
13+
libxml2-utils \
14+
bison \
15+
flex \
16+
pkg-config \
17+
ccache \
18+
openssh-server \
19+
cmake \
20+
locales \
21+
libnss3 \
22+
automake \
23+
g++-12
24+
25+
COPY emsdk-patches/ /emsdk-patches
26+
27+
RUN cd /emsdk && for patch_file in /emsdk-patches/*.patch; do patch -p1 -i $patch_file; done

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ This project is not a part of the official LibreOffice project, nor endorsed by
88

99
# Prerequisites
1010

11-
You must use Linux on x64, otherwise the build will not work.
11+
## macOS
1212

13-
On Ubuntu/Debian/Pop_OS!, you should install these packages:
13+
Install [OrbStack](https://orbstack.dev/download)
14+
15+
Clone the repo and enter the dev environment:
16+
17+
```bash
18+
git clone https://github.com/coparse-inc/lok-wasm
19+
./macos-docker
20+
```
21+
22+
## Ubuntu/Debian/Pop_OS!
1423

1524
```bash
1625
apt-get install -y --no-install-recommends \

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.20
1+
v0.2.0

emsdk-patches/000-no_real_paths_file_packager.patch renamed to emsdk-patches/000-no_real_paths_file_packager_and_vite_fix.patch

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
diff --git a/./upstream/emscripten/tools/file_packager.orig.py b/./upstream/emscripten/tools/file_packager.py
2-
index 956ab8a..f3df191 100755
3-
--- a/./upstream/emscripten/tools/file_packager.orig.py
1+
diff --git a/./upstream/emscripten/tools/file_packager.py.orig b/./upstream/emscripten/tools/file_packager.py
2+
index 281e636..005353a 100644
3+
--- a/./upstream/emscripten/tools/file_packager.py.orig
44
+++ b/./upstream/emscripten/tools/file_packager.py
5-
@@ -739,7 +739,7 @@ def generate_js(data_target, data_files, metadata):
5+
@@ -740,7 +740,7 @@ def generate_js(data_target, data_files, metadata):
66
DataRequest.prototype.requests[files[i].filename].onload();
77
}'''
88
use_data += (" Module['removeRunDependency']('datafile_%s');\n"
@@ -20,21 +20,22 @@ index 956ab8a..f3df191 100755
2020

2121
package_name = data_target
2222
remote_package_size = os.path.getsize(package_name)
23-
@@ -772,7 +772,7 @@ def generate_js(data_target, data_files, metadata):
24-
Module['locateFile'] = Module['locateFilePackage'];
25-
err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
23+
@@ -767,8 +767,7 @@ def generate_js(data_target, data_files, metadata):
24+
PACKAGE_PATH = encodeURIComponent(location.pathname.substring(0, location.pathname.lastIndexOf('/')) + '/');
2625
}
26+
var PACKAGE_NAME = '%s';
27+
- var REMOTE_PACKAGE_BASE = '%s';
2728
- var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE;\n''' % (js_manipulation.escape_for_js_string(data_target), js_manipulation.escape_for_js_string(remote_package_name))
28-
+ var REMOTE_PACKAGE_NAME = Module['locateFile'] ? Module['locateFile'](REMOTE_PACKAGE_BASE, '') : REMOTE_PACKAGE_BASE;\n''' % (js_manipulation.escape_for_js_string(remote_package_name), js_manipulation.escape_for_js_string(remote_package_name))
29+
+ var REMOTE_PACKAGE_NAME = new URL('./%s', import.meta.url).href;\n''' % (js_manipulation.escape_for_js_string(remote_package_name), js_manipulation.escape_for_js_string(remote_package_name))
2930
metadata['remote_package_size'] = remote_package_size
3031
ret += '''var REMOTE_PACKAGE_SIZE = metadata['remote_package_size'];\n'''
3132

32-
@@ -1022,7 +1022,7 @@ def generate_js(data_target, data_files, metadata):
33-
var curr;
34-
%s
35-
};
36-
- Module['addRunDependency']('datafile_%s');\n''' % (use_data, js_manipulation.escape_for_js_string(data_target))
37-
+ Module['addRunDependency']('datafile_%s');\n''' % (use_data, js_manipulation.escape_for_js_string(remote_package_name))
38-
# use basename because from the browser's point of view,
39-
# we need to find the datafile in the same dir as the html file
33+
@@ -1116,7 +1115,7 @@ def generate_js(data_target, data_files, metadata):
4034

35+
function runMetaWithFS() {
36+
Module['addRunDependency']('%(metadata_file)s');
37+
- var metadataUrl = Module['locateFile'] ? Module['locateFile']('%(metadata_file)s', '') : '%(metadata_file)s';
38+
+ var metadataUrl = new URL('./%(metadata_file)s', import.meta.url).href;
39+
%(node_support_code)s
40+
fetch(metadataUrl)
41+
.then((response) => {

emsdk-patches/001-static_worker_options.patch

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
diff --git a/./upstream/emscripten/src/library_pthread.js b/./upstream/emscripten/src/library_pthread.js
2-
index 79ec001..85d60a1 100644
3-
--- a/./upstream/emscripten/src/library_pthread.js
1+
diff --git a/./upstream/emscripten/src/library_pthread.js.orig b/./upstream/emscripten/src/library_pthread.js
2+
index 1daa320..69a5966 100644
3+
--- a/./upstream/emscripten/src/library_pthread.js.orig
44
+++ b/./upstream/emscripten/src/library_pthread.js
5-
@@ -421,21 +421,6 @@ var LibraryPThread = {
5+
@@ -393,25 +393,6 @@ var LibraryPThread = {
66
// Creates a new web Worker and places it in the unused worker pool to wait for its use.
77
allocateUnusedWorker() {
88
var worker;
@@ -18,13 +18,17 @@ index 79ec001..85d60a1 100644
1818
-#if ENVIRONMENT_MAY_BE_WEB || ENVIRONMENT_MAY_BE_WORKER
1919
- // This is the way that we signal to the Web Worker that it is hosting
2020
- // a pthread.
21+
-#if ASSERTIONS
22+
- 'name': 'em-pthread-' + PThread.nextWorkerID,
23+
-#else
2124
- 'name': 'em-pthread',
2225
-#endif
26+
-#endif
2327
- };
2428
#if EXPORT_ES6 && USE_ES6_IMPORT_META
2529
// If we're using module output, use bundler-friendly pattern.
2630
#if PTHREADS_DEBUG
27-
@@ -457,7 +442,21 @@ var LibraryPThread = {
31+
@@ -433,7 +414,25 @@ var LibraryPThread = {
2832
// instead of just using new URL(import.meta.url) because bundler's only recognize
2933
// the first case in their bundling step. The latter ends up producing an invalid
3034
// URL to import from the server (e.g., for webpack the file:// path).
@@ -41,7 +45,11 @@ index 79ec001..85d60a1 100644
4145
+#if ENVIRONMENT_MAY_BE_WEB || ENVIRONMENT_MAY_BE_WORKER
4246
+ // This is the way that we signal to the Web Worker that it is hosting
4347
+ // a pthread.
48+
+//#if ASSERTIONS
49+
+// 'name': 'em-pthread-' + PThread.nextWorkerID,
50+
+//#else
4451
+ 'name': 'em-pthread',
52+
+//#endif
4553
+#endif
4654
+ });
4755
#else
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/./upstream/emscripten/emcc.py.orig b/./upstream/emscripten/emcc.py
2+
index dfe088e..7c85358 100644
3+
--- a/./upstream/emscripten/emcc.py.orig
4+
+++ b/./upstream/emscripten/emcc.py
5+
@@ -385,14 +385,8 @@ def get_clang_flags(user_args):
6+
if '-mbulk-memory' not in user_args:
7+
flags.append('-mbulk-memory')
8+
9+
- # In emscripten we currently disable bulk memory by default.
10+
- # This should be removed/updated when we als update the default browser targets.
11+
- if '-mbulk-memory' not in user_args and '-mno-bulk-memory' not in user_args:
12+
- # Bulk memory may be enabled via threads or directly via -s.
13+
- if not settings.BULK_MEMORY:
14+
- flags.append('-mno-bulk-memory')
15+
- if '-mnontrapping-fptoint' not in user_args and '-mno-nontrapping-fptoint' not in user_args:
16+
- flags.append('-mno-nontrapping-fptoint')
17+
+ flags.append('-mbulk-memory')
18+
+ flags.append('-matomics')
19+
20+
if settings.RELOCATABLE and '-fPIC' not in user_args:
21+
flags.append('-fPIC')

emsdk-patches/002-vite_compilation_fix.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.

emsdk-patches/003-fix_datafile_prefix_file_packager.patch

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/./upstream/emscripten/tools/file_packager.py.orig b/./upstream/emscripten/tools/file_packager.py
2+
index a7e0b4d..0d860e2 100755
3+
--- a/./upstream/emscripten/tools/file_packager.py.orig
4+
+++ b/./upstream/emscripten/tools/file_packager.py
5+
@@ -1020,7 +1020,7 @@ def generate_js(data_target, data_files, metadata):
6+
var curr;
7+
%s
8+
};
9+
- Module['addRunDependency']('datafile_%s');\n''' % (use_data, js_manipulation.escape_for_js_string(data_target))
10+
+ Module['addRunDependency']('datafile_%s');\n''' % (use_data, js_manipulation.escape_for_js_string(os.path.basename(data_target)))
11+
# use basename because from the browser's point of view,
12+
# we need to find the datafile in the same dir as the html file
13+

0 commit comments

Comments
 (0)