static/source/unoembindhelpers/PrimaryBindings.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4a806d6b02fcfa795dd4c47932e98f9fbc1b8ca8
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Tue Jan 30 18:11:14 2024 +0100
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Jan 30 22:37:34 2024 +0100

    Expose comphelper::getProcessComponentContext through Embind
    
    Change-Id: I8b2cec04a1ffb99c33d39d8a63aa67778e960ab7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162773
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/static/source/unoembindhelpers/PrimaryBindings.cxx 
b/static/source/unoembindhelpers/PrimaryBindings.cxx
index db75924b76f0..b57749170470 100644
--- a/static/source/unoembindhelpers/PrimaryBindings.cxx
+++ b/static/source/unoembindhelpers/PrimaryBindings.cxx
@@ -11,6 +11,7 @@
 
 #include <emscripten/bind.h>
 
+#include <comphelper/processfactory.hxx>
 #include <sal/log.hxx>
 #include <sfx2/viewsh.hxx>
 #include <static/unoembindhelpers/PrimaryBindings.hxx>
@@ -112,6 +113,7 @@ EMSCRIPTEN_BINDINGS(PrimaryBindings)
         allow_raw_pointers());
 
     function("getCurrentModelFromViewSh", &getCurrentModelFromViewSh);
+    function("getUnoComponentContext", 
&comphelper::getProcessComponentContext);
 }
 #endif
 

Reply via email to