class ZCL_EXCEL_WORKSHEET_COLUMNDIME definition public final create public . *"* public components of class ZCL_EXCEL_WORKSHEET_COLUMNDIME *"* do not include other source files here!!! public section. type-pools ABAP . methods CONSTRUCTOR importing !IP_INDEX type ZEXCEL_CELL_COLUMN_ALPHA . methods GET_COLUMN_INDEX returning value(R_COLUMN_INDEX) type INT4 . methods GET_OUTLINE_LEVEL returning value(R_OUTLINE_LEVEL) type INT4 . methods GET_WIDTH returning value(R_WIDTH) type FLOAT . methods GET_XF_INDEX returning value(R_XF_INDEX) type INT4 . methods SET_COLUMN_INDEX importing !IP_INDEX type ZEXCEL_CELL_COLUMN_ALPHA returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_OUTLINE_LEVEL importing !IP_OUTLINE_LEVEL type INT4 . methods SET_WIDTH importing !IP_WIDTH type FLOAT returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_XF_INDEX importing !IP_XF_INDEX type INT4 returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods GET_AUTO_SIZE returning value(R_AUTO_SIZE) type ABAP_BOOL . methods GET_COLLAPSED returning value(R_COLLAPSED) type ABAP_BOOL . methods GET_VISIBLE returning value(R_VISIBLE) type ABAP_BOOL . methods SET_AUTO_SIZE importing !IP_AUTO_SIZE type ABAP_BOOL returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_COLLAPSED importing !IP_COLLAPSED type ABAP_BOOL returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . methods SET_VISIBLE importing !IP_VISIBLE type ABAP_BOOL returning value(R_WORKSHEET_COLUMNDIME) type ref to ZCL_EXCEL_WORKSHEET_COLUMNDIME . *"* protected components of class ZCL_EXCEL_WORKSHEET_COLUMNDIME *"* do not include other source files here!!! protected section. *"* private components of class ZCL_EXCEL_WORKSHEET_COLUMNDIME *"* do not include other source files here!!! private section. data COLUMN_INDEX type INT4 . data WIDTH type FLOAT . type-pools ABAP . data AUTO_SIZE type ABAP_BOOL . data VISIBLE type ABAP_BOOL . data OUTLINE_LEVEL type INT4 . data COLLAPSED type ABAP_BOOL . data XF_INDEX type INT4 . *"* local class implementation for public class *"* use this source file for the implementation part of *"* local helper classes *"* use this source file for any type declarations (class *"* definitions, interfaces or data types) you need for method *"* implementation or private method's signature *"* use this source file for any macro definitions you need *"* in the implementation part of the class ABAP METHOD constructor. ********************************************************************** * abap2xlsx * * Copyright (c) 2010 Gregor Wolf * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category ABAP xlsx Creator * @package ZA2E * @author Gregor Wolf * @homepage http://www.computerservice-wolf.com/ * @copyright Copyright (c) 2010 Gregor Wolf * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version 1.5, 2010-08-11 ********************************************************************** me->column_index = zcl_excel_common=>convert_column2int( ip_index ). me->width = -1. me->auto_size = abap_false. me->visible = abap_true. me->outline_level = 0. me->collapsed = abap_false. " set default index to cellXf me->xf_index = 0. ENDMETHOD. METHOD get_auto_size. r_auto_size = me->auto_size. ENDMETHOD. METHOD GET_COLLAPSED. r_Collapsed = me->Collapsed. ENDMETHOD. METHOD get_column_index. r_column_index = me->column_index. ENDMETHOD. METHOD get_outline_level. r_outline_level = me->outline_level. ENDMETHOD. METHOD GET_VISIBLE. r_Visible = me->Visible. ENDMETHOD. METHOD GET_WIDTH. r_WIDTH = me->WIDTH. ENDMETHOD. METHOD get_xf_index. r_xf_index = me->xf_index. ENDMETHOD. METHOD set_auto_size. me->auto_size = ip_auto_size. r_worksheet_columndime = me. ENDMETHOD. METHOD SET_COLLAPSED. me->Collapsed = ip_Collapsed. r_worksheet_columndime = me. ENDMETHOD. METHOD set_column_index. me->column_index = zcl_excel_common=>convert_column2int( ip_index ). r_worksheet_columndime = me. ENDMETHOD. METHOD set_outline_level. me->outline_level = ip_outline_level. ENDMETHOD. METHOD SET_VISIBLE. me->Visible = ip_Visible. r_worksheet_columndime = me. ENDMETHOD. METHOD set_width. me->width = ip_width. r_worksheet_columndime = me. ENDMETHOD. METHOD SET_XF_INDEX. me->XF_INDEX = ip_XF_INDEX. r_worksheet_columndime = me. ENDMETHOD.