Browse Source

【2025】【综合】代码整理

niehaoyu 2 months ago
parent
commit
322d4462e0

+ 36 - 36
PDF Office/PDF Master/Class/PDFTools/Measure/Window/CAreaSettingWindowController.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -30,12 +30,12 @@
             <windowStyleMask key="styleMask" titled="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="454" y="556" width="520" height="360"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
             <view key="contentView" id="se5-gp-TjO">
                 <rect key="frame" x="0.0" y="0.0" width="520" height="360"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="pPT-mK-vMp">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="pPT-mK-vMp">
                         <rect key="frame" x="18" y="331" width="88" height="16"/>
                         <textFieldCell key="cell" lineBreakMode="truncatingTail" title="Custom Scale" id="lOo-oa-V7v">
                             <font key="font" metaFont="system"/>
@@ -43,7 +43,7 @@
                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dxd-2A-cCZ">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dxd-2A-cCZ">
                         <rect key="frame" x="18" y="303" width="244" height="16"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="240" id="LN5-JQ-EpJ"/>
@@ -54,7 +54,7 @@
                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                    <textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tAa-Te-jB3">
+                    <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tAa-Te-jB3">
                         <rect key="frame" x="20" y="277" width="96" height="21"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="96" id="Exl-7k-tny"/>
@@ -68,10 +68,6 @@
                     </textField>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="UpD-5M-EEE">
                         <rect key="frame" x="117" y="273" width="103" height="26"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="96" id="2RD-c3-cFC"/>
-                            <constraint firstAttribute="height" constant="21" id="LzT-ex-vTe"/>
-                        </constraints>
                         <popUpButtonCell key="cell" type="push" title="Item 3" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="IEx-yw-Syf" id="TPd-uq-pJU">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="menu"/>
@@ -83,11 +79,15 @@
                                 </items>
                             </menu>
                         </popUpButtonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="96" id="2RD-c3-cFC"/>
+                            <constraint firstAttribute="height" constant="21" id="LzT-ex-vTe"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Rulerbase:" target="-2" id="zXf-Pj-fvp"/>
                         </connections>
                     </popUpButton>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="xEh-uC-gir">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="xEh-uC-gir">
                         <rect key="frame" x="218" y="281" width="13" height="17"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="9" id="4I9-rL-6Q0"/>
@@ -99,7 +99,7 @@
                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                    <textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="NIg-vU-5gd">
+                    <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="NIg-vU-5gd">
                         <rect key="frame" x="233" y="277" width="96" height="21"/>
                         <constraints>
                             <constraint firstAttribute="height" constant="21" id="Elp-xj-HVV"/>
@@ -113,10 +113,6 @@
                     </textField>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="efk-5G-wt6">
                         <rect key="frame" x="330" y="273" width="103" height="26"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="21" id="Lba-UC-RrH"/>
-                            <constraint firstAttribute="width" constant="96" id="o0s-fw-rg0"/>
-                        </constraints>
                         <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="B1O-lN-fh4" id="1IT-KO-rsX">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="menu"/>
@@ -128,11 +124,15 @@
                                 </items>
                             </menu>
                         </popUpButtonCell>
+                        <constraints>
+                            <constraint firstAttribute="height" constant="21" id="Lba-UC-RrH"/>
+                            <constraint firstAttribute="width" constant="96" id="o0s-fw-rg0"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Rulertranslate:" target="-2" id="HPi-68-deg"/>
                         </connections>
                     </popUpButton>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="THd-HJ-MA7">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="THd-HJ-MA7">
                         <rect key="frame" x="18" y="249" width="84" height="16"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="80" id="BZv-wa-vdj"/>
@@ -145,9 +145,6 @@
                     </textField>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="P3V-RB-m4R">
                         <rect key="frame" x="17" y="220" width="103" height="25"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="96" id="bWd-nH-qaa"/>
-                        </constraints>
                         <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="Lnx-vy-Klz" id="wYb-Uo-FFC">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="menu"/>
@@ -159,6 +156,9 @@
                                 </items>
                             </menu>
                         </popUpButtonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="96" id="bWd-nH-qaa"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Precision:" target="-2" id="TEe-VC-47Z"/>
                         </connections>
@@ -169,7 +169,7 @@
                             <constraint firstAttribute="height" constant="1" id="ize-HX-jXH"/>
                         </constraints>
                     </box>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MlC-Vf-CNK">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="MlC-Vf-CNK">
                         <rect key="frame" x="18" y="185" width="94" height="16"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="90" id="bdy-2J-Kl1"/>
@@ -182,36 +182,32 @@
                     </textField>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="jTl-ke-b1S">
                         <rect key="frame" x="18" y="156" width="66" height="18"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="64" id="vY4-YM-zWc"/>
-                        </constraints>
                         <buttonCell key="cell" type="check" title="Length" bezelStyle="regularSquare" imagePosition="left" inset="2" id="1NU-1l-znB">
                             <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                             <font key="font" metaFont="system"/>
                         </buttonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="64" id="vY4-YM-zWc"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Length:" target="-2" id="h4o-b1-ciO"/>
                         </connections>
                     </button>
-                    <button verticalHuggingPriority="750" tag="1" translatesAutoresizingMaskIntoConstraints="NO" id="dYV-qw-kD8">
+                    <button tag="1" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dYV-qw-kD8">
                         <rect key="frame" x="18" y="128" width="66" height="18"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="64" id="BUq-Vd-Nz1"/>
-                        </constraints>
                         <buttonCell key="cell" type="check" title="Area" bezelStyle="regularSquare" imagePosition="left" inset="2" id="SsQ-Ui-1ZF">
                             <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                             <font key="font" metaFont="system"/>
                         </buttonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="64" id="BUq-Vd-Nz1"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Area:" target="-2" id="NZC-jy-8Pi"/>
                         </connections>
                     </button>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0St-WY-Hn5">
                         <rect key="frame" x="423" y="16" width="92" height="52"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="80" id="CHh-Mb-MVJ"/>
-                            <constraint firstAttribute="height" constant="40" id="Y7A-NX-dYl"/>
-                        </constraints>
                         <buttonCell key="cell" type="push" title="Done" bezelStyle="rounded" alignment="center" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PaA-Eu-oLf">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="system"/>
@@ -219,16 +215,16 @@
 DQ
 </string>
                         </buttonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="80" id="CHh-Mb-MVJ"/>
+                            <constraint firstAttribute="height" constant="40" id="Y7A-NX-dYl"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Done:" target="-2" id="uB2-TU-MmT"/>
                         </connections>
                     </button>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="eK4-Xp-4u5">
                         <rect key="frame" x="335" y="16" width="92" height="52"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="80" id="JY9-wV-SaI"/>
-                            <constraint firstAttribute="height" constant="40" id="L9L-zn-LIx"/>
-                        </constraints>
                         <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="rcQ-sm-fWx">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="system"/>
@@ -236,6 +232,10 @@ DQ
 Gw
 </string>
                         </buttonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="80" id="JY9-wV-SaI"/>
+                            <constraint firstAttribute="height" constant="40" id="L9L-zn-LIx"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Cancel:" target="-2" id="YhX-x5-d0S"/>
                         </connections>

+ 29 - 29
PDF Office/PDF Master/Class/PDFTools/Measure/Window/CDistanceSettingWindowController.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -27,12 +27,12 @@
             <windowStyleMask key="styleMask" titled="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="532" y="664" width="520" height="280"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1512" height="944"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
             <view key="contentView" misplaced="YES" id="se5-gp-TjO">
                 <rect key="frame" x="0.0" y="0.0" width="520" height="280"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="h9T-Pd-UEN">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="h9T-Pd-UEN">
                         <rect key="frame" x="18" y="214" width="124" height="16"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="120" id="AGF-7q-apH"/>
@@ -43,7 +43,7 @@
                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                    <textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="NYx-KX-5nc">
+                    <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="NYx-KX-5nc">
                         <rect key="frame" x="20" y="160" width="96" height="21"/>
                         <constraints>
                             <constraint firstAttribute="height" constant="21" id="I8J-EV-9Ki"/>
@@ -55,7 +55,7 @@
                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ifc-1X-uWI">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ifc-1X-uWI">
                         <rect key="frame" x="18" y="186" width="244" height="16"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="240" id="W4q-cc-8q7"/>
@@ -68,10 +68,6 @@
                     </textField>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Hfp-Ed-1Rd">
                         <rect key="frame" x="117" y="156" width="103" height="26"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="96" id="iB1-nY-Fkr"/>
-                            <constraint firstAttribute="height" constant="21" id="lWZ-nE-bUn"/>
-                        </constraints>
                         <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="g7D-v3-mZB" id="uio-Bj-abC">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="menu"/>
@@ -83,11 +79,15 @@
                                 </items>
                             </menu>
                         </popUpButtonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="96" id="iB1-nY-Fkr"/>
+                            <constraint firstAttribute="height" constant="21" id="lWZ-nE-bUn"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Rulerbase:" target="-2" id="Imf-jy-Bjr"/>
                         </connections>
                     </popUpButton>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hSH-Ae-f5L">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hSH-Ae-f5L">
                         <rect key="frame" x="218" y="164" width="13" height="17"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="9" id="18v-K9-L2B"/>
@@ -99,7 +99,7 @@
                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                    <textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zar-Su-mMY">
+                    <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zar-Su-mMY">
                         <rect key="frame" x="233" y="162" width="96" height="21"/>
                         <constraints>
                             <constraint firstAttribute="width" constant="96" id="MvG-eZ-SW9"/>
@@ -113,10 +113,6 @@
                     </textField>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="X7J-Io-mk3">
                         <rect key="frame" x="330" y="158" width="103" height="26"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="96" id="YVV-uc-2Cg"/>
-                            <constraint firstAttribute="height" constant="21" id="udS-qv-jxV"/>
-                        </constraints>
                         <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="Trm-KH-Lc4" id="ao6-O7-r0g">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="menu"/>
@@ -128,11 +124,15 @@
                                 </items>
                             </menu>
                         </popUpButtonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="96" id="YVV-uc-2Cg"/>
+                            <constraint firstAttribute="height" constant="21" id="udS-qv-jxV"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Rulertranslate:" target="-2" id="Z1c-fD-SZM"/>
                         </connections>
                     </popUpButton>
-                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dgV-rp-Kc2">
+                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dgV-rp-Kc2">
                         <rect key="frame" x="18" y="132" width="107" height="16"/>
                         <textFieldCell key="cell" lineBreakMode="clipping" title="Precision Setting" id="diY-LZ-tRy">
                             <font key="font" metaFont="system"/>
@@ -142,10 +142,6 @@
                     </textField>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="vYM-aM-foH">
                         <rect key="frame" x="17" y="102" width="103" height="26"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="96" id="1sb-BY-AzL"/>
-                            <constraint firstAttribute="height" constant="21" id="caY-60-dKM"/>
-                        </constraints>
                         <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="bo5-QF-n4T" id="QBP-F9-7EV">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="menu"/>
@@ -157,16 +153,16 @@
                                 </items>
                             </menu>
                         </popUpButtonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="96" id="1sb-BY-AzL"/>
+                            <constraint firstAttribute="height" constant="21" id="caY-60-dKM"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Precision:" target="-2" id="T79-uG-oIh"/>
                         </connections>
                     </popUpButton>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cJq-ui-HiL">
                         <rect key="frame" x="335" y="16" width="92" height="52"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="80" id="M9i-bX-p6z"/>
-                            <constraint firstAttribute="height" constant="40" id="mIb-FM-gdg"/>
-                        </constraints>
                         <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="avT-PE-okH">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="system"/>
@@ -174,16 +170,16 @@
 Gw
 </string>
                         </buttonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="80" id="M9i-bX-p6z"/>
+                            <constraint firstAttribute="height" constant="40" id="mIb-FM-gdg"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Cancel:" target="-2" id="URn-WW-cIy"/>
                         </connections>
                     </button>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="EVQ-Zh-Ylt">
                         <rect key="frame" x="423" y="16" width="92" height="52"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="80" id="gEu-dD-bBb"/>
-                            <constraint firstAttribute="height" constant="40" id="yoL-uy-CwJ"/>
-                        </constraints>
                         <buttonCell key="cell" type="push" title="Done" bezelStyle="rounded" alignment="center" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ZLg-3n-eRK">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="system"/>
@@ -191,6 +187,10 @@ Gw
 DQ
 </string>
                         </buttonCell>
+                        <constraints>
+                            <constraint firstAttribute="width" constant="80" id="gEu-dD-bBb"/>
+                            <constraint firstAttribute="height" constant="40" id="yoL-uy-CwJ"/>
+                        </constraints>
                         <connections>
                             <action selector="buttonItemClick_Done:" target="-2" id="aKK-gr-Lfq"/>
                         </connections>

+ 0 - 64
PDF Office/PDF Master/Class/PDFTools/Secure/Controller/KMRemovePasswordAlertWindowController.swift

@@ -1,64 +0,0 @@
-//
-//  KMRemovePasswordAlertWindowController.swift
-//  PDF Reader Pro
-//
-//  Created by tangchao on 2022/11/29.
-//
-
-import Cocoa
-
-typealias KMRemovePasswordAlertWindowControllerItemClick = (Int) -> ()
-class KMRemovePasswordAlertWindowController: NSWindowController {
-
-    @IBOutlet weak var titleLabel: NSTextField!
-    
-    @IBOutlet weak var cancelButton: NSButton!
-    @IBOutlet weak var confirmButton: NSButton!
-    
-    var itemClick: KMRemovePasswordAlertWindowControllerItemClick!
-    
-    override func windowDidLoad() {
-        super.windowDidLoad()
-
-        titleLabel.stringValue = NSLocalizedString("Are you sure you want to remove the security settings for the file?", comment: "")
-        titleLabel.font = NSFont.boldSystemFont(ofSize: 16)
-        let style = NSMutableParagraphStyle()
-        style.lineSpacing = 6
-        style.alignment = .center
-        titleLabel.attributedStringValue = NSAttributedString.init(string: titleLabel.stringValue, attributes: [.font : NSFont.boldSystemFont(ofSize: 16),.paragraphStyle : style])
-        
-        for button in [cancelButton, confirmButton] {
-            button?.wantsLayer = true
-            button?.layer?.borderWidth = 1
-            button?.layer?.borderColor = NSColor.black.cgColor
-            button?.layer?.cornerRadius = 4
-            
-            button!.target = self
-            if ((button?.isEqual(to: cancelButton))!) {
-                button?.title = NSLocalizedString("Cancel", comment: "")
-                button?.action = #selector(cancelButtonAction)
-            } else {
-                button?.title = NSLocalizedString("Delete", comment: "")
-                button?.layer?.backgroundColor = NSColor.black.cgColor
-                button?.attributedTitle = NSMutableAttributedString(string: button!.title, attributes: [.foregroundColor : NSColor.white])
-                button?.action = #selector(confirmButtonAction)
-            }
-        }
-    }
-    
-    @objc func cancelButtonAction() {
-        guard let callback = itemClick else {
-            return
-        }
-        
-        callback(1)
-    }
-    
-    @objc func confirmButtonAction() {
-        guard let callback = itemClick else {
-            return
-        }
-        
-        callback(2)
-    }
-}

+ 0 - 97
PDF Office/PDF Master/Class/PDFTools/Secure/Controller/KMRemovePasswordAlertWindowController.xib

@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMRemovePasswordAlertWindowController" customModule="PDF_Master" customModuleProvider="target">
-            <connections>
-                <outlet property="cancelButton" destination="QRG-T6-oeQ" id="u2h-Nx-fq8"/>
-                <outlet property="confirmButton" destination="tSV-Qz-dkQ" id="iHE-vw-yyX"/>
-                <outlet property="titleLabel" destination="YOX-X4-aDm" id="hfF-OW-Y7c"/>
-                <outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
-            <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
-            <rect key="contentRect" x="196" y="240" width="260" height="270"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
-            <value key="minSize" type="size" width="260" height="270"/>
-            <value key="maxSize" type="size" width="260" height="270"/>
-            <view key="contentView" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="260" height="141"/>
-                <autoresizingMask key="autoresizingMask"/>
-                <subviews>
-                    <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="YOX-X4-aDm">
-                        <rect key="frame" x="38" y="91" width="184" height="16"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="180" id="Cqc-4h-EIJ"/>
-                        </constraints>
-                        <textFieldCell key="cell" selectable="YES" alignment="center" title="Multiline Label" id="wI5-Tk-Sg1">
-                            <font key="font" usesAppearanceFont="YES"/>
-                            <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                            <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                    <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="Ujc-cf-Tdi" userLabel="bottomBarBox">
-                        <rect key="frame" x="0.0" y="0.0" width="260" height="60"/>
-                        <view key="contentView" id="nP8-Rp-ALs">
-                            <rect key="frame" x="0.0" y="0.0" width="260" height="60"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="QRG-T6-oeQ">
-                                    <rect key="frame" x="62" y="25" width="60" height="30"/>
-                                    <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="T2I-An-iOa">
-                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="30" id="ZcI-4a-3mW"/>
-                                        <constraint firstAttribute="width" constant="60" id="cfC-Re-iaY"/>
-                                    </constraints>
-                                </button>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tSV-Qz-dkQ">
-                                    <rect key="frame" x="138" y="25" width="60" height="30"/>
-                                    <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="mwI-g8-Olc">
-                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="60" id="Amd-Go-ThU"/>
-                                        <constraint firstAttribute="height" constant="30" id="Brz-ZU-ukI"/>
-                                    </constraints>
-                                </button>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="QRG-T6-oeQ" firstAttribute="top" secondItem="nP8-Rp-ALs" secondAttribute="top" constant="5" id="QA4-zA-waw"/>
-                                <constraint firstItem="tSV-Qz-dkQ" firstAttribute="centerX" secondItem="nP8-Rp-ALs" secondAttribute="centerX" constant="38" id="Sul-Kw-7pA"/>
-                                <constraint firstItem="tSV-Qz-dkQ" firstAttribute="top" secondItem="nP8-Rp-ALs" secondAttribute="top" constant="5" id="ZFW-Gx-phN"/>
-                                <constraint firstItem="QRG-T6-oeQ" firstAttribute="centerX" secondItem="nP8-Rp-ALs" secondAttribute="centerX" constant="-38" id="waI-wP-KRl"/>
-                            </constraints>
-                        </view>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="60" id="Als-JE-nDR"/>
-                        </constraints>
-                    </box>
-                </subviews>
-                <constraints>
-                    <constraint firstItem="Ujc-cf-Tdi" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" id="ElG-5x-Ufx"/>
-                    <constraint firstItem="YOX-X4-aDm" firstAttribute="centerX" secondItem="se5-gp-TjO" secondAttribute="centerX" id="HzT-2d-feU"/>
-                    <constraint firstAttribute="trailing" secondItem="Ujc-cf-Tdi" secondAttribute="trailing" id="QAp-Au-Phf"/>
-                    <constraint firstItem="YOX-X4-aDm" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="34" id="bfg-rr-WhP"/>
-                    <constraint firstItem="Ujc-cf-Tdi" firstAttribute="firstBaseline" secondItem="YOX-X4-aDm" secondAttribute="baseline" constant="34" id="bg0-3W-5Bx"/>
-                    <constraint firstAttribute="bottom" secondItem="Ujc-cf-Tdi" secondAttribute="bottom" id="sDg-Oe-ObK"/>
-                </constraints>
-            </view>
-            <connections>
-                <outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
-            </connections>
-            <point key="canvasLocation" x="139" y="144"/>
-        </window>
-    </objects>
-</document>

+ 0 - 429
PDF Office/PDF Master/Class/PDFTools/Secure/Controller/KMSecureEncryptWindowController.swift

