To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=51299
                  Issue #:|51299
                  Summary:|XModel::getURL() gives wrong values
                Component:|framework
                  Version:|680m106
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mba
              Reported by:|os





------- Additional comments from [EMAIL PROTECTED] Tue Jun 28 03:32:04 -0700 
2005 -------
Storing a document with saveAs using the internal mechanism doesn't change the
URL property of the SfxBaseModel so that the model provides the old URL when
XModel::getURL() is called. 

To reproduce:
At first copy the following macros to the BasicIDE call Init: 

Sub Init
    unoListener = createUnolistener( "document_",
"com.sun.star.document.XEventListener" )
    globalBroadcaster =  createUnoService(
"com.sun.star.frame.GlobalEventBroadcaster" )
    globalBroadcaster.addEventListener( unoListener )
End Sub
Sub document_notifyEvent( event as Object )
    if ( event.EventName = "OnUnload" ) Then
        MsgBox event.Source.getURL()
    End If
End Sub   

Then

Create a Writer document with a mailmerge field - call print file directly and
let the mail merge dialog appear. Set output to file and press OK.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
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]

Reply via email to