[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: question
From: David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date: 2003-04-02 16:42:10
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 02 April 2003 15:49, JES wrote:
> Hi,
> I'm trying to get 2 frames (one created with insert->picture, and on textframe
> created with F10) pasted. I select the 2 frames, copy and paste.
> However, only the picture gets pasted.
:(
> So now I'm looking into KWView::editPaste.
> Then I come to the conclusion that providesKWord is TRUE for this picture.
> Also providesImage is TRUE.
Ok.
> So my question is : Can I safely abandon providesImage in KWView::editPAste ?
No. That's for pasting raw images, like PNGs, BMPs etc. Image drags. E.g. from an HTML page.
> Or are there other pictures that are providesImage, but NOT providesKword ?
Yes.
> Is it safe to do :
> else if ( providesKWordText )
> {
> KWFrameSetEdit * edit = m_gui->canvasWidget()->currentFrameSetEdit();
> if ( edit )
> edit->paste();
> }
> else { // ---------- from here start the changes
> deselectAllFrames();
> // if ( providesImage ) // must be after kwordtext
> // {
> // KoPoint docPoint( m_doc->ptLeftBorder(),
> m_doc->ptPageTop(m_currentPage ) + m_doc->ptTopBorder() );
> // m_gui->canvasWidget()->pasteImage( data, docPoint );
> // }
> if ( providesKWord ) { // providesKWord (e.g. frames)
> m_gui->canvasWidget()->pasteFrames();
> }
> }
What about just changing the order of the tests?
Check providesKWord before providesImage.
- --
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+ixLi72KcVAmwbhARAuKVAKCX/3wXeZakR++U0KFOJgQsoOIHbQCfQrlP
r1dq7eG8HpTlyRRPZh4/85o=
=DNam
-----END PGP SIGNATURE-----
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic