Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: talamus [...] gmail.com
Cc:
AdminCc:

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



CC: jmgdoc [...] cpan.org
Subject: Bug: getStyleAttributes does not return properties for automatic paragraph styles
Date: Mon, 1 Jul 2013 01:49:26 +0300
To: bug-OpenOffice-OODoc [...] rt.cpan.org
From: Tero Niemi <talamus [...] gmail.com>
Hello, It seems that "getStyleAttributes" function does not return "properties" for automatically created paragraph styles. The missing properties can be accessed via XML::XPath. I have attached a very simple test document ("test.odt") that has been created with LibreOffice Writer 3.5.7.2. Also, I have attached a simple example ("example.pl") that produces the following output: Attributes of automatic style 'P1' has references. Attributes of automatic style 'P1' does not have properties. Attributes of automatic style 'T1' has references. Attributes of automatic style 'T1' has properties. --- Properties via 'getStyleAttributes' ----- Automatic style 'P1': family: paragraph parent: Text_20_body Automatic style 'T1': bold: false family: text italic: true parent: none --------------------------------------------- Show quoted text
--- Properties via brute force -------------- Automatic style 'P1': bold: false family: paragraph italic: true parent: Text_20_body Automatic style 'T1': bold: false family: text italic: true parent: none --------------------------------------------- Version of OpenOffice-OODoc is 2.125. Version of perl is 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi Thank you! Tero Niemi (Finland) -- tero.niemi@nimbus.fi talamus@gmail.com
Download test.odt
application/vnd.oasis.opendocument.text 9.2k

Message body not shown because it is not plain text.

Message body is not shown because sender requested not to inline it.