[Libreoffice-bugs] [Bug 97630] LibreOffice uses wrong attribute for feature "shrink-to-fit"
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Oct 17 20:18:10 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=97630
Michael Stahl <mstahl at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|libreoffice-bugs at lists.free |mstahl at redhat.com
|desktop.org |
Whiteboard|odf |odf odf_validation
--- Comment #18 from Michael Stahl <mstahl at redhat.com> ---
oh, i had no idea that style:shrink-to-fit is a thing.
style:shrink-to-fit is only allowed on table cells in ODF 1.1 but
is also allowed on graphics-properties in ODF 1.2.
unfortunately there's *another* possible value:
{ XML_FALSE, drawing::TextFitToSizeType_NONE },
{ XML_TRUE, drawing::TextFitToSizeType_PROPORTIONAL },
{ XML_ALL, drawing::TextFitToSizeType_ALLLINES },
{ XML_SHRINK_TO_FIT,drawing::TextFitToSizeType_AUTOFIT },
{ XML_TOKEN_INVALID, (drawing::TextFitToSizeType)0 }
NONE -> draw:fit-to-size="false" style:shrink-to-fit="false"
PROPORTIONAL -> draw:fit-to-size="true" style:shrink-to-fit="false"
ALLLINES -> ?
AUTOFIT -> draw:fit-to-size="false" style:shrink-to-fit="true"
is there some existing attribute that would match this?
/** like <code>PROPORTIONAL</code>, but the width of each text row is
also scaled proportional.
*/
ALLLINES,
(where in the UI can i set this anyway? ... open the toolbar "Fontwork",
click the button to insert one, then click the "Fontwork Alignment" and
"Stretch Justify" - wow that is obscure...)
... some grepping indicates that the alias SdrFitToSizeType::AllLines
can be created in filter/source/msfilter/msdffimp.cxx
(the PPT import filter) ...
sooo... if we stay with the ODF 1.2 boolean attribute theme
we want a loext:fit-each-line-separately="true" to represent that?
and together with draw:fit-to-size="true"?
--
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/20171017/d9471a8f/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list