r50477 - in /trunk/libopenoffice-oodoc-perl: ./ OODoc/ OODoc/data/ OODoc/templates/ debian/ examples/ t/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Thu Jan 7 17:12:14 UTC 2010


Author: jawnsy-guest
Date: Thu Jan  7 17:11:58 2010
New Revision: 50477

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=50477
Log:
* New upstream release
* Refresh to new DEP5 copyright format
* Rewrite control description
* Add myself to Uploaders and Copyright
* Move dependencies from B-D to B-D-I

Removed:
    trunk/libopenoffice-oodoc-perl/debian/libopenoffice-oodoc-perl.docs
Modified:
    trunk/libopenoffice-oodoc-perl/Changes
    trunk/libopenoffice-oodoc-perl/INSTALL
    trunk/libopenoffice-oodoc-perl/META.yml
    trunk/libopenoffice-oodoc-perl/Makefile.PL
    trunk/libopenoffice-oodoc-perl/OODoc.pm
    trunk/libopenoffice-oodoc-perl/OODoc/File.pm
    trunk/libopenoffice-oodoc-perl/OODoc/Meta.pm
    trunk/libopenoffice-oodoc-perl/OODoc/Meta.pod
    trunk/libopenoffice-oodoc-perl/OODoc/Text.pm
    trunk/libopenoffice-oodoc-perl/OODoc/Text.pod
    trunk/libopenoffice-oodoc-perl/OODoc/data/image.png
    trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odg
    trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odp
    trunk/libopenoffice-oodoc-perl/OODoc/templates/template.ods
    trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odt
    trunk/libopenoffice-oodoc-perl/build_date
    trunk/libopenoffice-oodoc-perl/debian/changelog
    trunk/libopenoffice-oodoc-perl/debian/control
    trunk/libopenoffice-oodoc-perl/debian/copyright
    trunk/libopenoffice-oodoc-perl/debian/rules
    trunk/libopenoffice-oodoc-perl/examples/oodoc_test
    trunk/libopenoffice-oodoc-perl/t/01write.t
    trunk/libopenoffice-oodoc-perl/t/02read.t

