update dev300-m58
[ooovba.git] / sd / source / ui / inc / filedlg.hxx
blob512ad1a266e46e917535c13815878affcf67016d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: filedlg.hxx,v $
10 * $Revision: 1.8 $
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 ************************************************************************/
32 #ifndef _FILEDLG_HXX
33 #define _FILEDLG_HXX
35 #include <tools/string.hxx>
36 #include <tools/errcode.hxx>
38 #ifndef INCLUDED_MEMORY
39 #include <memory>
40 #define INCLUDED_MEMORY
41 #endif
42 #include "sddllapi.h"
44 class SdFileDialog_Imp;
46 /******************************************************************************/
48 /**
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 &);
62 public:
63 explicit SdExportFileDialog( BOOL haveCheckbox );
64 ~SdExportFileDialog();
66 ErrCode Execute();
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 /******************************************************************************/
80 /**
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 &);
94 public:
95 SdOpenSoundFileDialog();
96 ~SdOpenSoundFileDialog();
98 ErrCode Execute();
99 String GetPath() const;
100 void SetPath( const String& rPath );
102 String ReqDisplayDirectory() const;
105 #endif // _FILEDLG_HXX