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

List:       koffice-devel
Subject:    Re: KDataTool working on richtext
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-06-27 8:50:23
[Download RAW message or body]

On Friday 27 June 2003 01:39, Daniel Naber wrote:
> On Thursday 26 June 2003 15:04, David Faure wrote:
> 
> > so you'll need to extend the
> > datatool handling in kword (it's mostly in kotext currently),
> 
> I just saw that there's code for that already, so a data tool can get 
> application/x-qrichtext and data type KoTextString. That works, but 
> there's no formatting information when I access it like this is run():
> 	m_buffer = *((QString *)data);
> I.e. I get just the plain text. Or do I just have to use KoTextString 
> directly, without converting it to a QString?

You need to actually implement the support for this in KoTextView::slotToolActivated.
At the moment it sends plain text in all cases (see the "text" variable).

-- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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