@Override public void characters(String text) { out.characters(text); }
out.beginBlock(BlockType.TABLE_CELL_HEADER, tableCellAttributes); if (rootPage) { out.characters(rootBuilder.getTitle()); } else { out.characters(current == null ? "" : current.getLabel()); //$NON-NLS-1$ out.beginBlock(BlockType.TABLE_CELL_NORMAL, tableCellAttributes); if (previous != null) { out.characters(previous.getLabel()); out.beginBlock(BlockType.TABLE_CELL_NORMAL, tableCellAttributes); if (next != null) { out.characters(next.getLabel());
@Override public void characters(String text) { assertOpenBlock(); delegate.characters(text); }
@Override public void link(Attributes attributes, String hrefOrHashName, String text) { writer.writeStartElement(htmlNsUri, spanTypeToElementName.get(SpanType.LINK)); emitAnchorHref(hrefOrHashName); applyLinkAttributes(attributes, hrefOrHashName); characters(text); writer.writeEndElement(); }
private void emitEmbeddedTableOfContentsHeader() { if (embeddedTableOfContents) { beginDiv("container"); //$NON-NLS-1$ beginDiv("row"); //$NON-NLS-1$ beginDiv("table-of-contents", "span2"); //$NON-NLS-1$//$NON-NLS-2$ out.beginHeading(1, new Attributes()); out.characters(Messages.getString("SplittingHtmlDocumentBuilder.TableOfContentsHeading")); //$NON-NLS-1$ out.endHeading(); emitEmbeddedTableOfContents(); endDiv(); // table of contents beginDiv("main-content", "span10"); //$NON-NLS-1$//$NON-NLS-2$ } }
@Override public void beginBlock(BlockType type, Attributes attributes) { ElementInfo elementInfo = blockTypeToElementInfo.get(type); if (elementInfo == null) { throw new IllegalStateException(type.name()); } writeBlockElements(attributes, elementInfo); blockState.push(elementInfo); if (type == BlockType.TABLE) { applyTableAttributes(attributes); } else if (type == BlockType.TABLE_ROW) { applyTableRowAttributes(attributes); } else if (type == BlockType.TABLE_CELL_HEADER || type == BlockType.TABLE_CELL_NORMAL) { applyCellAttributes(attributes); } else if (type == BlockType.BULLETED_LIST || type == BlockType.NUMERIC_LIST) { applyListAttributes(attributes); } else if (type == BlockType.QUOTE) { applyQuoteAttributes(attributes); } else { applyAttributes(attributes); // create the titled panel effect if a title is specified if (attributes.getTitle() != null) { beginBlock(BlockType.PARAGRAPH, new Attributes()); beginSpan(SpanType.BOLD, new Attributes()); characters(attributes.getTitle()); endSpan(); endBlock(); } } }