Modified: trunk/libopenoffice-oodoc-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/Changes?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/Changes (original)
+++ trunk/libopenoffice-oodoc-perl/Changes Thu Jan  7 17:11:58 2010
@@ -1,3 +1,11 @@
+2.109   2010-01-05
+	Cosmetic changes in the installation tests; changed the test image.
+	Updated template documents.
+	Makefile.PL: Updated dependencies (updated INSTALL accordingly).
+	Makefile.PL: utf8 becomes the default character set.
+	File.pm: Archive::Zip 1.18 now required; IO::File required; file handles supported.
+        Meta.pm: Added user-defined property access methods; added getTemplate(), unlinkTemplate().
+        Text.pm: Added setNote(), fixed a bug in getTableByName() [#48356].
 2.108	2009-05-24
 	Some doc cleaning
 	Meta.pm: added getUserProperty(), setUserProperty(), removeUserProperty()

Modified: trunk/libopenoffice-oodoc-perl/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/INSTALL?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/INSTALL (original)
+++ trunk/libopenoffice-oodoc-perl/INSTALL Thu Jan  7 17:11:58 2010
@@ -1,12 +1,13 @@
-OpenOffice::OODoc installation (2008-10-10)
+OpenOffice::OODoc installation (2010-01-05)
 
 SYSTEM REQUIREMENTS
 
 	Perl		>= 5.8.0
-	Archive::Zip	>= 1.14
-	XML::Twig	>= 3.22
+	Archive::Zip	>= 1.18
+	XML::Twig	>= 3.32
 	Time::Local	>= 1.07
 	File::Temp	>= 0.12
+	IO::File	>= 1.14
 
 INSTALLATION FROM THE CPAN DISTRIBUTION
 

Modified: trunk/libopenoffice-oodoc-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/META.yml?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/META.yml (original)
+++ trunk/libopenoffice-oodoc-perl/META.yml Thu Jan  7 17:11:58 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:                OpenOffice-OODoc
-version:             2.108
+version:             2.109
 abstract:            The Perl Open OpenDocument Connector
 license:             LGPL
 author:              
@@ -8,9 +8,10 @@
 generated_by:        ExtUtils::MakeMaker version 6.42
 distribution_type:   module
 requires:     
-    Archive::Zip:                  1.14
+    Archive::Zip:                  1.18
     File::Find:                    1.01
     File::Temp:                    0.12
+    IO::File:                      1.14
     Time::Local:                   1.07
     XML::Twig:                     3.32
 meta-spec:

Modified: trunk/libopenoffice-oodoc-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/Makefile.PL?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/Makefile.PL (original)
+++ trunk/libopenoffice-oodoc-perl/Makefile.PL Thu Jan  7 17:11:58 2010
@@ -1,5 +1,5 @@
 #------------------------------------------------------
-# OpenOffice::OODoc packaging & installation 2008-11-08
+# OpenOffice::OODoc packaging & installation 2010-01-05
 #------------------------------------------------------
 
 use 5.008;
@@ -13,7 +13,7 @@
 	(
 	'config!'	=> \(my $config = 1),
 	'prompt!'	=> \(my $prompt = 1),
-	'encoding=s'	=> \(my $encoding = 'iso-8859-1'),
+	'encoding=s'	=> \(my $encoding = 'utf8'),
 	'colormap=s'	=> \(my $colormap = ''),
 	'workdir=s'	=> \(my $workdir = '.'),
 	'format=s'	=> \(my $format = 2),
@@ -153,10 +153,11 @@
     	'PREREQ_PM'	=>
     		{
 		'XML::Twig'		=> '3.32',
-		'Archive::Zip'		=> '1.14',
+		'Archive::Zip'		=> '1.18',
 		'File::Temp'		=> '0.12',
 		'File::Find'		=> '1.01',
-		'Time::Local'		=> '1.07'
+		'Time::Local'		=> '1.07',
+		'IO::File'		=> '1.14'
 		},
 	'EXE_FILES'	=>
 		[

Modified: trunk/libopenoffice-oodoc-perl/OODoc.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc.pm?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/OODoc.pm (original)
+++ trunk/libopenoffice-oodoc-perl/OODoc.pm Thu Jan  7 17:11:58 2010
@@ -1,14 +1,14 @@
 #-----------------------------------------------------------------------------
 #
-#	$Id : OODoc.pm 2.108 2009-05-24 JMG$
+#	$Id : OODoc.pm 2.109 2010-01-05 JMG$
 #
 #	Created and maintained by Jean-Marie Gouarne
 #	Copyright 2008 by Genicorp, S.A. (www.genicorp.com)
 #
 #-----------------------------------------------------------------------------
 
-use OpenOffice::OODoc::File		2.118;
-use OpenOffice::OODoc::Meta		2.013;
+use OpenOffice::OODoc::File		2.201;
+use OpenOffice::OODoc::Meta		2.014;
 use OpenOffice::OODoc::Document		2.023;
 use OpenOffice::OODoc::Manifest		2.005;
 
@@ -16,7 +16,7 @@
 
 package	OpenOffice::OODoc;
 use 5.008_000;
-our $VERSION				= 2.108;
+our $VERSION				= 2.109;
 
 require Exporter;
 our @ISA    = qw(Exporter);

Modified: trunk/libopenoffice-oodoc-perl/OODoc/File.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/File.pm?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/OODoc/File.pm (original)
+++ trunk/libopenoffice-oodoc-perl/OODoc/File.pm Thu Jan  7 17:11:58 2010
@@ -1,6 +1,6 @@
 #-----------------------------------------------------------------------------
 #
-#	$Id : File.pm 2.118 2009-01-30 JMG$
+#	$Id : File.pm 2.201 2009-06-06 JMG$
 #
 #	Created and maintained by Jean-Marie Gouarne
 #	Copyright 2009 by Genicorp, S.A. (www.genicorp.com)
@@ -9,9 +9,10 @@
 
 package	OpenOffice::OODoc::File;
 use	5.008_000;
-our	$VERSION	= 2.118;
-use	Archive::Zip	1.14	qw ( :DEFAULT :CONSTANTS :ERROR_CODES );
+our	$VERSION	= 2.201;
+use	Archive::Zip	1.18	qw ( :DEFAULT :CONSTANTS :ERROR_CODES );
 use	File::Temp;
+use	IO::File;
 
 #-----------------------------------------------------------------------------
 # some defaults
@@ -358,9 +359,15 @@
 		return undef;
 		}
 		
-
-	$self->{'source_file'}	= $sourcefile;
-
+	if ($sourcefile->isa('IO::Handle'))
+		{
+		$self->{'io_handle'}	= $sourcefile;
+		}
+	else
+		{
+		$self->{'source_file'}	= $sourcefile;
+		}
+	
 	unless	($sourcefile)
 		{
 		warn "[" . __PACKAGE__ . "::new] Missing file name\n";

Modified: trunk/libopenoffice-oodoc-perl/OODoc/Meta.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/Meta.pm?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/OODoc/Meta.pm (original)
+++ trunk/libopenoffice-oodoc-perl/OODoc/Meta.pm Thu Jan  7 17:11:58 2010
@@ -1,6 +1,6 @@
 #-----------------------------------------------------------------------------
 #
-#	$Id : Meta.pm 2.013 2009-05-24 JMG$
+#	$Id : Meta.pm 2.014 2010-01-05 JMG$
 #
 #	Created and maintained by Jean-Marie Gouarne
 #	Copyright 2009 by Genicorp, S.A. (www.genicorp.com)
@@ -9,7 +9,7 @@
 
 package	OpenOffice::OODoc::Meta;
 use	5.008_000;
-our	$VERSION	= 2.013;
+our	$VERSION	= 2.014;
 use	OpenOffice::OODoc::XPath	2.229;
 our	@ISA		= qw ( OpenOffice::OODoc::XPath );
 
@@ -411,16 +411,60 @@
 
 #-----------------------------------------------------------------------------
 
+sub	getUserPropertyElements
+	{
+	my $self	= shift;
+	return $self->getElementList('//meta:user-defined');
+	}
+
+#-----------------------------------------------------------------------------
+
+sub	removeUserProperties
+	{
+	my $self	= shift;
+	my $count	= 0;
+	foreach my $element ($self->getUserPropertyElements())
+		{
+		$element->delete; $count++;
+		}
+	return $count;
+	}
+
+#-----------------------------------------------------------------------------
+
+sub     getUserPropertyElement
+        {
+        my $self        = shift;
+        my $arg         = shift;
+        return undef    unless defined $arg;
+        if (ref $arg)
+                {
+                return ($arg->hasTag('meta:user-defined'))     ?
+                                $arg            :
+                                undef;
+                }
+        else
+                {
+                my $name = $self->inputTextConversion($arg);
+                return $self->getNodeByXPath
+                        ("//meta:user-defined[\@meta:name=\"$name\"]");
+                }
+        }
+
+#-----------------------------------------------------------------------------
+
 sub	getUserProperty
 	{
 	my $self	= shift;
-	my $name	= $self->inputTextConversion(shift) or return undef;
-	my $property	= $self->getNodeByXPath
-		("//meta:user-defined[\@meta:name=\"$name\"]")
-		or return undef;
-
-	my $type	= $self->getAttribute($property, 'meta:value-type');
-	my $value	= $self->getText($property);
+        my $property    = $self->getUserPropertyElement(shift);
+	my $type        = undef;
+	my $value       = undef;
+	
+	if ($property)
+		{
+	        $type	= $self->getAttribute($property, 'meta:value-type');
+	        $value	= $self->getText($property);
+	        }
 
 	return (wantarray) ? ($type, $value) : $value;
 	}
@@ -430,23 +474,30 @@
 sub	setUserProperty
 	{
 	my $self	= shift;
-	my $name	= shift or return undef;
+	my $name        = shift;
+	unless (defined $name)
+	        {
+	        return (wantarray) ? (undef, undef) : undef;
+	        }
 	my %opt		= @_;
-	my $n		= $self->inputTextConversion($name);
-	my $property	= $self->getNodeByXPath
-		("//meta:user-defined[\@meta:name=\"$n\"]");
-	unless ($property)
-		{
-		$property = $self->appendElement
-			(
-			$self->{'body'}, 'meta:user-defined',
-			);
-		$self->setAttribute($property, 'meta:name', $name);
-		}
-	$opt{'type'} = 'string' unless defined $opt{'type'};
-	$self->setAttribute($property, 'meta:value-type', $opt{'type'});
-	$self->setText($property, $opt{'value'});
-	return (wantarray) ? ($opt{'type'}, $opt{'value'}) : $opt{'value'};
+
+        my $property    = $self->getUserPropertyElement($name);	
+        unless ($property)
+                {
+                $property =$self->appendElement
+                        ($self->{'body'}, 'meta:user-defined');
+                $self->setAttribute($property, 'meta:name', $name);
+                }
+
+        my $type =      $opt{'type'}                            ||
+                        $self->getAttribute
+                                ($property, 'meta:value-type')  ||
+                        'string';
+
+	$self->setAttribute($property, 'meta:value-type', $type);
+	$self->setText($property, $opt{'value'}) if defined $opt{'value'};
+	
+	return $self->getUserProperty($property);
 	}
 
 #-----------------------------------------------------------------------------
@@ -478,4 +529,25 @@
 	}
 
 #-----------------------------------------------------------------------------
+
+sub	getTemplate
+	{
+	my $self	= shift;
+	my $element	= $self->getElement('//meta:template', 0)
+				or return undef;
+	my %t		= $self->getAttributes($element);
+	return (wantarray) ?
+		($t{'xlink:href'}, $t{'meta:date'}, $t{'xlink:title'})	:
+		$t{'xlink:href'};
+	}
+
+#-----------------------------------------------------------------------------
+
+sub	unlinkTemplate
+	{
+	my $self	= shift;
+	return $self->removeElement('//meta:template', 0);	
+	}
+
+#-----------------------------------------------------------------------------
 1;

Modified: trunk/libopenoffice-oodoc-perl/OODoc/Meta.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/Meta.pod?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/OODoc/Meta.pod (original)
+++ trunk/libopenoffice-oodoc-perl/OODoc/Meta.pod Thu Jan  7 17:11:58 2010
@@ -120,10 +120,28 @@
 
         With argument, inserts any signature.
 
+=head3	getTemplate()
+
+	Returns information about the template that is linked to the current
+	document, if any.
+
+	In scalar context, the returned information is the location (URL) of
+	the template, or undef if the document isn't linked to any template.
+
+	In array context, the returned values are, in this order, the location
+	of the template document, the date and time when the template was last
+	modified prior to being used to create the current document, then the
+	title of the template document.
+
+	See also unlinkTemplate().
+
 =head3	getUserProperty(name)
 
 	Retrieves the content of the user-defined property corresponding to the
 	given name, if any.
+	
+	The argument may be an already retrieved user-defined property element
+	reference instead of a name. 
 
 	In scalar context, returns the value only.
 	In array context, returns the data type (1st) and the value (2nd).
@@ -131,6 +149,17 @@
 	Returns undef if the property is not defined.
 
 	See also setUserProperty().
+
+=head3  getUserPropertyElement(name)
+
+        Like getUserProperty(), but the return value is the user property
+        element instead of its value and/or type. Returns undef if the given
+        property is not defined (or if the given object is not a user-defined
+        property element).
+
+=head3  getUserPropertyElements()
+
+	Returns the list of all the existing user-defined property elements.
 
 =head3	initial_creator()
 
@@ -168,6 +197,12 @@
 	Deletes the user-defined property corresponding to the given name (does
 	nothing if the given property is not defined in the document).
 
+=head3	removeUserProperties()
+
+	Deletes all the existing user-defined properties and returns the number
+	or really deleted elements (does nothing and returns 0 if no user
+	property is defined in the document).
+
 =head3	setUserProperty(name, type => value_type, value => text)
 
 	Creates or updates a user-defined property with the given data type and
@@ -182,8 +217,32 @@
 	ODF compliance requires 'true' or 'false' for a boolean, and the ISO-8601
 	format for a date (see odfLocaltime()).
 
-	If the 'type' option is not provided, the 'string' type is selected
-	by default.
+	Example:
+
+		$meta->setUserProperty
+			(
+			"Approved",
+			type => 'boolean', value => 'false'
+			);
+		$meta->setUserProperty
+			(
+			"Circulation",
+			type => 'string', value => "Internal"
+			);
+		$meta->setUserProperty
+			(
+			"Release date",
+			type => 'date', value => "2010-01-01'
+			);
+		$meta->setUserProperty
+			(
+			"Release number",
+			type => 'float', value => "5.4'
+			);
+	
+        The 'type' option allows to change the data type of an existing user-
+        defined property. However, if a new property is created without 'type'
+        option, the 'string' type is selected by default.
 
 	The return value reflects the new status of the user defined item,
 	in the same format as with getUserProperty().
@@ -251,6 +310,11 @@
 
         With argument, adds a new title to the document.
 
+=head3	unlinkTemplate()
+
+	Removes the reference to a template document, if any, ensuring that
+	the document no longer depends on any external template.
+
 =head3	user_defined()
 
         Returns the list of the user defined fields of the document.
@@ -263,10 +327,10 @@
 	provided items is less than the numbers of existing user defined
 	properties, the exceding properties are left unchanged.
 
-	Warning: this method is deprecated; it fits with some legacy
-	documents where the number of user defined properties was fixed.
-	The newer getUserProperty() and setUserProperty() methods should
-	be preferred.
+	Warning: this method is deprecated. Newer methods such as
+	setUserProperty(), getUserProperty(), removeUserProperties(),
+	getUserPropertyElements(), and getUserPropertyElements() should be
+	preferred. 
 
 =head3	version()
 
@@ -282,7 +346,7 @@
 
 Contact: jmgdoc at cpan.org
 
-Copyright 2004-2009 by Genicorp, S.A. L<http://www.genicorp.com>
+Copyright 2004-2010 by Genicorp, S.A. L<http://www.genicorp.com>
 
 Initial English version of the reference manual by Graeme A. Hunter
 (graeme.hunter at zen.co.uk).

Modified: trunk/libopenoffice-oodoc-perl/OODoc/Text.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/Text.pm?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/OODoc/Text.pm (original)
+++ trunk/libopenoffice-oodoc-perl/OODoc/Text.pm Thu Jan  7 17:11:58 2010
@@ -1,6 +1,6 @@
 #----------------------------------------------------------------------------
 #
-#	$Id : Text.pm 2.236 2009-02-18 JMG$
+#	$Id : Text.pm 2.237 2010-01-05 JMG$
 #
 #	Created and maintained by Jean-Marie Gouarne
 #	Copyright 2009 by Genicorp, S.A. (www.genicorp.com)
@@ -11,7 +11,7 @@
 use	5.008_000;
 use	OpenOffice::OODoc::XPath	2.229;
 our	@ISA		= qw ( OpenOffice::OODoc::XPath );
-our	$VERSION	= 2.236;
+our	$VERSION	= 2.237;
 
 #-----------------------------------------------------------------------------
 # synonyms
@@ -879,6 +879,54 @@
 	}
 
 #-----------------------------------------------------------------------------
+# creates and inserts a footnote or endnote
+
+sub     setNote
+        {
+        my $self	= shift;
+	my $path	= shift;
+	my $pos		= ref $path ? undef : shift;
+	my $element	= $self->getElement($path, $pos)   or return undef;
+	my $text        = shift;
+	my %opt		=
+		(
+		'offset'	=> 0,
+		'text'		=> "",
+		'style'		=> 'Standard',
+		'citation'      => undef,
+		'id'            => undef,
+		'class'         => 'footnote',
+		'label'         => undef,
+		@_
+		);
+        my $note = $element->insertNewNode
+                ('text:note', 'within', $opt{'offset'});
+        $self->setAttributes
+                (
+                $note,
+                'text:id'               => $opt{'id'},
+                'text:note-class'       => $opt{'class'}
+                );
+        my $note_citation       = $note->appendChild('text:note-citation');
+        if (defined $opt{'label'})
+                {
+                $self->setAttribute
+                        ($note_citation, 'text:label', $opt{'label'});
+                $opt{'citation'} = $opt{'label'}
+                        unless defined $opt{'citation'};
+                }
+        $self->setText($note_citation, $opt{'citation'});
+        my $note_body           = $note->appendChild('text:note-body');
+        $self->appendParagraph
+                (
+                attachment      => $note_body,
+                text            => $text,
+                style           => $opt{'style'}
+                );
+        return $note;
+        }
+
+#-----------------------------------------------------------------------------
 
 sub	removeSpan
 	{
@@ -3182,7 +3230,7 @@
 	my $self	= shift;
 	my $name 	= $self->inputTextConversion(shift);
 	my $table = $self->getNodeByXPath
-		("//table:table[\@table:name=\"$n\"]");
+		("//table:table[\@table:name=\"$name\"]");
 	return $self->getTable($table, @_);
 	}
 

Modified: trunk/libopenoffice-oodoc-perl/OODoc/Text.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/Text.pod?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/OODoc/Text.pod (original)
+++ trunk/libopenoffice-oodoc-perl/OODoc/Text.pod Thu Jan  7 17:11:58 2010
@@ -2474,6 +2474,37 @@
 	such a link is the concatenation of a file path, a "#", and a local
 	name that makes sense in the target document (bookmark, heading...).
 
+=head3  setNote(path, position, text [, options])
+
+=head3  setNote(element, text [, options])
+
+        Creates and inserts a footnote or an endnote in the given element with
+        the given text as the note content. Returns the new note element in
+        case of success, or undef if the target element doesn't exist.
+        
+        Supported options are:
+        
+        'offset' => specifies the numeric position of the note in the text of the
+	target element; by default the note is located at the beginning;
+        
+        'class' => specifies the display class of the now note; may be 'footnote'
+        or 'endnote', default is 'footnote';
+        
+        'id' => a note identifier, must be provided by the application and must
+        be unique for the class (be careful, the uniqueness is not automatically
+        checked and no default is provided);
+        
+        'citation' => specifies the character string to display as note citation
+        (at the place in the host element where the note is anchored);
+        
+        'label' => this option, if provided, means that the note should not be
+        processed as automatically numbered by the printing/editing applications
+        and that it should be represented by the given (arbitrary) string; if
+        'label' is defined, it becomes the default value of 'citation';
+        
+        'style' => specifies the style of the note content (should be a regular
+        paragraph style).
+
 =head3	setSpan(path, position, [context,] expression, style)
 
 =head3	setSpan(element, [context,] expression, style)

Modified: trunk/libopenoffice-oodoc-perl/OODoc/data/image.png
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/data/image.png?rev=50477&op=diff
==============================================================================
Binary files - no diff available.

Modified: trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odg
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odg?rev=50477&op=diff
==============================================================================
Binary files - no diff available.

Modified: trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odp
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odp?rev=50477&op=diff
==============================================================================
Binary files - no diff available.

Modified: trunk/libopenoffice-oodoc-perl/OODoc/templates/template.ods
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/templates/template.ods?rev=50477&op=diff
==============================================================================
Binary files - no diff available.

Modified: trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odt
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/OODoc/templates/template.odt?rev=50477&op=diff
==============================================================================
Binary files - no diff available.

Modified: trunk/libopenoffice-oodoc-perl/build_date
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/build_date?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/build_date (original)
+++ trunk/libopenoffice-oodoc-perl/build_date Thu Jan  7 17:11:58 2010
@@ -1,1 +1,1 @@
-2009-05-24T20:09:08
+2010-01-05T19:34:46

Modified: trunk/libopenoffice-oodoc-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/debian/changelog?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/debian/changelog (original)
+++ trunk/libopenoffice-oodoc-perl/debian/changelog Thu Jan  7 17:11:58 2010
@@ -1,4 +1,11 @@
-libopenoffice-oodoc-perl (2.108-2) UNRELEASED; urgency=low
+libopenoffice-oodoc-perl (2.109-1) UNRELEASED; urgency=low
+
+  [ Jonathan Yu ]
+  * New upstream release
+  * Refresh to new DEP5 copyright format
+  * Rewrite control description
+  * Add myself to Uploaders and Copyright
+  * Move dependencies from B-D to B-D-I
 
   [ Nathan Handler ]
   * debian/watch: Update to ignore development releases.
@@ -8,7 +15,7 @@
   * Switched to concise debian/rules with overrides
   * Bumped Standards-Version to 3.8.3: no changes necessary
 
- -- Maximilian Gass <mxey at cloudconnected.org>  Sun, 13 Sep 2009 19:32:04 +0200
+ -- Jonathan Yu <jawnsy at cpan.org>  Thu, 07 Jan 2010 12:04:36 -0500
 
 libopenoffice-oodoc-perl (2.108-1) unstable; urgency=low
 

Modified: trunk/libopenoffice-oodoc-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/debian/control?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/debian/control (original)
+++ trunk/libopenoffice-oodoc-perl/debian/control Thu Jan  7 17:11:58 2010
@@ -1,12 +1,11 @@
 Source: libopenoffice-oodoc-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.0.50~), libarchive-zip-perl (>= 1.14),
