📄 nsiwebbrowserfind.h
字号:
{ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute boolean wrapFind; */NS_IMETHODIMP nsWebBrowserFind::GetWrapFind(PRBool *aWrapFind){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFind::SetWrapFind(PRBool aWrapFind){ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute boolean entireWord; */NS_IMETHODIMP nsWebBrowserFind::GetEntireWord(PRBool *aEntireWord){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFind::SetEntireWord(PRBool aEntireWord){ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute boolean matchCase; */NS_IMETHODIMP nsWebBrowserFind::GetMatchCase(PRBool *aMatchCase){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFind::SetMatchCase(PRBool aMatchCase){ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute boolean searchFrames; */NS_IMETHODIMP nsWebBrowserFind::GetSearchFrames(PRBool *aSearchFrames){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFind::SetSearchFrames(PRBool aSearchFrames){ return NS_ERROR_NOT_IMPLEMENTED;}/* End of implementation class template. */#endif/* starting interface: nsIWebBrowserFindInFrames */#define NS_IWEBBROWSERFINDINFRAMES_IID_STR "e0f5d182-34bc-11d5-be5b-b760676c6ebc"#define NS_IWEBBROWSERFINDINFRAMES_IID \ {0xe0f5d182, 0x34bc, 0x11d5, \ { 0xbe, 0x5b, 0xb7, 0x60, 0x67, 0x6c, 0x6e, 0xbc }}/** * nsIWebBrowserFindInFrames * * Controls how find behaves when multiple frames or iframes are present. * * Get by doing a QueryInterface from nsIWebBrowserFind. * * @status FROZEN */class NS_NO_VTABLE nsIWebBrowserFindInFrames : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERFINDINFRAMES_IID) /** * currentSearchFrame * * Frame at which to start the search. Once the search is done, this will * be set to be the last frame searched, whether or not a result was found. * Has to be equal to or contained within the rootSearchFrame. */ /* attribute nsIDOMWindow currentSearchFrame; */ NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame) = 0; NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame) = 0; /** * rootSearchFrame * * Frame within which to confine the search (normally the content area frame). * Set this to only search a subtree of the frame hierarchy. */ /* attribute nsIDOMWindow rootSearchFrame; */ NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame) = 0; NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame) = 0; /** * searchSubframes * * Whether to recurse down into subframes while searching. Default is true. * * Setting nsIWebBrowserfind.searchFrames to true sets this to true. */ /* attribute boolean searchSubframes; */ NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes) = 0; NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes) = 0; /** * searchParentFrames * * Whether to allow the search to propagate out of the currentSearchFrame into its * parent frame(s). Search is always confined within the rootSearchFrame. Default * is true. * * Setting nsIWebBrowserfind.searchFrames to true sets this to true. */ /* attribute boolean searchParentFrames; */ NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames) = 0; NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames) = 0;};/* Use this macro when declaring classes that implement this interface. */#define NS_DECL_NSIWEBBROWSERFINDINFRAMES \ NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame); \ NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame); \ NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame); \ NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame); \ NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes); \ NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes); \ NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames); \ NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames); /* Use this macro to declare functions that forward the behavior of this interface to another object. */#define NS_FORWARD_NSIWEBBROWSERFINDINFRAMES(_to) \ NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame) { return _to GetCurrentSearchFrame(aCurrentSearchFrame); } \ NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame) { return _to SetCurrentSearchFrame(aCurrentSearchFrame); } \ NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame) { return _to GetRootSearchFrame(aRootSearchFrame); } \ NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame) { return _to SetRootSearchFrame(aRootSearchFrame); } \ NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes) { return _to GetSearchSubframes(aSearchSubframes); } \ NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes) { return _to SetSearchSubframes(aSearchSubframes); } \ NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames) { return _to GetSearchParentFrames(aSearchParentFrames); } \ NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames) { return _to SetSearchParentFrames(aSearchParentFrames); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */#define NS_FORWARD_SAFE_NSIWEBBROWSERFINDINFRAMES(_to) \ NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentSearchFrame(aCurrentSearchFrame); } \ NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentSearchFrame(aCurrentSearchFrame); } \ NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootSearchFrame(aRootSearchFrame); } \ NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRootSearchFrame(aRootSearchFrame); } \ NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchSubframes(aSearchSubframes); } \ NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchSubframes(aSearchSubframes); } \ NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchParentFrames(aSearchParentFrames); } \ NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchParentFrames(aSearchParentFrames); } #if 0/* Use the code below as a template for the implementation class for this interface. *//* Header file */class nsWebBrowserFindInFrames : public nsIWebBrowserFindInFrames{public: NS_DECL_ISUPPORTS NS_DECL_NSIWEBBROWSERFINDINFRAMES nsWebBrowserFindInFrames(); virtual ~nsWebBrowserFindInFrames(); /* additional members */};/* Implementation file */NS_IMPL_ISUPPORTS1(nsWebBrowserFindInFrames, nsIWebBrowserFindInFrames)nsWebBrowserFindInFrames::nsWebBrowserFindInFrames(){ /* member initializers and constructor code */}nsWebBrowserFindInFrames::~nsWebBrowserFindInFrames(){ /* destructor code */}/* attribute nsIDOMWindow currentSearchFrame; */NS_IMETHODIMP nsWebBrowserFindInFrames::GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFindInFrames::SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame){ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute nsIDOMWindow rootSearchFrame; */NS_IMETHODIMP nsWebBrowserFindInFrames::GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFindInFrames::SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame){ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute boolean searchSubframes; */NS_IMETHODIMP nsWebBrowserFindInFrames::GetSearchSubframes(PRBool *aSearchSubframes){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFindInFrames::SetSearchSubframes(PRBool aSearchSubframes){ return NS_ERROR_NOT_IMPLEMENTED;}/* attribute boolean searchParentFrames; */NS_IMETHODIMP nsWebBrowserFindInFrames::GetSearchParentFrames(PRBool *aSearchParentFrames){ return NS_ERROR_NOT_IMPLEMENTED;}NS_IMETHODIMP nsWebBrowserFindInFrames::SetSearchParentFrames(PRBool aSearchParentFrames){ return NS_ERROR_NOT_IMPLEMENTED;}/* End of implementation class template. */#endif#endif /* __gen_nsIWebBrowserFind_h__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -