Apache OpenOffice (AOO) Bugzilla – Issue 35726
Creating bookmark the name is incorrect
Last modified: 2013-08-07 14:40:21 UTC
when i create a bookmark using a dispatch code the name of the bookmark result incorrect, for example if i specify "temp" for the name it create a bookmark named "temp1". i don't know if exist a solution for this problem, i've looked around for a long time but i haven't find any solution. the code i use is: dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).Name = "Bookmark" args1(0).Value = "temp" dispatcher.executeDispatch(document, ".uno:InsertBookmark", "", 0, args1())
Reassigned to JSK.
jsk->ab: can you please verify this? you probably need to put some code around the snippet in the description... Thank you
ab->jsk: And why don't you verify it yourself? Anyway, this obviously is no Basic, but a API problem -> OS
I can confirm the issue for 1.1.4rc on Linux. (Code appends a spurious '1' to the string given to InsertBookmark) Here is complete code for the test: Sub BM dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).Name = "Bookmark" args1(0).Value = "temp" dispatcher.executeDispatch(document, ".uno:InsertBookmark", "", 0, args1()) End Sub
setting to NEW
Assigning target vithout verification -> 2.0.2
It has to be fixed in SwDoc::MakeUniqueBookmarkName() ->jsk: Why does it have a 2.0.2 target?
We will not finish this task in the 2.0.2 time frame -> retargetted to 2.0.3
Fixed in cws os78 in sw/source/core/doc/docbm.cxx
Reassigned for verification re-open issue and reassign to hi@openoffice.org
reassign to hi@openoffice.org
reset resolution to FIXED
Reassigned to JSK re-open issue and reassign to jsk@openoffice.org
reassign to jsk@openoffice.org
Verified with cws os78 = ok
verified on master -> close