~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/widget/src/xpwidgets/nsBaseFilePicker.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
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/
 
7
 * 
 
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.
 
12
 * 
 
13
 * The Original Code is the Mozilla browser.
 
14
 * 
 
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
 
18
 * Rights Reserved.
 
19
 * 
 
20
 * Contributor(s): 
 
21
 *   Stuart Parmenter <pavlov@netscape.com>
 
22
 *   Mike Pinkerton   <pinkerton@netscape.com>
 
23
 */
 
24
 
 
25
#ifndef nsBaseFilePicker_h__
 
26
#define nsBaseFilePicker_h__
 
27
 
 
28
#include "nsIFilePicker.h"
 
29
#include "nsIWidget.h"
 
30
#include "nsISimpleEnumerator.h"
 
31
 
 
32
class nsBaseFilePicker : public nsIFilePicker
 
33
{
 
34
public:
 
35
  nsBaseFilePicker(); 
 
36
  virtual ~nsBaseFilePicker();
 
37
 
 
38
  NS_IMETHOD Init(nsIDOMWindow *aParent,
 
39
                  const nsAString& aTitle,
 
40
                  PRInt16 aMode);
 
41
 
 
42
  NS_IMETHOD AppendFilters(PRInt32 filterMask);
 
43
  NS_IMETHOD GetFilterIndex(PRInt32 *aFilterIndex);
 
44
  NS_IMETHOD SetFilterIndex(PRInt32 aFilterIndex);
 
45
  NS_IMETHOD GetFiles(nsISimpleEnumerator **aFiles);
 
46
 
 
47
protected:
 
48
 
 
49
  virtual void InitNative(nsIWidget *aParent, const nsAString& aTitle,
 
50
                          PRInt16 aMode) = 0;
 
51
 
 
52
  nsIWidget *DOMWindowToWidget(nsIDOMWindow *dw);
 
53
};
 
54
 
 
55
#endif // nsBaseFilePicker_h__