@@ -1,429 +0,0 @@
-//
-//  KMSecureEncryptWindowController.swift
-//  PDF Reader Pro
-//
-//  Created by tangchao on 2022/11/28.
-//
-
-import Cocoa
-
-typealias KMSecureEncryptWindowControllerItemClick = (Int) -> ()
-typealias KMSecureEncryptWindowControllerResultCallback = (Bool) -> ()
-class KMSecureEncryptWindowController: NSWindowController {
-    @IBOutlet weak var titleLabel: NSTextField!
-    @IBOutlet weak var topLine: NSBox!
-    
-    @IBOutlet weak var tableView: NSTableView!
-    
-    @IBOutlet weak var bottomLine: NSBox!
-    @IBOutlet weak var batchEncryptButton: NSButton!
-    @IBOutlet weak var cancelBox: NSBox!
-    @IBOutlet weak var encryptBox: NSBox!
-    
-    var documentURL: URL!
-    var myDocument: CPDFDocument!
-    
-    var cancelVC: KMDesignButton!
-    var encryptVC: KMDesignButton!
-
-    private var model: KMSecureEncryptModel = KMSecureEncryptModel()
-    
-    var itemClick: KMSecureEncryptWindowControllerItemClick!
-    var resultCallback: KMSecureEncryptWindowControllerResultCallback!
-    
-    private var myOptions: [CPDFDocumentWriteOption : Any]?
-    var options: [CPDFDocumentWriteOption : Any]? {
-        get {
-            return myOptions
-        }
-    }
-    
-    var canEncrypt: Bool = true
-    
-    deinit {
-        KMPrint("KMSecureEncryptWindowController 已释放了")
-    }
-    
-    override func windowDidLoad() {
-        super.windowDidLoad()
-//        self.window?.appearance = NSAppearance(named: .aqua)
-        
-        cancelVC = KMDesignButton.init(withType: .Text)
-        encryptVC = KMDesignButton.init(withType: .Text)
-        cancelBox.fillColor = .clear
-        cancelBox.contentView = cancelVC.view
-        encryptBox.fillColor = .clear
-        encryptBox.contentView = encryptVC.view
-        
-        titleLabel.stringValue = NSLocalizedString("Set Passwords", comment: "")
-        self.topLine.isHidden = true
-        
-        tableView.delegate = self
-        tableView.dataSource = self
-        tableView.selectionHighlightStyle = .none
-        
-        self.bottomLine.isHidden = true
-        batchEncryptButton.title = NSLocalizedString("Batch", comment: "")
-        batchEncryptButton.isBordered = false
-        batchEncryptButton.wantsLayer = true
-        batchEncryptButton.layer?.borderWidth = 1
-        batchEncryptButton.layer?.cornerRadius = 4
-        batchEncryptButton.target = self
-        batchEncryptButton.action = #selector(batchEncryptButtonAction)
-        batchEncryptButton.isHidden = true
-        
-        cancelVC.target = self
-        cancelVC.action = #selector(cancelButtonAction)
-        cancelVC.stringValue = NSLocalizedString("Cancel", comment: "")
-  
-        self.cancelVC.button.keyEquivalent = KMKeyEquivalent.esc.string()
-
-        encryptVC.target = self
-        encryptVC.action = #selector(encryptButtonAction)
-        encryptVC.stringValue = NSLocalizedString("Encrypt", comment: "")
- 
-        self.encryptVC.button.keyEquivalent = KMKeyEquivalent.enter
-
-        updateEncryptButtonEnabledState()
-        
-        self.initUIProperty()
-    }
-    
-    private func initUIProperty() {
-        self.titleLabel.textColor = NSColor.km_init(hex: "#252629")
-        
-        self.batchEncryptButton.setTitleColor(color: NSColor.km_init(hex: "#252629"))
-//        self.batchEncryptButton.layer?.borderColor = NSColor.buttonBorderColor().cgColor
-    }
-    
-    @objc func batchEncryptButtonAction() {
-        guard let callback = itemClick else {
-            return
-        }
-        
-        callback(1)
-    }
-    
-    @objc func cancelButtonAction() {
-        guard let callback = itemClick else {
-            return
-        }
-        
-        callback(2)
-    }
-    
-    @objc func encryptButtonAction() {
-        if (!self.canEncrypt) {
-            return
-        }
-        
-        if (myDocument != nil) {
-            var options: [CPDFDocumentWriteOption : Any] = [:]
-            if model.openPasswordOn && model.ownerPasswordOn { ///  开启密码 & 权限密码
-                if (!model.openPassword.isEmpty) {
-                    options.updateValue(model.openPassword, forKey: .userPasswordOption)
-                }
-                
-                if (!model.ownerPassword.isEmpty) {
-                    options.updateValue(model.ownerPassword, forKey: .ownerPasswordOption)
-                }
-                
-                /// 允许打印
-                if model.printEnabled {
-                    if model.printAllowed == false {
-                        options.updateValue(false, forKey: .allowsPrintingOption)
-                    } else {
-                        options.updateValue(true, forKey: .allowsPrintingOption)
-                        if model.printSelectedIndex == 2 {
-                            options.updateValue(true, forKey: .allowsHighQualityPrintingOption)
-                        }
-                    }
-                }
-                
-                /// 允许更改
-                if model.editEnabled {
-                    if model.editSelectedIndex == 1 {
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsDocumentAssemblyOption)
-                    } else if model.editSelectedIndex == 2 {
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsFormFieldEntryOption)
-                    } else if model.editSelectedIndex == 3 {
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsFormFieldEntryOption)
-                        options.updateValue(true, forKey: .allowsCommentingOption)
-                    } else if model.editAllowed == true {
-                        options.updateValue(true, forKey: .allowsCopyingOption)
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsDocumentAssemblyOption)
-                        options.updateValue(true, forKey: .allowsCommentingOption)
-                        options.updateValue(true, forKey: .allowsFormFieldEntryOption)
-                    } else {
-                        options.updateValue(false, forKey: .allowsCopyingOption)
-                    }
-                }
-                
-                /// 加密层级 sdk 缺接口
-            } else if model.openPasswordOn { /// 开启密码
-                if (!model.openPassword.isEmpty) {
-                    options.updateValue(model.openPassword, forKey: .userPasswordOption)
-                }
-                
-                /// 加密层级 sdk 缺接口
-            } else if model.ownerPasswordOn { /// 权限密码
-                if (!model.ownerPassword.isEmpty) {
-                    options.updateValue(model.ownerPassword, forKey: .ownerPasswordOption)
-                }
-                
-                /// 允许打印
-                if model.printEnabled {
-                    if model.printAllowed == false {
-                        options.updateValue(false, forKey: .allowsPrintingOption)
-                    } else {
-                        options.updateValue(true, forKey: .allowsPrintingOption)
-                        if model.printSelectedIndex == 2 {
-                            options.updateValue(true, forKey: .allowsHighQualityPrintingOption)
-                        }
-                    }
-                }
-                
-                /// 允许更改
-                if model.editEnabled {
-                    if model.editSelectedIndex == 1 {
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsDocumentAssemblyOption)
-                    } else if model.editSelectedIndex == 2 {
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsFormFieldEntryOption)
-                    } else if model.editSelectedIndex == 3 {
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsFormFieldEntryOption)
-                        options.updateValue(true, forKey: .allowsCommentingOption)
-                    } else if model.editAllowed == true {
-                        options.updateValue(true, forKey: .allowsCopyingOption)
-                        options.updateValue(true, forKey: .allowsDocumentChangesOption)
-                        options.updateValue(true, forKey: .allowsDocumentAssemblyOption)
-                        options.updateValue(true, forKey: .allowsCommentingOption)
-                        options.updateValue(true, forKey: .allowsFormFieldEntryOption)
-                    } else {
-                        options.updateValue(false, forKey: .allowsCopyingOption)
-                    }
-                }
-                
-                /// 加密层级 sdk 缺接口
-            }
-
-//            let result = myDocument.write(to: documentURL, withOptions: options)
-//            myDocument.setPasswordOptions(options)
-            self.myOptions = options
-            
-            guard let callback = resultCallback else {
-                return
-            }
-            
-            callback(true)
-        }
-    }
-    
-    func updateEncryptButtonEnabledState() {
-        var enabled = false
-        if model.openPasswordOn {
-            if !model.openPassword.isEmpty {
-                enabled = true
-            }
-        }
-        
-        if !enabled {
-            if model.ownerPasswordOn {
-                if !model.ownerPassword.isEmpty && (!model.printAllowed || !model.editAllowed) {
-                    enabled = true
-                }
-            }
-        } else {
-            if model.ownerPasswordOn {
-                if !model.ownerPassword.isEmpty && (!model.printAllowed || !model.editAllowed) {
-                    
-                } else {
-                    enabled = false
-                }
-            }
-        }
-        
-        self.canEncrypt = enabled
-        if enabled {
-            encryptVC.state = .Norm
-        } else {
-            encryptVC.state = .Disabled
-        }
-    }
-}
-
-extension KMSecureEncryptWindowController: NSTableViewDataSource {
-    func numberOfRows(in tableView: NSTableView) -> Int {
-        return 5
-    }
-    
-    func tableView(_ tableView: NSTableView, heightOfRow row: Int) -> CGFloat {
-        if (row == 0) {
-            return 0.01
-        } else if (row == 1) { // 6 + 22 + 10 + 32
-            return 70
-        } else if (row == 2) { // 6 + 22 + 10 + 32
-            return 70
-        }
-        // 22 + 8
-        return 30
-    }
-}
-
-extension KMSecureEncryptWindowController: NSTableViewDelegate {
-    func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
-        if row == 1 {
-            var cellView = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("CellID"), owner: self)
-            
-            if cellView == nil {
-                cellView = KMSecureEncryptPasswordCellView()
-            }
-            
-            let myCellView: KMSecureEncryptPasswordCellView = cellView! as! KMSecureEncryptPasswordCellView
-            myCellView.checkBox.title = NSLocalizedString("Document Open Password", comment: "")
-            myCellView.checkBox.setTitleColor(color: NSColor.km_init(hex: "#252629"))
-            myCellView.setPlaceholderString(NSLocalizedString("Open Password", comment: ""))
-            if model.openPasswordOn {
-                myCellView.checkBox.state = .on
-            } else {
-                myCellView.checkBox.state = .off
-            }
-            
-            myCellView.itemClick = { [unowned self] itemView, _ in
-                self.model.openPasswordOn = itemView!.kmEnabled
-                self.updateEncryptButtonEnabledState()
-            }
-            
-            myCellView.valueChange = { [unowned self] string,_ in
-                if let value = (string as? String) {
-                    self.model.openPassword = value
-                }
-                
-                self.updateEncryptButtonEnabledState()
-            }
-            
-            return cellView
-        } else if row == 2 {
-            var cellView = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("CellID"), owner: self)
-            
-            if cellView == nil {
-                cellView = KMSecureEncryptPasswordCellView()
-            }
-            
-            let myCellView: KMSecureEncryptPasswordCellView = cellView! as! KMSecureEncryptPasswordCellView
-            myCellView.checkBox.title = NSLocalizedString("Document Permission Password", comment: "")
-            myCellView.checkBox.setTitleColor(color: NSColor.km_init(hex: "#252629"))
-            myCellView.setPlaceholderString(NSLocalizedString("Permission Password", comment: ""))
-            
-            if model.ownerPasswordOn {
-                myCellView.checkBox.state = .on
-            } else {
-                myCellView.checkBox.state = .off
-            }
-            
-            myCellView.itemClick = { [unowned self] itemView, _ in
-                if (itemView!.kmEnabled) {
-                    self.model.ownerPasswordOn = true
-                    self.model.printEnabled = true
-                    self.model.editEnabled = true
-                    self.model.printAllowed = false
-                    self.model.editAllowed = false
-                } else {
-                    self.model.ownerPasswordOn = false
-                    self.model.printEnabled = false
-                    self.model.editEnabled = false
-                    self.model.printAllowed = true
-                    self.model.editAllowed = true
-                }
-                
-                self.updateEncryptButtonEnabledState()
-                self.tableView.reloadData(forRowIndexes: IndexSet.init(arrayLiteral: 3, 4), columnIndexes: IndexSet.init(integer: 0))
-            }
-            
-            myCellView.valueChange = { [unowned self] string, _ in
-                if let value = (string as? String) {
-                    self.model.ownerPassword = value
-                }
-                
-                self.updateEncryptButtonEnabledState()
-            }
-            
-            return cellView
-        } else if row == 3 {
-            var cellView = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("CellID"), owner: self)
-            
-            if cellView == nil {
-                cellView = KMSecureEncryptCheckCellView()
-            }
-            
-            let myCellView: KMSecureEncryptCheckCellView = cellView! as! KMSecureEncryptCheckCellView
-            myCellView.check?.title = NSLocalizedString("Restrict document printing", comment: "")
-            myCellView.kmEnabled = model.printEnabled
-            if (self.model.printAllowed) {
-                myCellView.check?.state = .off
-            } else {
-                myCellView.check?.state = .on
-            }
-            
-            myCellView.itemClick = { [unowned self] result in
-                self.model.printAllowed = !result
-                self.updateEncryptButtonEnabledState()
-            }
-            
-            return cellView
-        } else if row == 4 {
-            var cellView = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("CellID"), owner: self)
-            
-            if cellView == nil {
-                cellView = KMSecureEncryptCheckCellView()
-            }
-            
-            let myCellView: KMSecureEncryptCheckCellView = cellView! as! KMSecureEncryptCheckCellView
-            myCellView.check?.title = NSLocalizedString("Restrict content copying", comment: "")
-            myCellView.kmEnabled = model.editEnabled
-            if (self.model.editAllowed) {
-                myCellView.check?.state = .off
-            } else {
-                myCellView.check?.state = .on
-            }
-            
-            myCellView.itemClick = { [unowned self] result in
-                self.model.editAllowed = !result
-                self.updateEncryptButtonEnabledState()
-            }
-            
-            return cellView
-        } else if row == 5 {
-            var cellView = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("CellID"), owner: self)
-            
-            if cellView == nil {
-                cellView = KMSecureEncryptComboBoxCellView()
-            }
-            
-            let myCellView: KMSecureEncryptComboBoxCellView = cellView! as! KMSecureEncryptComboBoxCellView
-            myCellView.titleLabel.stringValue = NSLocalizedString("加密级别", comment: "")
-            myCellView.comboBox.removeAllItems()
-            myCellView.comboBox.addItems(withObjectValues: model.encryptLevetArray)
-            myCellView.comboBox.selectItem(at: model.editSelectedIndex)
-            
-            myCellView.itemClick = { [unowned self] _, index in
-                self.model.encryptLevelSelectedIndex = index
-            }
-            
-            return cellView
-        }
-        
-        var cellView = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("CellID"), owner: self)
-        if cellView == nil {
-            cellView = NSView.init()
-        }
-        
-        return cellView
-    }
-}

+ 0 - 218
PDF Office/PDF Master/Class/PDFTools/Secure/Controller/KMSecureEncryptWindowController.xib

@@ -1,218 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMSecureEncryptWindowController" customModule="PDF_Office" customModuleProvider="target">
-            <connections>
-                <outlet property="batchEncryptButton" destination="OtM-8U-5Or" id="qSw-Th-ZjU"/>
-                <outlet property="bottomLine" destination="h3v-5Y-Vtf" id="3fV-VW-0Rq"/>
-                <outlet property="cancelBox" destination="BiJ-ir-fpn" id="3tN-KG-T7A"/>
-                <outlet property="encryptBox" destination="dbE-p1-G1C" id="Fii-F5-4oR"/>
-                <outlet property="tableView" destination="oyI-pA-eDy" id="FZs-bs-V6Y"/>
-                <outlet property="titleLabel" destination="Jnf-KY-plo" id="pC5-FG-AM3"/>
-                <outlet property="topLine" destination="E8r-tb-JaS" id="Vmy-p6-AM4"/>
-                <outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="F0z-JX-Cv5">
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
-            <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
-            <rect key="contentRect" x="196" y="240" width="432" height="314"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
-            <value key="minSize" type="size" width="432" height="314"/>
-            <value key="maxSize" type="size" width="432" height="314"/>
-            <view key="contentView" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="432" height="314"/>
-                <autoresizingMask key="autoresizingMask"/>
-                <subviews>
-                    <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="80r-fS-f21" userLabel="titleBarBox">
-                        <rect key="frame" x="0.0" y="270" width="432" height="44"/>
-                        <view key="contentView" id="zmq-3u-GNa">
-                            <rect key="frame" x="0.0" y="0.0" width="432" height="44"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="E8r-tb-JaS">
-                                    <rect key="frame" x="0.0" y="-2" width="432" height="5"/>
-                                </box>
-                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Jnf-KY-plo">
-                                    <rect key="frame" x="16" y="13" width="42" height="17"/>
-                                    <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="pNC-DE-yIF">
-                                        <font key="font" metaFont="systemBold" size="14"/>
-                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="Jnf-KY-plo" firstAttribute="leading" secondItem="zmq-3u-GNa" secondAttribute="leading" constant="18" id="VcJ-QB-roh"/>
-                                <constraint firstItem="Jnf-KY-plo" firstAttribute="top" secondItem="zmq-3u-GNa" secondAttribute="top" constant="14" id="yco-fv-b5i"/>
-                            </constraints>
-                        </view>
-                        <constraints>
-                            <constraint firstAttribute="trailing" secondItem="E8r-tb-JaS" secondAttribute="trailing" id="NcN-pC-Fe4"/>
-                            <constraint firstItem="E8r-tb-JaS" firstAttribute="leading" secondItem="80r-fS-f21" secondAttribute="leading" id="PAx-iM-6qE"/>
-                            <constraint firstAttribute="height" constant="44" id="ds9-n7-OEz"/>
-                            <constraint firstAttribute="bottom" secondItem="E8r-tb-JaS" secondAttribute="bottom" id="uVn-gB-hq1"/>
-                        </constraints>
-                    </box>
-                    <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="szS-IT-Er5" userLabel="contentBox">
-                        <rect key="frame" x="0.0" y="60" width="432" height="210"/>
-                        <view key="contentView" id="ING-Yu-2Gn">
-                            <rect key="frame" x="0.0" y="0.0" width="432" height="210"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="24" horizontalPageScroll="10" verticalLineScroll="24" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZGo-NT-mGW">
-                                    <rect key="frame" x="0.0" y="0.0" width="432" height="210"/>
-                                    <clipView key="contentView" id="xwk-9U-ak7">
-                                        <rect key="frame" x="0.0" y="0.0" width="432" height="210"/>
-                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                        <subviews>
-                                            <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" multipleSelection="NO" autosaveColumns="NO" rowHeight="24" rowSizeStyle="automatic" viewBased="YES" id="oyI-pA-eDy">
-                                                <rect key="frame" x="0.0" y="0.0" width="432" height="210"/>
-                                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                <size key="intercellSpacing" width="17" height="0.0"/>
-                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
-                                                <tableColumns>
-                                                    <tableColumn identifier="AutomaticTableColumnIdentifier.0" width="415" minWidth="40" maxWidth="1000" id="KtI-DW-Xeh">
-                                                        <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
-                                                            <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
-                                                            <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
-                                                        </tableHeaderCell>
-                                                        <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Text Cell" id="QFD-34-lJW">
-                                                            <font key="font" metaFont="system"/>
-                                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                        </textFieldCell>
-                                                        <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
-                                                        <prototypeCellViews>
-                                                            <tableCellView id="CoA-uf-zrJ">
-                                                                <rect key="frame" x="8" y="0.0" width="415" height="24"/>
-                                                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                                <subviews>
-                                                                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="b3d-Ig-ecL">
-                                                                        <rect key="frame" x="0.0" y="4" width="415" height="16"/>
-                                                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
-                                                                        <textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="wPG-K6-RZG">
-                                                                            <font key="font" usesAppearanceFont="YES"/>
-                                                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                                            <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                                        </textFieldCell>
-                                                                    </textField>
-                                                                </subviews>
-                                                                <connections>
-                                                                    <outlet property="textField" destination="b3d-Ig-ecL" id="QHD-e9-8xM"/>
-                                                                </connections>
-                                                            </tableCellView>
-                                                        </prototypeCellViews>
-                                                    </tableColumn>
-                                                </tableColumns>
-                                            </tableView>
-                                        </subviews>
-                                    </clipView>
-                                    <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="izt-0j-5Xf">
-                                        <rect key="frame" x="1" y="359" width="418" height="16"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                    </scroller>
-                                    <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="Zx1-ho-YMH">
-                                        <rect key="frame" x="224" y="17" width="15" height="102"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                    </scroller>
-                                </scrollView>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="ZGo-NT-mGW" firstAttribute="leading" secondItem="ING-Yu-2Gn" secondAttribute="leading" id="BiC-TT-wK8"/>
-                                <constraint firstAttribute="bottom" secondItem="ZGo-NT-mGW" secondAttribute="bottom" id="MRG-P2-8pK"/>
-                                <constraint firstAttribute="trailing" secondItem="ZGo-NT-mGW" secondAttribute="trailing" id="QNJ-TE-1BP"/>
-                                <constraint firstItem="ZGo-NT-mGW" firstAttribute="top" secondItem="ING-Yu-2Gn" secondAttribute="top" id="l6e-BF-3AT"/>
-                            </constraints>
-                        </view>
-                    </box>
-                    <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="Thm-lC-Gys" userLabel="bottomBarBox">
-                        <rect key="frame" x="0.0" y="0.0" width="432" height="60"/>
-                        <view key="contentView" id="hmd-8y-P0z">
-                            <rect key="frame" x="0.0" y="0.0" width="432" height="60"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="h3v-5Y-Vtf">
-                                    <rect key="frame" x="0.0" y="57" width="432" height="5"/>
-                                </box>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="OtM-8U-5Or">
-                                    <rect key="frame" x="9" y="9" width="94" height="44"/>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="32" id="MPF-TY-JKt"/>
-                                        <constraint firstAttribute="width" constant="80" id="SpM-Bd-TuE"/>
-                                    </constraints>
-                                    <buttonCell key="cell" type="push" title="Button" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="E1U-nP-Ks0">
-                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                </button>
-                                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="dbE-p1-G1C">
-                                    <rect key="frame" x="336" y="16" width="80" height="32"/>
-                                    <view key="contentView" id="4Ej-6e-jjX">
-                                        <rect key="frame" x="0.0" y="0.0" width="80" height="32"/>
-                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    </view>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="32" id="FDe-D9-Ieg"/>
-                                        <constraint firstAttribute="width" constant="80" id="Mbd-Vo-mGf"/>
-                                    </constraints>
-                                    <color key="fillColor" red="0.92156862750000001" green="0.92156862750000001" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                </box>
-                                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="BiJ-ir-fpn">
-                                    <rect key="frame" x="240" y="16" width="80" height="32"/>
-                                    <view key="contentView" id="zVW-zw-MRv">
-                                        <rect key="frame" x="0.0" y="0.0" width="80" height="32"/>
-                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    </view>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="80" id="7Ty-Sg-jfC"/>
-                                        <constraint firstAttribute="height" constant="32" id="X0K-ww-6JJ"/>
-                                    </constraints>
-                                    <color key="fillColor" red="0.92156862750000001" green="0.92156862750000001" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                </box>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="h3v-5Y-Vtf" firstAttribute="top" secondItem="hmd-8y-P0z" secondAttribute="top" id="2k5-g9-JZ3"/>
-                                <constraint firstAttribute="trailing" secondItem="h3v-5Y-Vtf" secondAttribute="trailing" id="C1f-b3-Y3I"/>
-                                <constraint firstAttribute="trailing" secondItem="dbE-p1-G1C" secondAttribute="trailing" constant="16" id="MFx-e0-wid"/>
-                                <constraint firstItem="dbE-p1-G1C" firstAttribute="leading" secondItem="BiJ-ir-fpn" secondAttribute="trailing" constant="16" id="c99-cD-upJ"/>
-                                <constraint firstItem="OtM-8U-5Or" firstAttribute="leading" secondItem="hmd-8y-P0z" secondAttribute="leading" constant="16" id="eO7-X3-22E"/>
-                                <constraint firstAttribute="bottom" secondItem="dbE-p1-G1C" secondAttribute="bottom" constant="16" id="gSa-mc-7sT"/>
-                                <constraint firstAttribute="bottom" secondItem="OtM-8U-5Or" secondAttribute="bottom" constant="16" id="hRc-Kn-UAl"/>
-                                <constraint firstItem="dbE-p1-G1C" firstAttribute="centerY" secondItem="BiJ-ir-fpn" secondAttribute="centerY" id="hoi-up-nOA"/>
-                                <constraint firstItem="h3v-5Y-Vtf" firstAttribute="leading" secondItem="hmd-8y-P0z" secondAttribute="leading" id="v2L-ig-GMT"/>
-                            </constraints>
-                        </view>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="60" id="TE2-AT-Zyc"/>
-                        </constraints>
-                    </box>
-                </subviews>
-                <constraints>
-                    <constraint firstItem="80r-fS-f21" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" id="1DO-XQ-t6G"/>
-                    <constraint firstAttribute="bottom" secondItem="Thm-lC-Gys" secondAttribute="bottom" id="O8o-Hl-ch5"/>
-                    <constraint firstAttribute="trailing" secondItem="Thm-lC-Gys" secondAttribute="trailing" id="Qmf-Tu-pw1"/>
-                    <constraint firstAttribute="trailing" secondItem="szS-IT-Er5" secondAttribute="trailing" id="VAY-0d-K88"/>
-                    <constraint firstAttribute="trailing" secondItem="80r-fS-f21" secondAttribute="trailing" id="X7A-Zv-iOH"/>
-                    <constraint firstItem="szS-IT-Er5" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" id="byd-GH-kxS"/>
-                    <constraint firstItem="80r-fS-f21" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" id="dnU-LM-OFc"/>
-                    <constraint firstItem="szS-IT-Er5" firstAttribute="top" secondItem="80r-fS-f21" secondAttribute="bottom" id="l2M-dM-cLc"/>
-                    <constraint firstItem="Thm-lC-Gys" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" id="s9E-G5-tXp"/>
-                    <constraint firstItem="Thm-lC-Gys" firstAttribute="top" secondItem="szS-IT-Er5" secondAttribute="bottom" id="y2d-og-UNX"/>
-                </constraints>
-            </view>
-            <connections>
-                <outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
-            </connections>
-            <point key="canvasLocation" x="72" y="144"/>
-        </window>
-    </objects>
-</document>

+ 0 - 66
PDF Office/PDF Master/Class/PDFTools/Secure/View/KMSecureEncryptCheckCellView.swift

