/************************************************************************ * * StyleWithProperties.java * * Copyright: 2002-2008 by Henrik Just * * This file is part of Writer2LaTeX. * * Writer2LaTeX is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Writer2LaTeX 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Writer2LaTeX. If not, see . * * Version 1.0 (2008-11-22) */ package writer2latex.office; //import org.w3c.dom.Element; import org.w3c.dom.Node; import writer2latex.util.Calc; //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