OpenDocumentSpreadsheet __construct(
[string
$fullpath = null]
)
|
|
Constructor method.
Read (and if not exists create) an OpenDocument calc file (aka spreadsheet).
Parameters:
|
string |
$fullpath: |
Full path and name of the document |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Redefinition of:
- OpenDocumentArchive::__construct()
- Constructor method.
object addSheet(
string
$sheetname
)
|
|
Create a new sheet with the name '$sheetname'.
Parameters:
|
string |
$sheetname: |
The name of the new sheet |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void setDefaultFontFaces(
)
|
|
We set up some default font face declarations here.
We put the same font face declarations in the styles.xml and content.xml document.
There are two font faces declared by this method: Tahoma1 and Arial Unicode MS.
API Tags:
Information Tags:
| Since: | 0.5.3 - 04. Aug. 2007 |
Setup some default data for the meta.xml.
We will setup some data for the meta.xml document. You can use this method and overwrite even the static given data in this method by calling the MetaFragment or DublinCoreFragment methods again.
Currently we set the following meta datas:
DublinCore:
- The subject is set to 'A generated subject by OpenDocumentPHP.'.
- The title is set to 'This is a generated title by OpenDocumentPHP.'.
- The description is set to 'This is a short description by OpenDocumentPHP.'.
- The language is set up 'en' for an english text.
(OpenDocument-)Meta: currently nothing is set here.
In your own code you can change the value very simple:
...
// Retreive the DublinCoreFragment to change dublin core meta data
$dc =
$doc->getMeta()->getDublinCoreFragment();
// Change title to new title
$dc->setTitle( 'This is a new title of the document.' );
...
// Retreive the MetaFragment to change OpenDocument meta data
$meta =
$doc->getMeta()->getMetaFragment();
// Change the initial creator of the document
$meta->setInitialCreator( 'Robert Duck' );
...
API Tags:
Information Tags:
| Since: | 0.5.3 - 03. Aug. 2007 |
Set up some default styles.
We define the 'Standart' and 'Heading_20_1' fonts in this method.
API Tags:
Information Tags:
| Since: | 0.5.3 - 04. Aug. 2007 |