/************************************************************************ * * StyleWithProperties.java * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * 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., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * Copyright: 2002-2008 by Henrik Just * * All Rights Reserved. * * Version 1.0 (2008-11-22) */ package writer2latex.office; //import org.w3c.dom.Element; import org.w3c.dom.Node; //import org.w3c.dom.NamedNodeMap; //import java.util.Hashtable; import writer2latex.util.Misc; /**
Class representing a style in OOo which contains a style:properties * element
*/ public class StyleWithProperties extends OfficeStyle { private final static int OLDPROPS = 0; private final static int TEXT = 1; private final static int PAR = 2; private final static int SECTION = 3; private final static int TABLE = 4; private final static int COLUMN = 5; private final static int ROW = 6; private final static int CELL = 7; private final static int GRAPHIC = 8; private final static int PAGE = 9; //private final static int DRAWPAGE = 10; private final static int COUNT = 10; private PropertySet[] properties = new PropertySet[COUNT]; private boolean bIsOldProps = false; private PropertySet backgroundImageProperties = new PropertySet(); private int nColCount = 0; private boolean bHasFootnoteSep = false; private PropertySet footnoteSep = new PropertySet(); public StyleWithProperties() { for (int i=0; i