import { StyleDefinition } from '../style-definition' ; import { IToc , IStyleDefinition } from '../../interfaces' ; /**
 * Class to create a table of content
 */ export class Toc extends StyleDefinition < Toc , IToc > { param _toc constructor ( private _toc ) { super ( ) ; this . content . toc = { } ; this . content . toc . title = this . _toc ; } param style public textStyle ( style ) { this . content . toc . textStyle = style ; return this ; } param style public numberStyle ( style ) { this . content . toc . numberStyle = style ; return this ; } param margin public textMargin ( margin ) { this . content . toc . textMargin = margin ; return this ; } }