Description: In some scenarios for opening RTF documents Calc is used. Steps to Reproduce: 1. Create empty calc document (or open any existing) 2. Open any existing RTF document Actual Results: RTF document is being opened in Calc Expected Results: Writer should be used to open RTF document. Reproducible: Always User Profile Reset: No Additional Info: Version marked (6.0.7.3) is not earliest, but oldest checked by me. This behavior can be older. This behavior is not a case for DOC or DOCX documents: if instead of RTF I use any of them Writer is opened, so this is something specific to RTF.
It is intended AFAIR; it uses Calc-RTF filter if opened from Calc (and also there's something similar for text files IIRC). But no reference from the top of my head.
FTR: this is since 3.6, and does not happen in 3.5.
(In reply to Mike Kaganski from comment #1) > there's something similar for text files IIRC Or was that HTML?
Some info at https://ask.libreoffice.org/t/why-is-calc-opening-rtf-files-as-spreadsheets/40638/4
Thanks for extra info for this problem. Anyway situation looks strange for me: 1. RTF is a text format and it is expected to be opened in Writer. 2. Different behavior described in this bug is not the good UX experience imho: it is quite a surprise to realize that RTF can be opened by Writer or by Calc depending on absolutely unrelated document type I'm editing right now. 3. The behavior is not consistent: we are trying to expand RTF tables from file to calc spreadsheet, but why we are not doing so for DOC, DOCX or even ODT? They are also text formats with tables. 4. Opened by Calc RTF we can't save back to RTF. 5. If there is real need to have RTF table in Calc, it can be opened in Writer and copy-pasted to Calc. I'm not sure, if this is intended behavior or side-effect from introducing RTF filter for Calc (for example, to use copy-paste). implementation is done in bunch of commits starting from: >commit ed55b27bae9f7517863216e9bcc0312d7e48b35b >Author: Kurt Zenker <kz@openoffice.org> >Date: Wed Jan 28 15:22:14 2004 +0000 > > INTEGRATION: CWS filtercfg (1.1.2); FILE ADDED > 2003/10/02 11:25:02 as 1.1.2.1: #102620# first revision
Created attachment 177820 [details] Sample document REPRODUCIBLE with attached sample document and Installation of Version: 7.2.5.2 (x64) Build ID 499f9727c189e6ef3471021d6132d4c694f357e5 CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-US Calc: threaded STR: 0. Open a CALC document 1. From CALCdocument Menu ˋFile → Open → Browse for sample.rtf → Openˊ » Expected: opens in WRITER Actual: Opens in CALC Additional info: ---------------- It doesn't matter whether OS or LibO Dialogs are active
This Query <https://bugs.documentfoundation.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=DUPs146953&sharer_id=19321> shows some possible DUPs or at least related bugs "Bug 118882 - Default application to open RTF files was set to Calc Very unclear description - unusable" "Bug 65017 - FILEOPEN : Menu "File > Recent Documents" opens rtf file as a Calc document instead of in Writer" This one might be DUP? see Comment 11 Cor Nouws 2013-06-03 23:56:17 UTC "Bug 59016 - FILEOPEN: RTF file open in Calc" Intended behavior due to Kohei Yoshida 2013-01-16 20:37:04 UTC ?
Created attachment 177821 [details] Which is the defaupt app for RTF WIN file dialog shows WRITER as default app, LibO file dialog shows some different app as default app for .rtf
Strange observation, addition for Attachment 177821 [details]: In OS settings WRITER is sown as defaupt app for .rtf. Why does LibO files dialogshow something different (I don'tknow what "W" in the icon is standing for)?
This is a duplicate of bug 59016, isn't it? If both modules/apps offer a filter for a file format then the currently active one is used. Maybe unless the file type is selected in the file picker.
Even OO could open RTF in Calc: https://wiki.openoffice.org/wiki/Documentation/OOo3_User_Guides/Getting_Started/File_formats mikekaganski in Ask: Calc filter can be turned off so that RTF files no longer open in Calc, but always in Writer. Go to Tools▸Options▸LibreOffice▸Advanced; click Open Expert Configuration button; in the Expert Configuration dialog, search for Rich Text Format (StarCalc); in the result list, double-click the string where Property column reads DocumentService; and then edit the string e.g. adding “1” to the end, so that it would be unknown document service like “com.sun.star.sheet.SpreadsheetDocument1”. So this looks like a duplicate or NotABug. Only thing I'd like to see is some GUI option in Options to change this. If someones disagree, please explain. *** This bug has been marked as a duplicate of bug 59016 ***