Issue 35726 - Creating bookmark the name is incorrect
Summary: Creating bookmark the name is incorrect
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: 680
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2004-10-18 15:49 UTC by tilox
Modified: 2013-08-07 14:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tilox 2004-10-18 15:49:23 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())
Comment 1 michael.ruess 2004-10-19 07:01:45 UTC
Reassigned to JSK.
Comment 2 joerg.skottke 2004-10-26 14:25:35 UTC
jsk->ab: can you please verify this? you probably need to put some code around
the snippet in the description...

Thank you
Comment 3 ab 2004-10-26 14:34:58 UTC
ab->jsk: And why don't you verify it yourself?

Anyway, this obviously is no Basic, but a API problem -> OS
Comment 4 mjost 2004-12-07 08:12:39 UTC
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
Comment 5 flibby05 2004-12-14 22:06:22 UTC
setting to NEW
Comment 6 joerg.skottke 2005-03-29 13:19:31 UTC
Assigning target vithout verification -> 2.0.2
Comment 7 Oliver Specht 2005-11-17 14:29:31 UTC
It has to be fixed in SwDoc::MakeUniqueBookmarkName() 

->jsk: Why does it have a 2.0.2 target?
Comment 8 Mathias_Bauer 2006-01-23 14:02:37 UTC
We will not finish this task in the 2.0.2 time frame -> retargetted to 2.0.3
Comment 9 Oliver Specht 2006-03-13 07:12:57 UTC
Fixed in cws os78 in 
sw/source/core/doc/docbm.cxx
Comment 10 Oliver Specht 2006-03-15 08:41:11 UTC
Reassigned for verification

re-open issue and reassign to hi@openoffice.org
Comment 11 Oliver Specht 2006-03-15 08:41:23 UTC
reassign to hi@openoffice.org
Comment 12 Oliver Specht 2006-03-15 08:41:27 UTC
reset resolution to FIXED
Comment 13 h.ilter 2006-03-16 15:31:09 UTC
Reassigned to JSK

re-open issue and reassign to jsk@openoffice.org
Comment 14 h.ilter 2006-03-16 15:31:17 UTC
reassign to jsk@openoffice.org
Comment 15 h.ilter 2006-03-16 15:31:22 UTC
reset resolution to FIXED
Comment 16 h.ilter 2006-03-24 14:34:45 UTC
Verified with cws os78 = ok
Comment 17 joerg.skottke 2006-05-29 08:23:40 UTC
verified on master -> close