Docs For Class CreateStyle

## Class CreateStyle

Description

Create styles

- version: 2.1
- copyright: Copyright (c) 2009-2013 Narcea Producciones Multimedia S.L. (http://www.2mdc.com)
- link: http://www.phpdocx.com
- since: Class available since Release 1.0
- license: http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php

Located in /CreateStyle.inc (line 31)

    CreateElement
       |
       --CreateStyle

Direct descendents

Class | Description
--- | ---
CreateStyleTable | Create style table

Variable Summary
string $_xml
Method Summary
static CreateStyle getInstance ()
CreateStyle __construct ()
void __destruct ()
void addStyle (array $args[0])
void addStyleTabla (array $param)
void createStyle ([string $lang = 'en-US'])
void generateAUTOREDEFINE ()
void generateB ()
void generateBASEDON (string $val)
void generateBCS ()
void generateBOTTOM (string $w, string $type)
void generateCOLOR (string $val, [string $themeColor = ''], [string $themeShade = ''])
void generateCONTEXTUALSPACING ()
void generateI ([string $val = ''])
void generateICS ([string $val = ''])
void generateILVL (string $val)
void generateIND (string $left)
void generateKEEPLINES ()
void generateKEEPNEXT ()
void generateKERN (string $val)
void generateLEFT (string $w, string $type)
void generateLINK (string $val)
void generateNAME (string $val)
void generateNEXT (string $val)
void generateNUMPR ()
void generateOUTLINELVL (string $val)
void generatePBDR ()
void generatePBDR_BOTTOM (string $val, string $sz, string $space, string $color, string $themeColor)
void generatePPR ()
void generateQFORMAT ()
void generateRFONTS (string $asciiTheme, string $eastAsiaTheme, string $hAnsiTheme, string $cstheme)
void generateRFONTS2 (string $ascii, string $hAnsi, string $cs)
void generateRIGHT (string $w, string $type)
void generateRPR ()
void generateRPR_SPACING (string $val)
void generateRSID (string $val)
void generateSEMIHIDDEN ()
void generateSHD (string $val, [string $color = ''], [string $fill = ''], [string $themeFill = ''], [string $themeFillTint = ''])
void generateSPACING (string $before, string $after, string $line, string $lineRule)
void generateSTYLE (string $type, string $styleId, [string $default = ''], [string $customStyle = ''])
void generateSZ (string $val)
void generateSZCS (string $val)
void generateTABCENTER (string $pos)
void generateTABRIGHT (string $pos)
void generateTABS ()
void generateTBLBORDERS ()
void generateTBLBORDERS_BOTTOM (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])
void generateTBLBORDERS_INSIDEH (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])
void generateTBLBORDERS_INSIDEV (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])
void generateTBLBORDERS_LEFT (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])
void generateTBLBORDERS_RIGHT (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])
void generateTBLBORDERS_TOP (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])
void generateTBLCELLMAR ()
void generateTBLIND (string $w, string $type)
void generateTBLPR ()
void generateTBLSTYLECOLBANDSIZE (string $val)
void generateTBLSTYLEROWBANDSIZE (string $val)
void generateTCPR ()
void generateTOP (string $w, string $type)
void generateU ([string $val = ''])
void generateUIPRIORITY (string $val)
void generateUNHIDEWHENUSED ()
void generateVERTALIGN ([string $val = 'superscript'])
string __toString ()
Variables
string $_xml (line 38)

- access: protected

Redefinition of:

CreateElement::$_xml

Redefined in descendants as:

- CreateStyleTable::$_xml

Methods
static method getInstance (line 82)

- access: public

static CreateStyle getInstance ()

Redefined in descendants as:

- CreateStyleTable::getInstance()

Constructor __construct (line 51)

Construct

- access: public

CreateStyle __construct ()

Redefinition of:

CreateElement::__construct()
  Construct

Redefined in descendants as:

- CreateStyleTable::__construct() : Construct

Destructor __destruct (line 61)

Destruct

- access: public

void __destruct ()

Redefinition of:

CreateElement::__destruct()
  Destruct

Redefined in descendants as:

- CreateStyleTable::__destruct() : Destruct

addStyle (line 96)

Add style

- access: public