@@ -1,66 +0,0 @@
-//
-//  KMSecureEncryptCheckCellView.swift
-//  PDF Reader Pro
-//
-//  Created by tangchao on 2023/2/7.
-//
-
-import Cocoa
-typealias KMSecureEncryptCheckCellViewItemClick = (Bool) ->()
-class KMSecureEncryptCheckCellView: NSTableCellView {
-
-    var check: NSButton?
-    
-    private var myEnabled: Bool!
-    var kmEnabled: Bool {
-        get {
-            myEnabled
-        }
-        set {
-            myEnabled = newValue
-            
-            if newValue {
-                check!.isEnabled = newValue
-            } else {
-                check!.isEnabled = newValue
-            }
-        }
-    }
-    
-    var itemClick: KMSecureEncryptCheckCellViewItemClick!
-    
-    override init(frame frameRect: NSRect) {
-        super.init(frame: frameRect)
-        
-        initSubViews()
-    }
-    
-    required init?(coder: NSCoder) {
-        super.init(coder: coder)
-        
-        initSubViews()
-    }
-    
-    public func initSubViews() {
-        self.check = NSButton(checkboxWithTitle: "", target: self, action: #selector(checkAction))
-        self.addSubview(self.check!)
-    }
-    
-    override func layout() {
-        super.layout()
-        
-        let height: CGFloat = NSHeight(self.bounds)
-        let width: CGFloat = NSWidth(self.bounds)
-        let checkH: CGFloat = 22
-        let checkX: CGFloat = 10
-        self.check?.frame = NSMakeRect(checkX, (height-checkH)*0.5, width-checkX, 22)
-    }
-    
-    @objc private func checkAction(sender: NSButton) {
-        guard let callback = itemClick else {
-            return
-        }
-        
-        callback(sender.state == .on)
-    }
-}

+ 0 - 77
PDF Office/PDF Master/Class/PDFTools/Secure/View/KMSecureEncryptComboBoxCellView.swift

@@ -1,77 +0,0 @@
-//
-//  KMSecureEncryptComboBoxCellView.swift
-//  PDF Reader Pro
-//
-//  Created by tangchao on 2022/11/28.
-//
-
-import Cocoa
-
-class KMSecureEncryptComboBoxCellView: NSTableCellView {
-
-    var titleLabel: NSTextField = NSTextField(labelWithString: "")
-    var comboBox: NSComboBox = NSComboBox()
-    
-    private var myEnabled: Bool!
-    var kmEnabled: Bool {
-        get {
-            myEnabled
-        }
-        set {
-            myEnabled = newValue
-            
-            if newValue {
-                comboBox.isEnabled = newValue
-            } else {
-                comboBox.isEnabled = newValue
-            }
-        }
-    }
-    
-    var itemClick: KMItemClickBlock<KMSecureEncryptComboBoxCellView>?
-    
-    override init(frame frameRect: NSRect) {
-        super.init(frame: frameRect)
-        
-        self.initSubViews()
-    }
-    
-    required init?(coder: NSCoder) {
-        super.init(coder: coder)
-        
-        self.initSubViews()
-    }
-    
-    override var isFlipped: Bool {
-        return true
-    }
-    
-    func initSubViews() {
-        self.addSubview(self.titleLabel)
-        self.addSubview(self.comboBox)
-        self.comboBox.isEditable = false
-        self.comboBox.delegate = self
-    }
-    
-    override func layout() {
-        super.layout()
-        
-        let width: CGFloat = NSWidth(self.bounds)
-        titleLabel.frame = NSMakeRect(12, 5, width-12*2, 20)
-        
-        let comboBoxY: CGFloat = titleLabel.frame.maxY + 8
-        comboBox.frame = NSMakeRect(10, comboBoxY, width-10-40, 25)
-    }
-}
-
-extension KMSecureEncryptComboBoxCellView: NSComboBoxDelegate {
-    func comboBoxSelectionDidChange(_ notification: Notification) {
-        if comboBox.isEqual(to: notification.object) {
-            guard let callback = self.itemClick else {
-                return
-            }
-            
-            callback(nil, comboBox.indexOfSelectedItem)
-        }
-    }
-}

+ 0 - 182
PDF Office/PDF Master/Class/PDFTools/Secure/View/KMSecureEncryptPasswordCellView.swift

@@ -1,182 +0,0 @@
-//
-//  KMSecureEncryptPasswordCellView.swift
-//  PDF Reader Pro
-//
-//  Created by tangchao on 2022/11/28.
-//
-
-import Cocoa
-
-class KMSecureEncryptPasswordCellView: NSTableCellView {
-    
-    var checkBox: NSButton = NSButton(checkboxWithTitle: "", target: nil, action: nil)
-    private var passwordView: KMSecureTextFiled = KMSecureTextFiled()
-    private var openOrClosePasswordButton: NSButton?
-    
-    private var hover = KMCoverButton()
-    
-    var kmEnabled = false
-    private var isFocus = false
-    
-    var itemClick: KMItemClickBlock<KMSecureEncryptPasswordCellView>?
-    var valueChange: KMValueDidChangeBlock?
-    
-    func setPlaceholderString(_ string: String) {
-        self.passwordView.placeholderString = string
-    }
-    
-    override init(frame frameRect: NSRect) {
-        super.init(frame: frameRect)
-        
-        self.initSubViews()
-    }
-    
-    required init?(coder: NSCoder) {
-        super.init(coder: coder)
-        
-        self.initSubViews()
-    }
-    
-    override var isFlipped: Bool {
-        return true
-    }
-    
-    func initSubViews() {
-        self.addSubview(self.checkBox)
-        self.addSubview(self.passwordView)
-        
-        self.hover.isBordered = false
-        self.hover.title = ""
-        self.hover.wantsLayer = true
-        self.hover.layer?.backgroundColor = .clear
-        self.addSubview(self.hover, positioned: .below, relativeTo: self.passwordView)
-        self.hover.coverAction = { [unowned self] _, action in
-            if (!self.passwordViewCanHover()) {
-                return
-            }
-            if (action == .enter) {
-                self.refreshPasswordView(state: .Hov)
-            } else if (action == .exit) {
-                self.refreshPasswordView(state: .Norm)
-            }
-        }
-        
-        self.checkBox.target = self
-        self.checkBox.action = #selector(checkBoxAction)
-        
-        self.passwordView.backgroundView.wantsLayer = true
-        self.passwordView.backgroundView.layer?.borderWidth = 1
-        self.passwordView.backgroundView.layer?.cornerRadius = 4
-        self.passwordView.kmEnabled = false
-        self.isFocus = false
-        self.refreshPasswordView(state: .Norm)
-        
-        let rightView = NSView()
-        rightView.frame = NSMakeRect(0, 0, 32, 32);
-        self.passwordView.rightView = rightView
-        let openPasswordButton = NSButton()
-        openPasswordButton.image = NSImage(named: "KMImageNameSecureHide")
-        openPasswordButton.isEnabled = false
-        rightView.addSubview(openPasswordButton)
-        openPasswordButton.frame = NSMakeRect(8, 8, 16, 16)
-        openPasswordButton.wantsLayer = true
-        openPasswordButton.title = ""
-        openPasswordButton.isBordered = false
-        openPasswordButton.target = self
-        openPasswordButton.action = #selector(openOrClosePasswordButtonAction)
-        self.openOrClosePasswordButton = openPasswordButton
-        
-        self.passwordView.valueDidChange = { [weak self] view, string in
-            self?.isFocus = true
-            self?.refreshPasswordView(state: .Focus)
-            
-            guard let callback = self?.valueChange else {
-                return
-            }
-            
-            self?.updatePasswordViewRightViewState()
-            callback(string, nil)
-        }
-        self.passwordView.becomeFirstResponderHandler = { [weak self] result in
-            self?.isFocus = true
-            self?.refreshPasswordView(state: .Focus)
-            self?.updatePasswordViewRightViewState()
-        }
-        self.passwordView.didEndEditHandler = { [weak self] _ in
-            self?.isFocus = false
-            self?.refreshPasswordView(state: .Norm)
-            self?.updatePasswordViewRightViewState()
-        }
-    }
-    
-    override func layout() {
-        super.layout()
-        
-        let width: CGFloat = NSWidth(self.bounds)
-        self.checkBox.frame = NSMakeRect(8, 6, width-12*2, 22)
-        
-        let passwordY: CGFloat = self.checkBox.frame.maxY + 8
-        self.passwordView.frame = NSMakeRect(8, passwordY, width-8-8, 32)
-        
-        self.hover.frame = self.passwordView.frame
-    }
-
-    @objc func checkBoxAction(sender: NSButton) {
-        if (sender.state == .on) {
-            self.passwordView.kmEnabled = true
-            self.kmEnabled = true
-            self.openOrClosePasswordButton?.isEnabled = true
-            
-            let _ = self.passwordView.becomeFirstResponder()
-        } else {
-            self.passwordView.kmEnabled = false
-            self.kmEnabled = false
-            self.openOrClosePasswordButton?.isEnabled = false
-        }
-        
-        self.updatePasswordViewRightViewState()
-        guard let callback = self.itemClick else {
-            return
-        }
-        
-        callback(self, 1)
-    }
-    
-    @objc func openOrClosePasswordButtonAction(sender: NSButton) {
-        if (self.passwordView.mode == .ciphertext) { ///  切换到明文
-            self.openOrClosePasswordButton?.image = NSImage(named: "KMImageNameSecureShow")
-            self.passwordView.switchMode(mode: .plaintext)
-        } else { /// 切换到密文
-            self.openOrClosePasswordButton?.image = NSImage(named: "KMImageNameSecureHide")
-            self.passwordView.switchMode(mode: .ciphertext)
-        }
-    }
-    
-    func updatePasswordViewRightViewState() {
-        if (self.passwordView.password().isEmpty) {
-            self.passwordView.rightView?.isHidden = true
-        } else {
-            self.passwordView.rightView?.isHidden = false
-        }
-    }
-    
-    private func passwordViewCanHover() -> Bool {
-        if (!self.passwordView.kmEnabled) {
-            return false
-        }
-        if (self.isFocus) {
-            return false
-        }
-        return true
-    }
-    
-    private func refreshPasswordView(state: KMDesignTokenState) {
-        if (state == .Focus) {
-            self.passwordView.backgroundView.layer?.borderColor = NSColor.km_init(hex: "#1770F4").cgColor
-        } else if (state == .Norm) {
-            self.passwordView.backgroundView.layer?.borderColor = NSColor.km_init(hex: "#DFE1E5").cgColor
-        } else if (state == .Hov) {
-            self.passwordView.backgroundView.layer?.borderColor = NSColor.km_init(hex: "#68ACF8").cgColor
-        }
-    }
-}

+ 0 - 118
PDF Office/PDF Master/Class/PDFTools/Secure/View/KMSecureLimitAlertView.swift

@@ -1,118 +0,0 @@
-//
-//  KMSecureLimitAlertView.swift
-//  PDF Reader Pro
-//
-//  Created by tangchao on 2023/2/7.
-//
-
-import Cocoa
-
-typealias KMSecureLimitAlertViewItemClick = (Int) -> ()
-class KMSecureLimitAlertView: NSView {
-
-    var titleLabel = NSTextField(labelWithString: "")
-    private var despLabel = NSTextField(wrappingLabelWithString: "")
-    var deleteButton = NSButton()
-    
-    var funcButtonVC: KMDesignButton?
-    
-    var itemClick: KMSecureLimitAlertViewItemClick?
-    private var funcButtonSize: NSSize = NSMakeSize(163, 32)
-    
-    override var isFlipped: Bool {
-        return true
-    }
-    
-    override init(frame frameRect: NSRect) {
-        super.init(frame: frameRect)
-        
-        initSubViews()
-    }
-    
-    required init?(coder: NSCoder) {
-        super.init(coder: coder)
-        
-        initSubViews()
-    }
-    
-    public func initSubViews() {
-        self.addSubview(self.titleLabel)
-        addSubview(despLabel)
-        self.addSubview(self.deleteButton)
-        
-        self.funcButtonVC = KMDesignButton(withType: .Text)
-        self.addSubview(self.funcButtonVC!.view)
-    
-        self.wantsLayer = true
-        layer?.backgroundColor = NSColor.km_init(hex: "#E8F5FF").cgColor
-        layer?.cornerRadius = 8
-        self.shadow = NSShadow()
-        self.layer?.shadowColor = NSColor.km_init(hex: "#00000029").cgColor
-        self.layer?.shadowOpacity = 1
-        self.layer?.shadowRadius = 8
-        self.layer?.shadowOffset = CGSize(width: 0, height: -3)
-        
-        self.titleLabel.stringValue = NSLocalizedString("File Restricted", comment: "")
-        self.titleLabel.textColor = NSColor.km_init(hex: "#252629")
-        self.titleLabel.font = NSFont.SFProTextRegularFont(14)
-        
-        despLabel.stringValue = NSLocalizedString("The file is protected with a password. ", comment: "")
-        let ps = NSMutableParagraphStyle()
-        ps.lineSpacing = 7
-        despLabel.attributedStringValue = NSAttributedString(string: despLabel.stringValue, attributes: [.foregroundColor : NSColor.km_init(hex: "#616469"),
-            .font : NSFont.SFProTextRegularFont(14),
-            .paragraphStyle : ps
-        ])
-        
-        self.deleteButton.isBordered = false
-        self.deleteButton.image = NSImage(named: "KMImageNameCloseProgress12")
-        self.deleteButton.target = self
-        self.deleteButton.action = #selector(deleteButtonAction)
-        
-        self.funcButtonVC?.stringValue = NSLocalizedString("Enter Password", comment: "")
-        self.funcButtonVC?.target = self
-        self.funcButtonVC?.action = #selector(funcButtonAction)
-     
-        let size = self.funcButtonVC?.stringValue.boundingRect(with: NSMakeSize(1000, self.funcButtonSize.height), options: [.usesLineFragmentOrigin, .usesFontLeading], attributes: [.foregroundColor : NSColor.km_init(hex: "#252629"), .font : NSFont.SFProTextRegularFont(14)]).size
-        if (size == nil || size!.width < 40) {
-            self.funcButtonSize.width = 70
-        } else {
-            self.funcButtonSize.width = size!.width + 34
-        }
-    }
-    
-    override func layout() {
-        super.layout()
-        
-        let width: CGFloat = NSWidth(self.bounds)
-        let height: CGFloat = NSHeight(self.bounds)
-        
-        let leftMargin: CGFloat = 16
-        self.titleLabel.frame = NSMakeRect(leftMargin, 16+4, width-leftMargin-60, 18)
-        
-        let despX: CGFloat = 16
-        let despY: CGFloat = self.titleLabel.frame.maxY+8+4
-        despLabel.frame = NSMakeRect(despX, despY, width-despX-36, height-despY-45)
-        
-        self.deleteButton.frame = NSMakeRect(width-34, 10, 24, 24)
-        
-        let funcButtonSize = self.funcButtonSize
-        self.funcButtonVC?.view.frame = NSMakeRect(width-funcButtonSize.width-leftMargin, height-funcButtonSize.height-16, funcButtonSize.width, funcButtonSize.height)
-    }
-    
-    @objc private func deleteButtonAction() {
-        guard let callback = self.itemClick else {
-            return
-        }
-        
-        callback(1)
-    }
-    
-    @objc private func funcButtonAction() {
-        guard let callback = self.itemClick else {
-            return
-        }
-        
-        callback(2)
-    }
-}

File diff suppressed because it is too large
+ 419 - 467
PDF Office/PDF Master/KMClass/KMPDFViewController/KMMainViewController.swift


+ 3 - 74
PDF Office/PDF Reader Pro.xcodeproj/project.pbxproj

@@ -2973,18 +2973,6 @@
 		BB6D2DAB2B674D7900624C24 /* CPDFPage+KMExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6D2DAA2B674D7900624C24 /* CPDFPage+KMExtension.swift */; };
 		BB6D2DAC2B674D7900624C24 /* CPDFPage+KMExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6D2DAA2B674D7900624C24 /* CPDFPage+KMExtension.swift */; };
 		BB6D2DAD2B674D7900624C24 /* CPDFPage+KMExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6D2DAA2B674D7900624C24 /* CPDFPage+KMExtension.swift */; };
