Summary: | Allow to make non-conditional style conditional, and show Condition tab permanently | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Mike Kaganski <mikekaganski> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | buzea.bogdan, rb.henschel |
Priority: | medium | ||
Version: | Inherited From OOo | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=82802 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 107833 |
Description
Mike Kaganski
2022-05-04 09:10:21 UTC
(In reply to Mike Kaganski from comment #0) > Regina: could you please confirm that from the ODF point of view, the > equivalence between "style having context->style mappings" and "conditional > style" is correct, i.e. that ODF doesn't allow to have a conditional style > without at least one defined mapping? The attributes 'style:condition' and 'style:apply-style-name' are mandatory for an <style:map> element. A <style:style> element can have zero or more <style:map> child elements. The technical term "conditional style" is defined in 16.3 ODF 1.3 as "A style that contains one or more mappings is called a conditional style." If ODF technically allows to have such > "empty" conditional styles, then the solution to bug 82802 would need to be > changed. If there is a tab "Condition" but the user has not set any condition, then no <style:map> element is written out. If the file markup has <style:map> elements, then the condition is shown in the "Condition" tab. If there are no <style:map> elements, then the "Condition" tab could show no conditions, same as when a new style is created. I see no reason why a "Condition" tab is not shown all the time. That is a problem in the UI of LO, not a problem with file format. |