void addStyle (array $args[0])

- array $args[0]

addStyleTabla (line 1650)

Add table style

- access: public

void addStyleTabla (array $param)

- array $param

createStyle (line 577)

Create style

- access: public

void createStyle ([string $lang = 'en-US'])

- string $lang

generateAUTOREDEFINE (line 1779)

Generate w:autoredefine

- access: protected

void generateAUTOREDEFINE ()
generateB (line 2619)

Generate w:b

- access: protected

void generateB ()

Redefinition of:

CreateElement::generateB()
  Generate w:b

generateBASEDON (line 1707)

Generate w:basedon

- access: protected

void generateBASEDON (string $val)

- string $val

generateBCS (line 2632)

Generate w:bcs

- access: protected

void generateBCS ()

Redefinition of:

CreateElement::generateBCS()
  Generate w:bcs

generateBOTTOM (line 2531)

Generate w:bottom

- access: protected

void generateBOTTOM (string $w, string $type)

- string $w
- string $type

generateCOLOR (line 2704)

Generate w:color

- access: protected

void generateCOLOR (string $val, [string $themeColor = ''], [string $themeShade = ''])

- string $val
- string $themeColor
- string $themeShade

generateCONTEXTUALSPACING (line 2045)

Generate w:contextualspacing

- access: protected

void generateCONTEXTUALSPACING ()
generateI (line 2646)

Generate w:i

- access: protected

void generateI ([string $val = ''])

- string $val

generateICS (line 2665)

Generate w:ics

- access: protected

void generateICS ([string $val = ''])

- string $val

generateILVL (line 1918)

Generate w:ilvl

- access: protected

void generateILVL (string $val)

- string $val

generateIND (line 2074)

Generate w:ind

- access: protected

void generateIND (string $left)

- string $left

generateKEEPLINES (line 1932)

Generate w:keeplines

- access: protected

void generateKEEPLINES ()
generateKEEPNEXT (line 1846)

Generate w:keepnext

- access: protected

void generateKEEPNEXT ()
generateKERN (line 2031)

Generate w:kern

- access: protected

void generateKERN (string $val)

- string $val

generateLEFT (line 2514)

Generate w:left

- access: protected

void generateLEFT (string $w, string $type)

- string $w
- string $type

generateLINK (line 1737)

Generate w:link

- access: protected

void generateLINK (string $val)

- string $val

generateNAME (line 1693)

Generate w:name

- access: protected

void generateNAME (string $val)

- string $val

generateNEXT (line 1722)

Generate w:next

- access: protected

void generateNEXT (string $val)

- string $val

generateNUMPR (line 1904)

Generate w:numpr

- access: protected

void generateNUMPR ()
generateOUTLINELVL (line 2059)

Generate w:outlinelvl

- access: protected

void generateOUTLINELVL (string $val)

- string $val

generatePBDR (line 1945)

Generate w:pbdr

- access: protected

void generatePBDR ()
generatePBDR_BOTTOM (line 1962)

Generate w:pbdr

- access: protected

void generatePBDR_BOTTOM (string $val, string $sz, string $space, string $color, string $themeColor)

- string $val
- string $sz
- string $space
- string $color
- string $themeColor

generatePPR (line 1833)

Generate w:ppr

- access: protected

void generatePPR ()

Redefinition of:

CreateElement::generatePPR()
  Generate w:ppr

generateQFORMAT (line 1792)

Generate w:qformat

- access: protected

void generateQFORMAT ()
generateRFONTS (line 2578)

Generate w:rfonts

- access: protected

void generateRFONTS (string $asciiTheme, string $eastAsiaTheme, string $hAnsiTheme, string $cstheme)

- string $asciiTheme
- string $eastAsiaTheme
- string $hAnsiTheme
- string $cstheme

Redefinition of:

CreateElement::generateRFONTS()
  Generate w:rfonts

generateRFONTS2 (line 2603)

Generate w:rfonts

- access: protected

void generateRFONTS2 (string $ascii, string $hAnsi, string $cs)

- string $ascii
- string $hAnsi
- string $cs

generateRIGHT (line 2548)

Generate w:right

- access: protected

void generateRIGHT (string $w, string $type)