-		BB6DD80C29347F77001F0544 /* KMSecureEncryptWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD80A29347F77001F0544 /* KMSecureEncryptWindowController.swift */; };
-		BB6DD80D29347F77001F0544 /* KMSecureEncryptWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD80A29347F77001F0544 /* KMSecureEncryptWindowController.swift */; };
-		BB6DD80E29347F77001F0544 /* KMSecureEncryptWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD80A29347F77001F0544 /* KMSecureEncryptWindowController.swift */; };
-		BB6DD80F29347F77001F0544 /* KMSecureEncryptWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB6DD80B29347F77001F0544 /* KMSecureEncryptWindowController.xib */; };
-		BB6DD81029347F77001F0544 /* KMSecureEncryptWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB6DD80B29347F77001F0544 /* KMSecureEncryptWindowController.xib */; };
-		BB6DD81129347F77001F0544 /* KMSecureEncryptWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB6DD80B29347F77001F0544 /* KMSecureEncryptWindowController.xib */; };
-		BB6DD814293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD813293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift */; };
-		BB6DD815293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD813293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift */; };
-		BB6DD816293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD813293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift */; };
-		BB6DD81829348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD81729348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift */; };
-		BB6DD81929348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD81729348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift */; };
-		BB6DD81A29348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD81729348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift */; };
 		BB6DD821293497B6001F0544 /* KMSecureEncryptModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD820293497B6001F0544 /* KMSecureEncryptModel.swift */; };
 		BB6DD822293497B6001F0544 /* KMSecureEncryptModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD820293497B6001F0544 /* KMSecureEncryptModel.swift */; };
 		BB6DD823293497B6001F0544 /* KMSecureEncryptModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6DD820293497B6001F0544 /* KMSecureEncryptModel.swift */; };
@@ -3103,12 +3091,6 @@
 		BB7FF5072A60E84400901C2D /* KMEnumExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB7FF5062A60E84400901C2D /* KMEnumExtensions.swift */; };
 		BB7FF5082A60E84400901C2D /* KMEnumExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB7FF5062A60E84400901C2D /* KMEnumExtensions.swift */; };
 		BB7FF5092A60E84400901C2D /* KMEnumExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB7FF5062A60E84400901C2D /* KMEnumExtensions.swift */; };
-		BB8115FB29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB8115FA29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift */; };
-		BB8115FC29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB8115FA29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift */; };
-		BB8115FD29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB8115FA29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift */; };
-		BB8115FF2992682F0008F536 /* KMSecureLimitAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB8115FE2992682F0008F536 /* KMSecureLimitAlertView.swift */; };
-		BB8116002992682F0008F536 /* KMSecureLimitAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB8115FE2992682F0008F536 /* KMSecureLimitAlertView.swift */; };
-		BB8116012992682F0008F536 /* KMSecureLimitAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB8115FE2992682F0008F536 /* KMSecureLimitAlertView.swift */; };
 		BB83B8EC2BA8415A00EFF584 /* KMPageEditExtractWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB83B8EB2BA8415900EFF584 /* KMPageEditExtractWindowController.swift */; };
 		BB83B8ED2BA8415A00EFF584 /* KMPageEditExtractWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB83B8EB2BA8415900EFF584 /* KMPageEditExtractWindowController.swift */; };
 		BB83B8EE2BA8415A00EFF584 /* KMPageEditExtractWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB83B8EB2BA8415900EFF584 /* KMPageEditExtractWindowController.swift */; };
@@ -3412,12 +3394,6 @@
 		BBA8B66F2B9027D700CB07B0 /* SKFileUpdateChecker.m in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B66D2B9027D500CB07B0 /* SKFileUpdateChecker.m */; };
 		BBA8B6702B9027D700CB07B0 /* SKFileUpdateChecker.m in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B66D2B9027D500CB07B0 /* SKFileUpdateChecker.m */; };
 		BBA8B6712B9027D700CB07B0 /* SKFileUpdateChecker.m in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B66D2B9027D500CB07B0 /* SKFileUpdateChecker.m */; };
-		BBA8B7A32935CD740097D183 /* KMRemovePasswordAlertWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B7A12935CD740097D183 /* KMRemovePasswordAlertWindowController.swift */; };
-		BBA8B7A42935CD740097D183 /* KMRemovePasswordAlertWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B7A12935CD740097D183 /* KMRemovePasswordAlertWindowController.swift */; };
-		BBA8B7A52935CD740097D183 /* KMRemovePasswordAlertWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B7A12935CD740097D183 /* KMRemovePasswordAlertWindowController.swift */; };
-		BBA8B7A62935CD740097D183 /* KMRemovePasswordAlertWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BBA8B7A22935CD740097D183 /* KMRemovePasswordAlertWindowController.xib */; };
-		BBA8B7A72935CD740097D183 /* KMRemovePasswordAlertWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BBA8B7A22935CD740097D183 /* KMRemovePasswordAlertWindowController.xib */; };
-		BBA8B7A82935CD740097D183 /* KMRemovePasswordAlertWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BBA8B7A22935CD740097D183 /* KMRemovePasswordAlertWindowController.xib */; };
 		BBA8B7AA2935DC120097D183 /* KMRemovePasswordResultTipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B7A92935DC120097D183 /* KMRemovePasswordResultTipView.swift */; };
 		BBA8B7AB2935DC120097D183 /* KMRemovePasswordResultTipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B7A92935DC120097D183 /* KMRemovePasswordResultTipView.swift */; };
 		BBA8B7AC2935DC120097D183 /* KMRemovePasswordResultTipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBA8B7A92935DC120097D183 /* KMRemovePasswordResultTipView.swift */; };
