<HTML>
<HEAD><!-- Template generated by Exclaimer Signature Manager Exchange Edition on 09:57:46 Friday, 17 June 2016 -->
<STYLE type=text/css>P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!-- Template generated by Exclaimer Signature Manager Exchange Edition on 09:57:46 Friday, 17 June 2016 -->
<STYLE type=text/css>P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</STYLE>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="text/html; charset=Windows-1252" />
<meta name="Generator" content="Microsoft Exchange Server" />
<style>
<!--
.EmailQuote
        {margin-left:1pt;
        padding-left:4pt;
        border-left:#800000 2px solid}
-->
</style>
</HEAD>


<BODY>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)" />
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
.MsoChpDefault
        {}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.WordSection1
        {}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="NL-BE">Hi,</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="NL-BE">You stated in your response that:</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><i><span style="font-size:10.0pt; font-family:"Times New Roman",serif">But in your custom URL handler implementation Oxygen will request at
<br/>
some point an output stream and then start writing to it.</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt; font-family:"Times New Roman",serif"> </span></i></p>
<p class="xmsonormal"><span lang="NL-BE">Where does this request for the output stream happen (which event or …) and how can we override it?
</span></p>
<p class="xmsonormal"><span lang="NL-BE"> </span></p>
<p class="xmsonormal"><span lang="NL-BE">Can we know that this resulted from a Replace action?</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="NL-BE">Kind regards,</span></p>
<p class="MsoNormal"><span lang="NL-BE"> </span></p>
<p class="MsoNormal"><span lang="NL-BE">Pascal</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none; padding:0in"><b>From: </b><a href="mailto:pbeutels@sdl.com">Pascal Beutels</a><br/>
<b>Sent: </b>Wednesday, June 8, 2016 11:02 AM<br/>
<b>To: </b><a href="mailto:oxygen-sdk-request@oxygenxml.com">oxygen-sdk-request@oxygenxml.com</a><br/>
<b>Subject: </b>RE: [oXygen-sdk] Find/Replace in Files: Is there an event triggered before Oxygen tries to replace a string in a file?
</p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
</div>
<div>
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)" />
<style>
<!--
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
-->
</style>
<div lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span lang="NL-BE">Hi,</span></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span lang="NL-BE">We would only need a </span>callbacks before the
<span lang="NL-BE">Replace </span>is done<span lang="NL-BE"> (as far as I see for now).  </span></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span lang="NL-BE">Where does this request for the output stream happen (which event or …) and how can we override it? Can we know that this resulted from a Replace action?</span></p>
<p class="x_MsoNormal"><span lang="NL-BE"> </span></p>
<p class="x_MsoNormal"><span lang="NL-BE">-Pascal</span></p>
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="border:none; padding:0in"><b>From: </b><a href="mailto:oxygen-sdk-request@oxygenxml.com">oxygen-sdk-request@oxygenxml.com</a><br/>
<b>Sent: </b>Tuesday, June 7, 2016 7:00 PM<br/>
<b>To: </b><a href="mailto:oxygen-sdk@oxygenxml.com">oxygen-sdk@oxygenxml.com</a><br/>
<b>Subject: </b>oXygen-sdk Digest, Vol 39, Issue 1</p>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
</div>
</div>
<font size="2"><span style=font-size:10pt>
<div class="PlainText">Send oXygen-sdk mailing list submissions to<br/>
        oxygen-sdk@oxygenxml.com<br/>
<br/>
To subscribe or unsubscribe via the World Wide Web, visit<br/>
        <a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a><br/>
or, via email, send a message with subject or body 'help' to<br/>
        oxygen-sdk-request@oxygenxml.com<br/>
<br/>
You can reach the person managing the list at<br/>
        oxygen-sdk-owner@oxygenxml.com<br/>
