#ifndef MUPDF_FITZ_OUTLINE_H1#define MUPDF_FITZ_OUTLINE_H23#include "mupdf/fitz/system.h"4#include "mupdf/fitz/context.h"5#include "mupdf/fitz/link.h"6#include "mupdf/fitz/output.h"78/* Outline */910/*11fz_outline is a tree of the outline of a document (also known12as table of contents).1314title: Title of outline item using UTF-8 encoding. May be NULL15if the outline item has no text string.1617dest: Destination in the document to be displayed when this18outline item is activated. May be FZ_LINK_NONE if the outline19item does not have a destination.2021next: The next outline item at the same level as this outline22item. May be NULL if no more outline items exist at this level.2324down: The outline items immediate children in the hierarchy.25May be NULL if no children exist.26*/2728typedef struct fz_outline_s fz_outline;2930struct fz_outline_s31{32char *title;33fz_link_dest dest;34fz_outline *next;35fz_outline *down;36int is_open;37};3839/*40fz_print_outline_xml: Dump the given outlines as (pseudo) XML.4142out: The file handle to output to.4344outline: The outlines to output.45*/46void fz_print_outline_xml(fz_context *ctx, fz_output *out, fz_outline *outline);4748/*49fz_print_outline: Dump the given outlines to as text.5051out: The file handle to output to.5253outline: The outlines to output.54*/55void fz_print_outline(fz_context *ctx, fz_output *out, fz_outline *outline);5657/*58fz_drop_outline: Free hierarchical outline.5960Free an outline obtained from fz_load_outline.6162Does not throw exceptions.63*/64void fz_drop_outline(fz_context *ctx, fz_outline *outline);6566#endif676869