1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: filedlg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
35 #include <tools/string.hxx>
36 #include <tools/errcode.hxx>
38 #ifndef INCLUDED_MEMORY
40 #define INCLUDED_MEMORY
44 class SdFileDialog_Imp
;
46 /******************************************************************************/
49 The class SdExportFileDialog wraps the FileDialogHelper, displaying the
50 FILESAVE_AUTOEXTENSION_SELECTION dialog template. The interface is a downstripped
51 version of the aforementioned class, with similar semantics.
53 class SdExportFileDialog
55 const std::auto_ptr
< SdFileDialog_Imp
> mpImpl
;
57 // forbidden and not implemented
58 SdExportFileDialog ();
59 SdExportFileDialog (const SdExportFileDialog
&);
60 SdExportFileDialog
& operator= (const SdExportFileDialog
&);
63 explicit SdExportFileDialog( BOOL haveCheckbox
);
64 ~SdExportFileDialog();
67 String
GetPath() const;
68 void SetPath( const String
& rPath
);
70 String
ReqDisplayDirectory() const;
72 String
ReqCurrentFilter() const;
73 BOOL
IsExportSelection() const; // whether the "selection" checkbox is checked.
77 /******************************************************************************/
81 The class SdOpenSoundFileDialog wraps the FileDialogHelper, displaying the
82 FILEOPEN_PLAY dialog template and performing the 'preview' functionality
83 (playing the selected sound file). The interface is a downstripped version
84 of the aforementioned class, with similar semantics.
86 class SD_DLLPUBLIC SdOpenSoundFileDialog
88 const std::auto_ptr
< SdFileDialog_Imp
> mpImpl
;
90 // forbidden and not implemented
91 SdOpenSoundFileDialog (const SdOpenSoundFileDialog
&);
92 SdOpenSoundFileDialog
& operator= (const SdOpenSoundFileDialog
&);
95 SdOpenSoundFileDialog();
96 ~SdOpenSoundFileDialog();
99 String
GetPath() const;
100 void SetPath( const String
& rPath
);
102 String
ReqDisplayDirectory() const;
105 #endif // _FILEDLG_HXX