On Thu, Mar 27, 2014 at 10:29 AM, Jean-Marc Lasgouttes
<lasgout...@lyx.org>wrote:

> Le 27/03/14 09:17, Tommaso Cucinotta a écrit :
>
>  Anyone remembers what major difference among these two sets of methods,
>> from Paragraph and Inset?
>>
>> Paragraph::stringify() and asString() look like almost identical, with
>> the difference that
>> the former goes for Inset::plaintext(), and it doesn't detect deleted
>> text, the latter uses
>> Inset::toString(), and it does care about the SKIPDELETED option.
>>
>> Any clue of why we need them both?
>>
>
> You should look at who the users are. I suspect that one is for TOC anf
> the other for plaintext output. I also suspect that some users have picked
> one at random.
>

Oh no, we have Paragraph::forToc() for the TOC.



>
> It is not good to have two methods with so similar names...
>
>
Tommasso, I don't want to spoil  the fun, but I think you introduced
"stringify()" yourself while asString() already existed:
http://git.lyx.org/?p=lyx.git;a=commitdiff;h=fd6679bd345da445495ccb430d8d93cb90faf10c

See also:
http://git.lyx.org/?p=lyx.git;a=commitdiff;h=eb28cb8755439d05714dd3a933bb7c94785c9452

Vincent

Reply via email to