- string $w
- string $type

generateRPR (line 2561)

Generate w:rpr

- access: protected

void generateRPR ()

Redefinition of:

CreateElement::generateRPR()
  Generate w:rpr

generateRPR_SPACING (line 2016)

Generate w:spacing

- access: protected

void generateRPR_SPACING (string $val)

- string $val

generateRSID (line 1806)

Generate w:rsid

- access: protected

void generateRSID (string $val)

- string $val

generateSEMIHIDDEN (line 1820)

Generate w:semihidden

- access: protected

void generateSEMIHIDDEN ()
generateSHD (line 2106)

Generate w:shd

- access: protected

void generateSHD (string $val, [string $color = ''], [string $fill = ''], [string $themeFill = ''], [string $themeFillTint = ''])

- string $val
- string $color
- string $fill
- string $themeFill
- string $themeFillTint

Redefined in descendants as:

- CreateStyleTable::generateSHD() : Generate w:shd

generateSPACING (line 1984)

Generate w:spacing

- access: protected

void generateSPACING (string $before, string $after, string $line, string $lineRule)

- string $before
- string $after
- string $line
- string $lineRule

generateSTYLE (line 1669)

Generate w:style

- access: protected

void generateSTYLE (string $type, string $styleId, [string $default = ''], [string $customStyle = ''])

- string $type
- string $styleId
- string $default
- string $customStyle

generateSZ (line 2729)

Generate w:sz

- access: protected

void generateSZ (string $val)

- string $val

generateSZCS (line 2744)

Generate w:szcs

- access: protected

void generateSZCS (string $val)

- string $val

generateTABCENTER (line 1873)

Generate w:tabcenter

- access: protected

void generateTABCENTER (string $pos)

- string $pos

generateTABRIGHT (line 1889)

Generate w:tabright

- access: protected

void generateTABRIGHT (string $pos)

- string $pos

generateTABS (line 1859)

Generate w:tabs

- access: protected

void generateTABS ()
generateTBLBORDERS (line 2194)

Generate w:tblborders

- access: protected

void generateTBLBORDERS ()
generateTBLBORDERS_BOTTOM (line 2305)

Generate w:bottom

- access: protected

void generateTBLBORDERS_BOTTOM (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])

- string $val
- string $sz
- string $space
- string $color
- string $themeColor
- string $themeTint

generateTBLBORDERS_INSIDEH (line 2397)

Generate w:insideh

- access: protected

void generateTBLBORDERS_INSIDEH (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])

- string $val
- string $sz
- string $space
- string $color
- string $themeColor
- string $themeTint

generateTBLBORDERS_INSIDEV (line 2442)

Generate w:insidev

- access: protected

void generateTBLBORDERS_INSIDEV (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])

- string $val
- string $sz
- string $space
- string $color
- string $themeColor
- string $themeTint

generateTBLBORDERS_LEFT (line 2259)

Generate w:left

- access: protected

void generateTBLBORDERS_LEFT (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])

- string $val
- string $sz
- string $space
- string $color
- string $themeColor
- string $themeTint

generateTBLBORDERS_RIGHT (line 2353)

Generate w:right

- access: protected

void generateTBLBORDERS_RIGHT (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])

- string $val
- string $sz
- string $space
- string $color
- string $themeColor
- string $themeTint

generateTBLBORDERS_TOP (line 2213)

Generate w:top

- access: protected

void generateTBLBORDERS_TOP (string $val, [string $sz = ''], [string $space = ''], [string $color = ''], [string $themeColor = ''], [string $themeTint = ''])

- string $val
- string $sz
- string $space
- string $color
- string $themeColor
- string $themeTint

generateTBLCELLMAR (line 2481)

Generate w:tblcellmar

- access: protected

void generateTBLCELLMAR ()
generateTBLIND (line 2153)

Generate w:tblind

- access: protected

void generateTBLIND (string $w, string $type)

- string $w
- string $type

generateTBLPR (line 2139)

Generate w:tblpr

- access: protected

void generateTBLPR ()

Redefined in descendants as:

- CreateStyleTable::generateTBLPR() : Generate w:tblPr

generateTBLSTYLECOLBANDSIZE (line 2182)

