Examples of SectionHeader


Examples of info.bliki.wiki.filter.SectionHeader

        }
      }
      anchor = newAnchor;
    }
    fToCSet.add(anchor);
    SectionHeader strPair = new SectionHeader(headLevel, startPosition,
        endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
View Full Code Here

Examples of info.bliki.wiki.filter.SectionHeader

                }
                if (!counted) {
                    level++;
                    counted = true;
                }
                SectionHeader pair = (SectionHeader) tocItem;
                String head = Encoder.encodeHtml(pair.getFirst());
                String anchor = pair.getSecond();
                writer.append("\n<li class=\"toclevel-")
                        .append(Integer.toString(level))
                        .append("\"><a href=\"#").append(anchor).append("\">")
                        .append(head).append("</a>");
                setLI = true;
View Full Code Here

Examples of info.bliki.wiki.filter.SectionHeader

    private void extractSectionHeaders(List<Object> toc,
            List<SectionHeader> resultList) {
        for (Object tocItem : toc) {
            if (tocItem instanceof SectionHeader) {
                SectionHeader header = (SectionHeader) tocItem;
                resultList.add(header);
            } else {
                @SuppressWarnings("unchecked")
                final List<Object> list = (List<Object>) tocItem;
                extractSectionHeaders(list, resultList);
View Full Code Here

Examples of info.bliki.wiki.filter.SectionHeader

                }
            }
            anchor = newAnchor;
        }
        fToCSet.add(anchor);
        SectionHeader strPair = new SectionHeader(headLevel, startPosition,
                endPosition, tocHead, anchor);
        addToTableOfContent(fTableOfContent, strPair, headLevel);
        if (getRecursionLevel() == 1) {
            buildEditLinkUrl(fSectionCounter++);
        }
View Full Code Here

Examples of info.bliki.wiki.filter.SectionHeader

      if (toc.get(i) instanceof SectionHeader) {
        if (!counted) {
          level++;
          counted = true;
        }
        SectionHeader pair = (SectionHeader) toc.get(i);
        String head = Encoder.encodeHtml(pair.getFirst());
        String anchor = pair.getSecond();
        writer.append("\n<li class=\"toclevel-").append(Integer.toString(level)).append("\"><a href=\"#").append(anchor).append(
            "\">").append(head).append("</a>\n</li>");
      } else {
        renderToC(writer, (List<Object>) toc.get(i), level);
      }
View Full Code Here

Examples of info.bliki.wiki.filter.SectionHeader

  }

  private void extractSectionHeaders(List<Object> toc, List<SectionHeader> resultList) {
    for (int i = 0; i < toc.size(); i++) {
      if (toc.get(i) instanceof SectionHeader) {
        SectionHeader header = (SectionHeader) toc.get(i);
        resultList.add(header);
      } else {
        extractSectionHeaders((List<Object>) toc.get(i), resultList);
      }
    }
View Full Code Here

Examples of info.bliki.wiki.filter.SectionHeader

          break;
        }
      }
      anchor = newAnchor;
    }
    SectionHeader strPair = new SectionHeader(headLevel, startPosition, endPosition, tocHead, anchor);
    addToTableOfContent(fTableOfContent, strPair, headLevel);
    if (getRecursionLevel() == 1) {
      buildEditLinkUrl(fSectionCounter++);
    }
    spanTagNode.addAttribute("class", "mw-headline", true);
View Full Code Here

Examples of org.boris.pecoff4j.SectionHeader

    private static void writeSectionHeaders(PE pe, IDataWriter dw)
            throws IOException {
        SectionTable st = pe.getSectionTable();
        int ns = st.getNumberOfSections();
        for (int i = 0; i < ns; i++) {
            SectionHeader sh = st.getHeader(i);
            writeSectionHeader(sh, dw);
        }
    }
View Full Code Here

Examples of org.boris.pecoff4j.SectionHeader

    }

    private static void writeSection(PE pe, DataEntry entry, IDataWriter dw)
            throws IOException {
        SectionTable st = pe.getSectionTable();
        SectionHeader sh = st.getHeader(entry.index);
        SectionData sd = st.getSection(entry.index);
        int prd = sh.getPointerToRawData();
        if (prd > dw.getPosition()) {
            byte[] pa = sd.getPreamble();
            if (pa != null) {
                dw.writeBytes(pa);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.