Hi! limeiying wrote:
> I occured a problem when opening a file. Can you help me? TIA. > Do like the following > firstly, create a new writer doc like test.odt, then rename it as test.ods, then open test.ods with OOo > -> find the file is opened with Swriter application, but not Scalc application. Overruling the extension in the physical file name is a feature. This means that the "file type detection" works well in this case. > Secondly, create a new writer doc like test.odt, then rename it as test.odp, then open test.odp with OOo > -> find the file is not opened, but create a new impress file Bug. Details below. > So, I have no idea that there is a rule for open the renamed file with OOo. A little background: You can not expect the operating system to look INTO the files, therefore the icon shown with this file on a Windows machines will blindly follow the "wrong" extension that you set. Just as blindly, a double-click in Windows Explorer will call the "wrong" application registered for that three-letter-extension (i.e. OOo Writer for all .ods, and OOo Calc for all .odc, OOo Impress for all .odp and so on) When you rename the .odt file to ".doc" and double-click the file in Windows Explorer, Word will refuse to open it and tell that the file is corrupt. (Given the fact that MS Office file types are registered for MS Office). This is not true, but without the odf plugin installed, Word can not tell better and "propose a data loss" :-) What you did is "mix file extensions within the OOo applications". Then the "initially called application (in this case Impress) must look into the file and should detect the correct application to use. No matter if opened from the office or "passed on by the operating system" (double-click in explorer). So the file type detection for Writer files "when triggered by impress" does not work. By default, all applications add the correct file extension. Thus I would consider this a P4 issue because it is a scenario that requires a "misuse" when (or after) saving a file". Feel free to do a throughout test by doing an "all wrong extension matrix" in the way you did it for a Writer file. Like that, you can gain an overview if "Impress -> Writer" is the only issue in this area. This may help to fix all at once (no guarantee as I am not into that code :-) Regards, Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