- libxml-twig-perl (>= 3.32)
-Build-Depends-Indep: perl
+Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends-Indep: perl, libarchive-zip-perl, libxml-twig-perl (>= 1:3.32)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Maximilian Gass <mxey at cloudconnected.org>,
- Damyan Ivanov <dmn at debian.org>,
+ Damyan Ivanov <dmn at debian.org>, Jonathan Yu <jawnsy at cpan.org>,
  Franck Joncourt <franck.mail at dthconnex.com>
 Standards-Version: 3.8.3
 Homepage: http://search.cpan.org/dist/OpenOffice-OODoc/
@@ -15,18 +14,15 @@
 
 Package: libopenoffice-oodoc-perl
 Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, libarchive-zip-perl (>= 1.14),
- libxml-twig-perl (>= 3.32)
-Description: Perl interface for working with Open Document Format files
- This toolbox is an extensible Perl interface allowing direct read/write
- operations on files which comply with the OASIS Open Document Format for
- Office Applications (ODF), i.e. the ISO/IEC 26300:2006 standard.
+Depends: ${perl:Depends}, ${misc:Depends}, libarchive-zip-perl,
+ libxml-twig-perl (>= 1:3.32)
+Description: module for working with Open Document Format files
+ OpenOffice::OODoc is a Perl module for reading from/writing to files that
+ comply with the OASIS Open Document Format for Office Applications (ODF),
+ also known as the ISO/IEC 26300:2006 standard. It provides a high-level,
+ document-oriented language, and isolates the programmer from the details
+ of the file format.
  .
- It provides a high-level, document-oriented language, and isolates the
- programmer from the details of the file format. It can process different
- document classes (texts, spreadsheets, presentations, and drawings).  It can
- retrieve or update styles and images, document metadata, as well as text
- content.
- .
- OpenOffice::OODoc is designed for data retrieval and update in existing
- documents, as well as full document generation.
+ This module can process different document classes (texts, spreadsheets,
+ presentations, and drawings). It can retrieve or update styles and images,
+ document metadata, as well as text content.

Modified: trunk/libopenoffice-oodoc-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/debian/copyright?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/debian/copyright (original)
+++ trunk/libopenoffice-oodoc-perl/debian/copyright Thu Jan  7 17:11:58 2010
@@ -1,26 +1,31 @@
-Format-Specification:
-    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: Jean-Marie Gouarné <jmgdoc at cpan.org>
-Upstream-Source: http://search.cpan.org/dist/OpenOffice-OODoc/
-Upstream-Name: OpenOffice-OODoc
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59
+Maintainer: Jean-Marie Gouarné <jmgdoc at cpan.org>
+Source: http://search.cpan.org/dist/OpenOffice-OODoc/
+Name: OpenOffice-OODoc
 
 Files: *
-Copyright: © 2004-2009 by Genicorp, S.A. <http://www.genicorp.com>
+Copyright: 2004-2009, Genicorp, S.A. <http://www.genicorp.com/>
 License: LGPL-2.1
