Skip Menu |
 

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 73437
Status: new
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: Nobody in particular
Requestors: rlauer6 [...] comcast.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.124
Fixed in: (no value)



Subject: Style.pm
Download (untitled) / with headers
text/plain 1.4k
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
Download Styles.pm
text/x-perl 38.7k

Message body is not shown because it is too large.

From: rlauer6 [...] comcast.net
Download (untitled) / with headers
text/plain 1.6k
Sorry, uploaded the original...this is them modified version. On Thu Dec 22 14:23:19 2011, rlauer6@comcast.net wrote: Show quoted text
> 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
> >
> 254c255 > < return 'style:' . $nodename . '-style/style:header-footer-properties'; > ---
> > return 'style:' . $nodename . '-style/style:properties';
> 1159d1159 > < > 1163,1164c1163 > < > < $node = $self->getStyleNode($pagemaster, 'style:footnote-sep'); > ---
> > $node = $self->getStyleNode($pagemaster, 'footnote-sep');
> 1167d1165 > < > 1171d1168 > < > 1261c1258 > < $self->setStyleNode($pagemaster, 'style:footnote-sep'); > ---
> > $self->setStyleNode($pagemaster, 'footnote-sep');
> > > > - Rob Lauer
Subject: Styles.pm
Download Styles.pm
text/x-perl 38.7k

Message body is not shown because it is too large.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.