[Libreoffice-bugs] [Bug 139281] Unexpected content inserted into XML element in ScDocShell when adding Default style to sc/res/xml/styles.xml
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 26 15:00:26 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=139281
Buovjaga <ilmari.lauhakangas at libreoffice.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Buovjaga <ilmari.lauhakangas at libreoffice.org> ---
(In reply to Eike Rathke from comment #2)
> First, the Default cell style is NOT SUPPOSED to be present in styles.xml as
> it is internally generated and all other cell styles inherit from that as
> parent and I guess that redefining it in styles.xml probably will not work
> as intended and wreak havoc sooner or later (I'd say it's completely
> untested at least).
Thanks, I was hoping to hear a confirmation.
> I also think that setting the Default style's font to a fixed 10pt size is
> not the proper approach. If the problem is that font size is not written to
> file then the export should check for it and add it to the document's
> default style instead. I'm not sure at the moment where this internally used
> 10pt actually originates and why export omits it, but the Default standard
> style never defined a hard 10pt font size.
Cool, I will mention this in bug 112559
> For your debug problem, I don't quite get what the "cell contents" should be
> at the ScDocShell::m_aDocument. The mpCellStringPool is the pool of all
> shared strings in the document, yes, and then? What are you looking for?
> Really cell content, i.e. a string contained or displayed in a specific
> cell? You'd have to obtain that from the document via
> ScDocument::GetString(), so you could call m_aDocument.GetString(0,0,0) to
> obtain the OUString for the top left cell on the first sheet.
Apprently after 1 month I forgot what I was doing and that there is no content
in the cells, but it was about headers and footers. Sorry for the noise, but
thanks for the lessons.
--
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/20210126/5e357cf8/attachment.htm>
More information about the Libreoffice-bugs
mailing list