Generate w:tblstylecolbandsize

- access: protected

void generateTBLSTYLECOLBANDSIZE (string $val)

- string $val

generateTBLSTYLEROWBANDSIZE (line 2168)

Generate w:tblstylerowbandsize

- access: protected

void generateTBLSTYLEROWBANDSIZE (string $val)

- string $val

generateTCPR (line 2088)

Generate w:tcpr

- access: protected

void generateTCPR ()

Redefined in descendants as:

- CreateStyleTable::generateTCPR() : Generate w:tcPr

generateTOP (line 2497)

Generate w:top

- access: protected

void generateTOP (string $w, string $type)

- string $w
- string $type

generateU (line 2684)

Generate w:u

- access: protected

void generateU ([string $val = ''])

- string $val

generateUIPRIORITY (line 1752)

Generate w:uipriority

- access: protected

void generateUIPRIORITY (string $val)

- string $val

generateUNHIDEWHENUSED (line 1766)

Generate w:unhidewhenused

- access: protected

void generateUNHIDEWHENUSED ()
generateVERTALIGN (line 2759)

Generate w:vertAlign

- access: protected

void generateVERTALIGN ([string $val = 'superscript'])

- string $val

__toString (line 71)

- access: public

string __toString ()

Redefinition of:

CreateElement::__toString()

Redefined in descendants as:

- CreateStyleTable::__toString()

#### Inherited Methods

Inherited From CreateElement

> CreateElement::__construct()
> CreateElement::cleanTemplate()
> CreateElement::cleanTemplateFirstRPR()
> CreateElement::generateALIGN()
> CreateElement::generateANCHOR()
> CreateElement::generateAVLST()
> CreateElement::generateB()
> CreateElement::generateBCS()
> CreateElement::generateBLIP()
> CreateElement::generateBLIPFILL()
> CreateElement::generateBR()
> CreateElement::generateCNVGRAPHICFRAMEPR()
> CreateElement::generateCNVPICPR()
> CreateElement::generateCNVPR()
> CreateElement::generateDOCPR()
> CreateElement::generateDRAWING()
> CreateElement::generateEFFECTEXTENT()
> CreateElement::generateEXT()
> CreateElement::generateEXTENT()
> CreateElement::generateFILLRECT()
> CreateElement::generateGRAPHIC()
> CreateElement::generateGRAPHICDATA()
> CreateElement::generateGRAPHICPRAMELOCKS()
> CreateElement::generateINLINE()
> CreateElement::generateJC()
> CreateElement::generateLINETO()
> CreateElement::generateLN()
> CreateElement::generateNOPROOF()
> CreateElement::generateNVPICPR()
> CreateElement::generateOFF()
> CreateElement::generateP()
> CreateElement::generatePIC()
> CreateElement::generatePICT()
> CreateElement::generatePOSITIONH()
> CreateElement::generatePOSITIONV()
> CreateElement::generatePOSOFFSET()
> CreateElement::generatePPR()
> CreateElement::generatePRSTDASH()
> CreateElement::generatePRSTGEOM()
> CreateElement::generatePSTYLE()
> CreateElement::generateQUITAR()
> CreateElement::generateR()
> CreateElement::generateRFONTS()
> CreateElement::generateRPR()
> CreateElement::generateRSTYLE()
> CreateElement::generateSCHEMECLR()
> CreateElement::generateSIMPLEPOS()
> CreateElement::generateSOLIDFILL()
> CreateElement::generateSPPR()
> CreateElement::generateSTART()
> CreateElement::generateSTRETCH()
> CreateElement::generateT()
> CreateElement::generateWRAPNONE()
> CreateElement::generateWRAPPOLYGON()
> CreateElement::generateWRAPSQUARE()
> CreateElement::generateWRAPTHROUGH()
> CreateElement::generateWRAPTOPANDBOTTOM()
> CreateElement::generateXFRM()
> CreateElement::__destruct()
> CreateElement::__toString()

Class Constants

#### Inherited Constants

Inherited from CreateElement

> CreateElement::MATHNAMESPACEWORD
> CreateElement::NAMESPACEWORD

Documentation generated on Tue, 21 May 2013 17:19:51 +0200 by phpDocumentor 1.4.4