[Libreoffice-bugs] [Bug 118913] FILESAVE: convert-to html creates html file with default charset

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 3 16:56:02 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118913

--- Comment #3 from himajin100000 at gmail.com ---
https://opengrok.libreoffice.org/xref/core/desktop/source/app/cmdlineargs.cxx?r=5ccf8264#553
https://opengrok.libreoffice.org/xref/core/desktop/source/app/cmdlineargs.hxx?r=17ee20b1#116

https://opengrok.libreoffice.org/xref/core/desktop/source/app/app.cxx?r=b57ed763#2125
https://opengrok.libreoffice.org/xref/core/desktop/source/app/officeipcthread.cxx?r=9401c7c2#1004
himajin100000 don't know which of the above is actually used

https://opengrok.libreoffice.org/xref/core/desktop/source/app/officeipcthread.cxx?r=9401c7c2#1335
https://opengrok.libreoffice.org/xref/core/desktop/source/app/officeipcthread.cxx?r=9401c7c2#1304
https://opengrok.libreoffice.org/xref/core/desktop/source/app/officeipcthread.cxx?r=9401c7c2#1240
https://opengrok.libreoffice.org/xref/core/desktop/source/app/officeipcthread.cxx?r=9401c7c2#1259
https://opengrok.libreoffice.org/xref/core/desktop/source/app/dispatchwatcher.hxx?r=87a9979c#59
https://opengrok.libreoffice.org/xref/core/desktop/source/app/officeipcthread.cxx?r=9401c7c2#1304
note that the member name aPrinterName is not so intuitive for
conversionparams. this member is used in the following code.
https://opengrok.libreoffice.org/xref/core/desktop/source/app/dispatchwatcher.cxx?r=6b51fee8#583

To me, the syntax of PrinterName looks like
PrinterName :=  fileExtension ":" filterName ":" filterOptions ";" path "|"
imagefilter
these terminal symbols are stored to conversionProperties, and then storeToURL
is executed as follows.

https://opengrok.libreoffice.org/xref/core/desktop/source/app/dispatchwatcher.cxx?r=6b51fee8#689

https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/sfxbasemodel.cxx?r=b5867945#1628
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/sfxbasemodel.cxx?r=b5867945#2837
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/sfxbasemodel.cxx?r=b5867945#2851
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/sfxbasemodel.cxx?r=b5867945#2969
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objserv.cxx?r=d4f7fc2a#308
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=6a6774cc#2707
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=6a6774cc#2825
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=6a6774cc#2807
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=6a6774cc#2850
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=6a6774cc#1112
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=6a6774cc#1538

Calc=>HTML case
https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/docsh.cxx?r=80343351#2586
https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/impex.cxx?r=1f9f3517#482
https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/impex.cxx#Doc2HTML
   *

Writer=>HTML case
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/app/docsh.cxx?r=e2a5932d#774
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/app/docsh.cxx?r=e2a5932d#816
https://opengrok.libreoffice.org/xref/core/sw/source/filter/basflt/shellio.cxx?r=fe1b87eb#729
https://opengrok.libreoffice.org/xref/core/sw/source/filter/basflt/shellio.cxx?r=fe1b87eb#854
https://opengrok.libreoffice.org/xref/core/sw/source/filter/writer/writer.cxx?r=4760bc99#245
https://opengrok.libreoffice.org/xref/core/sw/source/filter/html/wrthtml.cxx?r=81fac013#224
https://opengrok.libreoffice.org/xref/core/sw/source/filter/html/wrthtml.cxx?r=81fac013#291
   *
https://opengrok.libreoffice.org/search?project=core&q=&defs=&refs=m_bWriteClipboardDoc&path=&hist=&type=

Calc=>CSV case(for comparison)
https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/docsh.cxx?r=80343351#2459
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/imoptdlg.cxx?r=104b26b2#56
https://opengrok.libreoffice.org/xref/core/sc/source/ui/inc/imoptdlg.hxx?r=2f564d09#64
note: member eCharset is public

https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/docsh.cxx?r=80343351#2460
https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/docsh.cxx?r=80343351#1979

so in csv's case, properly specifying filteroptions will change the encoding of
the output HTML.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180903/7305817d/attachment.html>


More information about the Libreoffice-bugs mailing list