dev.stuconnolly.com / svn / safaritabs

  1. /*
  2.  *  $Id: BrowserDocument.h 198 2010-01-06 23:05:30Z stuart $
  3.  *
  4.  *  SafariTabs
  5.  *  http://stuconnolly.com/projects/safaritabs/
  6.  *
  7.  *  Copyright (c) 2010 Stuart Connolly. All rights reserved.
  8.  *
  9.  *  This program is free software: you can redistribute it and/or modify
  10.  *  it under the terms of the GNU General Public License as published by
  11.  *  the Free Software Foundation, either version 3 of the License, or
  12.  *  (at your option) any later version.
  13.  *
  14.  *  This program is distributed in the hope that it will be useful,
  15.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17.  *  GNU General Public License for more details.
  18.  *
  19.  *  You should have received a copy of the GNU General Public License
  20.  *  along with this program. If not, see <http://www.gnu.org/licenses/>.
  21.  */
  22.  
  23. @class BrowserWebView, WebDataSource;
  24.  
  25. @interface BrowserDocument : NSDocument
  26. {
  27.     BrowserWebView *_currentWebView;
  28.     NSMutableArray *_webViews;
  29.     NSString *_MIMETypeForSaving;
  30.     NSURL *_originatingURLForSaving;
  31.     NSFileWrapper *_fileWrapperToSave;
  32.     WebDataSource *_dataSourceToSave;
  33.     NSSavePanel *_activeSavePanel;
  34.     NSView *fileFormatAccessoryView;
  35.     NSPopUpButton *fileFormatPopUpButton;
  36.     NSTabView *fileFormatInfoTabView;
  37.     BOOL _isSavingWithSavePanel;
  38.     BOOL _shouldOpenWindowBehindFrontmost;
  39. }
  40.  
  41. + (BOOL)lastDocumentCouldShowInputFields;
  42. - (id)MIMETypeForSaving;
  43. - (id)URLString;
  44. - (void)_URLConfirmationDidEndForBookmark:(id)arg1 confirmed:(BOOL)arg2 contextInfo:(void *)arg3;
  45. - (void)_URLConfirmationDidEndForBookmarkInBookmarksMenu:(id)arg1 confirmed:(BOOL)arg2 contextInfo:(void *)arg3;
  46. - (void)_addItem:(id)arg1 toMenu:(id)arg2;
  47. - (void)_goHomeUsingWindowPolicyFromCurrentEvent:(BOOL)arg1;
  48. - (BOOL)_isDisplayingCompleteNonRSSPage;
  49. - (BOOL)_isDisplayingNonRSSPage;
  50. - (BOOL)_isDocumentHTML;
  51. - (BOOL)_mailApplicationAtPath:(id)arg1 supportsKey:(id)arg2;
  52. - (id)_mailApplicationPath;
  53. - (void)_nameHasChanged;
  54. - (id)_printingMailingFrame;
  55. - (void)_reportLaunchFailureForMailApplicationAtPath:(id)arg1;
  56. - (id)_selectedFrameView;
  57. - (BOOL)_sendMessageEventToMailPath:(id)arg1 eventID:(unsigned long)arg2 directObject:(id)arg3 title:(id)arg4 URL:(id)arg5;
  58. - (void)_updateFileFormatInformationText;
  59. - (void)_updateTitleOfPrintMenuItem:(id)arg1;
  60. - (void)addBookmark:(id)arg1;
  61. - (void)addBookmarkToMenu:(id)arg1;
  62. - (void)addBookmarksForTabs:(id)arg1;
  63. - (void)addWebView:(id)arg1;
  64. - (id)aeDescByEvaluatingJavaScriptFromString:(id)arg1;
  65. - (id)allowedFileTypes;
  66. - (id)backListMenuForButton:(id)arg1;
  67. - (id)browserWindowController;
  68. - (void)bugReportSheetDidEnd:(id)arg1 returnCode:(NSInteger)arg2 contextInfo:(void *)arg3;
  69. - (BOOL)canAddBookmark;
  70. - (BOOL)canAddBookmarksForTabs;
  71. - (BOOL)canCreateWebClip;
  72. - (BOOL)canGoHome;
  73. - (BOOL)canMailPage;
  74. - (BOOL)canMailPageAddress;
  75. - (BOOL)canPrint;
  76. - (BOOL)canSave;
  77. - (BOOL)canSaveAsWebArchive;
  78. - (BOOL)canShowInputFields;
  79. - (BOOL)canUseAddressField;
  80. - (BOOL)canUseSearchField;
  81. - (BOOL)canViewSource;
  82. - (void)changeFont:(id)arg1;
  83. - (void)clearAllStatus;
  84. - (void)clearPageCache;
  85. - (void)close;
  86. - (id)createBookmarkForWebView:(id)arg1 respectProvisionalPage:(BOOL)arg2;
  87. - (id)createBookmarkRespectingProvisionalPage:(BOOL)arg1;
  88. - (void)createWebClip:(id)arg1;
  89. - (id)createWebView;
  90. - (id)createWebViewWithFrameName:(id)arg1;
  91. - (id)currentURL;
  92. - (id)currentWebView;
  93. - (id)dataRepresentationOfType:(id)arg1;
  94. - (id)dataSourceToSave;
  95. - (void)dealloc;
  96. - (void)displayInitialContents;
  97. - (void)displayInitialHomePage;
  98. - (id)displayName;
  99. - (void)document:(id)arg1 didSave:(BOOL)arg2 contextInfo:(void *)arg3;
  100. - (id)evaluateJavaScript:(id)arg1;
  101. - (void)fileFormatPopUpButtonUpdated:(id)arg1;
  102. - (id)fileType;
  103. - (id)filenameForSaving;
  104. - (void)findNext:(id)arg1;
  105. - (void)findPrevious:(id)arg1;
  106. - (void)focusWebViewSearchField:(id)arg1;
  107. - (id)forwardListMenuForButton:(id)arg1;
  108. - (void)goHome:(id)arg1;
  109. - (void)goToItemInBackOrForwardMenu:(id)arg1;
  110. - (void)goToRequest:(id)arg1 withTabLabel:(id)arg2;
  111. - (void)goToURL:(id)arg1;
  112. - (BOOL)hasInitialContents;
  113. - (void)hideFindBanner:(id)arg1;
  114. - (id)init;
  115. - (id)initWithContentsOfRequest:(id)arg1 frameName:(id)arg2;
  116. - (id)initWithContentsOfURL:(id)arg1 ofType:(id)arg2;
  117. - (BOOL)isDocumentEdited;
  118. - (BOOL)isLoading;
  119. - (BOOL)isSavingPlainText;
  120. - (BOOL)isSavingWebArchive;
  121. - (BOOL)isShowingLoadErrorPage;
  122. - (void)loadCloneOfView:(id)arg1;
  123. - (BOOL)loadDataRepresentation:(id)arg1 ofType:(id)arg2;
  124. - (void)mailPage:(id)arg1;
  125. - (void)mailPageAddress:(id)arg1;
  126. - (void)mailPageContents;
  127. - (void)mailPageForFrame:(id)arg1;
  128. - (void)makeWindowControllers;
  129. - (void)openLocation:(id)arg1;
  130. - (id)pageName;
  131. - (id)panel:(id)arg1 userEnteredFilename:(id)arg2 confirmed:(BOOL)arg3;
  132. - (BOOL)prepareSavePanel:(id)arg1;
  133. - (id)printInfo;
  134. - (void)printShowingPrintPanel:(BOOL)arg1;
  135. - (void)printWebFrame:(id)arg1 showingPrintPanel:(BOOL)arg2 useSheet:(BOOL)arg3;
  136. - (void)proposeBookmarkForCurrentURL;
  137. - (void)proposeBookmarkForProvisionalOrCurrentPage;
  138. - (void)proposeBookmarkRespectingProvisionalPage:(BOOL)arg1;
  139. - (void)reload:(id)arg1;
  140. - (void)removeWebView:(id)arg1;
  141. - (void)removeWindowController:(id)arg1;
  142. - (void)reportBugToApple:(id)arg1;
  143. - (void)safari_printDocument:(id)arg1;
  144. - (void)saveDocument:(id)arg1;
  145. - (void)saveDocumentAs:(id)arg1;
  146. - (void)saveDocumentTo:(id)arg1;
  147. - (BOOL)saveToURL:(id)arg1 ofType:(id)arg2 forSaveOperation:(NSUInteger)arg3 error:(id *)arg4;
  148. - (void)searchWeb:(id)arg1;
  149. - (void)setCurrentWebView:(id)arg1;
  150. - (void)setDataSourceToSave:(id)arg1;
  151. - (void)setFileWrapperToSave:(id)arg1 MIMEType:(id)arg2 originatingURL:(id)arg3;
  152. - (void)setPrintInfo:(id)arg1;
  153. - (void)setShouldOpenWindowBehindFrontmost:(BOOL)arg1;
  154. - (void)setShouldStartEmpty;
  155. - (void)setURLString:(id)arg1;
  156. - (BOOL)shouldClose;
  157. - (BOOL)shouldOpenWindowBehindFrontmost;
  158. - (BOOL)shouldStartEmpty;
  159. - (void)showWindows;
  160. - (void)snapBackToSearchResults:(id)arg1;
  161. - (id)source;
  162. - (void)stopLoading:(id)arg1;
  163. - (id)syndicationURLWithFilter;
  164. - (id)text;
  165. - (void)tryMultipleURLs:(id)arg1;
  166. - (id)untitledName;
  167. - (NSUInteger)validModesForFontPanel:(id)arg1;
  168. - (BOOL)validateUserInterfaceItem:(id)arg1;
  169. - (void)viewSource:(id)arg1;
  170. - (id)writableTypesForSaveOperation:(NSUInteger)arg1;
  171.  
  172. @end
  173.