@@ -272,6 +272,12 @@ ZEND_END_ARG_INFO()
272272
273273ZEND_BEGIN_ARG_INFO_EX (xls_set_printed_landscape_arginfo , 0 , 0 , 0 )
274274ZEND_END_ARG_INFO ()
275+
276+ ZEND_BEGIN_ARG_INFO_EX (xls_hide_sheet_arginfo , 0 , 0 , 0 )
277+ ZEND_END_ARG_INFO ()
278+
279+ ZEND_BEGIN_ARG_INFO_EX (xls_first_sheet_arginfo , 0 , 0 , 0 )
280+ ZEND_END_ARG_INFO ()
275281/* }}} */
276282
277283/** {{{ \Vtiful\Kernel\Excel::__construct(array $config)
@@ -1138,6 +1144,34 @@ PHP_METHOD(vtiful_xls, setPrintedLandscape)
11381144}
11391145/* }}} */
11401146
1147+ /** {{{ \Vtiful\Kernel\Excel::setCurrentSheetHide()
1148+ */
1149+ PHP_METHOD (vtiful_xls , setCurrentSheetHide )
1150+ {
1151+ ZVAL_COPY (return_value , getThis ());
1152+
1153+ xls_object * obj = Z_XLS_P (getThis ());
1154+
1155+ WORKBOOK_NOT_INITIALIZED (obj );
1156+
1157+ hide_worksheet (& obj -> write_ptr );
1158+ }
1159+ /* }}} */
1160+
1161+ /** {{{ \Vtiful\Kernel\Excel::setCurrentSheetIsFirst()
1162+ */
1163+ PHP_METHOD (vtiful_xls , setCurrentSheetIsFirst )
1164+ {
1165+ ZVAL_COPY (return_value , getThis ());
1166+
1167+ xls_object * obj = Z_XLS_P (getThis ());
1168+
1169+ WORKBOOK_NOT_INITIALIZED (obj );
1170+
1171+ first_worksheet (& obj -> write_ptr );
1172+ }
1173+ /* }}} */
1174+
11411175#ifdef ENABLE_READER
11421176
11431177/** {{{ \Vtiful\Kernel\Excel::openFile()
@@ -1467,13 +1501,16 @@ zend_function_entry xls_methods[] = {
14671501 PHP_ME (vtiful_xls , zoom , xls_sheet_zoom_arginfo , ZEND_ACC_PUBLIC )
14681502 PHP_ME (vtiful_xls , gridline , xls_sheet_gridline_arginfo , ZEND_ACC_PUBLIC )
14691503
1504+ PHP_ME (vtiful_xls , setPrintedPortrait , xls_set_printed_portrait_arginfo , ZEND_ACC_PUBLIC )
1505+ PHP_ME (vtiful_xls , setPrintedLandscape , xls_set_printed_landscape_arginfo , ZEND_ACC_PUBLIC )
1506+
1507+ PHP_ME (vtiful_xls , setCurrentSheetHide , xls_hide_sheet_arginfo , ZEND_ACC_PUBLIC )
1508+ PHP_ME (vtiful_xls , setCurrentSheetIsFirst , xls_first_sheet_arginfo , ZEND_ACC_PUBLIC )
1509+
14701510 PHP_ME (vtiful_xls , columnIndexFromString , xls_index_to_string , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
14711511 PHP_ME (vtiful_xls , stringFromColumnIndex , xls_string_to_index , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
14721512 PHP_ME (vtiful_xls , timestampFromDateDouble , xls_string_to_index , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
14731513
1474- PHP_ME (vtiful_xls , setPrintedPortrait , xls_set_printed_portrait_arginfo , ZEND_ACC_PUBLIC )
1475- PHP_ME (vtiful_xls , setPrintedLandscape , xls_set_printed_landscape_arginfo , ZEND_ACC_PUBLIC )
1476-
14771514#ifdef ENABLE_READER
14781515 PHP_ME (vtiful_xls , openFile , xls_open_file_arginfo , ZEND_ACC_PUBLIC )
14791516 PHP_ME (vtiful_xls , openSheet , xls_open_sheet_arginfo , ZEND_ACC_PUBLIC )
0 commit comments