Class Xml2PdfTag_stylesheet

Description

<stylesheet> tag.

<stylesheet> tag permit to add style sheet to the document. The tag styles can be used in text tag.

example of style sheet:

  1.  .b{
  2.  font-styleB;  //style de la police
  3.   }
  4.  .u{
  5.  font-styleU;
  6.  }
  7.  .i{
  8.  font-styleI;
  9.  }
  10.  .br{
  11.  indent2;
  12.  }
  13.  .red{
  14.  color:#ff0000;
  15.   }

  1. <stylesheet file="/home/guil/dev/src/php/xml2pdf/styleSheets/style.txt" />
  2.  
  3. <text fontcolor='#808080' textalign='j'>normal text <b>bold text!</b> <u>underline text!</u> <i>italic text</i> <b><u><i>all in same time!</i></u></b> <br/><red>red text on new line</red></text>

Located in /plugins/tags/xml2pdf.tag.stylesheet.php (line 51)


	
			
Variable Summary
 string $_styleSheet
 array $_styleTags
Method Summary
 void __construct (object Pdf $pdf, array $tagProperties)
 void close ()
 boolean _parseStyleSheet ()
Variables
string $_styleSheet = null (line 58)

style sheet file path.

  • access: private
array $_styleTags (line 64)

styles tags array.

  • access: private
Methods
Constructor __construct (line 76)

Constructor.

  • access: public
void __construct (object Pdf $pdf, array $tagProperties)
  • object Pdf $pdf: object Pdf
  • array $tagProperties: tag properties
close (line 165)

close the tag.

  • access: public
void close ()
_parseStyleSheet (line 92)

Parse the style sheet.

  • access: private
boolean _parseStyleSheet ()

Documentation generated on Wed, 11 Oct 2006 22:27:29 +0200 by phpDocumentor 1.3.0