Issue 66020

Summary: html document not accepted as such, but handled as a normal WRITER doument
Product: Writer Reporter: eschenbe <eschenbe>
Component: open-importAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, rainerbielefeld_ooo_qa
Version: OOo 2.0.2Keywords: needmoreinfo, oooqa
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Testkit with testfiles and screenshots none

Description eschenbe 2006-06-01 23:34:53 UTC
When editing an HTML file, in the Styles and Formatting popup, I select Modify
for Header 3 and the Paragraph Style Editor pops up with these tabs: drop caps,
background, borders, organizer, indents &spacing, alignment, text flow, font,
font effects, position, numbering and tabs. Under the borders tab, there are 5
options under Line Arrangement. So far so good.

But then I open another HTML file, do the same thing, and the editor only shows
these tabs: organizer, indents &spacing, alignment, font, font effects, position
and borders. And on the borders tab there are only 2 options under Line
Arrangement. I haven't looked for other differences.

So I close all OO windows then start again but reverse the order in which the
HTML files are read. The problem remains: in the second, the paragraph editor is
missing several things.

Do I have to pay extra to edit more than one file at a time???
Comment 1 michael.ruess 2006-06-02 11:27:44 UTC
Reassigned to ES.
Comment 2 Rainer Bielefeld 2006-06-02 17:51:02 UTC
It seems that I can reproduce that with  "2.0.2  German version WIN XP:
[680m5(Build9011)]"

The effects I saw do not have to do anything with the number of open windows,
but with the documents.

I attached 2 documents: 'realhtmldocument.html' and 'fakehtmldocument.html'

In my screenshots you see the different dialogues for Menu "Formatting - Format
Paragraph"

It seems that OOo does not accept 'fakehtmldocument.html' as a real HTML
document: you see ALL normal writer dialogues if you open it, additionally the
"text document icon" is visible in the left top corner of the window (instead of
the "html document icon", and specific menu functions for html-documents are
missing (for example "Menu - view - HTML-source".

I do not have any Idea what different in the document causes that difference.

I changed summary in accordance to my results.

I did some further tests:
1. Open 'fakehtmldocument.html'
2. Mark all contents of 'fakehtmldocument.html' with <cntrl>+<a>
3. <cntrl>+<c> for "copy"
4. open new WRITER-document from Menu "File - New"
5. Past contents to new document with  <cntrl>+<v>
6. Menu "File - Save as - HTML document" and save document as 
   'fakehtmldocumentwithpastetowriterdocumentdcontents.html'
7. close document
8. Open 'fakehtmldocumentwithpastetowriterdocumentdcontents.html' from 
   Menu "File - Recent documents"
   expected: "HTML-document UI"
   actual: "WRITER-document UI"

new test:
11. Open 'fakehtmldocument.html'
12. Mark all contents of 'fakehtmldocument.html' with <cntrl>+<a>
13. <cntrl>+<c> for "copy"
14. open new HTML-document from Menu "File - New"
15. Past contents to new document with  <cntrl>+<v>
16. Menu "File - Save as - HTML document" and save document as 
   'fakehtmldocumentwithpastedcontents.html'
17. close document
18. Open 'fakehtmldocumentwithpastedcontents.html' from 
   Menu "File - Recent documents"
   expected: "HTML-document UI"
   actual: as expected
 
No Idea what the best component could be for this, but for now I prefer "open
import".

@eschenbe:
If you believe that my investigations are not concerning your reported problem:
Please attach 2 html-testfiles
Please contribute a step by step instruction containing every mouseclick
Please tell us details concerning your LINUX distribution and your OOo (original
from OOo or from your LINUX distributor?)
Maybe some screenshots would be helpful
Comment 3 Rainer Bielefeld 2006-06-02 17:53:46 UTC
Created attachment 36884 [details]
Testkit with testfiles and screenshots
Comment 4 eschenbe 2006-06-06 18:18:22 UTC
Thanks! Here's an update to my thoughts on this and an example.

============
Conclusion 1

We are dealing with two modes that I'll call "Writer" and "Writer/Web". OO will
not open a new or existing document in "Writer/Web" mode; instead, you can only
get "Writer" mode. Adding -web on the command line makes no difference.

However, if OO is already running, additional documents can be opened in
"Writer/Web" mode. This explains my original observation.

I guess this is a bug.

============
Conclusion 2

In "Writer/Web" mode the "Edit Paragraph Style" menu is missing some features as
compared to "Writer" mode. At least one of these, the 5 border styles, would be
useful and work in HTML.

I guess this would be an enhancement request if these features were left out on
purpose; otherwise, it is a bug.

=======
Example

Button clicks will be enclosed by "..." and typed values by <...>. 

Start OpenOffice
   <soffice>
   In the banner the name is "Untitled1 - OpenOffice.org Writer"
   "Help->About"
   The version is 2.0.2
   In help window "Ok"
   View->HTML Source is NOT present

Enter and edit text in untitled1
   <This is a test>
   On the above text "Right Click->Edit Paragraph Style"
   The editor is what I'll call 'full' with two rows of tabs
      The Borders tab, under Line arrangement, has 5 options
   In editor window "Cancel"

Create an HTML document
   "New->HTML Document"
   A second window appears
   In the banner the name is "Untitled2 - OpenOffice.org Writer/Web"
   View->HTML Source IS present

Enter and edit text in untitled2
   <This is the first document>
   On the above text "Right Click->Edit Paragraph Style"
   The editor is what I'll call 'partial' with one row of tabs
      The Borders tab, under Line arrangement, has 2 options
   In editor window "Cancel"

Create a second HTML document
   Same as before except it is named untitled3
   This is a third window

Save both HTML documents and exit
   In untitled2 "File->Save" and enter name 'first.html'
   In untitled3 "File->Save" and enter name "second.html'
   "File->Exit"
   Note: untitled1 is not saved

Start OpenOffice again to view first.html
   <soffice first.html>
   In the banner the name is "first - OpenOffice.org Writer"
   View->HTML Source is NOT present
   In the text "Right Click->Edit Paragraph Style"
   The full editor is shown
   In the editor window "Cancel"

Open second.html
   In the window for first.html use "File->Open" and select second.html
   A second window appears
   In the banner the name is "second - OpenOffice.org Writer/Web"
   View->HTML Source IS present
   In the text "Right Click->Edit Paragraph Style"
   The partial editor is shown
   In the editor window "Cancel"

Exit
   "File->Exit"

Start OpenOffice a third time to view second.html
   <soffice second.html>
   In the banner the name is "second - OpenOffice.org Writer"
   View->HTML Source is NOT present
   In the text "Right Click->Edit Paragraph Style"
   The full editor is shown
   In the editor window "Cancel"

Open first.html
   In the window for second.html use "File->Open" and select first.html
   A second window appears
   In the banner the name is "first - OpenOffice.org Writer/Web"
   View->HTML Source IS present
   In the text "Right Click->Edit Paragraph Style"
   The partial editor is shown
   In the editor window "Cancel"

Exit
   "File->Exit"
Comment 5 michael.ruess 2006-06-07 06:53:53 UTC
Reassigned to ES.
Comment 6 eric.savary 2006-06-07 13:25:14 UTC
ES->MBA: it's an old problem.
- New Writer doc
- Save as HTML
- "File - Reload" Or "File - Recent documents"
-> this IS an HTML document but it has the Writer UI.
- "File - Open"
-> this IS an HTML document and it has the Writer-Web UI.
Comment 7 Marcus 2017-05-20 11:22:16 UTC
Reset assigne to the default "issues@openoffice.apache.org".