Skip to content
Browse files

MDL-14249, to keep ods lib exactly the same with excellib, some dummy…

… function added
  • Loading branch information...
1 parent 5508ecf commit d1a734f2e3189fbb1c4028226336485fa245fa3e dongsheng committed Apr 16, 2008
Showing with 59 additions and 1 deletion.
  1. +59 −1 lib/odslib.class.php
View
60 lib/odslib.class.php
@@ -193,6 +193,18 @@ function write_date($row, $col, $date, $format=0) {
$this->data[$row][$col]->format = $format;
}
+ /**
+ * Write one formula somewhere in the worksheet
+ *
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param string $formula The formula to write
+ * @param mixed $format The XF format for the cell
+ */
+ function write_formula($row, $col, $formula, $format=null) {
+ // not implement
+ }
+
/* Write one blanck somewhere in the worksheet
* @param integer $row Zero indexed row
* @param integer $col Zero indexed column
@@ -272,6 +284,52 @@ function set_column($firstcol, $lastcol, $width, $format = 0, $hidden = false, $
}
}
+ /**
+ * Set the option to hide gridlines on the printed page.
+ *
+ * @access public
+ */
+ function hide_gridlines() {
+ // not implement
+ }
+
+ /**
+ * Set the option to hide gridlines on the worksheet (as seen on the screen).
+ *
+ * @access public
+ */
+ function hide_screen_gridlines() {
+ // not implement
+ }
+
+ /**
+ * Insert a 24bit bitmap image in a worksheet.
+ *
+ * @access public
+ * @param integer $row The row we are going to insert the bitmap into
+ * @param integer $col The column we are going to insert the bitmap into
+ * @param string $bitmap The bitmap filename
+ * @param integer $x The horizontal position (offset) of the image inside the cell.
+ * @param integer $y The vertical position (offset) of the image inside the cell.
+ * @param integer $scale_x The horizontal scale
+ * @param integer $scale_y The vertical scale
+ */
+ function insert_bitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) {
+ // not implement
+ }
+ /**
+ * Merges the area given by its arguments.
+ * merging than the normal setAlign('merge').
+ *
+ * @access public
+ * @param integer $first_row First row of the area to merge
+ * @param integer $first_col First column of the area to merge
+ * @param integer $last_row Last row of the area to merge
+ * @param integer $last_col Last column of the area to merge
+ */
+ function merge_cells($first_row, $first_col, $last_row, $last_col) {
+ // not implement
+ }
}
@@ -794,4 +852,4 @@ function get_ods_manifest() {
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="meta.xml"/>
</manifest:manifest>';
}
-?>
+?>

0 comments on commit d1a734f

Please sign in to comment.
Something went wrong with that request. Please try again.