[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 1/2] riched20: Implement ITextSelection::GetText.
From:       Jactry Zeng <jactry92 () gmail ! com>
Date:       2014-05-21 9:09:56
Message-ID: CAManwEyR36_HmwASHY-43p6JNfiobHo_10P9uijcU0JkM4+TZw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2014-05-21 16:26 GMT+08:00 Nikolay Sivov <bunglehead@gmail.com>:
>
> But ITextSelection is a ITextRange too, so you need to implement it for
ITextRange only.

Yes, ITextSelection interface is inherits from ITextRange. But I think
functions of ITextRange
and functions of ITextSelection are independent of each other. And there
are some different
between them: range of an ITextRange is given by ITextDocument::Range and
immovable but
range of ITextSelection of is depend on *pCursor in ME_TextEditor.

So I think implementing ITextSelection independently and just share some
functions like
ME_ITextGetText between ITextRange and ITextSelection is a more convenient
way.


-- 
Regards,
Jactry Zeng

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><br>2014-05-21 16:26 GMT+08:00 Nikolay Sivov \
&lt;<a href="mailto:bunglehead@gmail.com" \
target="_blank">bunglehead@gmail.com</a>&gt;:<br>&gt;<br>&gt; But ITextSelection is a \
ITextRange too, so you need to implement it for ITextRange only.<br>



<br>Yes, ITextSelection interface is inherits from ITextRange. But I think functions \
of ITextRange</div><div class="gmail_extra">and functions of ITextSelection are \
independent of each other. And there are some different<br>



</div><div class="gmail_extra">between them: range of an ITextRange is given by \
ITextDocument::Range and immovable but</div><div class="gmail_extra">range of \
ITextSelection of is depend on *pCursor in ME_TextEditor.</div>


<div class="gmail_extra"><br></div>
<div class="gmail_extra">So I think implementing ITextSelection  independently and \
just share some functions like  </div><div class="gmail_extra">ME_ITextGetText \
between ITextRange and ITextSelection is a more convenient way.</div>










<div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div \
dir="ltr"><div>Regards,<br></div><div>Jactry Zeng</div> <div><br></div></div>
</div></div>





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic