Browse Source

【MainMenu】PDF菜单补充

tangchao 1 year ago
parent
commit
9463be45ed

+ 140 - 0
PDF Office/PDF Master/Base.lproj/Main.storyboard

@@ -1277,6 +1277,146 @@ CA
                                     </items>
                                 </menu>
                             </menuItem>
+                            <menuItem title="PDF" id="rxA-Aq-RfG">
+                                <menu key="submenu" title="PDF" id="734-PP-8HE">
+                                    <items>
+                                        <menuItem title="PDF Display" id="lGh-mW-7Pc">
+                                            <menu key="submenu" title="PDF Display" id="ezi-ly-46p">
+                                                <items>
+                                                    <menuItem title="Single Page" id="hxE-iU-6WH">
+                                                        <connections>
+                                                            <action selector="changeDisplayMode:" target="Ady-hI-5gd" id="Els-kJ-DC9"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem title="Single Page Continuous" tag="1" id="Wb8-eg-Ml9">
+                                                        <connections>
+                                                            <action selector="changeDisplayMode:" target="Ady-hI-5gd" id="cd3-EJ-nLz"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem title="Two Pages" tag="2" id="hga-cQ-kSj">
+                                                        <connections>
+                                                            <action selector="changeDisplayMode:" target="Ady-hI-5gd" id="seE-NI-D0R"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem title="Two Pages Continuous" tag="3" id="b6w-rv-YVl">
+                                                        <connections>
+                                                            <action selector="changeDisplayMode:" target="Ady-hI-5gd" id="mse-Vh-mTE"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem isSeparatorItem="YES" id="gbo-tM-TRC">
+                                                        <modifierMask key="keyEquivalentModifierMask" command="YES"/>
+                                                    </menuItem>
+                                                    <menuItem title="Book Mode" id="QU6-7x-U2M">
+                                                        <connections>
+                                                            <action selector="toggleDisplayAsBook:" target="Ady-hI-5gd" id="V6u-au-ywN"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem title="Page Breaks" id="rg5-Mi-raI">
+                                                        <connections>
+                                                            <action selector="toggleDisplayPageBreaks:" target="Ady-hI-5gd" id="p0C-3s-rmc"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem isSeparatorItem="YES" id="Oq4-ay-dQ3">
+                                                        <modifierMask key="keyEquivalentModifierMask" command="YES"/>
+                                                    </menuItem>
+                                                    <menuItem title="Media Box" id="sC1-pe-FU3">
+                                                        <connections>
+                                                            <action selector="changeDisplayBox:" target="Ady-hI-5gd" id="esX-sE-BUf"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                    <menuItem title="Crop Box" tag="1" id="U6L-uV-fml">
+                                                        <connections>
+                                                            <action selector="changeDisplayBox:" target="Ady-hI-5gd" id="UAN-t5-F1J"/>
+                                                        </connections>
+                                                    </menuItem>
+                                                </items>
+                                            </menu>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="2iv-hy-ATf">
+                                            <modifierMask key="keyEquivalentModifierMask" command="YES"/>
+                                        </menuItem>
+                                        <menuItem title="Automatically Resize" keyEquivalent="R" id="rJK-vz-wSB">
+                                            <connections>
+                                                <action selector="toggleAutoScale:" target="Ady-hI-5gd" id="Ka2-M4-yu1"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="ygm-2G-c8c">
+                                            <modifierMask key="keyEquivalentModifierMask" command="YES"/>
+                                        </menuItem>
+                                        <menuItem title="Actual Size" keyEquivalent="0" id="jee-iz-feR">
+                                            <connections>
+                                                <action selector="doZoomToActualSize:" target="Ady-hI-5gd" id="051-zi-UKh"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Physical Size" alternate="YES" keyEquivalent="0" id="9KX-LC-wdb">
+                                            <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
+                                            <connections>
+                                                <action selector="doZoomToPhysicalSize:" target="Ady-hI-5gd" id="d9V-T5-C9n"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Zoom To Fit" keyEquivalent="_" id="tu0-DY-mzp">
+                                            <connections>
+                                                <action selector="doZoomToFit:" target="Ady-hI-5gd" id="u0a-XX-FxY"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Zoom To Height" alternate="YES" keyEquivalent="_" id="jxZ-v8-esI">
+                                            <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
+                                            <connections>
+                                                <action selector="alternateZoomToFit:" target="Ady-hI-5gd" id="wWa-Hs-V6P"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Zoom In" keyEquivalent="+" id="ts8-Sf-Zdq">
+                                            <connections>
+                                                <action selector="doZoomIn:" target="Ady-hI-5gd" id="rL2-Kv-dag"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Zoom Out" keyEquivalent="-" id="tu1-Te-j5A">
+                                            <connections>
+                                                <action selector="doZoomOut:" target="Ady-hI-5gd" id="yt8-HR-r3T"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Marquee Zoom" keyEquivalent="*" id="y56-OI-zSN">
+                                            <connections>
+                                                <action selector="doMarqueeZoomTool:" target="Ady-hI-5gd" id="Dje-3O-pFf"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="irk-UQ-a2u"/>
+                                        <menuItem title="Highlight Form Fields" id="2je-5b-sd3">
+                                            <modifierMask key="keyEquivalentModifierMask"/>
+                                            <connections>
+                                                <action selector="highlightFormFiled:" target="Ady-hI-5gd" id="n7q-x9-iaB"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Highlight Links" id="rZJ-KC-7Jn">
+                                            <modifierMask key="keyEquivalentModifierMask"/>
+                                            <connections>
+                                                <action selector="highlightLinks:" target="Ady-hI-5gd" id="rIr-tA-0B6"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="qsu-YU-4kj"/>
+                                        <menuItem title="Reset Form" id="exk-ad-zcd">
+                                            <modifierMask key="keyEquivalentModifierMask"/>
+                                            <connections>
+                                                <action selector="resetForm:" target="Ady-hI-5gd" id="pqh-vq-DTS"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Remove All Annotations" id="gI5-MG-9TJ">
+                                            <modifierMask key="keyEquivalentModifierMask"/>
+                                            <connections>
+                                                <action selector="removeAllAnnotation:" target="Ady-hI-5gd" id="EkE-LB-pH2"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="Wde-Db-BAZ">
+                                            <modifierMask key="keyEquivalentModifierMask" command="YES"/>
+                                        </menuItem>
+                                        <menuItem title="Use Current View Settings as Default" id="Q3b-hb-lsb">
+                                            <connections>
+                                                <action selector="savePDFSettingToDefaults:" target="Ady-hI-5gd" id="NQc-dA-5f7"/>
+                                            </connections>
+                                        </menuItem>
+                                    </items>
+                                </menu>
+                            </menuItem>
                             <menuItem title="Go" id="E9X-mT-6qJ">
                                 <modifierMask key="keyEquivalentModifierMask"/>
                                 <menu key="submenu" title="Go" id="GTp-Ac-vi8">

+ 358 - 1
PDF Office/PDF Master/Class/ChromiumTabs/KMBrowserWindowController.swift

@@ -569,7 +569,7 @@ extension KMBrowserWindowController {
     }
     
     @IBAction func searchPDF(_ sender: Any?) {
-        KMPrint("deselectAll")
+        KMPrint("searchPDF")
     }
     
     @IBAction func notesLink(_ sender: Any?) {
@@ -640,6 +640,363 @@ extension KMBrowserWindowController {
     @IBAction func toggleToolbarShow(_ sender: Any?) {
         KMPrint("toggleToolbarShow ...")
     }
+    
+    @IBAction func changeDisplayMode(_ sender: Any?) {
+        KMPrint("changeDisplayMode ...")
+    }
+    
+    @IBAction func toggleDisplayAsBook(_ sender: Any?) {
+        KMPrint("toggleDisplayAsBook ...")
+    }
+    
+    @IBAction func toggleDisplayPageBreaks(_ sender: Any?) {
+        KMPrint("toggleDisplayPageBreaks ...")
+    }
+    
+    @IBAction func changeDisplayBox(_ sender: Any?) {
+        KMPrint("changeDisplayBox ...")
+    }
+    
+    @IBAction func changeColor(_ sender: Any?) {
+        KMPrint("changeColor ...")
+    }
+    
+    @IBAction func changeFont(_ sender: Any?) {
+        KMPrint("changeFont ...")
+    }
+    
+    @IBAction func changeAttributes(_ sender: Any?) {
+        KMPrint("changeAttributes ...")
+    }
+    
+    @IBAction func alignLeft(_ sender: Any?) {
+        KMPrint("alignLeft ...")
+    }
+    
+    @IBAction func alignRight(_ sender: Any?) {
+        KMPrint("alignRight ...")
+    }
+    
+    @IBAction func alignCenter(_ sender: Any?) {
+        KMPrint("alignCenter ...")
+    }
+    
+    @IBAction func createNewNote(_ sender: Any?) {
+        KMPrint("createNewNote ...")
+    }
+    
+    @IBAction func toggleHideNotes(_ sender: Any?) {
+        KMPrint("toggleHideNotes ...")
+    }
+    
+    @IBAction func takeSnapshot(_ sender: Any?) {
+        KMPrint("takeSnapshot ...")
+    }
+    
+    @IBAction func takeSnapshotSelectContent(_ sender: Any?) {
+        KMPrint("takeSnapshotSelectContent ...")
+    }
+    
+    @IBAction func changeDisplaySinglePages(_ sender: Any?) {
+        KMPrint("changeDisplaySinglePages ...")
+    }
+    
+    @IBAction func changeDisplayContinuous(_ sender: Any?) {
+        KMPrint("changeDisplayContinuous ...")
+    }
+    
+    @IBAction func doGoToNextPage(_ sender: Any?) {
+        KMPrint("doGoToNextPage ...")
+    }
+    
+    @IBAction func doGoToPreviousPage(_ sender: Any?) {
+        KMPrint("doGoToPreviousPage ...")
+    }
+    
+    @IBAction func doGoToFirstPage(_ sender: Any?) {
+        KMPrint("doGoToFirstPage ...")
+    }
+    
+    @IBAction func doGoToLastPage(_ sender: Any?) {
+        KMPrint("doGoToLastPage ...")
+    }
+    
+    @IBAction func allGoToNextPage(_ sender: Any?) {
+        KMPrint("allGoToNextPage ...")
+    }
+    
+    @IBAction func allGoToPreviousPage(_ sender: Any?) {
+        KMPrint("allGoToPreviousPage ...")
+    }
+    
+    @IBAction func allGoToFirstPage(_ sender: Any?) {
+        KMPrint("allGoToFirstPage ...")
+    }
+
+    @IBAction func allGoToLastPage(_ sender: Any?) {
+        KMPrint("allGoToLastPage ...")
+    }
+    
+    @IBAction func doGoToPage(_ sender: Any?) {
+        KMPrint("doGoToPage ...")
+    }
+    
+    @IBAction func doGoBack(_ sender: Any?) {
+        KMPrint("doGoBack ...")
+    }
+    @IBAction func doGoForward(_ sender: Any?) {
+        KMPrint("doGoForward ...")
+    }
+    @IBAction func goToMarkedPage(_ sender: Any?) {
+        KMPrint("goToMarkedPage ...")
+    }
+    @IBAction func markPage(_ sender: Any?) {
+        KMPrint("markPage ...")
+    }
+    @IBAction func doZoomIn(_ sender: Any?) {
+        KMPrint("doZoomIn ...")
+    }
+    @IBAction func doZoomOut(_ sender: Any?) {
+        KMPrint("doZoomOut ...")
+    }
+    @IBAction func doZoomToActualSize(_ sender: Any?) {
+        KMPrint("doZoomToActualSize ...")
+    }
+    @IBAction func doZoomToPhysicalSize(_ sender: Any?) {
+        KMPrint("doZoomToPhysicalSize ...")
+    }
+    @IBAction func doZoomToFit(_ sender: Any?) {
+        KMPrint("doZoomToFit ...")
+    }
+    @IBAction func alternateZoomToFit(_ sender: Any?) {
+        KMPrint("alternateZoomToFit ...")
+    }
+    @IBAction func doZoomToSelection(_ sender: Any?) {
+        KMPrint("doZoomToSelection ...")
+    }
+    @IBAction func doMarqueeZoomTool(_ sender: Any?) {
+        KMPrint("doMarqueeZoomTool ...")
+    }
+    @IBAction func doAutoScale(_ sender: Any?) {
+        KMPrint("doAutoScale ...")
+    }
+    @IBAction func toggleAutoScale(_ sender: Any?) {
+        KMPrint("toggleAutoScale ...")
+    }
+    @IBAction func rotateRight(_ sender: Any?) {
+        KMPrint("rotateRight ...")
+    }
+    @IBAction func rotateLeft(_ sender: Any?) {
+        KMPrint("rotateLeft ...")
+    }
+    @IBAction func rotateAllRight(_ sender: Any?) {
+        KMPrint("rotateAllRight ...")
+    }
+    @IBAction func rotateAllLeft(_ sender: Any?) {
+        KMPrint("rotateAllLeft ...")
+    }
+    @IBAction func crop(_ sender: Any?) {
+        KMPrint("crop ...")
+    }
+    @IBAction func cropAll(_ sender: Any?) {
+        KMPrint("cropAll ...")
+    }
+    @IBAction func autoCropAll(_ sender: Any?) {
+        KMPrint("autoCropAll ...")
+    }
+    @IBAction func smartAutoCropAll(_ sender: Any?) {
+        KMPrint("smartAutoCropAll ...")
+    }
+    @IBAction func cropOptionsModel(_ sender: Any?) {
+        KMPrint("cropOptionsModel ...")
+    }
+    @IBAction func autoSelectContent(_ sender: Any?) {
+        KMPrint("autoSelectContent ...")
+    }
+    @IBAction func getInfo(_ sender: Any?) {
+        KMPrint("getInfo ...")
+    }
+//    @IBAction func delete(_ sender: Any?) {
+//        KMPrint("delete ...")
+//    }
+//    @IBAction func paste(_ sender: Any?) {
+//        KMPrint("paste ...")
+//    }
+    @IBAction func alternatePaste(_ sender: Any?) {
+        KMPrint("alternatePaste ...")
+    }
+    @IBAction func copy(_ sender: Any?) {
+        KMPrint("copy ...")
+    }
+    @IBAction func cut(_ sender: Any?) {
+        KMPrint("cut ...")
+    }
+    @IBAction func changeToolMode(_ sender: Any?) {
+        KMPrint("changeToolMode ...")
+    }
+    @IBAction func changeAnnotationMode(_ sender: Any?) {
+        KMPrint("changeAnnotationMode ...")
+    }
+    @IBAction func toggleFullscreen(_ sender: Any?) {
+        KMPrint("toggleFullscreen ...")
+    }
+    @IBAction func toggleRightSidePane(_ sender: Any?) {
+        KMPrint("toggleRightSidePane ...")
+    }
+    @IBAction func performFit(_ sender: Any?) {
+        KMPrint("performFit ...")
+    }
+    @IBAction func changeRightSidePaneState(_ sender: Any?) {
+        KMPrint("changeRightSidePaneState ...")
+    }
+    @IBAction func changeFindPaneState(_ sender: Any?) {
+        KMPrint("changeFindPaneState ...")
+    }
+    @IBAction func toggleSplitPDF(_ sender: Any?) {
+        KMPrint("toggleSplitPDF ...")
+    }
+    @IBAction func search(_ sender: Any?) {
+        KMPrint("search ...")
+    }
+    @IBAction func searchNotes(_ sender: Any?) {
+        KMPrint("searchNotes ...")
+    }
+    @IBAction func password(_ sender: Any?) {
+        KMPrint("password ...")
+    }
+    @IBAction func savePDFSettingToDefaults(_ sender: Any?) {
+        KMPrint("savePDFSettingToDefaults ...")
+    }
+    @IBAction func toggleCaseInsensitiveSearch(_ sender: Any?) {
+        KMPrint("toggleCaseInsensitiveSearch ...")
+    }
+    @IBAction func toggleWholeWordSearch(_ sender: Any?) {
+        KMPrint("toggleWholeWordSearch ...")
+    }
+    @IBAction func toggleCaseInsensitiveNoteSearch(_ sender: Any?) {
+        KMPrint("toggleCaseInsensitiveNoteSearch ...")
+    }
+    @IBAction func performFindPanelAction(_ sender: Any?) {
+        KMPrint("performFindPanelAction ...")
+    }
+    @IBAction func scrollUp(_ sender: Any?) {
+        KMPrint("scrollUp ...")
+    }
+    @IBAction func scrollDown(_ sender: Any?) {
+        KMPrint("scrollDown ...")
+    }
+    @IBAction func scrollRight(_ sender: Any?) {
+        KMPrint("scrollRight ...")
+    }
+    @IBAction func scrollLeft(_ sender: Any?) {
+        KMPrint("scrollLeft ...")
+    }
+    @IBAction func selectSelectedNote(_ sender: Any?) {
+        KMPrint("selectSelectedNote ...")
+    }
+    @IBAction func goToSelectedOutlineItem(_ sender: Any?) {
+        KMPrint("goToSelectedOutlineItem ...")
+    }
+    @IBAction func goToSelectedFindResults(_ sender: Any?) {
+        KMPrint("goToSelectedFindResults ...")
+    }
+    @IBAction func toggleSelectedSnapshots(_ sender: Any?) {
+        KMPrint("toggleSelectedSnapshots ...")
+    }
+    @IBAction func selfSignProfile(_ sender: Any?) {
+        KMPrint("selfSignProfile ...")
+    }
+    @IBAction func highlightFormFiled(_ sender: Any?) {
+        KMPrint("highlightFormFiled ...")
+    }
+    @IBAction func highlightLinks(_ sender: Any?) {
+        KMPrint("highlightLinks ...")
+    }
+    @IBAction func resetForm(_ sender: Any?) {
+        KMPrint("resetForm ...")
+    }
+    @IBAction func removeAllAnnotation(_ sender: Any?) {
+        KMPrint("removeAllAnnotation ...")
+    }
+    @IBAction func link(_ sender: Any?) {
+        KMPrint("link ...")
+    }
+    @IBAction func addWatermark(_ sender: Any?) {
+        KMPrint("addWatermark ...")
+    }
+    @IBAction func convert(_ sender: Any?) {
+        KMPrint("convert ...")
+    }
+    @IBAction func imageToPDF(_ sender: Any?) {
+        KMPrint("imageToPDF ...")
+    }
+    @IBAction func pageEdit(_ sender: Any?) {
+        KMPrint("pageEdit ...")
+    }
+    @IBAction func ocr(_ sender: Any?) {
+        KMPrint("ocr ...")
+    }
+    @IBAction func insertPage(_ sender: Any?) {
+        KMPrint("insertPage ...")
+    }
+    @IBAction func merge(_ sender: Any?) {
+        KMPrint("merge ...")
+    }
+    @IBAction func split(_ sender: Any?) {
+        KMPrint("split ...")
+    }
+    @IBAction func compression(_ sender: Any?) {
+        KMPrint("compression ...")
+    }
+    @IBAction func comparison(_ sender: Any?) {
+        KMPrint("comparison ...")
+    }
+    @IBAction func contentComparison(_ sender: Any?) {
+        KMPrint("contentComparison ...")
+    }
+    @IBAction func coverageComparison(_ sender: Any?) {
+        KMPrint("coverageComparison ...")
+    }
+    @IBAction func extractImage(_ sender: Any?) {
+        KMPrint("extractImage ...")
+    }
+    @IBAction func security(_ sender: Any?) {
+        KMPrint("security ...")
+    }
+    @IBAction func addBackground(_ sender: Any?) {
+        KMPrint("addBackground ...")
+    }
+    @IBAction func removeBackground(_ sender: Any?) {
+        KMPrint("removeBackground ...")
+    }
+    @IBAction func addHeaderFooter(_ sender: Any?) {
+        KMPrint("addHeaderFooter ...")
+    }
+    @IBAction func removeHeaderFooter(_ sender: Any?) {
+        KMPrint("removeHeaderFooter ...")
+    }
+    @IBAction func addHeaderFooterBates(_ sender: Any?) {
+        KMPrint("addHeaderFooterBates ...")
+    }
+    @IBAction func removeHeaderFooterBates(_ sender: Any?) {
+        KMPrint("removeHeaderFooterBates ...")
+    }
+    @IBAction func editWatermark(_ sender: Any?) {
+        KMPrint("editWatermark ...")
+    }
+    @IBAction func batchAddWatermark(_ sender: Any?) {
+        KMPrint("batchAddWatermark ...")
+    }
+    @IBAction func batchRemoveWatermark(_ sender: Any?) {
+        KMPrint("batchRemoveWatermark ...")
+    }
+    @IBAction func removeWatermark(_ sender: Any?) {
+        KMPrint("removeWatermark ...")
+    }
+    @IBAction func templateWatermark(_ sender: Any?) {
+        KMPrint("templateWatermark ...")
+    }
+
 }
 
 // MARK: - KMSystemFileMenuProtocol