1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3
* The contents of this file are subject to the Mozilla Public
4
* License Version 1.1 (the "License"); you may not use this file
5
* except in compliance with the License. You may obtain a copy of
6
* the License at http://www.mozilla.org/MPL/
8
* Software distributed under the License is distributed on an "AS
9
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
* implied. See the License for the specific language governing
11
* rights and limitations under the License.
13
* The Original Code is the Mozilla browser.
15
* The Initial Developer of the Original Code is Netscape
16
* Communications Corporation. Portions created by Netscape are
17
* Copyright (C) 1999 Netscape Communications Corporation. All
21
* Stuart Parmenter <pavlov@netscape.com>
22
* Mike Pinkerton <pinkerton@netscape.com>
25
#ifndef nsBaseFilePicker_h__
26
#define nsBaseFilePicker_h__
28
#include "nsIFilePicker.h"
29
#include "nsIWidget.h"
30
#include "nsISimpleEnumerator.h"
32
class nsBaseFilePicker : public nsIFilePicker
36
virtual ~nsBaseFilePicker();
38
NS_IMETHOD Init(nsIDOMWindow *aParent,
39
const nsAString& aTitle,
42
NS_IMETHOD AppendFilters(PRInt32 filterMask);
43
NS_IMETHOD GetFilterIndex(PRInt32 *aFilterIndex);
44
NS_IMETHOD SetFilterIndex(PRInt32 aFilterIndex);
45
NS_IMETHOD GetFiles(nsISimpleEnumerator **aFiles);
49
virtual void InitNative(nsIWidget *aParent, const nsAString& aTitle,
52
nsIWidget *DOMWindowToWidget(nsIDOMWindow *dw);
55
#endif // nsBaseFilePicker_h__