https://bugs.documentfoundation.org/show_bug.cgi?id=170415

            Bug ID: 170415
           Summary: Add support for macOS in OfficeBean
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If you look into bean/ folder in LibreOffice core source code, there is only
"unix" and "win32" in bean/native. macOS is not supported, as JNI support is
not implemented. The task here is to add a comparable implementation for macOS.

Complexity
The native implementation for OfficeBean is very small. It consists of 66 lines
of C code for Linux/Unix and 113 lines of C code for Windows (measured with
cloc). A comparable code for macOS is expected to be of similar size, around
100 line of C/Objective C code.

Implementation
It is expected to write a vcl/osx/com_sun_star_comp_beans_LocalOfficeWindow.c
or .mm for macOS, which uses Cocoa API to create NSView, get its pointer and
attach it to the Java window.

Make sure that you keep the Java signature of the code, as they are used in
JNI:

/*
 * Class:     com_sun_star_comp_beans_LocalOfficeWindow
 * Method:    getNativeWindowSystemType
 * Signature: ()I
 */
Java_com_sun_star_comp_beans_LocalOfficeWindow_getNativeWindowSystemType

/*
 * Class:     com_sun_star_beans_LocalOfficeWindow
 * Method:    getNativeWindow
 * Signature: ()J
 */
Java_com_sun_star_comp_beans_LocalOfficeWindow_getNativeWindow

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to