/* ====================================================================
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
==================================================================== */
package org.zkoss.zss.model.impl.html;

import org.zkoss.poi.hssf.util.HSSFColor;
import org.zkoss.poi.ss.usermodel.CellStyle;
import org.zkoss.poi.xssf.usermodel.XSSFCellStyle;
import org.zkoss.poi.xssf.usermodel.XSSFColor;
import org.zkoss.poi.xssf.usermodel.XSSFWorkbook;
import org.zkoss.zss.range.impl.imexp.BookHelper;

import java.util.Formatter;
import java.util.Hashtable;
import java.util.Map;

/**
 * Implementation of {@link HtmlHelper} for XSSF files.
 *
 * @author Ken Arnold, Industrious Media LLC
 * @author peterkuo@zkoss.org
 * @author henrichen@zkoss.org
 * @deprecated since 3.5.0
 */
public class XSSFHtmlHelper implements HtmlHelper {
//    private final XSSFWorkbook wb;
//
//    public XSSFHtmlHelper(XSSFWorkbook wb) {
//        this.wb = wb;
//    }
//
//    public void colorStyles(CellStyle style, Formatter out) {
//        XSSFCellStyle cs = (XSSFCellStyle) style;
//
//		String color = BookHelper.colorToHTML(wb, cs.getFillForegroundColorColor());
//		if (color != null && !BookHelper.AUTO_COLOR.equals(color))
//			out.format(" background-color: %s;%n", color);
//
//        String fontColor = BookHelper.getFontHTMLColor((XBook)wb, cs.getFont());
//        if (!BookHelper.AUTO_COLOR.equals(fontColor)) {
//        	out.format(" color: %s;%n", fontColor);
//        }
//    }
}