@@ -5745,10 +5721,6 @@
 		BB6B4C0B292F62B20071CA06 /* KMPDFThumbnialPageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPDFThumbnialPageView.swift; sourceTree = "<group>"; };
 		BB6D2DA62B674A6300624C24 /* CPDFOutline+KMExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CPDFOutline+KMExtension.swift"; sourceTree = "<group>"; };
 		BB6D2DAA2B674D7900624C24 /* CPDFPage+KMExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CPDFPage+KMExtension.swift"; sourceTree = "<group>"; };
-		BB6DD80A29347F77001F0544 /* KMSecureEncryptWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSecureEncryptWindowController.swift; sourceTree = "<group>"; };
-		BB6DD80B29347F77001F0544 /* KMSecureEncryptWindowController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMSecureEncryptWindowController.xib; sourceTree = "<group>"; };
-		BB6DD813293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSecureEncryptPasswordCellView.swift; sourceTree = "<group>"; };
-		BB6DD81729348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSecureEncryptComboBoxCellView.swift; sourceTree = "<group>"; };
 		BB6DD820293497B6001F0544 /* KMSecureEncryptModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSecureEncryptModel.swift; sourceTree = "<group>"; };
 		BB6EA28E2B70AF43000D4490 /* KMConvertCompareViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMConvertCompareViewController.xib; sourceTree = "<group>"; };
 		BB6EA28F2B70AF44000D4490 /* KMConvertCompareViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMConvertCompareViewController.h; sourceTree = "<group>"; };
@@ -5791,8 +5763,6 @@
 		BB7F7BFE29AA586800A3E4E7 /* signAdd.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = signAdd.png; sourceTree = "<group>"; };
 		BB7F7BFF29AA586800A3E4E7 /* signAddBack.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = signAddBack.png; sourceTree = "<group>"; };
 		BB7FF5062A60E84400901C2D /* KMEnumExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMEnumExtensions.swift; sourceTree = "<group>"; };
-		BB8115FA29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSecureEncryptCheckCellView.swift; sourceTree = "<group>"; };
-		BB8115FE2992682F0008F536 /* KMSecureLimitAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSecureLimitAlertView.swift; sourceTree = "<group>"; };
 		BB83B8EB2BA8415900EFF584 /* KMPageEditExtractWindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KMPageEditExtractWindowController.swift; sourceTree = "<group>"; };
 		BB853C7C2AF8B5D6009C20C1 /* KMBatchOperateAddPasswordViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMBatchOperateAddPasswordViewController.swift; sourceTree = "<group>"; };
 		BB853C812AF8BAF0009C20C1 /* KMSetPasswordObject.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSetPasswordObject.swift; sourceTree = "<group>"; };
@@ -5924,8 +5894,6 @@
 		BBA762D129D2D98D00844513 /* KMCommonDefine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMCommonDefine.swift; sourceTree = "<group>"; };
 		BBA8B66D2B9027D500CB07B0 /* SKFileUpdateChecker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SKFileUpdateChecker.m; sourceTree = "<group>"; };
 		BBA8B66E2B9027D600CB07B0 /* SKFileUpdateChecker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SKFileUpdateChecker.h; sourceTree = "<group>"; };
-		BBA8B7A12935CD740097D183 /* KMRemovePasswordAlertWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMRemovePasswordAlertWindowController.swift; sourceTree = "<group>"; };
-		BBA8B7A22935CD740097D183 /* KMRemovePasswordAlertWindowController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMRemovePasswordAlertWindowController.xib; sourceTree = "<group>"; };
 		BBA8B7A92935DC120097D183 /* KMRemovePasswordResultTipView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMRemovePasswordResultTipView.swift; sourceTree = "<group>"; };
 		BBA922122B4E783F0061057A /* KMPurchaseCompareDMGWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMPurchaseCompareDMGWindowController.h; sourceTree = "<group>"; };
 		BBA922132B4E783F0061057A /* KMPurchaseCompareDMGWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMPurchaseCompareDMGWindowController.xib; sourceTree = "<group>"; };
@@ -7150,7 +7118,6 @@
 		9F1F82C6292F631A0092C4B4 /* PDFTools */ = {
 			isa = PBXGroup;
 			children = (
-				9FF371AB2C69A67B005F9CC5 /* Measure */,
 				AD055E1A2B70B2460035F824 /* KMBookmark */,
 				ADFA8F072B57861A002595A4 /* FindSearch */,
 				AD2BF23B2B5647C80029F03F /* AutoFlow */,
@@ -7550,7 +7517,8 @@
 				9FF371AC2C69A6BA005F9CC5 /* Side */,
 				9FF371AF2C69A6BB005F9CC5 /* Window */,
 			);
-			path = Measure;
+			name = Measure;
+			path = ../../../../Class/PDFTools/Measure;
 			sourceTree = "<group>";
 		};
 		9FF371AC2C69A6BA005F9CC5 /* Side */ = {
@@ -10826,30 +10794,14 @@
 			children = (
 				BB6DD81F29349797001F0544 /* Model */,
 				BB6DD812293486E5001F0544 /* View */,
-				BB6DD80929347EFC001F0544 /* Controller */,
 			);
 			path = Secure;
 			sourceTree = "<group>";
 		};
-		BB6DD80929347EFC001F0544 /* Controller */ = {
-			isa = PBXGroup;
-			children = (
-				BB6DD80A29347F77001F0544 /* KMSecureEncryptWindowController.swift */,
-				BB6DD80B29347F77001F0544 /* KMSecureEncryptWindowController.xib */,
-				BBA8B7A12935CD740097D183 /* KMRemovePasswordAlertWindowController.swift */,
-				BBA8B7A22935CD740097D183 /* KMRemovePasswordAlertWindowController.xib */,
-			);
-			path = Controller;
-			sourceTree = "<group>";
-		};
 		BB6DD812293486E5001F0544 /* View */ = {
 			isa = PBXGroup;
 			children = (
-				BB6DD813293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift */,
-				BB6DD81729348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift */,
-				BB8115FE2992682F0008F536 /* KMSecureLimitAlertView.swift */,
 				BBA8B7A92935DC120097D183 /* KMRemovePasswordResultTipView.swift */,
-				BB8115FA29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift */,
 				ADFA8F102B60E01C002595A4 /* KMSecureAlertView.swift */,
 				ADFA8F142B60E02B002595A4 /* KMSecureAlertView.xib */,
 			);
@@ -11812,6 +11764,7 @@
 				8931681E296D73C10073EA59 /* Signature */,
 				89E4E6D72963C6AA002DBA6F /* AnnotationProperty */,
 				8996CFE4295BE15800D32783 /* EditPDF */,
+				9FF371AB2C69A67B005F9CC5 /* Measure */,
 			);
 			path = Views;
 			sourceTree = "<group>";
@@ -13115,7 +13068,6 @@
 				AD055E282B70B3C10035F824 /* KMBookmarkController.xib in Resources */,
 				BBF62C6C2B033B5B007B7E86 /* KMPDFEditExtractWindow.xib in Resources */,
 				BB88106A2B4F771D00AFA63E /* KMVerificationInfoViewController.xib in Resources */,
-				BB6DD80F29347F77001F0544 /* KMSecureEncryptWindowController.xib in Resources */,
 				F30B22882CB8D9630041002E /* KMNQuickToolCollectionViewItem.xib in Resources */,
 				BB03D6A02B024AC8008C9976 /* KMPDFEditInsertPageWindow.xib in Resources */,
 				AD1D48252AFB6BCB007AC1F0 /* KMMergeView.xib in Resources */,
@@ -13216,7 +13168,6 @@
 				ADB2D6F2294741720029D2B3 /* KMPrintPaperSetView.xib in Resources */,
 				BB42937D2D030BE3007ECFF2 /* KMCreateStampWindowController.xib in Resources */,
 				BBCB9EA92CCDF65000563AC8 /* KMNDisplayViewController.xib in Resources */,
-				BBA8B7A62935CD740097D183 /* KMRemovePasswordAlertWindowController.xib in Resources */,
 				BB51074229A61B4100978662 /* ProgressSheet.xib in Resources */,
 				BBA922382B4E97540061057A /* KMPurchaseFirstTrialWindowController.xib in Resources */,
 				BB451AE02CF5AF9A003E1565 /* KMLineController.xib in Resources */,
@@ -13274,7 +13225,6 @@
 				9F8539F72947137500DF644E /* sadfavicon.png in Resources */,
 				BBA922292B4E96450061057A /* KMPurchaseCompareWindowController.xib in Resources */,
 				F337CC202CC6456D00D46AF4 /* KMNThumbnailBaseViewController.xib in Resources */,
-				BBA8B7A72935CD740097D183 /* KMRemovePasswordAlertWindowController.xib in Resources */,
 				ADAFDA4D2AEA7F2700F084BC /* KMAdvertisementShowView.xib in Resources */,
 				AD1D48262AFB6BCB007AC1F0 /* KMMergeView.xib in Resources */,
 				BB9AEB292D0FC988004BF8D2 /* FormsTextFieldController.xib in Resources */,
@@ -13431,7 +13381,6 @@
 				BB7256C12CDC5B5300B6CE64 /* KMBackgroundController.xib in Resources */,
 				F3DB86122CCA693C00D0AFDE /* KMNSplitPDFWindowController.xib in Resources */,
 				BB7F7C0129AA586900A3E4E7 /* signAdd.png in Resources */,
-				BB6DD81029347F77001F0544 /* KMSecureEncryptWindowController.xib in Resources */,
 				ADBC2D16299CCD10006280C8 /* KMTextfieldButton.xib in Resources */,
 				BB91384B2CEE08D400BAB4A7 /* KMCropCoverController.xib in Resources */,
 				F3A0F85D2CC940DD00E7373F /* KMNPDFInsertBlankWindowController.xib in Resources */,
@@ -14008,7 +13957,6 @@
 				ADFA8F022B5649AE002595A4 /* KMAutoFlowOptionsSheetController.xib in Resources */,
 				BB8810992B4F7CD100AFA63E /* KMVerificationTrialViewController.xib in Resources */,
 				BB6EA2A52B70B8F2000D4490 /* KMConvertComparePayViewController.xib in Resources */,
-				BB6DD81129347F77001F0544 /* KMSecureEncryptWindowController.xib in Resources */,
 				ADD1B6D129431D7100C3FFF7 /* KMPrintPreviewView.xib in Resources */,
 				BBD9223F2B50D6D600DB9585 /* rate_pic_star.pdf in Resources */,
 				BB1B0B062B4FC6E900889528 /* KMCustomColorGuideView.xib in Resources */,
@@ -14114,7 +14062,6 @@
 				BBB789B32BE8BF2400F7E09C /* AIChatTranslateResultItem.xib in Resources */,
 				BBDF18092CD482D100ACDB15 /* KMWatermarkController.xib in Resources */,
 				9FE0BBE92B0EFBA300CD1CAC /* KMAnnotationFontWindowController.xib in Resources */,
-				BBA8B7A82935CD740097D183 /* KMRemovePasswordAlertWindowController.xib in Resources */,
 				AD1CA4362A0640FC0070541F /* KMAnnotationScreenHeadView.xib in Resources */,
 				BB451A972CF59F3F003E1565 /* KMTextBoxController.xib in Resources */,
 				BBA19F3429ADAC81001A285A /* signPicture_hover.pdf in Resources */,
@@ -14344,7 +14291,6 @@
 				BB1E7F302B511079002D9785 /* SKInspectPublicTool.swift in Sources */,
 				653647DC2CDCA77300CDB13E /* KMTableHeaderCell.swift in Sources */,
 				9FBA0EFE29015A82001117AF /* KMFastToolCollectionViewItem.swift in Sources */,
-				BBA8B7A32935CD740097D183 /* KMRemovePasswordAlertWindowController.swift in Sources */,
 				BB8810912B4F7C4100AFA63E /* KMVerificationExpiredViewController.m in Sources */,
 				ADDF833B2B391A5C00A81A4E /* CPDFSignatureWidgetAnnotation+PDFListView.m in Sources */,
 				BB7289E02B8838D8004B53B5 /* KMDataManager.swift in Sources */,
@@ -14372,7 +14318,6 @@
 				BBF98C342C0EE46200436CC7 /* KMToolbarCustomItemView.swift in Sources */,
 				BB42A5D62B8ED77B0092C524 /* KMTabbingHintWindowController.swift in Sources */,
 				BBC28F4E2B0F58DD00D73206 /* KMImageToolTipWindow.swift in Sources */,
-				BB6DD80C29347F77001F0544 /* KMSecureEncryptWindowController.swift in Sources */,
 				BB031B602C47BB080099F7AD /* KMUserFeekbackWindowController.swift in Sources */,
 				BB73F2882C63147E00131EE7 /* KMUnbindAlertViewController.swift in Sources */,
 				BBB14A572978E75D00936EDB /* KMRedactMutilPageFlagWindowController.swift in Sources */,
@@ -14582,7 +14527,6 @@
 				9F53D5472AD664C300CCF9D8 /* CPDFListHoverAnnotationViewController.swift in Sources */,
 				BB4A949B2B04B77F00940F8B /* KMOCROperation.swift in Sources */,
 				BB5F8A1F29BB15AD00365ADB /* KMEmailSubWindowController.m in Sources */,
