Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | HTML clipboard broken | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Calc | Reporter: | oc | ||||||
Component: | open-import | Assignee: | oc | ||||||
Status: | CLOSED FIXED | QA Contact: | issues@sc <issues> | ||||||
Severity: | Trivial | ||||||||
Priority: | P3 | CC: | issues | ||||||
Version: | OOO330m1 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Issue Depends on: | |||||||||
Issue Blocks: | 111112 | ||||||||
Attachments: |
|
Description
oc
2010-07-19 15:11:19 UTC
Created attachment 70721 [details]
Example file (HTML in UCS2 with BOM)
The problem with Copy&Paste from Firefox is only on Linux/Solaris, but the same effect can be seen on all platforms by opening the attached file as HTML (Calc). It's caused by the missing SetSwitchToUCS2 call in EditHTMLParser (used to be derived from SfxHTMLParser). Note: Writer doesn't seem to call SetSwitchToUCS2 either, but doesn't have the problem. It's probably handled in a different way. Ignore the previous comment. Writer of course doesn't have a problem because it still uses SfxHTMLParser (but the call can't be removed from SfxHTMLParser). I don't understand the last comment, but anyway: the fix is easy, just copy some code from the ctor of SfxHTMLParser to the EditEngHTMLParser. As all existing HTML parsers use that code, perhaps we can move that to the base class later. For a showstopper fix that would be too much, IMHO. Created attachment 70857 [details]
diff for simple fix
Carsten, please integrate this fix into a suitable CWS. mav->oc: Please verify the issue. verified in internal build cws_fwk152 |