Copying and pasting docx theme font attributes

Miklos Vajna vmiklos at collabora.co.uk
Thu Dec 19 01:22:55 PST 2013


Hi Jacobo,

On Wed, Dec 18, 2013 at 01:34:18PM +0100, Jacobo Aragunde Pérez <jaragunde at igalia.com> wrote:
> Copying the information in the theme and the styles files when pasting
> things is probably not a viable idea, but maybe we should transform the
> theme format into direct format when pasting the text to a new document.

Hmm, shouldn't we already convert that to direct formatting on import?
Otherwise if saving as ODT, the correct font will be lost, I assume.

We do this already for table styles (applying the style as direct
formatting during import).

> What do you think? And if you agree, where I should start reading code? ;)

Copy&paste is handled by copying the selected SwPaM to a "clipboard
document" on Ctrl-C, and then copying from that document to the real one
on Ctrl-V. SwFEShell's Copy() and Paste() methods are probably what
you're looking for.

However, as mentioned above, I think it would be better to handle this
on import, not during editing.

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/20131219/fdae3109/attachment.pgp>


More information about the LibreOffice mailing list