Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::Bookmark ( const wxString &  txt,
int  level = 0,
double  y = 0 
) [virtual]

Adds a bookmark to the document outline.

txt,:the bookmark title.
level,:the bookmark level (0 is top level, 1 is just below, and so on).
y,:the y position of the bookmark destination in the current page. -1 means the current position. Default value: 0.

Definition at line 181 of file pdfannotation.cpp.

References GetY(), m_maxOutlineLevel, m_outlines, and PageNo().

  if (y < 0)
    y = GetY();
  wxPdfBookmark* bookmark = new wxPdfBookmark(txt, level, y, PageNo());
  if (level > m_maxOutlineLevel)
    m_maxOutlineLevel = level;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index