Skip to content

Commit

Permalink
added FOP extension fox:shrink-to-fit, #277
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Sep 7, 2024
1 parent 9754e23 commit bea42fe
Show file tree
Hide file tree
Showing 11 changed files with 3,755 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/apache/fop/fo/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,11 @@ public interface Constants {
/**For specifying text for actual text */
int PR_X_ACTUAL_TEXT = 295;

/**For shrink the text to fit block-container*/
int PR_X_SHRINK_TO_FIT = 296;

/** Number of property constants defined */
int PROPERTY_COUNT = 295;
int PROPERTY_COUNT = 296;

// compound property constants

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/apache/fop/fo/FOPropertyMapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -1977,6 +1977,13 @@ private void createLayoutProperties() {
m.setInherited(true);
m.setDefault("false");
addPropertyMaker("fox:disable-column-balancing", m);

// fox:shrink-to-fit
m = new EnumProperty.Maker(PR_X_SHRINK_TO_FIT);
m.useGeneric(genericBoolean);
m.setInherited(true);
m.setDefault("false");
addPropertyMaker("fox:shrink-to-fit", m);
}

private void createLeaderAndRuleProperties() {
Expand Down
Loading

0 comments on commit bea42fe

Please sign in to comment.