-				BB8115FF2992682F0008F536 /* KMSecureLimitAlertView.swift in Sources */,
 				ADDEEA662AD3C4BE00EF675D /* KMPDFSignatureImageView.swift in Sources */,
 				BBB14A5B2978EBBE00936EDB /* KMRedactMutilPageFlagContentView.swift in Sources */,
 				656C1E402CD0745200295F82 /* KMConvertSettingLimitTipView.swift in Sources */,
@@ -14657,7 +14601,6 @@
 				9F1FE4D829406E4700E952CA /* NSString+Utils.m in Sources */,
 				ADDF83AA2B391A5D00A81A4E /* DSignatureModel.swift in Sources */,
 				AD055EB42B8841780035F824 /* SKSeparatorCell.m in Sources */,
-				BB6DD81829348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift in Sources */,
 				BBA633382CC09DE10040B7F6 /* NSWindowController+Extension.swift in Sources */,
 				BB6013802AD38E0100A76FB2 /* CPDFTextAnnotation+PDFListView.swift in Sources */,
 				ADDF836E2B391A5C00A81A4E /* CDSignatureTextViewController.swift in Sources */,
@@ -14831,7 +14774,6 @@
 				AD199DE72B230A9300D56FEE /* KMPrintMultipageView.swift in Sources */,
 				BB6719FD2AD2CE1B003D44D5 /* CPDFSquareAnnotation+PDFListView.swift in Sources */,
 				AD055E882B882E7F0035F824 /* SKBookmark.m in Sources */,
-				BB8115FB29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift in Sources */,
 				F3DB85F22CCA209600D0AFDE /* KMNBaseWindowController.swift in Sources */,
 				9F1FE4A529406E4700E952CA /* CTToolbarView.m in Sources */,
 				BBB7899C2BE8BF2400F7E09C /* CustomCornerView.swift in Sources */,
@@ -15060,7 +15002,6 @@
 				BBFBE6BE28DD7B97008B2335 /* AppDelegate.swift in Sources */,
 				ADD1B6D72946BDFD00C3FFF7 /* KMPrintChoosePageSizeView.swift in Sources */,
 				BB1D41D32B26D9BD00994EDC /* KMReusable.swift in Sources */,
-				BB6DD814293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */,
 				65F9F47F2CFB5C3500F187A8 /* KMNBotaBaseViewController.swift in Sources */,
 				BB6719F52AD2C949003D44D5 /* CPDFRedactAnnotation+PDFListView.swift in Sources */,
 				BBF729AB2B1962A000576AC5 /* KMAddHeaderFooterOperationQueue.swift in Sources */,
@@ -15598,7 +15539,6 @@
 				BB5A9D3D2CB6520100F64C1F /* KMNHomeViewController.swift in Sources */,
 				9FB2210F2B1AE35E00A5B208 /* NSBitmapImageRep_KMExtension.swift in Sources */,
 				9F1FE4E529406E4700E952CA /* GTMNSColor+Luminance.m in Sources */,
-				BB8116002992682F0008F536 /* KMSecureLimitAlertView.swift in Sources */,
 				65B143AE2CF06B97001B5A69 /* String+KMExtensions.swift in Sources */,
 				BB1C97022D01704600F1EFAD /* KMStampSettingWindowController.swift in Sources */,
 				BB52F5522CC1FAB2007418DB /* KMLinkViewController.swift in Sources */,
@@ -15786,7 +15726,6 @@
 				BBFA1CE32B60DD970053AD4A /* KMScreenShotEditViewController.swift in Sources */,
 				BB1B0AC02B4FC6E900889528 /* KMGuideInfoWindowController.swift in Sources */,
 				BB1B0ADB2B4FC6E900889528 /* KMOpenFileGuideToolbar.swift in Sources */,
-				BB8115FC29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift in Sources */,
 				BB5A9D5C2CB6521400F64C1F /* SettingsManager.swift in Sources */,
 				BBFEF7182B3A77E700C28AC0 /* KMSystemFileMenu.swift in Sources */,
 				653647712CDC8C3700CDB13E /* KMNTableHeaderCellView.swift in Sources */,
@@ -15825,7 +15764,6 @@
 				ADDF836C2B391A5C00A81A4E /* DSignatureSaveTypeViewController.swift in Sources */,
 				657865F42CE1E7DD00AFE2DB /* KMNBookmarkHanddler.swift in Sources */,
 				BB7BC4D92AD3D6B700D6BEE6 /* PDFListView+KMExtensions.swift in Sources */,
-				BB6DD81929348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift in Sources */,
 				ADAFDA2C2AE8DE1B00F084BC /* KMAdvertisementCache.swift in Sources */,
 				BBD1F788296FAC7C00343885 /* KMPageEditSettingBaseView.swift in Sources */,
 				AD1CA4002A0603EE0070541F /* KMAnnotationScreenCollectionView.swift in Sources */,
@@ -15960,7 +15898,6 @@
 				BBC5ABE02D01C950008BA0CB /* KMSignatureController.swift in Sources */,
 				ADD1B7072946CBB600C3FFF7 /* KMBaseTextFormatter.swift in Sources */,
 				BB8810772B4F785200AFA63E /* KMUnlockAlertViewController.m in Sources */,
-				BB6DD815293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */,
 				BB19A7502CB7C710008204DC /* KMHistoryFileThumbItem.swift in Sources */,
 				ADDF83422B391A5C00A81A4E /* DSignatureConfigWindowController.swift in Sources */,
 				AD055E7F2B88294F0035F824 /* SKBookmarkSheetController.m in Sources */,
@@ -16007,7 +15944,6 @@
 				BB8B173D2907CDD9001C5EA5 /* NibLoadable.swift in Sources */,
 				BB4A94922B04926700940F8B /* KMGOCROperation.swift in Sources */,
 				BBF729C02B19783600576AC5 /* KMBatchRemoveHeaderFooterOperation.swift in Sources */,
-				BB6DD80D29347F77001F0544 /* KMSecureEncryptWindowController.swift in Sources */,
 				9F8539CC29430BF300DF644E /* KMBrowserWindowController.swift in Sources */,
 				BB162E98295062CD0088E9D1 /* KMPageRangeTools.swift in Sources */,
 				AD7D5CD42B957442006562CD /* KMBookmarkOutlineFileCellView.swift in Sources */,
@@ -16021,7 +15957,6 @@
 				BBB7B48A2A033F6200B58A5A /* KMThumbnailView.swift in Sources */,
 				BBB7B48E2A0384E100B58A5A /* NSCollectionViewItem+KMExtension.swift in Sources */,
 				9FCFEC852AD0EF6700EAD2CB /* KMCustomButtonPopMenuViewController.swift in Sources */,
-				BBA8B7A42935CD740097D183 /* KMRemovePasswordAlertWindowController.swift in Sources */,
 				BBF98C352C0EE46200436CC7 /* KMToolbarCustomItemView.swift in Sources */,
 				AD7D5C932B8F20FE006562CD /* synctex_parser_utils.m in Sources */,
 				BBDF18162CD4853C00ACDB15 /* KMNWatermarkPropertyController.swift in Sources */,
@@ -16404,7 +16339,6 @@
 				BB88106F2B4F771D00AFA63E /* KMVerificationInfoViewController.m in Sources */,
 				BB77C8612BD506BE0065AFF2 /* CPDFAnnotation+KMExtension.swift in Sources */,
 				9FCFEC8A2AD0EF9900EAD2CB /* KMPopMenuButton.swift in Sources */,
-				BB6DD80E29347F77001F0544 /* KMSecureEncryptWindowController.swift in Sources */,
 				F321C1F82CD9F0DD009982C8 /* KMSecureTextFiled.swift in Sources */,
 				BB4A94A22B04D8EC00940F8B /* KMGOCRManager.m in Sources */,
 				F337CC1E2CC6456D00D46AF4 /* KMNThumbnailBaseViewController.swift in Sources */,
@@ -16440,7 +16374,6 @@
 				9FDD0F66294AB645000C4DAD /* KMMainViewController.swift in Sources */,
 				BB5A9D5D2CB6521400F64C1F /* SettingsManager.swift in Sources */,
 				F3DB86082CCA691B00D0AFDE /* KMNExtractPDFWindowController.swift in Sources */,
-				BBA8B7A52935CD740097D183 /* KMRemovePasswordAlertWindowController.swift in Sources */,
 				653647C42CDCA5DE00CDB13E /* KMBatchOperateLeftViewController.swift in Sources */,
 				AD8E48A32D1542630055D3E6 /* KMOCRPageView.swift in Sources */,
 				BBEC00C9295C319400A26C98 /* KMBatesManager.swift in Sources */,
@@ -16551,7 +16484,6 @@
 				BB6719FF2AD2CE1B003D44D5 /* CPDFSquareAnnotation+PDFListView.swift in Sources */,
 				BBEDC22D2B98407000970C54 /* CPDFAction+KMExtension.swift in Sources */,
 				BBEF0F9C2B84A4C200A3E102 /* KMBrowserWindowController+PPTMode.swift in Sources */,
-				BB8116012992682F0008F536 /* KMSecureLimitAlertView.swift in Sources */,
 				AD3A3589294C11ED00D72802 /* KMPrintPreviewPresenter.swift in Sources */,
 				BB61F2142B59120F00777E27 /* KMScroller.swift in Sources */,
 				AD1CA4322A0640F20070541F /* KMAnnotationScreenHeadView.swift in Sources */,
@@ -16744,7 +16676,6 @@
 				9FE0BBE02B0E009F00CD1CAC /* KMColorPickerView.swift in Sources */,
 				ADD1B6EE2946C04C00C3FFF7 /* KMPrintChoosePageSizePamphletView.swift in Sources */,
 				BB1B0AF42B4FC6E900889528 /* KMFunctionGuideNameItemView.swift in Sources */,
-				BB6DD816293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */,
 				BBFE14D12BFD7FC300176992 /* KMCouponDueWindowController.swift in Sources */,
 				656C1E482CD0745200295F82 /* KMConvertSettingView.swift in Sources */,
 				9F1FE4C829406E4700E952CA /* CTUtil.m in Sources */,
@@ -16896,7 +16827,6 @@
 				BB9138382CEE089C00BAB4A7 /* KMCropController.swift in Sources */,
 				BB1A916C2AFB7868005E5FD8 /* KMConvertWindowController.swift in Sources */,
 				9FCFEC7E2AC579F600EAD2CB /* CPDFListSignatureAnnotation.swift in Sources */,
-				BB8115FD29924A5F0008F536 /* KMSecureEncryptCheckCellView.swift in Sources */,
 				BB1B0AEE2B4FC6E900889528 /* KMGuideCoverView.swift in Sources */,
 				BB2C848A2BAE753F00AF6142 /* KMBotaTools.swift in Sources */,
 				BB9138492CEE08D400BAB4A7 /* KMCropCoverController.swift in Sources */,
@@ -17058,7 +16988,6 @@
 				BB716D5A2CDDB6F9009787ED /* KMHeaderTemplateItem.swift in Sources */,
 				653647CD2CDCA5DE00CDB13E /* KMBatchOperateBaseWindowController.swift in Sources */,
 				BBDA8A6B2A31B50C006A2C4E /* KMCustomStepperView.swift in Sources */,
-				BB6DD81A29348A00001F0544 /* KMSecureEncryptComboBoxCellView.swift in Sources */,
 				BBFEF72D2B3A791B00C28AC0 /* KMSystemWindowMenu.swift in Sources */,
 				9F1FE4FB29406E4700E952CA /* CTTabStripView.m in Sources */,
 				9FF94F1329A7476000B1EF69 /* KMDesignPropertySelector.swift in Sources */,