Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I edit text with noa-libre? #14

Open
luizfpvieira opened this issue Oct 9, 2016 · 6 comments
Open

How can I edit text with noa-libre? #14

luizfpvieira opened this issue Oct 9, 2016 · 6 comments

Comments

@luizfpvieira
Copy link

luizfpvieira commented Oct 9, 2016

I'm doing some tests with noa-libre. I tested the Hello World in SWING. The frame open with the Writer, but I can not edit the text. Neither the text cursor appears in the writer.
How can I edit text with noa-libre?
Thanks

@jstaerk
Copy link
Collaborator

jstaerk commented Oct 10, 2016

Does it work when you use the mouse, i.e. rightclick/paste? Are you using Linux? I suspect https://sourceforge.net/p/gnuaccounting/bugs/144/, i.e. https://bz.apache.org/ooo/show_bug.cgi?id=97007

@luizfpvieira
Copy link
Author

Thanks for answering. I'm actually using Linux (Ubuntu 16.04). It's a shame, I really wanted this to work properly.

@thorstenb
Copy link
Collaborator

thorstenb commented Oct 13, 2016

Curious what's the exact working state of this under Linux now - do direct clicks work still? Under Windows, was able to workaround this by explicit setFocus-Calls to the LibreOffice-HWND.
Does the Xembed-Config-Option from the OOo-Wiki change anything?

@jstaerk
Copy link
Collaborator

jstaerk commented Oct 13, 2016

On most Linux it still fails (I think it works on some window managers like fvwm but AFAIK it fails on recent Gnome and KDE) and the Xembed-Option does not help, could you detail on your windows workaround so that someone could try it on linux?

@thorstenb
Copy link
Collaborator

Sure - it's a simple

// activate Office embedding
long hwndChild = OS.GetWindow(container.handle,
                             OS.GW_CHILD);
OS.SetFocus(hwndChild);

For the swt embedding - and you need to set the focus everytime your app gets the focus of course.

@jstaerk
Copy link
Collaborator

jstaerk commented Dec 31, 2016

Hi,
I tried that, unfortunately it didn't work :-(
ciao
Jochen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants