1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package org.openoffice.xmerge.converter.xml.sxc.pexcel; 25 26 27 /** 28 * Interface defining constants for Pocket Excel attributes. 29 * 30 * @author Martin Maher 31 */ 32 public interface PocketExcelConstants { 33 /** File extension for Pocket Word files. */ 34 public static final String FILE_EXTENSION = ".pxl"; 35 36 /** Constants for pexcel BIFF records */ 37 public static final int BLANK_CELL = 0x01; 38 public static final int NUMBER_CELL = 0x03; 39 public static final int LABEL_CELL = 0x04; 40 public static final int BOOLERR_CELL = 0x05; 41 public static final int FORMULA_CELL = 0x06; 42 public static final int FORMULA_STRING = 0x07; 43 public static final int ROW_DESCRIPTION = 0x08; 44 public static final int BOF_RECORD = 0x09; 45 public static final int EOF_MARKER = 0x0A; 46 public static final int DEFINED_NAME = 0x18; 47 public static final int CURRENT_SELECTION = 0x1D; 48 public static final int NUMBER_FORMAT = 0x1E; 49 public static final int DEFAULT_ROW_HEIGHT = 0x25; 50 public static final int FONT_DESCRIPTION = 0x31; 51 public static final int WINDOW_INFO = 0x3D; 52 public static final int SHEET_WINDOW_INFO = 0x3E; 53 public static final int PANE_INFO = 0x41; 54 public static final int CODEPAGE = 0x42; 55 public static final int DEF_COL_WIDTH = 0x55; 56 public static final int COLINFO = 0x7D; 57 public static final int BOUND_SHEET = 0x85; 58 public static final int EXTENDED_FORMAT = 0xE0; 59 60 /** Colour lookup table for mapping pexcel color values 61 (See util/ColourConverter.java */ 62 public short cLookup[] = { 0, 14, 15, 1, 2, 3, 4, 7, 6, 5, 8, 9, 10, 13, 12, 11 }; 63 } 64