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

Michael Stahl <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |
         Whiteboard|odf                         |odf odf_validation

--- Comment #18 from Michael Stahl <[email protected]> ---

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to