phpDocumentor SpoolTemplate
[ Back ] [ class tree: SpoolTemplate ] [ index: SpoolTemplate ] [ all elements ]

Class: CPagePrinter

Source Location: /sptpl_clsPagePrinter.php

Class CPagePrinter

Class Overview

Page manager extension with support to printer (Windows box only) It use the extension php_printer.dll to write out directly to the printer

Require: aprint.php (class module used to print download it at http://www.phpclasses.org/browse.html/package/1159.html ) sptpl_clsPageManager.php

Located in /sptpl_clsPagePrinter.php [line 42]

CPageMgr
   |
   --CPagePrinter
Author(s): Information Tags:
Version:  $Header: d:\cvs/classistd/sptpl/sptpl_clsPagePrinter.php,v 2.9 2005/03/17 12:46:48 Darvin Exp $
Copyright:  sptpl_clsPagePrinter.php is part of Sptpl project http://www.andrioli.com/en/sptpl.html and it is LGPL

Properties

Methods

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

Inherited From CPageMgr

CPageMgr::$clsDataManager
CPageMgr::$ColumnSet
CPageMgr::$CurrentColumnSetId
CPageMgr::$CurrentLine
CPageMgr::$CurrentPage
CPageMgr::$DefinedColumnSet
CPageMgr::$Fonts
CPageMgr::$FooterColSet
CPageMgr::$HeaderColSet
CPageMgr::$LineHeight
CPageMgr::$Margins
CPageMgr::$OutputFp
CPageMgr::$PageData
CPageMgr::$PageFormat
CPageMgr::$PageSize
CPageMgr::$Report
CPageMgr::$tblFormatIso
CPageMgr::$TopPageLine

Inherited From CPageMgr

CPageMgr::CPageMgr()
Class constructor. It initalize all configuration varaibale
CPageMgr::BeginReport()
Start to printout the report. OPen the output file, initialize some variable.
CPageMgr::CloseReport()
Perform the requested job for ending the report.
CPageMgr::EndParseXml()
Function executed at the end of the xml parsing. I run the final configuration
CPageMgr::MvAbsolutePos()
Move the currentline to nRow. It return TRUE on success,
CPageMgr::MvBottom()
Move to the last row before the bottom margin It return TRUE on success,
CPageMgr::MvRelativePos()
Move the currentline up or down of nRow rows. It return TRUE on success,
CPageMgr::MvTop()
Move to the first row after the top margin It return TRUE on success,
CPageMgr::NewColumnSet()
Set new columnset. Each block may hve its own columnset. Before write the text, the
CPageMgr::NewFont()
Create an istance of the CFont class based on configuration file.
CPageMgr::NewPage()
Begin a new page. Close the previous, if any, and printout the 'openpage' text if specified
CPageMgr::ParseXml()
Parse the configuration node for a new information about the layout
CPageMgr::PrintColumnsHeader()
loop over all columns inside the current columnset and print the column's header, if set
CPageMgr::WriteOut()
Pass the text to the appropriate column. It returns a CUnit object containing
CPageMgr::WriteOutFooterRow()
Print out the text row (used only for the closepage row)
CPageMgr::WriteOutHeaderRow()
Print out the text row (used only for the closepage row)
CPageMgr::_EndReport()
Print out the 'closereport' text
CPageMgr::_StartReport()
Print out the 'beginreport' text
CPageMgr::__php5()
Return True if the current PHP version is 5

[ Top ]
Property Summary
object APrint   $clsAprint   Class Aprint instance
array   $FontsId   The array contains the handlers returnt by Aprint's CreateFont

[ Top ]
Method Summary
CPagePrinter   CPagePrinter()   Class constructor. Call the parent class (CPageMgr) constructor
void   BeginReport()   Start to printout the report. OPen the output file, initialize some variable.
void   CheckMargins()   Check whether the margins are placed inside or outside the page No check is made by this module. I haven't information about paper size.
void   CloseReport()   Perform the requested job to end the report.
void   NewFont()   Create an istance of the CFont class based on configuration file.
void   NewPage()   Begin a new page. Close the previous, if any, and printout the 'openpage' text if specified

[ Top ]
Properties
object APrint   $clsAprint [line 48]

Class Aprint instance


[ Top ]
array   $FontsId [line 55]

The array contains the handlers returnt by Aprint's CreateFont

API Tags:
See:  _DownloadFont()


[ Top ]
Methods
Constructor CPagePrinter  [line 62]

  CPagePrinter CPagePrinter( object CDataStorage &$DataMgr  )

Class constructor. Call the parent class (CPageMgr) constructor

and istance the Aprint module

Parameters:
object CDataStorage   &$DataMgr:  Reference to the DataStorage istance

API Tags:
Access:  public


[ Top ]
BeginReport  [line 152]

  void BeginReport( [string $OutFile = ""]  )

Start to printout the report. OPen the output file, initialize some variable.

Notice: this module use the outfile as printer name

Parameters:
string   $OutFile:  output printer name

API Tags:
Access:  public


Redefinition of:
CPageMgr::BeginReport()
Start to printout the report. OPen the output file, initialize some variable.

[ Top ]
CheckMargins  [line 141]

  void CheckMargins( )

Check whether the margins are placed inside or outside the page No check is made by this module. I haven't information about paper size.

The Aprint module will made the checks.



[ Top ]
CloseReport  [line 179]

  void CloseReport( )

Perform the requested job to end the report.

Print the end report text, close the current page and the output file


API Tags:
Access:  public


Redefinition of:
CPageMgr::CloseReport()
Perform the requested job for ending the report.

[ Top ]
NewFont  [line 93]

  void NewFont( object CXml2Array $node  )

Create an istance of the CFont class based on configuration file.

Parameters:
object CXml2Array   $node:  Node with font configuration

API Tags:
Access:  public


Redefinition of:
CPageMgr::NewFont()
Create an istance of the CFont class based on configuration file.

[ Top ]
NewPage  [line 194]

  void NewPage( [mixed $FromComposeRow = FALSE]  )

Begin a new page. Close the previous, if any, and printout the 'openpage' text if specified


API Tags:
Access:  public


Redefinition of:
CPageMgr::NewPage()
Begin a new page. Close the previous, if any, and printout the 'openpage' text if specified

[ Top ]

Documentation generated on Mon, 28 Mar 2005 15:13:20 +0200 by phpDocumentor 1.3.0RC3