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

Class: DefaultStyle

Source Location: /styles/DefaultStyle.php

Class DefaultStyle

Class Overview

DefaultStyle class.

Located in /styles/DefaultStyle.php [line 42]

DOMElement
   |
   --ODPElement
      |
      --DefaultStyle
Author(s):
  • Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
Information Tags:
Version:  $Revision: 256 $
Copyright:  Copyright in 2006, 2007 by The OpenDocumentPHP Team
Since:  0.5.0 - 08.02.2007
License:  GNU General Public License 2.0.

Methods

[ Top ]
Direct descendents
Child Class Description
Style Styles class.

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From 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.

[ Top ]
Method Summary
DefaultStyle   __construct()   Constructor method.
void   getFamily()   Retrieve family.
void   getGraphicProperties()   Retrieve a <style:graphic-properties> tag.
void   getParagraphProperties()   Retrieve a <style:paragraph-properties> tag.
void   getTextProperties()   Retrieve a <style:text-properties> tag.
bool   hasGraphicProperties()   Checks if the current default style has an graphic-properties element as child.
bool   hasParagraphProperties()   Checks if the current default style has an paragraph-properties element as child.
bool   hasTextProperties()   Checks if the current default style has an text-properties element as child.
void   setFamily()   Set family.

[ Top ]
Methods
Constructor __construct  [line 49]

  DefaultStyle __construct( [ $elem = null], [ $value = null], [ $namespace = null]  )

Constructor method.

Parameters:
   $elem: 
   $value: 
   $namespace: 

Information Tags:
Since:  0.5.2 - 30. Feb. 2007

Redefinition of:
ODPElement::__construct()
Constructor.

Redefined in descendants as:

[ Top ]
getFamily  [line 101]

  void getFamily( )

Retrieve family.


API Tags:
Access:  public

Information Tags:
Since:  0.5.0 - 08.02.2007

[ Top ]
getGraphicProperties  [line 193]

  void getGraphicProperties( )

Retrieve a <style:graphic-properties> tag.

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


API Tags:
Access:  public

Information Tags:
Todo:  Replace the else path by something which uses $this->getChild(..)!
Since:  0.5.2 - 03.03.2007

[ Top ]
getParagraphProperties  [line 145]

  void getParagraphProperties( )

Retrieve a <style:paragraph-properties> tag.

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


API Tags:
Access:  public

Information Tags:
Todo:  Replace the else path by something which uses $this->getChild(..)!
Since:  0.5.2 - 03.03.2007

[ Top ]
getTextProperties  [line 168]

  void getTextProperties( )

Retrieve a <style:text-properties> tag.

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


API Tags:
Access:  public

Information Tags:
Todo:  Replace the else path by something which uses $this->getChild(..)!
Since:  0.5.2 - 03.03.2007

[ Top ]
hasGraphicProperties  [line 134]

  bool hasGraphicProperties( )

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


API Tags:
Return:  True if there is an <style:graphic-properties> tag as child of the current <style:default-style> tag.
Access:  public

Information Tags:
Since:  0.5.2 - 04.03.2007

[ Top ]
hasParagraphProperties  [line 112]

  bool hasParagraphProperties( )

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


API Tags:
Return:  True if there is an <style:paragraph-properties> tag as child of the current <style:default-style> tag.
Access:  public

Information Tags:
Since:  0.5.2 - 04.03.2007

[ Top ]
hasTextProperties  [line 123]

  bool hasTextProperties( )

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


API Tags:
Return:  True if there is an <style:text-properties> tag as child of the current <style:default-style> tag.
Access:  public

Information Tags:
Since:  0.5.2 - 04.03.2007

[ Top ]
setFamily  [line 87]

  void setFamily( string $value  )

Set family.

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'.

API Tags:
Access:  public

Information Tags:
Since:  0.5.0 - 08.02.2007

[ Top ]

Documentation generated on Wed, 18 Jun 2008 06:28:01 +0200 by phpDocumentor 1.3.2