https://bugs.freedesktop.org/show_bug.cgi?id=64265
Michael Stahl <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Installation |framework --- Comment #6 from Michael Stahl <[email protected]> --- ah sorry missed that it works in all other cases except for "Insert->Object->OLE Object->Create from file..." so i didn't test that one... yes "Create from file" does result in an OLE that opens only in Draw. but actually, is that wrong? the object gets a ClassID from a list in officecfg/registry/data/org/openoffice/Office/Embedding.xcu that list types such as "%PRODUCTNAME %PRODUCTVERSION Chart" "%PRODUCTNAME %PRODUCTVERSION Drawing" etc. i.e. it does _not_ list file types, but it lists *applications*. [so what i wrote about file type registrations in comment #4 is mostly irrelevant, or perhaps it only becomes relevant if the OLE object cannot be instantiated by OLE itself because the Class-ID of the object is not in the registry; there are a couple fall-backs for that case anyway...] reading a bit more on this, as i understand it the point of OLE is that an object opens in the same application that created it, and if you use "Create from file" then it is LO that creates the object; you can also only create objects for formats that LO can import via this mechanism, not anything that any application on your system could create as OLE. [oh, and don't try to insert an MP3 file as OLE via this method, Writer imports it as ASCII and takes a long time to layout it...] _but_, now i notice there's another way tp do it, that ends up in OleComponent::CreateObjectFromFile(), which calls Win32 OleCreateFromFile(), and that does exactly what you want! you can reach that from "Insert OLE object" dialog by "Create new", then click "Further objects", a dialog "Insert Object" pops up that again has "Create new" _and_ "Create from file" options! Apparently the "Insert OLE object" dialog is generic and available on all platforms, while the "Insert Object" dialog uses the "real" OLE and is only available on Windows. i think we need both ways to do it on Windows, since you may want to create OLE objects from files that are non-native to LO and for which you don't have the editing application installed... but the current UI is quite confusing. anyway, it looks to me there's not really a regression here? -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
