/*
* $Id: BrowserDocument.h 198 2010-01-06 23:05:30Z stuart $
*
* SafariTabs
* http://stuconnolly.com/projects/safaritabs/
*
* Copyright (c) 2010 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 3 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, see <http://www.gnu.org/licenses/>.
*/
@class BrowserWebView, WebDataSource;
@interface BrowserDocument : NSDocument
{
BrowserWebView *_currentWebView;
NSMutableArray *_webViews;
NSString *_MIMETypeForSaving;
NSURL *_originatingURLForSaving;
NSFileWrapper *_fileWrapperToSave;
WebDataSource *_dataSourceToSave;
NSSavePanel *_activeSavePanel;
NSView *fileFormatAccessoryView;
NSPopUpButton *fileFormatPopUpButton;
NSTabView *fileFormatInfoTabView;
BOOL _isSavingWithSavePanel;
BOOL _shouldOpenWindowBehindFrontmost;
}
+ (BOOL)lastDocumentCouldShowInputFields;
- (id)MIMETypeForSaving;
- (id)URLString;
- (void)_URLConfirmationDidEndForBookmark:(id)arg1 confirmed:(BOOL)arg2 contextInfo:(void *)arg3;
- (void)_URLConfirmationDidEndForBookmarkInBookmarksMenu:(id)arg1 confirmed:(BOOL)arg2 contextInfo:(void *)arg3;
- (void)_addItem:(id)arg1 toMenu:(id)arg2;
- (void)_goHomeUsingWindowPolicyFromCurrentEvent:(BOOL)arg1;
- (BOOL)_isDisplayingCompleteNonRSSPage;
- (BOOL)_isDisplayingNonRSSPage;
- (BOOL)_isDocumentHTML;
- (BOOL)_mailApplicationAtPath:(id)arg1 supportsKey:(id)arg2;
- (id)_mailApplicationPath;
- (void)_nameHasChanged;
- (id)_printingMailingFrame;
- (void)_reportLaunchFailureForMailApplicationAtPath:(id)arg1;
- (id)_selectedFrameView;
- (BOOL)_sendMessageEventToMailPath:(id)arg1 eventID:(unsigned long)arg2 directObject:(id)arg3 title:(id)arg4 URL:(id)arg5;
- (void)_updateFileFormatInformationText;
- (void)_updateTitleOfPrintMenuItem:(id)arg1;
- (void)addBookmark:(id)arg1;
- (void)addBookmarkToMenu:(id)arg1;
- (void)addBookmarksForTabs:(id)arg1;
- (void)addWebView:(id)arg1;
- (id)aeDescByEvaluatingJavaScriptFromString:(id)arg1;
- (id)allowedFileTypes;
- (id)backListMenuForButton:(id)arg1;
- (id)browserWindowController;
- (void)bugReportSheetDidEnd:(id)arg1 returnCode:(NSInteger)arg2 contextInfo:(void *)arg3;
- (BOOL)canAddBookmark;
- (BOOL)canAddBookmarksForTabs;
- (BOOL)canCreateWebClip;
- (BOOL)canGoHome;
- (BOOL)canMailPage;
- (BOOL)canMailPageAddress;
- (BOOL)canPrint;
- (BOOL)canSave;
- (BOOL)canSaveAsWebArchive;
- (BOOL)canShowInputFields;
- (BOOL)canUseAddressField;
- (BOOL)canUseSearchField;
- (BOOL)canViewSource;
- (void)changeFont:(id)arg1;
- (void)clearAllStatus;
- (void)clearPageCache;
- (void)close;
- (id)createBookmarkForWebView:(id)arg1 respectProvisionalPage:(BOOL)arg2;
- (id)createBookmarkRespectingProvisionalPage:(BOOL)arg1;
- (void)createWebClip:(id)arg1;
- (id)createWebView;
- (id)createWebViewWithFrameName:(id)arg1;
- (id)currentURL;
- (id)currentWebView;
- (id)dataRepresentationOfType:(id)arg1;
- (id)dataSourceToSave;
- (void)dealloc;
- (void)displayInitialContents;
- (void)displayInitialHomePage;
- (id)displayName;
- (void)document:(id)arg1 didSave:(BOOL)arg2 contextInfo:(void *)arg3;
- (id)evaluateJavaScript:(id)arg1;
- (void)fileFormatPopUpButtonUpdated:(id)arg1;
- (id)fileType;
- (id)filenameForSaving;
- (void)findNext:(id)arg1;
- (void)findPrevious:(id)arg1;
- (void)focusWebViewSearchField:(id)arg1;
- (id)forwardListMenuForButton:(id)arg1;
- (void)goHome:(id)arg1;
- (void)goToItemInBackOrForwardMenu:(id)arg1;
- (void)goToRequest:(id)arg1 withTabLabel:(id)arg2;
- (void)goToURL:(id)arg1;
- (BOOL)hasInitialContents;
- (void)hideFindBanner:(id)arg1;
- (id)init;
- (id)initWithContentsOfRequest:(id)arg1 frameName:(id)arg2;
- (id)initWithContentsOfURL:(id)arg1 ofType:(id)arg2;
- (BOOL)isDocumentEdited;
- (BOOL)isLoading;
- (BOOL)isSavingPlainText;
- (BOOL)isSavingWebArchive;
- (BOOL)isShowingLoadErrorPage;
- (void)loadCloneOfView:(id)arg1;
- (BOOL)loadDataRepresentation:(id)arg1 ofType:(id)arg2;
- (void)mailPage:(id)arg1;
- (void)mailPageAddress:(id)arg1;
- (void)mailPageContents;
- (void)mailPageForFrame:(id)arg1;
- (void)makeWindowControllers;
- (void)openLocation:(id)arg1;
- (id)pageName;
- (id)panel:(id)arg1 userEnteredFilename:(id)arg2 confirmed:(BOOL)arg3;
- (BOOL)prepareSavePanel:(id)arg1;
- (id)printInfo;
- (void)printShowingPrintPanel:(BOOL)arg1;
- (void)printWebFrame:(id)arg1 showingPrintPanel:(BOOL)arg2 useSheet:(BOOL)arg3;
- (void)proposeBookmarkForCurrentURL;
- (void)proposeBookmarkForProvisionalOrCurrentPage;
- (void)proposeBookmarkRespectingProvisionalPage:(BOOL)arg1;
- (void)reload:(id)arg1;
- (void)removeWebView:(id)arg1;
- (void)removeWindowController:(id)arg1;
- (void)reportBugToApple:(id)arg1;
- (void)safari_printDocument:(id)arg1;
- (void)saveDocument:(id)arg1;
- (void)saveDocumentAs:(id)arg1;
- (void)saveDocumentTo:(id)arg1;
- (BOOL)saveToURL:(id)arg1 ofType:(id)arg2 forSaveOperation:(NSUInteger)arg3 error:(id *)arg4;
- (void)searchWeb:(id)arg1;
- (void)setCurrentWebView:(id)arg1;
- (void)setDataSourceToSave:(id)arg1;
- (void)setFileWrapperToSave:(id)arg1 MIMEType:(id)arg2 originatingURL:(id)arg3;
- (void)setPrintInfo:(id)arg1;
- (void)setShouldOpenWindowBehindFrontmost:(BOOL)arg1;
- (void)setShouldStartEmpty;
- (void)setURLString:(id)arg1;
- (BOOL)shouldClose;
- (BOOL)shouldOpenWindowBehindFrontmost;
- (BOOL)shouldStartEmpty;
- (void)showWindows;
- (void)snapBackToSearchResults:(id)arg1;
- (id)source;
- (void)stopLoading:(id)arg1;
- (id)syndicationURLWithFilter;
- (id)text;
- (void)tryMultipleURLs:(id)arg1;
- (id)untitledName;
- (NSUInteger)validModesForFontPanel:(id)arg1;
- (BOOL)validateUserInterfaceItem:(id)arg1;
- (void)viewSource:(id)arg1;
- (id)writableTypesForSaveOperation:(NSUInteger)arg1;
@end