diff --git a/Meta/Lagom/Contrib/MacPDF/CMakeLists.txt b/Meta/Lagom/Contrib/MacPDF/CMakeLists.txt index 39c4613193..a37f9f68bd 100644 --- a/Meta/Lagom/Contrib/MacPDF/CMakeLists.txt +++ b/Meta/Lagom/Contrib/MacPDF/CMakeLists.txt @@ -10,14 +10,14 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) add_compile_options(-DAK_DONT_REPLACE_STD) set(RESOURCES - LagomPDFDocument.xib + MacPDFDocument.xib MainMenu.xib ) add_executable(MacPDF MACOSX_BUNDLE main.mm AppDelegate.mm - LagomPDFDocument.mm + MacPDFDocument.mm MacPDFView.mm ) target_compile_options(MacPDF PRIVATE diff --git a/Meta/Lagom/Contrib/MacPDF/Info.plist b/Meta/Lagom/Contrib/MacPDF/Info.plist index 65d5b3c2ca..c88dcd1217 100644 --- a/Meta/Lagom/Contrib/MacPDF/Info.plist +++ b/Meta/Lagom/Contrib/MacPDF/Info.plist @@ -16,7 +16,7 @@ com.adobe.pdf NSDocumentClass - LagomPDFDocument + MacPDFDocument CFBundleExecutable diff --git a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.h b/Meta/Lagom/Contrib/MacPDF/MacPDFDocument.h similarity index 86% rename from Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.h rename to Meta/Lagom/Contrib/MacPDF/MacPDFDocument.h index 9f2acc1757..85180eaefa 100644 --- a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.h +++ b/Meta/Lagom/Contrib/MacPDF/MacPDFDocument.h @@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface LagomPDFDocument : NSDocument +@interface MacPDFDocument : NSDocument { IBOutlet MacPDFView* _pdfView; } diff --git a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm b/Meta/Lagom/Contrib/MacPDF/MacPDFDocument.mm similarity index 97% rename from Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm rename to Meta/Lagom/Contrib/MacPDF/MacPDFDocument.mm index f7af8f09d1..80644a24a5 100644 --- a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm +++ b/Meta/Lagom/Contrib/MacPDF/MacPDFDocument.mm @@ -4,20 +4,20 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#import "LagomPDFDocument.h" +#import "MacPDFDocument.h" #import #include -@interface LagomPDFDocument () +@interface MacPDFDocument () { NSData* _data; // Strong, _doc refers to it. RefPtr _doc; } @end -@implementation LagomPDFDocument +@implementation MacPDFDocument - (void)promptForPassword:(NSWindow*)window { @@ -73,7 +73,7 @@ - (NSString*)windowNibName { - return @"LagomPDFDocument"; + return @"MacPDFDocument"; } - (void)windowControllerDidLoadNib:(NSWindowController*)aController diff --git a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.xib b/Meta/Lagom/Contrib/MacPDF/MacPDFDocument.xib similarity index 98% rename from Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.xib rename to Meta/Lagom/Contrib/MacPDF/MacPDFDocument.xib index cd4ffb2eb4..f6f129781e 100644 --- a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.xib +++ b/Meta/Lagom/Contrib/MacPDF/MacPDFDocument.xib @@ -5,7 +5,7 @@ - + diff --git a/Meta/Lagom/Contrib/MacPDF/MacPDFView.mm b/Meta/Lagom/Contrib/MacPDF/MacPDFView.mm index fec7aa5672..103a3c7147 100644 --- a/Meta/Lagom/Contrib/MacPDF/MacPDFView.mm +++ b/Meta/Lagom/Contrib/MacPDF/MacPDFView.mm @@ -60,7 +60,7 @@ static NSBitmapImageRep* ns_from_gfx(NonnullRefPtr bitmap_p) @implementation MacPDFView -// Called from LagomPDFDocument +// Called from MacPDFDocument. - (void)setDocument:(WeakPtr)doc { NSLog(@"doc set");