|
@@ -364,6 +364,36 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
|
|
|
}
|
|
|
|
|
|
if (formatPopup != nil) {
|
|
|
+ if let item = formatPopup?.item(withTitle: "Notes as Text") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "Notes as FDF") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "Notes as RTFD") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: NSLocalizedString("Text", comment: "")) {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: NSLocalizedString("text", comment: "")) {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "PDF Reader Pro Edition Notes") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "XDV") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "DVI") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "Images") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
+ if let item = formatPopup?.item(withTitle: "Encapsulated PostScript") {
|
|
|
+ formatPopup?.removeItem(at: formatPopup!.index(of: item))
|
|
|
+ }
|
|
|
let lastExportedType = KMDataManager.ud_string(forKey: Self.kLastExportedTypeKey)
|
|
|
var lastExportedOption = KMDataManager.ud_integer(forKey: Self.kLastExportedOptionKey)
|
|
|
if lastExportedOption == 0 {
|
|
@@ -383,12 +413,12 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
|
|
|
}
|
|
|
self.mdFlags?.exportOption = UInt32(lastExportedOption)
|
|
|
//
|
|
|
- self.exportAccessoryC = SKExportAccessoryController()
|
|
|
- self.exportAccessoryC?.addFormatPopUpButton(formatPopup)
|
|
|
- self.exportAccessoryC?.matrix.target = self
|
|
|
- self.exportAccessoryC?.matrix.action = #selector(changeExportOption)
|
|
|
- savePanel.accessoryView = self.exportAccessoryC?.view
|
|
|
- self._updateExportAccessoryView()
|
|
|
+// self.exportAccessoryC = SKExportAccessoryController()
|
|
|
+// self.exportAccessoryC?.addFormatPopUpButton(formatPopup)
|
|
|
+// self.exportAccessoryC?.matrix.target = self
|
|
|
+// self.exportAccessoryC?.matrix.action = #selector(changeExportOption)
|
|
|
+// savePanel.accessoryView = self.exportAccessoryC?.view
|
|
|
+// self._updateExportAccessoryView()
|
|
|
}
|
|
|
}
|
|
|
return success
|