Source for file Validator.php
Documentation is available at Validator.php
* Module written by Herman Kuiper <herman@ozuzo.net>
* Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets
* Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//require_once('PEAR.php');
// Possible operator types
define("OP_NOTBETWEEN", 0x01);
* Baseclass for generating Excel DV records (validations)
* @package Spreadsheet_Excel_Writer
* The parser from the workbook. Used to parse validation formulas also
* @var Spreadsheet_Excel_Writer_Parser
$this->_type =
0x01; // FIXME: add method for setting datatype
function setPrompt($promptTitle =
"\x00", $promptDescription =
"\x00", $showPrompt =
true)
function setError($errorTitle =
"\x00", $errorDescription =
"\x00", $showError =
true)
// Parse the formula using the parser in Parser.php
// Parse the formula using the parser in Parser.php
$options |=
$this->_style <<
3;
/*class Spreadsheet_Excel_Writer_Validation_List extends Spreadsheet_Excel_Writer_Validation
function Spreadsheet_Excel_Writer_Validation_list()
parent::Spreadsheet_Excel_Writer_Validation();
function setList($source, $incell = true)
$this->_incell = $incell;
$this->_fixedList = true;
$source = implode("\x00", $source);
$this->_formula1 = pack("CCC", 0x17, strlen($source), 0x0c) . $source;
function setRow($row, $col1, $col2, $incell = true)
$this->_incell = $incell;
//$this->_formula1 = ...;
function setCol($col, $row1, $row2, $incell = true)
$this->_incell = $incell;
//$this->_formula1 = ...;
Documentation generated on Wed, 09 Feb 2011 09:05:05 +0700 by phpDocumentor 1.4.2