Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef PUBLIC_FPDF_DOC_H_ | 7 #ifndef PUBLIC_FPDF_DOC_H_ |
| 8 #define PUBLIC_FPDF_DOC_H_ | 8 #define PUBLIC_FPDF_DOC_H_ |
| 9 | 9 |
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 // Parameters: | 170 // Parameters: |
| 171 // document - Handle to the document. | 171 // document - Handle to the document. |
| 172 // dest - Handle to the destination. | 172 // dest - Handle to the destination. |
| 173 // Return value: | 173 // Return value: |
| 174 // The page index. Starting from 0 for the first page. | 174 // The page index. Starting from 0 for the first page. |
| 175 // | 175 // |
| 176 DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, | 176 DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, |
| 177 FPDF_DEST dest); | 177 FPDF_DEST dest); |
| 178 | 178 |
| 179 // Function: FPDFLink_GetLinkAtPoint | 179 // Function: FPDFLink_GetLinkAtPoint |
| 180 // Find a link at specified point on a document page. | 180 // Find a link at specified point on a document page. |
| 181 // Parameters: | 181 // Parameters: |
| 182 // page - Handle to the document page. | 182 // page - Handle to the document page. |
| 183 // x - The x coordinate of the point, specified in page | 183 // x - The x coordinate of the point, specified in page |
| 184 // coordinate system. | 184 // coordinate system. |
| 185 // y - The y coordinate of the point, specified in page | 185 // y - The y coordinate of the point, specified in page |
| 186 // coordinate system. | 186 // coordinate system. |
| 187 // Return value: | 187 // Return value: |
| 188 // Handle to the link. NULL if no link found at that point. | 188 // Handle to the link. NULL if no link found at that point. |
| 189 // Comments: | 189 // Comments: |
| 190 // The point coordinates are specified in page coordinate system. You | 190 // The point coordinates are specified in page coordinate system. You can |
| 191 // can convert coordinates | 191 // convert coordinates from screen system to page system using |
| 192 // from screen system to page system using FPDF_DeviceToPage functions. | 192 // FPDF_DeviceToPage(). |
| 193 // | |
| 193 // Notes: | 194 // Notes: |
|
Lei Zhang
2015/08/15 02:23:58
conflicted here.
| |
| 194 // The method can not support this feature for the document consists of | 195 // The method can not support this feature for the document consists of |
| 195 // dynamic XFA fields. | 196 // dynamic XFA fields. |
| 196 // | 197 // |
| 197 DLLEXPORT FPDF_LINK STDCALL FPDFLink_GetLinkAtPoint(FPDF_PAGE page, | 198 DLLEXPORT FPDF_LINK STDCALL FPDFLink_GetLinkAtPoint(FPDF_PAGE page, |
| 198 double x, | 199 double x, |
| 199 double y); | 200 double y); |
| 200 | 201 |
| 202 // Function: FPDFLink_GetLinkZOrderAtPoint | |
| 203 // Find the z-order of a link at specified point on a document page. | |
| 204 // Parameters: | |
| 205 // page - Handle to the document page. | |
| 206 // x - The x coordinate of the point, specified in page | |
| 207 // coordinate system. | |
| 208 // y - The y coordinate of the point, specified in page | |
| 209 // coordinate system. | |
| 210 // Return value: | |
| 211 // Z-order of the link, or -1 if no link found at that point. | |
| 212 // Higher numbers are closer to the front. | |
| 213 // Comments: | |
| 214 // The point coordinates are specified in page coordinate system. You can | |
| 215 // convert coordinates from screen system to page system using | |
| 216 // FPDF_DeviceToPage(). | |
| 217 // | |
| 218 DLLEXPORT int STDCALL | |
| 219 FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, double x, double y); | |
| 220 | |
| 201 // Function: FPDFLink_GetDest | 221 // Function: FPDFLink_GetDest |
| 202 // Get destination info of a link. | 222 // Get destination info of a link. |
| 203 // Parameters: | 223 // Parameters: |
| 204 // document - Handle to the document. | 224 // document - Handle to the document. |
| 205 // link - Handle to the link. Returned by | 225 // link - Handle to the link. Returned by |
| 206 // FPDFLink_GetLinkAtPoint. | 226 // FPDFLink_GetLinkAtPoint. |
| 207 // Return value: | 227 // Return value: |
| 208 // Handle to the destination. NULL if there is no destination | 228 // Handle to the destination. NULL if there is no destination |
| 209 // associated with the link, in this case | 229 // associated with the link, in this case |
| 210 // the application should try FPDFLink_GetAction. | 230 // the application should try FPDFLink_GetAction. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, | 347 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, |
| 328 FPDF_BYTESTRING tag, | 348 FPDF_BYTESTRING tag, |
| 329 void* buffer, | 349 void* buffer, |
| 330 unsigned long buflen); | 350 unsigned long buflen); |
| 331 | 351 |
| 332 #ifdef __cplusplus | 352 #ifdef __cplusplus |
| 333 } | 353 } |
| 334 #endif | 354 #endif |
| 335 | 355 |
| 336 #endif // PUBLIC_FPDF_DOC_H_ | 356 #endif // PUBLIC_FPDF_DOC_H_ |
| OLD | NEW |