/*
* BrowserDocument.h
*
* SafariTabs
*
* Copyright (c) 2007 Stuart Connolly. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#import <Cocoa/Cocoa.h>
/* This file is the header for Safari's BrowserDocument class. It was produced by
* reverse engineering Safari's mach-o-file using class-dump, available from
* http://www.codethecode.com/Projects/class-dump/
*
* This file is not strictly necessary but it does supress many compiler warnings
* and is extremely useful as a reference for further development.
*/
@interface BrowserDocument : NSDocument
{
id *_currentWebView;
NSMutableArray *_webViews;
NSString *_MIMETypeForSaving;
NSFileWrapper *_fileWrapperToSave;
id *_dataSourceToSave;
NSView *fileFormatAccessoryView;
NSPopUpButton *fileFormatPopUpButton;
NSTabView *fileFormatInfoTabView;
BOOL _isSavingWithSavePanel;
BOOL _shouldOpenWindowBehindFrontmost;
}
+ (BOOL)lastDocumentCouldShowInputFields;
- (id)initWithContentsOfRequest:(id)fp8 frameName:(id)fp12;
- (id)init;
- (id)initWithContentsOfURL:(id)fp8 ofType:(id)fp12;
- (void)dealloc;
- (void)close;
- (BOOL)shouldClose;
- (void)makeWindowControllers;
- (void)removeWindowController:(id)fp8;
- (BOOL)isDocumentEdited;
- (id)browserWindowController;
- (id)dataSourceToSave;
- (BOOL)canSaveAsWebArchive;
- (BOOL)isSavingWebArchive;
- (id)MIMETypeForSaving;
- (id)filenameForSaving;
- (BOOL)isSavingPlainText;
- (void)setFileWrapperToSave:(id)fp8 MIMEType:(id)fp12;
- (void)setDataSourceToSave:(id)fp8;
- (BOOL)saveToURL:(id)fp8 ofType:(id)fp12 forSaveOperation:(int)fp16 error:(id *)fp20;
- (void)saveDocument:(id)fp8;
- (void)saveDocumentAs:(id)fp8;
- (void)saveDocumentTo:(id)fp8;
- (void)document:(id)fp8 didSave:(BOOL)fp12 contextInfo:(void *)fp16;
- (id)allowedFileTypes;
- (void)_updateFileFormatInformationText;
- (void)fileFormatPopUpButtonUpdated:(id)fp8;
- (BOOL)prepareSavePanel:(id)fp8;
- (id)panel:(id)fp8 userEnteredFilename:(id)fp12 confirmed:(BOOL)fp16;
- (id)dataRepresentationOfType:(id)fp8;
- (BOOL)loadDataRepresentation:(id)fp8 ofType:(id)fp12;
- (id)untitledName;
- (id)displayName;
- (id)fileType;
- (void)_nameHasChanged;
- (id)mainWebFrameView;
- (void)showWindows;
- (unsigned int)validModesForFontPanel:(id)fp8;
- (void)changeFont:(id)fp8;
- (void)snapBackToSearchResults:(id)fp8;
- (BOOL)canShowInputFields;
- (BOOL)canUseAddressField;
- (BOOL)canUseSearchField;
- (void)searchWeb:(id)fp8;
- (void)setPageForSnapBackToCurrentPage:(id)fp8;
- (void)snapBackToPage:(id)fp8;
- (id)pageForSnapBack;
- (void)openLocation:(id)fp8;
- (void)goToRequest:(id)fp8 withTabLabel:(id)fp12;
- (id)evaluateJavaScript:(id)fp8;
- (void)goToURL:(id)fp8;
- (void)loadCloneOfView:(id)fp8;
- (id)currentURL;
- (BOOL)canGoHome;
- (void)goHome:(id)fp8;
- (BOOL)hasInitialContents;
- (void)displayInitialContents;
- (void)bugReportSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)reportBugToApple:(id)fp8;
- (void)goToItemInBackOrForwardMenu:(id)fp8;
- (void)_addItem:(id)fp8 toMenu:(id)fp12;
- (id)backListMenuForButton:(id)fp8;
- (id)forwardListMenuForButton:(id)fp8;
- (void)reload:(id)fp8;
- (void)setShouldStartEmpty;
- (void)makeTextLarger:(id)fp8;
- (void)makeTextSmaller:(id)fp8;
- (void)stopLoading:(id)fp8;
- (BOOL)isLoading;
- (id)printInfo;
- (void)setPrintInfo:(id)fp8;
- (void)printWebFrameView:(id)fp8 showingPrintPanel:(BOOL)fp12 useSheet:(BOOL)fp16;
- (id)_selectedFrameView;
- (id)_printingMailingFrameView;
- (void)printShowingPrintPanel:(BOOL)fp8;
- (void)_updateTitleOfPrintMenuItem:(id)fp8;
- (BOOL)canPrint;
- (BOOL)canAddBookmark;
- (id)syndicationURLWithFilter;
- (id)createBookmarkRespectingProvisionalPage:(BOOL)fp8;
- (void)proposeBookmarkRespectingProvisionalPage:(BOOL)fp8;
- (void)proposeBookmarkForProvisionalOrCurrentPage;
- (void)addBookmark:(id)fp8;
- (void)addBookmarkToMenu:(id)fp8;
- (void)proposeBookmarkForCurrentURL;
- (void)clearAllStatus;
- (BOOL)_isDocumentHTML;
- (BOOL)_isDisplayingCompletePage;
- (BOOL)_isDisplayingLoadErrorPage;
- (BOOL)canViewSource;
- (BOOL)canMailPage;
- (BOOL)canMailPageAddress;
- (BOOL)canOpenInDashboard;
- (BOOL)canSave;
- (BOOL)validateUserInterfaceItem:(id)fp8;
- (void)viewSource:(id)fp8;
- (id)currentWebView;
- (void)tryMultipleURLs:(id)fp8;
- (BOOL)shouldOpenWindowBehindFrontmost;
- (void)setShouldOpenWindowBehindFrontmost:(BOOL)fp8;
- (id)_mailApplicationPath;
- (BOOL)_mailApplicationAtPath:(id)fp8 supportsKey:(id)fp12;
- (BOOL)_sendMessageEventToMailPath:(id)fp8 eventID:(unsigned long)fp12 directObject:(id)fp16 title:(id)fp20;
- (void)mailPage:(id)fp8;
- (void)_reportLaunchFailureForMailApplicationAtPath:(id)fp8;
- (void)mailPageAddress:(id)fp8;
- (id)webWidgetURLWithParameters:(id)fp8;
- (void)openInDashboard:(id)fp8;
- (id)URLString;
- (void)setURLString:(id)fp8;
- (id)source;
- (id)text;
- (void)clearPageCache;
- (id)pageName;
- (id)createWebViewWithFrameName:(id)fp8;
- (id)createWebView;
- (void)removeWebView:(id)fp8;
- (void)setCurrentWebView:(id)fp8;
@end