mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 23:25:03 +00:00
Checking in file dialog stubs for sdagley.
This commit is contained in:
parent
e16a6f3859
commit
fa1c367a8e
@ -189,3 +189,23 @@ NS_METHOD nsFileWidget::Create(nsIWidget *aParent,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsFileDlgResults nsFileWidget::GetFile(nsIWidget *aParent,
|
||||
nsString &promptString,
|
||||
nsFileSpec &theFileSpec)
|
||||
{
|
||||
return nsFileDlgResults_Cancel;
|
||||
}
|
||||
|
||||
nsFileDlgResults nsFileWidget::GetFolder(nsIWidget *aParent,
|
||||
nsString &promptString,
|
||||
nsFileSpec &theFileSpec)
|
||||
{
|
||||
return nsFileDlgResults_Cancel;
|
||||
}
|
||||
|
||||
nsFileDlgResults nsFileWidget::PutFile(nsIWidget *aParent,
|
||||
nsString &promptString,
|
||||
nsFileSpec &theFileSpec)
|
||||
{
|
||||
return nsFileDlgResults_Cancel;
|
||||
}
|
||||
|
@ -52,16 +52,28 @@ class nsFileWidget : public nsIFileWidget
|
||||
|
||||
// nsIFileWidget part
|
||||
virtual PRBool Show();
|
||||
NS_IMETHOD GetFile(nsString& aFile);
|
||||
NS_IMETHOD GetFile(nsString& aFile);
|
||||
NS_IMETHOD GetFile(nsFileSpec& aFile);
|
||||
NS_IMETHOD SetDefaultString(nsString& aFile);
|
||||
NS_IMETHOD SetFilterList(PRUint32 aNumberOfFilters,
|
||||
const nsString aTitles[],
|
||||
const nsString aFilters[]);
|
||||
NS_IMETHOD SetDefaultString(nsString& aFile);
|
||||
NS_IMETHOD SetFilterList(PRUint32 aNumberOfFilters,
|
||||
const nsString aTitles[],
|
||||
const nsString aFilters[]);
|
||||
|
||||
NS_IMETHOD GetDisplayDirectory(nsString& aDirectory);
|
||||
NS_IMETHOD SetDisplayDirectory(nsString& aDirectory);
|
||||
|
||||
virtual nsFileDlgResults GetFile(nsIWidget *aParent,
|
||||
nsString &promptString,
|
||||
nsFileSpec &theFileSpec);
|
||||
|
||||
virtual nsFileDlgResults GetFolder(nsIWidget *aParent,
|
||||
nsString &promptString,
|
||||
nsFileSpec &theFileSpec);
|
||||
|
||||
virtual nsFileDlgResults PutFile(nsIWidget *aParent,
|
||||
nsString &promptString,
|
||||
nsFileSpec &theFileSpec);
|
||||
|
||||
protected:
|
||||
GtkWidget *mWidget;
|
||||
nsString mTitle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user