Foxit PDF SDK

构造函数 | 所有成员列表
<FSParagraphEditingProviderCallback>协议 参考

继承自 <NSObject> .

## 构造函数
(void) | - addUndoItem:
| A callback function used to notify the page to add undo operation. 更多...
(FSRectF *) | - getClientRect:
| A callback function get the client rectangle in device coordinate system. 更多...
(int) | - getCurrentPageIndex:
| A callback function used to get current page index. 更多...
(FSRectF *) | - getPageRect:page_index:
| A callback function used to get page rectangle in device coordinate system. 更多...
(void *) | - getPageViewHandle:page_index:
| A callback function to get the page view window handle. 更多...
(FSRectF *) | - getPageVisibleRect:page_index:
| A callback function used to get visible page rectangle in device coordinate system. 更多...
(FSMatrix2D *) | - getRenderMatrix:page_index:
| A callback function get the render matrix. 更多...
(FSRotation) | - getRotation:page_index:
| A callback function used to get the page view rotate. 更多...
(float) | - getScale:page_index:
| A callback function get the scale of page. 更多...
(NSArray< NSNumber * > *) | - getVisiblePageIndexArray:
| A callback function used to get visible page indexes. 更多...
(BOOL) | - gotoPageView:page_index:left:top:
| A callback function to go to page view. 更多...
(void) | - invalidateRect:page_index:invalid_rects:
| A callback function used to invalidate page rectangle. 更多...
(void) | - notifyTextInputReachLimit:page_index:
| A callback function used to notify text input reach limit. 更多...
(void) | - setDocChangeMark:
| A callback function used to notify the document have changed. 更多...

## 详细描述

This class represents a callback object for paragraph edit provider. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

## 函数文档

## ◆ addUndoItem:()

- (void) addUndoItem: |  | (FSParagraphEditingUndoItem *) | undo_item |
| required

A callback function used to notify the page to add undo operation.

参数

  [in] | undo_item | The undo item object.

返回
  None.

## ◆ getClientRect:()

- (FSRectF*) getClientRect: |  | (FSPDFDoc *) | document |
| required

A callback function get the client rectangle in device coordinate system.

参数

  [in] | document | The valid pdf document.

返回
  The client rectangle.

## ◆ getCurrentPageIndex:()

- (int) getCurrentPageIndex: |  | (FSPDFDoc *) | document |
| required

A callback function used to get current page index.

参数

  [in] | document | The valid pdf document.

返回
  The page index.

## ◆ getPageRect:page_index:()

- (FSRectF*) getPageRect: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function used to get page rectangle in device coordinate system.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.

返回
  The page rectangle.

## ◆ getPageViewHandle:page_index:()

- (void*) getPageViewHandle: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function to get the page view window handle.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.

返回
  The page view window handle.

## ◆ getPageVisibleRect:page_index:()

- (FSRectF*) getPageVisibleRect: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function used to get visible page rectangle in device coordinate system.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.

返回
  The page visble rectangle.

## ◆ getRenderMatrix:page_index:()

- (FSMatrix2D*) getRenderMatrix: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function get the render matrix.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | A valid editor page object.

返回
  The matrix.

## ◆ getRotation:page_index:()

- (FSRotation) getRotation: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function used to get the page view rotate.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.

返回
  The indent value.

## ◆ getScale:page_index:()

- (float) getScale: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function get the scale of page.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.

返回
  The scale value. The returned value should be greater than 0.

## ◆ getVisiblePageIndexArray:()

- (NSArray<NSNumber *> *) getVisiblePageIndexArray: |  | (FSPDFDoc *) | document |
| required

A callback function used to get visible page indexes.

参数

  [in] | document | The valid pdf document.

返回
  The visble page index array.

## ◆ gotoPageView:page_index:left:top:()

- (BOOL) gotoPageView: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
left: |  | (float) | left
top: |  | (float) | top
| required

A callback function to go to page view.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.
  [in] | left | The left point where left mouse button is up in the page, in pdf coordination system.
  [in] | top | The top point where left mouse button is up in the page, in pdf coordination system.

返回
  true means successful, while false means not.

## ◆ invalidateRect:page_index:invalid_rects:()

- (void) invalidateRect: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
invalid_rects: |  | (FSRectFArray *) | invalid_rects
| required

A callback function used to invalidate page rectangle.

参数

  [in] | document | The valid pdf document.
  [in] | page_index | The page index.
  [in] | rects | The invalid areas. The rectangle in invalid_rects is in device coordination system.

返回
  None.

## ◆ notifyTextInputReachLimit:page_index:()

- (void) notifyTextInputReachLimit: |  | (FSPDFDoc *) | document
page_index: |  | (int) | page_index
| required

A callback function used to notify text input reach limit.

参数

  [in] | document | The valid pdf document.
  [in] | editor_page | The editor page.

返回
  None.

## ◆ setDocChangeMark:()

- (void) setDocChangeMark: |  | (FSPDFDoc *) | document |
| required

A callback function used to notify the document have changed.

参数

  [in] | document | The valid pdf document.

返回
  None.