Code with Finding: |
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) {
tag = mapTag(tag);
attrs.put(tag, null);
worker.updateChain(tag, attrs);
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) {
worker.updateChain(tag, attrs);
worker.flushContent();
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) {
worker.newLine();
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
if (worker.isPendingLI())
worker.endElement(HtmlTags.LI);
worker.setSkipText(true);
worker.updateChain(tag, attrs);;
worker.pushToStack(worker.createList(tag));
}
}
class HTMLTagProcessors {
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
worker.pushToStack(worker.createLineSeparator(attrs));
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) {
worker.updateChain(tag, attrs);
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
if (!attrs.containsKey(HtmlTags.SIZE)) {
int v = 7 - Integer.parseInt(tag.substring(1));
attrs.put(HtmlTags.SIZE, Integer.toString(v));
}
worker.updateChain(tag, attrs);
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
if (worker.isPendingLI())
worker.endElement(tag);
worker.setSkipText(false);
worker.setPendingLI(true);
worker.updateChain(tag, attrs);
worker.pushToStack(worker.createListItem());
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
if (!attrs.containsKey(HtmlTags.FACE)) {
attrs.put(HtmlTags.FACE, "Courier");
}
worker.updateChain(tag, attrs);
worker.setInsidePRE(true);
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
worker.updateChain(tag, attrs);
}
}
class HTMLTagProcessors {
/**
* @throws DocumentException
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
TableWrapper table = new TableWrapper(attrs);
worker.pushToStack(table);
worker.pushTableState();
worker.setPendingTD(false);
worker.setPendingTR(false);
worker.setSkipText(true);
// Table alignment should not affect children elements, thus remove
attrs.remove(HtmlTags.ALIGN);
// In case this is a nested table reset colspan and rowspan
attrs.put(HtmlTags.COLSPAN, "1");
attrs.put(HtmlTags.ROWSPAN, "1");
worker.updateChain(tag, attrs);
}
}
class HTMLTagProcessors {
/**
* @throws DocumentException
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
if (worker.isPendingTR())
worker.endElement(tag);
worker.setSkipText(true);
worker.setPendingTR(true);
worker.updateChain(tag, attrs);
}
}
class HTMLTagProcessors {
/**
* @throws DocumentException
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException {
worker.carriageReturn();
if (worker.isPendingTD())
worker.endElement(tag);
worker.setSkipText(false);
worker.setPendingTD(true);
worker.updateChain(HtmlTags.TD, attrs);
worker.pushToStack(worker.createCell(tag));
}
}
class HTMLTagProcessors {
/**
* @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
*/
public void startElement(HTMLWorker worker, String tag, Map<String, String> attrs) throws DocumentException, IOException {
worker.updateChain(tag, attrs);
worker.processImage(worker.createImage(attrs), attrs);
worker.updateChain(tag);
}
}
|