OpenDocument status / support for multiple document types

From: Date: Tue, 09 Jun 2009 04:51:20 +0000
Subject: OpenDocument status / support for multiple document types
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51920@lists.php.net to get a copy of this message
Hi all, > Today while starting to write docs for the OpenDocument package, I saw > that it can do nearly nothing. There is not visible planned support > for document types other than text docs ... My idea is to split the OpenDocument class, which is basically just made for creating text documents, to OpenDocument_Document_Text and an OpenDocument_Document base class. The base class would keep general methods like - compare*Nodes - compareStyles - getChildren - getStyle - listChildren - save thus all methods that are general xml processing functions. Methods like createHeading, createParagraph will stay in OpenDocument_Document_Text. Should we call it OpenDocument_Doc_Text for shortness? The OpenDocument.php class would contain factory methods like - OpenDocument::text([$filename]) - OpenDocument::spreadsheet([$filename]) that return the class instances. Ideas, hints? The odt template file is not in CVS as I saw and should be put into the data dir. ... but maybe we should start with a PEAR2 OpenDocument package? -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.dev (#51920) next »