<br/>
When replying, please edit your Subject line so it is more specific<br/>
than "Re: Contents of oXygen-sdk digest..."<br/>
<br/>
<br/>
Today's Topics:<br/>
<br/>
   1. Find/Replace in Files: Is there an event triggered before<br/>
      Oxygen tries to replace a string in a file? (Pascal Beutels)<br/>
   2. Re: Find/Replace in Files: Is there an event triggered before<br/>
      Oxygen tries to replace a string in a file? (Radu Coravu)<br/>
<br/>
<br/>
----------------------------------------------------------------------<br/>
<br/>
Message: 1<br/>
Date: Tue, 7 Jun 2016 10:04:35 +0000<br/>
From: Pascal Beutels <pbeutels@sdl.com><br/>
To: "'oxygen-sdk@oxygenxml.com'" <oxygen-sdk@oxygenxml.com><br/>
Subject: [oXygen-sdk] Find/Replace in Files: Is there an event<br/>
        triggered before Oxygen tries to replace a string in a file?<br/>
Message-ID:<br/>
        <AMSPR06MB101B294A0AE52871075E6B7C25D0@AMSPR06MB101.eurprd06.prod.outlook.com><br/>
        <br/>
Content-Type: text/plain; charset="utf-8"<br/>
<br/>
Hi,<br/>
<br/>
With our integration some (most) of the files are read-only and need to be ‘Checked out’ from our repository before changes can be made to these files.<br/>
<br/>
As stated in the subject, when doing a Find/Replace, is there an event triggered before Oxygen tries to replace a string in a file, so we can automatically checkout the file before Oxygen tries to change the file?<br/>
<br/>
Most of these files are not open in the Editor, but they can be.<br/>
<br/>
<br/>
<br/>
Kind regards,<br/>
<br/>
<br/>
Pascal Beutels<br/>
<br/>
<br/>
<br/>
<br/>
 [<a href="http://dr0muzwhcp26z.cloudfront.net/static/corporate/SDL-logo-2014.png">http://dr0muzwhcp26z.cloudfront.net/static/corporate/SDL-logo-2014.png</a>] <<a href="http://www.sdl.com/">www.sdl.com/</a>><br/>
<a href="http://www.sdl.com">www.sdl.com</a><br/>
<br/>
<br/>
SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<br/>
<br/>
SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<br/>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.<br/>
<br/>
<br/>
<br/>
This message has been scanned for malware by Websense. <a href="http://www.websense.com">
www.websense.com</a><br/>
-------------- next part --------------<br/>
An HTML attachment was scrubbed...<br/>
URL: <<a href="http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20160607/d79e7d77/attachment-0001.html">http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20160607/d79e7d77/attachment-0001.html</a>><br/>
<br/>
------------------------------<br/>
<br/>
Message: 2<br/>
Date: Tue, 7 Jun 2016 13:25:05 +0300<br/>
From: Radu Coravu <support@oxygenxml.com><br/>
To: oxygen-sdk@oxygenxml.com<br/>
Subject: Re: [oXygen-sdk] Find/Replace in Files: Is there an event<br/>
        triggered before Oxygen tries to replace a string in a file?<br/>
Message-ID: <5756A101.6070500@oxygenxml.com><br/>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br/>
<br/>
Hello Pascal,<br/>
<br/>
We do not yet have such specific API. If this API was available, how <br/>
would you see it look like? Would you like it to give you a separate <br/>
call back for each URL or more like two callbacks, one before the <br/>
Replace All is done  and one after?<br/>
<br/>
But in your custom URL handler implementation Oxygen will request at <br/>
some point an output stream and then start writing to it. Maybe you can <br/>
give Oxygen an output stream implementation which caches content to an <br/>
array and then when Oxygen closes the output stream you could check to <br/>
see if the URL is checked out or not, and if not, ask the end user if he <br/>
wants to check it out. Also using our API you can check if the URL is <br/>
opened or not in the editor.<br/>
But this would probably mean that you would ask the end user for each of <br/>
these files... Or somehow remember the user's choice persistently so <br/>
that on the next save that Oxygen attempts at the URL you could check <br/>
out the file automatically without showing the dialog.<br/>
<br/>
Regards,<br/>
Radu<br/>
<br/>
On 6/7/16 1:04 PM, Pascal Beutels wrote:<br/>
><br/>
> Hi,<br/>
><br/>
> With our integration some (most) of the files are read-only and need <br/>
> to be ‘Checked out’ from our repository before changes can be made to <br/>
> these files.<br/>
><br/>
> As stated in the subject, when doing a Find/Replace, is there an event <br/>
> triggered before Oxygen tries to replace a string in a file, so we can <br/>
> automatically checkout the file before Oxygen tries to change the file?<br/>
><br/>
> Most of these files are not open in the Editor, but they can be.<br/>
><br/>
> Kind regards,<br/>
><br/>
> Pascal Beutels<br/>
><br/>
><br/>
> <<a href="http://www.sdl.com/">www.sdl.com/</a>><br/>
> <a href="http://www.sdl.com">www.sdl.com</a><br/>
><br/>
><br/>
> SDL PLC confidential, all rights reserved. If you are not the intended <br/>
> recipient of this mail SDL requests and requires that you delete it <br/>
> without acting upon or copying any of its contents, and we further <br/>
> request that you advise us.<br/>
><br/>
> SDL PLC is a public limited company registered in England and Wales. <br/>
> Registered number: 02675207.<br/>
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire <br/>
> SL6 7DY, UK.<br/>
><br/>
><br/>
><br/>
><br/>
> This message has been scanned for malware by Websense. <br/>
> <a href="http://www.websense.com">www.websense.com</a> <<a href="http://www.websense.com/">http://www.websense.com/</a>><br/>
><br/>
><br/>
><br/>
> </div></span></font></div><BR/> <a href='www.sdl.com/' target=''><img width=150 height=68 style='' src='http://dr0muzwhcp26z.cloudfront.net/static/corporate/SDL-logo-2014.png' /></a><BR/>www.sdl.com <BR/><BR/>
<TABLE style="BORDER-COLLAPSE: collapse" class=ImprintUniqueIDTable border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" class=ImprintUniqueIDTable border=0 cellSpacing=0 cellPadding=0>
  <TBODY></TBODY></TABLE><div><font size="2"><span style=font-size:10pt><div class="PlainText"></div></span></font></div><BR/>
<TABLE style="BORDER-COLLAPSE: collapse" class=ImprintUniqueIDTable border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD width=800><FONT style="COLOR: #a1a1a1; FONT-SIZE: 8pt" size=+0>SDL PLC 
      confidential, all rights reserved. If you are not the intended recipient 
      of this mail SDL requests and requires that you delete it without acting 
      upon or copying any of its contents, and we further request that you 
      advise us.<BR/><BR/>SDL PLC is a public limited company registered in 
      England and Wales. Registered number: 02675207. <BR/>Registered address: 
      Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. 
  </FONT></TD></TR></TBODY></TABLE><BR/><div><font size="2"><span style=font-size:10pt><div class="PlainText">_______________________________________________<br/>
> oXygen-sdk mailing list<br/>
> oXygen-sdk@oxygenxml.com<br/>
> <a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a><br/>
<br/>
-------------- next part --------------<br/>
An HTML attachment was scrubbed...<br/>
URL: <<a href="http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20160607/4427c4f0/attachment-0001.html">http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20160607/4427c4f0/attachment-0001.html</a>><br/>
<br/>
------------------------------<br/>
<br/>
Subject: Digest Footer<br/>
<br/>
_______________________________________________<br/>
oXygen-sdk mailing list<br/>
oXygen-sdk@oxygenxml.com<br/>
<a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a><br/>
<br/>
<br/>
------------------------------<br/>
<br/>
End of oXygen-sdk Digest, Vol 39, Issue 1<br/>
*****************************************<br/>
</div>
</span></font></div>
 
 
</BODY>
</HTML>