| View previous topic :: View next topic |
| Author |
Message |
vv0s General User

Joined: 16 Mar 2006 Posts: 21
|
Posted: Fri May 19, 2006 1:19 am Post subject: A question on clipboard content |
|
|
If I have done copy on some objects, including both plain text and shapes/images
When I inspected the content of the clipboard, I only saw following dataflavor:
| Code: | MimeType: application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)" HumanPresentableName: Star Embed Source (XML)
MimeType: application/x-openoffice-objectdescriptor-xml;windows_formatname="Star Object Descriptor (XML)" HumanPresentableName: Star Object Descriptor (XML)
MimeType: text/richtext HumanPresentableName: Rich Text Format
MimeType: text/html HumanPresentableName: HTML (HyperText Markup Language)
MimeType: text/plain;charset=utf-16 HumanPresentableName: Text
MimeType: application/x-openoffice-link;windows_formatname="Link" HumanPresentableName: Link |
However, If I choose only one image without any text, I may see following dataflavor from clipboard:
| Code: | MimeType: application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)" HumanPresentableName: Star Embed Source (XML)
MimeType: application/x-openoffice-objectdescriptor-xml;windows_formatname="Star Object Descriptor (XML)" HumanPresentableName: Star Object Descriptor (XML)
MimeType: application/x-openoffice-drawing;windows_formatname="Drawing Format" HumanPresentableName: Drawing Format
MimeType: application/x-openoffice-gdimetafile;windows_formatname="GDIMetaFile" HumanPresentableName: GDIMetaFile
MimeType: application/x-openoffice-emf;windows_formatname="Image EMF" HumanPresentableName: Windows Enhanced MetaFile
MimeType: application/x-openoffice-wmf;windows_formatname="Image WMF" HumanPresentableName: Windows MetaFile
MimeType: application/x-openoffice-bitmap;windows_formatname="Bitmap" HumanPresentableName: Bitmap
MimeType: image/bmp HumanPresentableName: Windows Bitmap |
My question is where is the image mimetype in my first copy action? it seems missing...
How am I able to obatin that information? |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3622 Location: Columbus, Ohio, USA
|
Posted: Sat May 20, 2006 6:33 am Post subject: |
|
|
Based on the email that you sent me:
| Quote: | | It’s quite wired that I may not find any dataflavor mimetype relating to the bitmap in my first copy action although the copied content indeed containing shape object. Is it possible for you to explain the reason for that? |
This is exactly what I expect. in the first case, you seleted a lot of stuff and pasted it into the clipboard. IT does not place individual pieces of things into the clipboard, it drops EVERYTHING into the clipboard.
So, in the second case, you JUST have an image so this is what you see. In the second case, youhave a bunch of stuff (text and graphics mixed). So, it MUST represent the mixed text and graphics as a single object. Notice that you can obtain the XML version, a rich text format, etc...
| Quote: | | Additionally, developer guild states that openoffice only support four mimetypes, one of which is “ application/x-openoffice;windows_formatname="Bitmap" “, but none of the above content containing this type, should I say that “Shape” object can not be represented in the clipboard, at least those supported dataflavor? |
I do not know enough about this to comment without extensive research, sorry.
| Quote: | | where is the image mimetype in my first copy action? |
You would need to parse through everything that was pasted into the clipboard to find it. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
vv0s General User

Joined: 16 Mar 2006 Posts: 21
|
Posted: Mon May 22, 2006 9:35 pm Post subject: |
|
|
Very unfortunately to say that if the copied objects are of mixed content, individual object such as text string, shape will not be reflected by the dataFlavor array obtained from the clipboard, neither the whole selected objects does...
Why is clipboard of Openoffice so hard to manipulate??? I may paste correctly by simply press "Ctrl+V" but I'm not able to get what on earth in it!!!! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|