|
@@ -152,6 +152,20 @@ class KMPDFToolbarManager: NSObject {
|
|
|
|
|
|
let form_alignment_Property = ComponentDropdownToolProperty(state: .normal, text: nil, leftIcon: NSImage(named: "form_alignment"), showDropdown: true, arrowIcon: NSImage(named: "toolbar_arrowDown_fill"))
|
|
|
let form_more_Property = ComponentDropdownToolProperty(state: .normal, text: nil, leftIcon: NSImage(named: "form_more"), showDropdown: true, arrowIcon: NSImage(named: "toolbar_arrowDown_fill"))
|
|
|
+
|
|
|
+ var form_alignment_left_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignLeft"), text: KMLocalizedString("Align Left"), identifier: KMPDFToolbar_form_Align_Left_Identifier)
|
|
|
+ var form_alignment_Hori_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignXCenter"), text: KMLocalizedString("Align Horizontally"), identifier: KMPDFToolbar_form_Align_Hori_Identifier)
|
|
|
+ var form_alignment_Right_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignRight"), text: KMLocalizedString("Align Right"), identifier: KMPDFToolbar_form_Align_Right_Identifier)
|
|
|
+ var form_alignment_Top_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignTop"), text: KMLocalizedString("Align Top"), identifier: KMPDFToolbar_form_Align_Top_Identifier)
|
|
|
+ var form_alignment_Vert_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignYCenter"), text: KMLocalizedString("Align Vertically"), identifier: KMPDFToolbar_form_Align_Vert_Identifier)
|
|
|
+ var form_alignment_Bottom_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignBottom"), text: KMLocalizedString("Align Bottom"), identifier: KMPDFToolbar_form_Align_Bottom_Identifier)
|
|
|
+ var form_alignment_Distribute_Vert_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignHorizonal"), text: KMLocalizedString("Distribute Vertically"), identifier: KMPDFToolbar_form_Distribute_Vert_Identifier)
|
|
|
+ var form_alignment_Distribute_Hori_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "alignAverageVertical"), text: KMLocalizedString("Distribute Horizontally"), identifier: KMPDFToolbar_form_Distribute_Hori_Identifier)
|
|
|
+
|
|
|
+
|
|
|
+ var form_Highlight_Fields_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(righticon: NSImage(named: "tick_Green"), text: KMLocalizedString("Highlight Existing Fields"), identifier: KMPDFToolbar_form_HighlightFields_Identifier)
|
|
|
+ var form_ShowName_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(righticon: NSImage(named: "tick_Green"), text: KMLocalizedString("Show Name"), identifier: KMPDFToolbar_form_ShowName_Identifier)
|
|
|
+ var form_ClearForm_Property: ComponentMenuitemProperty = ComponentMenuitemProperty(text: KMLocalizedString("Clear Form"), identifier: KMPDFToolbar_form_ClearForm_Identifier)
|
|
|
|
|
|
//MARK: -Fill
|
|
|
let fill_tick_Property = ComponentButtonProperty(type: .text_gray_opacity, size: .xs, onlyIcon: true, icon: NSImage(named: "fill_tick"), identifier: KMPDFToolbar_fill_tick_Identifier)
|
|
@@ -398,6 +412,12 @@ class KMPDFToolbarManager: NSObject {
|
|
|
edit_bates_Property, edit_crop_Property]
|
|
|
|
|
|
} else if modeType == .Form {
|
|
|
+ form_alignment_Property.menuItemArr = [form_alignment_left_Property, form_alignment_Hori_Property, form_alignment_Right_Property, ComponentMenuitemProperty.divider(),
|
|
|
+ form_alignment_Top_Property, form_alignment_Vert_Property, form_alignment_Bottom_Property, ComponentMenuitemProperty.divider(),
|
|
|
+ form_alignment_Distribute_Vert_Property, form_alignment_Distribute_Hori_Property]
|
|
|
+
|
|
|
+ form_more_Property.menuItemArr = [form_Highlight_Fields_Property, form_ShowName_Property, form_ClearForm_Property]
|
|
|
+
|
|
|
return [form_text_Property, form_checkbox_Property, form_radio_Property, form_list_Property,
|
|
|
form_dropdown_Property, form_OK_Property, form_digitalSign_Property, dividerProperty,
|
|
|
form_alignment_Property, form_more_Property]
|