https://bugs.documentfoundation.org/show_bug.cgi?id=90299
Mike Kaganski <mikekagan...@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |difficultyBeginner, | |easyHack, skillCpp --- Comment #18 from Mike Kaganski <mikekagan...@hotmail.com> --- Code pointer: The path is saved in XclExpSupbook::WriteBody, using maUrlEncoded. The encoding of the URL for storing to BIFF happens in lclEncodeDosUrl (sc/source/filter/excel/xehelper.cxx). The latter *unconditionally* tries to store *drive* relative to base, but *does not* try to save directory path relatively. There is XclImpUrlHelper::DecodeUrl in sc/source/filter/excel/xihelper.cxx, that does the opposite cf. to lclEncodeDosUrl. Basically the task of the easy hack is: check with an Excel-generated XLS containing a relative reference, what arrives to XclImpUrlHelper::DecodeUrl; then implement passing the value of XclExpRoot::IsRelUrl() down to lclEncodeDosUrl; and then in the latter, implement proper generation of relative address depending on the passed IsRelUrl value. -- You are receiving this mail because: You are the assignee for the bug.