1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /*
- http://www.cgsoso.com/forum-211-1.html
- CG搜搜 Unity3d 每日Unity3d插件免费更新 更有VIP资源!
- CGSOSO 主打游戏开发,影视设计等CG资源素材。
- 插件如若商用,请务必官网购买!
- daily assets update for try.
- U should buy the asset from home store if u use it in your project!
- */
- namespace Paroxe.PdfRenderer
- {
- /// <summary>
- /// Implement this class to provide a custom action handling stategy. For example, PDFViewer.BookmarksActionHandler
- /// and PDFViewer.LinksActionHandler both refer to a default implementation of this interface.
- /// </summary>
- public interface IPDFDeviceActionHandler
- {
- /// <summary>
- /// Called when a goto action is triggered.
- /// </summary>
- /// <param name="device"></param>
- /// <param name="pageIndex"></param>
- void HandleGotoAction(IPDFDevice device, int pageIndex);
- /// <summary>
- /// Called when a launch action is triggered.
- /// </summary>
- /// <param name="device"></param>
- /// <param name="filePath"></param>
- void HandleLaunchAction(IPDFDevice device, string filePath);
- /// <summary>
- /// Implement the function if you want to provide password. This method received the resolved path
- /// returned by the previous method (HandleRemoteGotoActionPathResolving)
- /// </summary>
- /// <param name="device"></param>
- /// <param name="resolvedFilePath"></param>
- /// <returns></returns>
- string HandleRemoteGotoActionPasswordResolving(IPDFDevice device, string resolvedFilePath);
- /// <summary>
- /// Implement the function if you want custom path resolving before PDF Viewer open other pdf file.
- /// The method must return the modified filePath or just return the original filePath.
- /// See PDFViewerDefaultActionHandler class for the default implementation.
- /// </summary>
- /// <param name="device"></param>
- /// <param name="filePath"></param>
- /// <returns></returns>
- string HandleRemoteGotoActionPathResolving(IPDFDevice device, string filePath);
- /// <summary>
- /// This method is called after the new pdf document is loaded but not yet opened in the pdfViewer.
- /// See PDFViewerDefaultActionHandler class for the default implementation.
- /// </summary>
- /// <param name="device"></param>
- /// <param name="document"></param>
- /// <param name="pageIndex"></param>
- void HandleRemoteGotoActionResolved(IPDFDevice device, PDFDocument document, int pageIndex);
- /// <summary>
- /// This method is called when the pdf pdf file at filePath doesn't exists or is invalid.
- /// </summary>
- /// <param name="device"></param>
- /// <param name="resolvedFilePath"></param>
- void HandleRemoteGotoActionUnresolved(IPDFDevice device, string resolvedFilePath);
- /// <summary>
- /// Called when the action is unsuported
- /// </summary>
- /// <param name="device"></param>
- void HandleUnsuportedAction(IPDFDevice device);
- /// <summary>
- /// Called for action that point to an Uri (Universal Resource Identifier)
- /// </summary>
- /// <param name="device"></param>
- /// <param name="uri"></param>
- void HandleUriAction(IPDFDevice device, string uri);
- }
- }
|