NAME

Spreadsheet::Engine::Function::base - base class for spreadsheet functions

SYNOPSIS

use base 'Spreadsheet::Engine::Function::text';

DESCRIPTION

This provides a base class for spreadsheet functions.

Each function will generally have an intermediate base class that extends this with methods specific to the type of function that it is providing.

CONSTRUCTOR

new

Instantiates with the given variables.

INSTANCE VARIABLES

fname / operand / foperand / errortext / typelookup / sheetdata

As per SocialCalc (to document fully later)

METHODS TO SUBCLASS

argument_count

Each function should declare how many arguments it expects. This should be 0 for no arguments, a positive integer for exactly that many arguments, or a negative integer for at least that many arguments (based on the absolute value). If this method is not provided no checking of arguments is performed.

HISTORY

This is a Modified Version of code extracted from SocialCalc::Functions in SocialCalc 1.1.0

COPYRIGHT

Portions (c) Copyright 2005, 2006, 2007 Software Garden, Inc. All Rights Reserved.

Portions (c) Copyright 2007 Socialtext, Inc. All Rights Reserved.

Portions (c) Copyright 2007 Tony Bowden

LICENSE

The contents of this file are subject to the Artistic License 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.perlfoundation.org/artistic_license_2_0