Hi all,
FWIW I solved my problem by getting the DispatchProvider from the frame of the currentController
instead of the currentFrame of the desktop. Thanks Tobias for this post
http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=16741
I guess my problem was that getCurrentFrame "provides *read* access to the frame wich contains the
current component", but it's still unclear to me why it worked the first time.
Anyway, happy ending
Regards
Le 28.01.2010 10:10, Philippe Brun (perso) a écrit :
Hi all,
So the bell didn't ring :-)
I'll try to rephrase my question.
I copy/paste a row in a TextTable using XDispatchHelper. It works
multiple times in several tables of a single document. But if I rerun my
program without restarting the office, pasting doen't work anymore.
I've tried to figure out if there is a resource or an object I don't
release properly, but I've seen nothing special there.
I'm not used to com.sun.star.frame.DispatchHelper and Reference<
XDispatchHelper>. Something special to be aware of with these ?
TIA
Regards
Le 26.01.2010 16:17, Philippe Brun (perso) a écrit :
Hi all,
I'm trying to copy/paste a row in a TextTable with the c++ api. It works
the first time I connect to a newly started soffice :
1- load the document,
2- copy a row
3- insert a new row,
4- paste into the newly inserted row.
But then if I close the doc (without exiting soffice) and try my program
again, it goes as far as step 3 above but the paste doesn't work anymore.
(At this point the cursor is at the right position and the data is
available : if I paste manually I get what I expected)
Does that ring a bell ?
(I can post source if needed)
PS : the first time, it works fine even if several tables in the
document.
Thanks in advance
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]