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

Class: DefaultStyle

Source Location: /styles/DefaultStyle.php

Class Overview

DOMElement
   |
   --ODPElement
      |
      --DefaultStyle

DefaultStyle class.


Author(s):

  • Norman Markgraf (nmarkgraf(at)user.sourceforge.net)

Version:

  • $Revision: 164 $

Copyright:

  • Copyright in 2006, 2007 by The OpenDocumentPHP Team

Methods


Child classes:

Style
Styles class.

Inherited Constants

Inherited Methods

Class: ODPElement

ODPElement::__construct()
Constructor.
ODPElement::appendChild()
Set attribute with namespace.
ODPElement::getAttributeNS()
Retrieve an attribute with namespace, tag and value.
ODPElement::getChildNS()
Retrieve a child by its namespace and tag from the current node.
ODPElement::getDrawAttribute()
Retrieve a draw attribute of the current element.
ODPElement::getElement()
Return this element as uncovered DOMElement.
ODPElement::getElementByTagNameNS()
Retrieve (first) element by given tagname and namespace.
ODPElement::getElementsByTagNameNS()
Retrieve elements by given tagname and namespace.
ODPElement::getStyleAttribute()
Retrieve a style attribute of the current element.
ODPElement::hasAttributeNS()
Check if this element has an attribute with given namespace and tagname.
ODPElement::hasChildNS()
Check if the current element has a child $tag with $namespace.
ODPElement::putAttributeNS()
Put an attribute with namespace, tag and value.
ODPElement::putDrawAttribute()
Put (set with remove old) a draw attribute to the current ODPElement.
ODPElement::putFOAttribute()
Put (set with remove old) a FO attribute to the current ODPElement.
ODPElement::putStyleAttribute()
Put (set with remove old) a sytle attribute to the current ODPElement.
ODPElement::removeAttributeNS()
Set attribute with namespace.
ODPElement::setAttributeNS()
Set attribute with namespace.
ODPElement::setManifestAttribute()
Set a Manifest attribute to the current ODPElement.

Class Details

[line 40]
DefaultStyle class.



Tags:

author:  Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
version:  $Revision: 164 $
copyright:  Copyright in 2006, 2007 by The OpenDocumentPHP Team
since:  0.5.0 - 08.02.2007
license:  GNU General Public License 2.0.


[ Top ]


Class Methods


method getFamily [line 89]

void getFamily( )

Retrieve family.



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getGraphicProperties [line 187]

void getGraphicProperties( )

Retrieve a <style:graphic-properties> tag.

If it does not exists, create on and add it as a child.




Tags:

todo:  Replace the else path by something which uses $this->getChild(..)!
since:  0.5.2 - 03.03.2007
access:  public


[ Top ]

method getParagraphProperties [line 133]

void getParagraphProperties( )

Retrieve a <style:paragraph-properties> tag.

If it does not exists, create on and add it as a child.




Tags:

todo:  Replace the else path by something which uses $this->getChild(..)!
since:  0.5.2 - 03.03.2007
access:  public


[ Top ]

method getTextProperties [line 156]

void getTextProperties( )

Retrieve a <style:text-properties> tag.

If it does not exists, create on and add it as a child.




Tags:

todo:  Replace the else path by something which uses $this->getChild(..)!
since:  0.5.2 - 03.03.2007
access:  public


[ Top ]

method hasGraphicProperties [line 122]

bool hasGraphicProperties( )

Checks if the current default style has an graphic-properties element as child.



Tags:

return:  True if there is an <style:graphic-properties> tag as child of the current <style:default-style> tag.
since:  0.5.2 - 04.03.2007
access:  public


[ Top ]

method hasParagraphProperties [line 100]

bool hasParagraphProperties( )

Checks if the current default style has an paragraph-properties element as child.



Tags:

return:  True if there is an <style:paragraph-properties> tag as child of the current <style:default-style> tag.
since:  0.5.2 - 04.03.2007
access:  public


[ Top ]

method hasTextProperties [line 111]

bool hasTextProperties( )

Checks if the current default style has an text-properties element as child.



Tags:

return:  True if there is an <style:text-properties> tag as child of the current <style:default-style> tag.
since:  0.5.2 - 04.03.2007
access:  public


[ Top ]

method setFamily [line 75]

void setFamily( string $value)

Set family.



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

string   $value   Must be a value out of 'ruby','control', 'presentation', 'drawing-page', 'default', 'chart', 'table-page', 'table-cell', 'table-row', 'table-column', 'section', 'text', 'table', 'paragraph' or 'graphic'.

[ Top ]

method __setRoot [line 59]

void __setRoot( )

Set element to 'style:default-style'.



Tags:

deprecated:  0.5.2 - 19.03.2007 No longer needed!
since:  0.5.0 - 08.02.2007
access:  protected


Overridden in child classes as:

Style::__setRoot()
Set element to 'style:style'.

[ Top ]


Documentation generated on Tue, 12 Jun 2007 09:59:38 +0200 by phpDocumentor 1.3.2