@@ -266,6 +266,12 @@ ZEND_END_ARG_INFO()
266266ZEND_BEGIN_ARG_INFO_EX (xls_protection_arginfo , 0 , 0 , 0 )
267267 ZEND_ARG_INFO (0 , password )
268268ZEND_END_ARG_INFO ()
269+
270+ ZEND_BEGIN_ARG_INFO_EX (xls_set_printed_portrait_arginfo , 0 , 0 , 0 )
271+ ZEND_END_ARG_INFO ()
272+
273+ ZEND_BEGIN_ARG_INFO_EX (xls_set_printed_landscape_arginfo , 0 , 0 , 0 )
274+ ZEND_END_ARG_INFO ()
269275/* }}} */
270276
271277/** {{{ \Vtiful\Kernel\Excel::__construct(array $config)
@@ -1102,6 +1108,36 @@ PHP_METHOD(vtiful_xls, protection)
11021108}
11031109/* }}} */
11041110
1111+
1112+ /** {{{ \Vtiful\Kernel\Excel::setPrintedPortrait()
1113+ */
1114+ PHP_METHOD (vtiful_xls , setPrintedPortrait )
1115+ {
1116+ ZVAL_COPY (return_value , getThis ());
1117+
1118+ xls_object * obj = Z_XLS_P (getThis ());
1119+
1120+ WORKBOOK_NOT_INITIALIZED (obj );
1121+
1122+ printed_direction (& obj -> write_ptr , XLSWRITER_PRINTED_PORTRAIT );
1123+ }
1124+ /* }}} */
1125+
1126+
1127+ /** {{{ \Vtiful\Kernel\Excel::setPrintedLandscape()
1128+ */
1129+ PHP_METHOD (vtiful_xls , setPrintedLandscape )
1130+ {
1131+ ZVAL_COPY (return_value , getThis ());
1132+
1133+ xls_object * obj = Z_XLS_P (getThis ());
1134+
1135+ WORKBOOK_NOT_INITIALIZED (obj );
1136+
1137+ printed_direction (& obj -> write_ptr , XLSWRITER_PRINTED_LANDSCAPE );
1138+ }
1139+ /* }}} */
1140+
11051141#ifdef ENABLE_READER
11061142
11071143/** {{{ \Vtiful\Kernel\Excel::openFile()
@@ -1435,6 +1471,9 @@ zend_function_entry xls_methods[] = {
14351471 PHP_ME (vtiful_xls , stringFromColumnIndex , xls_string_to_index , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
14361472 PHP_ME (vtiful_xls , timestampFromDateDouble , xls_string_to_index , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
14371473
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+
14381477#ifdef ENABLE_READER
14391478 PHP_ME (vtiful_xls , openFile , xls_open_file_arginfo , ZEND_ACC_PUBLIC )
14401479 PHP_ME (vtiful_xls , openSheet , xls_open_sheet_arginfo , ZEND_ACC_PUBLIC )
0 commit comments