Subject: | Style.pm |
While trying to create a page layout, I noticed that certain elements
were not being returned. Specifically, header, footer, footer-sep.
Looks like the wrong element names are being used (at least for the OO
documents I've been working with in 3.2).
After some inspection, I modified Styles.pm as shown below (attached
modified module).
After modifications, my page-layout elements were correctly rendered.
my %pageLayout_attr = $styles->getPageLayoutAttributes( 'Standard' );
print Dumper(\%pageLayout_attr);
$styles->createPageLayout($PageLayout_name,
properties => $pageLayout_attr{properties},
'footnote-sep' =>
$pageLayout_attr{'footnote-sep'},
header => $pageLayout_attr{header},
footer => $pageLayout_attr{footer}
);
8<---- diffs between distributed version and modified version ---
$ diff -wd /usr/share/perl5/OpenOffice/OODoc/Styles.pm /tmp/Styles.pm
12a13
Show quoted text
>
254c255
< return 'style:' . $nodename . '-style/style:header-footer-properties';
---
Show quoted text> return 'style:' . $nodename . '-style/style:properties';
1159d1159
<
1163,1164c1163
<
< $node = $self->getStyleNode($pagemaster, 'style:footnote-sep');
---
Show quoted text> $node = $self->getStyleNode($pagemaster, 'footnote-sep');
1167d1165
<
1171d1168
<
1261c1258
< $self->setStyleNode($pagemaster, 'style:footnote-sep');
---
Show quoted text> $self->setStyleNode($pagemaster, 'footnote-sep');
- Rob Lauer
Subject: | Styles.pm |
Message body is not shown because it is too large.