/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef _PDF_BOOKMARKS_HELPER_INCLUDED_ #define _PDF_BOOKMARKS_HELPER_INCLUDED_ #include "PdfCommon.h" #include "PdfResourceDictionary.h" #include "Ge/GePoint3d.h" #include "Ge/GePoint3dArray.h" #include "StringArray.h" #include "PdfPageDictionary.h" namespace TD_PDF { namespace TD_PDF_HELPER_FUNCS { enum BookmarkTypes { kXYZ, kFit, kFitH, kFitV, kFitR, kFitB, kFitBH, kFitBV, }; PDFObjectPtr PDFEXPORT_TOOLKIT CreateBookmark(PDFDocument& PDFDoc, PDFPageDictionary* currentPage, const OdString& sTitle, BookmarkTypes type, const OdArray& values, PDFObject* pParentItem = NULL); void PDFEXPORT_TOOLKIT UpdateBookmarksTree(PDFDocument& PDFDoc, PDFPageDictionary* currentPage, const OdString& sParent, const OdStringArray* childs = 0, const OdGePoint3dArray* childExt = 0, PDFObject* pParentItem = 0); void PDFEXPORT_TOOLKIT UpdateChildrenBookmarksTree(PDFDocument& PDFDoc, PDFPageDictionary* currentPage, const OdStringArray* childs, const OdGePoint3dArray* childExt, PDFObject* pParentItem); void PDFEXPORT_TOOLKIT UpdateThumbnails(PDFDocument& PDFDoc, PDFPageDictionary* currentPage, const OdString& sName, bool bUseThumbs); } } #endif // _PDF_BOOKMARKS_HELPER_INCLUDED_