1
<?php // $Id: odslib.class.php,v 1.9 2006/12/25 18:22:28 skodak Exp $
1
<?php // $Id: odslib.class.php,v 1.10.2.1 2008/04/16 07:05:06 dongsheng Exp $
3
3
///////////////////////////////////////////////////////////////////////////
7
7
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
8
8
// http://moodle.com //
10
// Copyright (C) 2001-3001 Martin Dougiamas http://dougiamas.com //
10
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
11
11
// (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com //
12
12
// (C) 2001-3001 Petr Skoda (skodak) //
193
193
$this->data[$row][$col]->format = $format;
197
* Write one formula somewhere in the worksheet
199
* @param integer $row Zero indexed row
200
* @param integer $col Zero indexed column
201
* @param string $formula The formula to write
202
* @param mixed $format The XF format for the cell
204
function write_formula($row, $col, $formula, $format=null) {
196
208
/* Write one blanck somewhere in the worksheet
197
209
* @param integer $row Zero indexed row
198
210
* @param integer $col Zero indexed column
289
* Set the option to hide gridlines on the printed page.
293
function hide_gridlines() {
298
* Set the option to hide gridlines on the worksheet (as seen on the screen).
302
function hide_screen_gridlines() {
307
* Insert a 24bit bitmap image in a worksheet.
310
* @param integer $row The row we are going to insert the bitmap into
311
* @param integer $col The column we are going to insert the bitmap into
312
* @param string $bitmap The bitmap filename
313
* @param integer $x The horizontal position (offset) of the image inside the cell.
314
* @param integer $y The vertical position (offset) of the image inside the cell.
315
* @param integer $scale_x The horizontal scale
316
* @param integer $scale_y The vertical scale
318
function insert_bitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) {
322
* Merges the area given by its arguments.
323
* merging than the normal setAlign('merge').
326
* @param integer $first_row First row of the area to merge
327
* @param integer $first_col First column of the area to merge
328
* @param integer $last_row Last row of the area to merge
329
* @param integer $last_col Last column of the area to merge
331
function merge_cells($first_row, $first_col, $last_row, $last_col) {