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

Class: Style

Source Location: /styles/Style.php

Class Overview

DOMElement
   |
   --ODPElement
      |
      --DefaultStyle
         |
         --Style

Styles class.


Author(s):

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

Version:

  • $Revision: 162 $

Copyright:

  • Copyright in 2006, 2007 by The OpenDocumentPHP Team

Methods


Inherited Constants

Inherited Methods

Class: DefaultStyle

DefaultStyle::getFamily()
Retrieve family.
DefaultStyle::getGraphicProperties()
Retrieve a <style:graphic-properties> tag.
DefaultStyle::getParagraphProperties()
Retrieve a <style:paragraph-properties> tag.
DefaultStyle::getTextProperties()
Retrieve a <style:text-properties> tag.
DefaultStyle::hasGraphicProperties()
Checks if the current default style has an graphic-properties element as child.
DefaultStyle::hasParagraphProperties()
Checks if the current default style has an paragraph-properties element as child.
DefaultStyle::hasTextProperties()
Checks if the current default style has an text-properties element as child.
DefaultStyle::setFamily()
Set family.
DefaultStyle::__setRoot()
Set element to 'style:default-style'.

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: DOMElement (Internal Class)

constructor __construct ( )
appendChild ( )
C14N ( )
C14NFile ( )
cloneNode ( )
compareDocumentPosition ( )
getAttribute ( )
getAttributeNode ( )
getAttributeNodeNS ( )
getAttributeNS ( )
getElementsByTagName ( )
getElementsByTagNameNS ( )
getFeature ( )
getNodePath ( )
getUserData ( )
hasAttribute ( )
hasAttributeNS ( )
hasAttributes ( )
hasChildNodes ( )
insertBefore ( )
isDefaultNamespace ( )
isEqualNode ( )
isSameNode ( )
isSupported ( )
lookupNamespaceUri ( )
lookupPrefix ( )
normalize ( )
removeAttribute ( )
removeAttributeNode ( )
removeAttributeNS ( )
removeChild ( )
replaceChild ( )
setAttribute ( )
setAttributeNode ( )
setAttributeNodeNS ( )
setAttributeNS ( )
setIdAttribute ( )
setIdAttributeNode ( )
setIdAttributeNS ( )
setUserData ( )

Class Details

[line 37]
Styles class.



Tags:

author:  Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
version:  $Revision: 162 $
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 getClass [line 226]

void getClass( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getDataStyleName [line 205]

string getDataStyleName( )

Retrieve the value of the 'style:data-style-name' attribute.



Tags:

return:  Value of the 'style:data-style-name' attribute.
since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getDefaultOutlineLevel [line 252]

string getDefaultOutlineLevel( )

Retrieve the value of the 'style:default-outline-level' attribute.



Tags:

return:  The value of the 'style:default-outline-level' attribute.
todo:  Make the return type to be an integer not a string.
since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getDisplayName [line 87]

void getDisplayName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getMasterPageName [line 166]

void getMasterPageName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getNextStyleName [line 129]

void getNextStyleName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getParentStyleName [line 108]

void getParentStyleName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getStyleName [line 66]

void getStyleName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method setClass [line 217]

void setClass( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method setDataStyleName [line 193]

void setDataStyleName( string $value)

Set the value of the 'style:data-style-name' attribute.



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

string   $value   The new data style name.

[ Top ]

method setDefaultOutlineLevel [line 239]

void setDefaultOutlineLevel( int $value)

Set the 'style:default-outline-level' attribute.



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

int   $value   The new default outline level.

[ Top ]

method setDisplayName [line 78]

void setDisplayName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method setMasterPageName [line 157]

void setMasterPageName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method setNextStyleName [line 120]

void setNextStyleName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method setParentStyleName [line 99]

void setParentStyleName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method setStyleName [line 57]

void setStyleName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method __setRoot [line 45]

void __setRoot( )

Set element to 'style:style'.



Tags:

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


Overrides DefaultStyle::__setRoot() (Set element to 'style:default-style'.)

[ Top ]


Documentation generated on Tue, 12 Jun 2007 10:00:42 +0200 by phpDocumentor 1.3.2