|
@@ -3838,20 +3838,30 @@ extension KMMainViewController: KMPDFToolbarControllerDelegate {
|
|
|
listView.resetFormAnnotation()
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Align_Left_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .left)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Align_Hori_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .horizontally)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Align_Right_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .right)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Align_Top_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .top)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Align_Vert_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .vertical)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
+
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Align_Bottom_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .bottom)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
+
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Distribute_Vert_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .disVertical)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
} else if itemIdentifier == KMPDFToolbar_form_Distribute_Hori_Identifier {
|
|
|
listView.change(listView.activeAnnotations as? [CPDFAnnotation], alignmentType: .disHorizontally)
|
|
|
+ listView.setNeedsDisplayForVisiblePages()
|
|
|
}
|
|
|
|
|
|
if viewManager.subToolMode == .None {
|
|
@@ -3861,7 +3871,20 @@ extension KMMainViewController: KMPDFToolbarControllerDelegate {
|
|
|
}
|
|
|
self.refreshToolbarRightViewInfo()
|
|
|
|
|
|
- toolbarViewModeChanged()
|
|
|
+ if itemIdentifier == KMPDFToolbar_form_HighlightFields_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_ShowName_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_ClearForm_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Align_Left_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Align_Hori_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Align_Right_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Align_Top_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Align_Vert_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Align_Bottom_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Distribute_Vert_Identifier ||
|
|
|
+ itemIdentifier == KMPDFToolbar_form_Distribute_Hori_Identifier {
|
|
|
+ } else {
|
|
|
+ toolbarViewModeChanged()
|
|
|
+ }
|
|
|
} else if toolbarManager.getSubToolItemIdentifys(KMPDFToolbar_Fill_Identifier).contains(itemIdentifier) {
|
|
|
//MARK: -填充
|
|
|
|