org.pptx4j.convert.in.xhtml.TraversalSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-ImportXHTML Show documentation
Show all versions of docx4j-ImportXHTML Show documentation
docx4j-ImportXHTML converts XHTML to OpenXML WordML (docx) using docx4j
/*
* This file is part of the docx4j-ImportXHTML library.
*
* Copyright 2011-2013, Plutext Pty Ltd, and contributors.
* Portions contributed before 15 July 2013 formed part of docx4j
* and were contributed under ASL v2 (a copy of which is incorporated
* herein by reference and applies to those portions).
*
* This library as a whole is licensed under the GNU Lesser General
* Public License as published by the Free Software Foundation;
version 2.1.
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 (see legals/LICENSE); if not,
see http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.pptx4j.convert.in.xhtml;
import java.util.Map;
import org.pptx4j.pml.Shape;
import org.w3c.dom.css.CSSValue;
import com.openhtmltopdf.css.parser.PropertyValue;
public class TraversalSettings implements Cloneable {
private Map cssMap ;
private String hyperlink;
private boolean inTableCell;
private Shape paragraphsShape;
public Shape getParagraphsShape() {
return paragraphsShape;
}
public void setParagraphsShape(Shape paragraphsShape) {
this.paragraphsShape = paragraphsShape;
}
public Map getCssMap() {
return cssMap;
}
public void setCssMap(Map cssMap) {
this.cssMap = cssMap;
}
public String getHyperlink() {
return hyperlink;
}
public void setHyperlink(String hyperlink) {
this.hyperlink = hyperlink;
}
public boolean isHyperlinkTraversal() {
return hyperlink != null;
}
public boolean isInTableCell() {
return inTableCell;
}
public void setInTableCell(boolean inTableCell) {
this.inTableCell = inTableCell;
}
public TraversalSettings clone(){
try {
return (TraversalSettings) super.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy