OpenDocument
[ class tree: OpenDocument ] [ index: OpenDocument ] [ all elements ]

Class: OpenDocument_Document_Text

Source Location: /OpenDocument-0.2.1/OpenDocument/Document/Text.php

Class Overview

OpenDocument_Document
   |
   --OpenDocument_Document_Text

Text document


Author(s):

Methods


Child classes:

OpenDocument_Debug_Text
OpenDocument Text debug class

Inherited Variables

Inherited Methods

Class: OpenDocument_Document

OpenDocument_Document::__construct()
Constructor
OpenDocument_Document::addFont()
Add new font declaration
OpenDocument_Document::applyStyle()
Apply style information to object.
OpenDocument_Document::compareChildNodes()
Compare DOMNode children
OpenDocument_Document::compareNodes()
Compare two DOMNode nodes and check if they are equal
OpenDocument_Document::compareStyles()
Check if two style info are similar
OpenDocument_Document::deleteElement()
Delete document child element
OpenDocument_Document::getChildren()
Get children list
OpenDocument_Document::getChildrenByName()
Get DOMNode children by name
OpenDocument_Document::getDOM()
Returns the internal DOM document of the given type.
OpenDocument_Document::getFonts()
Get array of declared font names
OpenDocument_Document::getStyle()
Get array of style values
OpenDocument_Document::getStyleNode()
Get style node
OpenDocument_Document::getXPath()
Returns the internal XPath object of the given type.
OpenDocument_Document::listChildren()
Fills $this->children with all DOMNodes
OpenDocument_Document::open()
Open the given file
OpenDocument_Document::save()
Save changes in document or save as a new document or under another name.
OpenDocument_Document::setMax()
Set maximum values of style name suffixes
OpenDocument_Document::__get()
Provide read only access to cursor private variable

Class Details

[line 49]
Text document


[ Top ]


Method Detail

createBookmark   [line 161]

OpenDocument_Element_Bookmark createBookmark( string $name, [string $type = 'start'])

Create a bookmark
  • Todo: finish method
  • Access: public

Parameters:

string   $name     Readable name of the bookmark
string   $type     'start' or 'end'

[ Top ]

createHeading   [line 144]

OpenDocument_Heading createHeading( [string $text = ''], [integer $level = 1])

Create heading
  • Access: public

Parameters:

string   $text     Contents of heading
integer   $level     Level 1-6 (1 highest)

[ Top ]

createParagraph   [line 129]

OpenDocument_Element_Paragraph createParagraph( [string $text = ''])

Create paragraph
  • Access: public

Parameters:

string   $text     Content of paragraph

[ Top ]

listChildren   [line 56]

void listChildren( )

Fills $this->children with all DOMNodes
  • Access: protected

Overrides OpenDocument_Document::listChildren() (Fills $this->children with all DOMNodes)
[ Top ]

setMax   [line 86]

void setMax( )

Set maximum values of style name suffixes
  • Access: protected

Overrides OpenDocument_Document::setMax() (Set maximum values of style name suffixes)
[ Top ]


Documentation generated on Tue, 23 Oct 2012 12:00:09 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.