dev.stuconnolly.com / svn / safaritabs

  1. /*
  2.  *  BrowserDocument.h
  3.  *
  4.  *  SafariTabs
  5.  *
  6.  *  Copyright (c) 2007 Stuart Connolly. All rights reserved.
  7.  *
  8.  *  This program is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU General Public License
  10.  *  as published by the Free Software Foundation; either version 2
  11.  *  of the License, or (at your option) any later version.
  12.  *
  13.  *  This program is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16.  *  GNU General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this program; if not, write to the Free Software
  20.  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  21.  */
  22.  
  23. #import <Cocoa/Cocoa.h>
  24.  
  25. /*  This file is the header for Safari's BrowserDocument class. It was produced by
  26.  *  reverse engineering Safari's mach-o-file using class-dump, available from
  27.  *  http://www.codethecode.com/Projects/class-dump/
  28.  *
  29.  *  This file is not strictly necessary but it does supress many compiler warnings
  30.  *  and is extremely useful as a reference for further development.
  31.  */
  32.  
  33. @interface BrowserDocument : NSDocument
  34. {
  35.     id *_currentWebView;
  36.     NSMutableArray *_webViews;
  37.     NSString *_MIMETypeForSaving;
  38.     NSFileWrapper *_fileWrapperToSave;
  39.     id *_dataSourceToSave;
  40.     NSView *fileFormatAccessoryView;
  41.     NSPopUpButton *fileFormatPopUpButton;
  42.     NSTabView *fileFormatInfoTabView;
  43.     BOOL _isSavingWithSavePanel;
  44.     BOOL _shouldOpenWindowBehindFrontmost;
  45. }
  46.  
  47. + (BOOL)lastDocumentCouldShowInputFields;
  48. - (id)initWithContentsOfRequest:(id)fp8 frameName:(id)fp12;
  49. - (id)init;
  50. - (id)initWithContentsOfURL:(id)fp8 ofType:(id)fp12;
  51. - (void)dealloc;
  52. - (void)close;
  53. - (BOOL)shouldClose;
  54. - (void)makeWindowControllers;
  55. - (void)removeWindowController:(id)fp8;
  56. - (BOOL)isDocumentEdited;
  57. - (id)browserWindowController;
  58. - (id)dataSourceToSave;
  59. - (BOOL)canSaveAsWebArchive;
  60. - (BOOL)isSavingWebArchive;
  61. - (id)MIMETypeForSaving;
  62. - (id)filenameForSaving;
  63. - (BOOL)isSavingPlainText;
  64. - (void)setFileWrapperToSave:(id)fp8 MIMEType:(id)fp12;
  65. - (void)setDataSourceToSave:(id)fp8;
  66. - (BOOL)saveToURL:(id)fp8 ofType:(id)fp12 forSaveOperation:(int)fp16 error:(id *)fp20;
  67. - (void)saveDocument:(id)fp8;
  68. - (void)saveDocumentAs:(id)fp8;
  69. - (void)saveDocumentTo:(id)fp8;
  70. - (void)document:(id)fp8 didSave:(BOOL)fp12 contextInfo:(void *)fp16;
  71. - (id)allowedFileTypes;
  72. - (void)_updateFileFormatInformationText;
  73. - (void)fileFormatPopUpButtonUpdated:(id)fp8;
  74. - (BOOL)prepareSavePanel:(id)fp8;
  75. - (id)panel:(id)fp8 userEnteredFilename:(id)fp12 confirmed:(BOOL)fp16;
  76. - (id)dataRepresentationOfType:(id)fp8;
  77. - (BOOL)loadDataRepresentation:(id)fp8 ofType:(id)fp12;
  78. - (id)untitledName;
  79. - (id)displayName;
  80. - (id)fileType;
  81. - (void)_nameHasChanged;
  82. - (id)mainWebFrameView;
  83. - (void)showWindows;
  84. - (unsigned int)validModesForFontPanel:(id)fp8;
  85. - (void)changeFont:(id)fp8;
  86. - (void)snapBackToSearchResults:(id)fp8;
  87. - (BOOL)canShowInputFields;
  88. - (BOOL)canUseAddressField;
  89. - (BOOL)canUseSearchField;
  90. - (void)searchWeb:(id)fp8;
  91. - (void)setPageForSnapBackToCurrentPage:(id)fp8;
  92. - (void)snapBackToPage:(id)fp8;
  93. - (id)pageForSnapBack;
  94. - (void)openLocation:(id)fp8;
  95. - (void)goToRequest:(id)fp8 withTabLabel:(id)fp12;
  96. - (id)evaluateJavaScript:(id)fp8;
  97. - (void)goToURL:(id)fp8;
  98. - (void)loadCloneOfView:(id)fp8;
  99. - (id)currentURL;
  100. - (BOOL)canGoHome;
  101. - (void)goHome:(id)fp8;
  102. - (BOOL)hasInitialContents;
  103. - (void)displayInitialContents;
  104. - (void)bugReportSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
  105. - (void)reportBugToApple:(id)fp8;
  106. - (void)goToItemInBackOrForwardMenu:(id)fp8;
  107. - (void)_addItem:(id)fp8 toMenu:(id)fp12;
  108. - (id)backListMenuForButton:(id)fp8;
  109. - (id)forwardListMenuForButton:(id)fp8;
  110. - (void)reload:(id)fp8;
  111. - (void)setShouldStartEmpty;
  112. - (void)makeTextLarger:(id)fp8;
  113. - (void)makeTextSmaller:(id)fp8;
  114. - (void)stopLoading:(id)fp8;
  115. - (BOOL)isLoading;
  116. - (id)printInfo;
  117. - (void)setPrintInfo:(id)fp8;
  118. - (void)printWebFrameView:(id)fp8 showingPrintPanel:(BOOL)fp12 useSheet:(BOOL)fp16;
  119. - (id)_selectedFrameView;
  120. - (id)_printingMailingFrameView;
  121. - (void)printShowingPrintPanel:(BOOL)fp8;
  122. - (void)_updateTitleOfPrintMenuItem:(id)fp8;
  123. - (BOOL)canPrint;
  124. - (BOOL)canAddBookmark;
  125. - (id)syndicationURLWithFilter;
  126. - (id)createBookmarkRespectingProvisionalPage:(BOOL)fp8;
  127. - (void)proposeBookmarkRespectingProvisionalPage:(BOOL)fp8;
  128. - (void)proposeBookmarkForProvisionalOrCurrentPage;
  129. - (void)addBookmark:(id)fp8;
  130. - (void)addBookmarkToMenu:(id)fp8;
  131. - (void)proposeBookmarkForCurrentURL;
  132. - (void)clearAllStatus;
  133. - (BOOL)_isDocumentHTML;
  134. - (BOOL)_isDisplayingCompletePage;
  135. - (BOOL)_isDisplayingLoadErrorPage;
  136. - (BOOL)canViewSource;
  137. - (BOOL)canMailPage;
  138. - (BOOL)canMailPageAddress;
  139. - (BOOL)canOpenInDashboard;
  140. - (BOOL)canSave;
  141. - (BOOL)validateUserInterfaceItem:(id)fp8;
  142. - (void)viewSource:(id)fp8;
  143. - (id)currentWebView;
  144. - (void)tryMultipleURLs:(id)fp8;
  145. - (BOOL)shouldOpenWindowBehindFrontmost;
  146. - (void)setShouldOpenWindowBehindFrontmost:(BOOL)fp8;
  147. - (id)_mailApplicationPath;
  148. - (BOOL)_mailApplicationAtPath:(id)fp8 supportsKey:(id)fp12;
  149. - (BOOL)_sendMessageEventToMailPath:(id)fp8 eventID:(unsigned long)fp12 directObject:(id)fp16 title:(id)fp20;
  150. - (void)mailPage:(id)fp8;
  151. - (void)_reportLaunchFailureForMailApplicationAtPath:(id)fp8;
  152. - (void)mailPageAddress:(id)fp8;
  153. - (id)webWidgetURLWithParameters:(id)fp8;
  154. - (void)openInDashboard:(id)fp8;
  155. - (id)URLString;
  156. - (void)setURLString:(id)fp8;
  157. - (id)source;
  158. - (id)text;
  159. - (void)clearPageCache;
  160. - (id)pageName;
  161. - (id)createWebViewWithFrameName:(id)fp8;
  162. - (id)createWebView;
  163. - (void)removeWebView:(id)fp8;
  164. - (void)setCurrentWebView:(id)fp8;
  165.  
  166. @end