-    This software is free software. It is subject to the terms and
-    conditions of the GNU Lesser General Public Licence, version 2.1, of the
-    Free Software Foundation (http://www.fsf.org).
-
-    On Debian GNU/Linux systems, the complete text of the GNU Lesser General
-    Public License can be found in `/usr/share/common-licenses/LGPL-2.1'
 
 Files: debian/*
-Copyright: © 2008, Maximilian Gaß <mxey at cloudconnected.org>
+Copyright: 2010, Jonathan Yu <jawnsy at cpan.org>
+ 2008-2009, Damyan Ivanov <dmn at debian.org>
+ 2008, Maximilian Gaß <mxey at cloudconnected.org>
 License: GPL-2+
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2, or (at your option)
-    any later version.
 
-    On Debian GNU/Linux systems, the complete text of the GNU General
-    Public License can be found in `/usr/share/common-licenses/GPL'
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL'
+
+License: LGPL-2.1
+ This software is free software. It is subject to the terms and
+ conditions of the GNU Lesser General Public Licence, version 2.1, of the
+ Free Software Foundation (http://www.fsf.org).
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+ Public License can be found in `/usr/share/common-licenses/LGPL-2.1'

Modified: trunk/libopenoffice-oodoc-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/debian/rules?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/debian/rules (original)
+++ trunk/libopenoffice-oodoc-perl/debian/rules Thu Jan  7 17:11:58 2010
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
-PKG = $(shell dh_listpackages)
-TMP = $(CURDIR)/debian/$(PKG)
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 %:
 	dh $@
@@ -10,9 +10,9 @@
 	dh_auto_configure -- --encoding 'utf8'
 
 override_dh_auto_test:
-	$(RM) blib/lib/OpenOffice/OODoc/config.xml
+	rm blib/lib/OpenOffice/OODoc/config.xml
 	dh_auto_test
 
 override_dh_auto_install:
 	dh_auto_install
-	$(RM) $(TMP)/usr/bin/oodoc_version
+	rm $(TMP)/usr/bin/oodoc_version

Modified: trunk/libopenoffice-oodoc-perl/examples/oodoc_test
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/examples/oodoc_test?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/examples/oodoc_test (original)
+++ trunk/libopenoffice-oodoc-perl/examples/oodoc_test Thu Jan  7 17:11:58 2010
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #-----------------------------------------------------------------------------
-# OpenOffice::OODoc test					2008-10-31
+# OpenOffice::OODoc test					2010-01-05
 #-----------------------------------------------------------------------------
 
 =head1	NAME
@@ -41,7 +41,7 @@
 				"odftest.odt" : "ootest.sxw";
 my $class	=	"text";
 my $image_file	=	"$instpath/data/image.png";
-my $image_size	=	"91mm, 53mm";
+my $image_size	=	"60mm, 82mm";
 my $test_date	=	odfLocaltime();
 
 print "Generating $testfile file\n";
@@ -89,9 +89,10 @@
 	'Centered Image',
 	properties	=>
 			{
-			'style:horizontal-pos'	=> 'center',
-			'style:vertical-pos'	=> 'from-top',
-			'fo:margin-bottom'	=> '2cm'
+			'horizontal-pos'	=> 'center',
+			'vertical-pos'	        => 'from-top',
+			'wrap'                  => 'none',
+			'fo:margin-bottom'	=> '1cm'
 			}
 	);
 # Inserting an image in the document
@@ -216,6 +217,9 @@
 $meta->generator($generator);
 $meta->creation_date($test_date);
 $meta->date($test_date);
+$meta->removeUserProperties();
+$meta->setUserProperty("Application", type => 'string', value => "oodoc_test");
+$meta->setUserProperty("Test date", type => 'date', value => $test_date);
 
 # Saving the $testfile file
 print "Saving $testfile file\n";

Modified: trunk/libopenoffice-oodoc-perl/t/01write.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/t/01write.t?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/t/01write.t (original)
+++ trunk/libopenoffice-oodoc-perl/t/01write.t Thu Jan  7 17:11:58 2010
@@ -1,12 +1,12 @@
 #-----------------------------------------------------------------------------
-# 01write.t	OpenOffice::OODoc Installation test		2009-05-24
+# 01write.t	OpenOffice::OODoc Installation test		2010-01-05
 #-----------------------------------------------------------------------------
 
 use Test;
 BEGIN	{ plan tests => 19 }
 
-use OpenOffice::OODoc	2.108;
-ok($OpenOffice::OODoc::VERSION >= 2.108);
+use OpenOffice::OODoc	2.109;
+ok($OpenOffice::OODoc::VERSION >= 2.109);
 
 #-----------------------------------------------------------------------------
 
@@ -16,7 +16,7 @@
 				"odftest.odt" : "ootest.sxw";
 my $class	=	"text";
 my $image_file	=	"OODoc/data/image.png";
-my $image_size	=	"91mm, 53mm";
+my $image_size	=	"7.06cm, 9.60cm";
 my $test_date	=	odfLocaltime();
 
 # Creating an empty new ODF file with the default template
@@ -41,8 +41,10 @@
 "page, and if the informations below make sense, " .
 "your installation is probably OK.";
 
-my $title	= "OpenOffice::OODoc test document";
-my $description	= "Generated by $generator";
+my $title	= "ODF sample document";
+my $description	=
+		"Generated using OpenOffice::OODoc " .
+		"$OpenOffice::OODoc::VERSION";
 
 # Opening the content using OpenOffice::OODoc::Document
 my $doc	= odfConnector
@@ -70,9 +72,10 @@
 		'Centered Image',
 		properties	=>
 			{
-			'style:horizontal-pos'	=> 'center',
-			'style:vertical-pos'	=> 'from-top',
-			'fo:margin-bottom'	=> '2cm'
+			'horizontal-pos'	=> 'center',
+			'vertical-pos'	        => 'from-top',
+			'wrap'                  => 'none',
+			'fo:margin-bottom'	=> '1cm'
 			}
 		)
 	);
@@ -211,6 +214,8 @@
 ok($meta->date($test_date));
 $meta->creator($ENV{'USER'});
 $meta->initial_creator($ENV{'USER'});
+$meta->subject("OpenOffice::OODoc installation test");
+$meta->removeUserProperties();
 
 # Saving the $testfile file
 ok($archive->save);

Modified: trunk/libopenoffice-oodoc-perl/t/02read.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libopenoffice-oodoc-perl/t/02read.t?rev=50477&op=diff
==============================================================================
--- trunk/libopenoffice-oodoc-perl/t/02read.t (original)
+++ trunk/libopenoffice-oodoc-perl/t/02read.t Thu Jan  7 17:11:58 2010
@@ -1,12 +1,12 @@
 #-----------------------------------------------------------------------------
-# 02read.t	OpenOffice::OODoc Installation test		2009-01-16
+# 02read.t	OpenOffice::OODoc Installation test		2009-12-23
 #-----------------------------------------------------------------------------
 
 use Test;
 BEGIN	{ plan tests => 12 }
 
-use OpenOffice::OODoc	2.108;
-ok($OpenOffice::OODoc::VERSION >= 2.108);
+use OpenOffice::OODoc	2.109;
+ok($OpenOffice::OODoc::VERSION >= 2.109);
 
 #-----------------------------------------------------------------------------
 




More information about the Pkg-perl-cvs-commits mailing list