Writer Import - Hightlighted characters VS Shaded characters

Miklos Vajna vmiklos at suse.cz
Tue Jul 2 01:13:07 PDT 2013


Hi,

On Sun, Jun 30, 2013 at 06:33:23PM +0300, Adam Co <rattles2013 at gmail.com> wrote:
> When LO imports this DOCX - it converts it all to a single 'Brush' for the
> characters (uses SvxBrushItem).
> 
> What is the best approach I should take if I want to support 'Character
> Highlighting' with 'Character Shading'?
> 
> Should each text portion have two brushes instead of one? One for 'Character
> Highlighting' and one for 'Character Shading'?

You already implemented a new nShadingValue value for SvxBrushItem, so
the information is stored using a single brush, right?

> What are the implications of this (development-wise)?

Unless I'm mistaken, all you need is to hack the layout, so in case
nShadingValue should be considered, a shading based on nShadingValue is
painted.

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130702/5ae6483c/attachment.pgp>


More information about the LibreOffice mailing list