Bug 18801 - [PATCH] "visibility" property is not implemented
Summary: [PATCH] "visibility" property is not implemented
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: trunk
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-08 07:56 UTC by Martin Aubele
Modified: 2012-10-31 13:27 UTC (History)
2 users (show)



Attachments
Implement visibility for fo:block (7.50 KB, patch)
2011-04-29 17:24 UTC, Jerome Robert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?