Bug 18801

Summary: [PATCH] "visibility" property is not implemented
Product: Fop - Now in Jira Reporter: Martin Aubele <martin.aubele>
Component: generalAssignee: fop-dev
Status: NEW ---    
Severity: normal CC: carsten.pfeiffer, jeromerobert
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Implement visibility for fo:block

Description Martin Aubele 2003-04-08 07:56:27 UTC
The property visibility is not implemented.
I would need especially the visibility="hidden" behavior for block elements.

Proposal for the fix for Block:

1. Change the definition of the visiblity property in foproperties.xml
to:
  <property>
    <name>visibility</name>
    <inherited>false</inherited>
   <!-- 
    original code:
    <datatype>ToBeImplemented</datatype>
    <default>visible</default>
    changed my martin.aubele@gmx.de
    -->
    <datatype>Enum</datatype>
    <enumeration>
      <value const="VISIBLE">visible</value>
      <value const="HIDDEN">hidden</value>
      <value const="COLLAPSE">collapse</value>
      <value const="INHERIT">inherit</value>
    </enumeration>
  </property>

2. Put the following line at the beginning of Block#layout:

Property visibility = this.properties.get("visibility");
if (visibility != null && visibility.getEnum() == Visibility.HIDDEN)
  return new Status(OK);
Comment 1 Jerome Robert 2011-04-29 17:24:40 UTC
Created attachment 26943 [details]
Implement visibility for fo:block

This patch for the current trunk implement the visibility property for fo:block only. I would be glad to hear how to improve it or to see it applied on the trunk.
Comment 2 Glenn Adams 2012-04-11 03:22:05 UTC
increase priority for bugs with a patch
Comment 3 carsten.pfeiffer 2012-10-31 13:26:43 UTC
Ping. Any update on this?