xref: /aoo42x/main/sfx2/inc/sfx2/opengrf.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SFX2_OPENGRF_HXX
28 #define _SFX2_OPENGRF_HXX
29 
30 #include <memory>		// auto_ptr
31 #include <svtools/filter.hxx>
32 #include <sfx2/dllapi.h>
33 
34 struct  SvxOpenGrf_Impl;
35 
36 class SFX2_DLLPUBLIC SvxOpenGraphicDialog
37 {
38 public:
39 	SvxOpenGraphicDialog	( const String& rTitle );
40 	~SvxOpenGraphicDialog	();
41 
42 	short					Execute();
43 
44 	void					SetPath( const String& rPath );
45 	void					SetPath( const String& rPath, sal_Bool bLinkState );
46 	String					GetPath() const;
47 
48 	int 					GetGraphic(Graphic&) const;
49 
50 	void					EnableLink(sal_Bool);
51 	void					AsLink(sal_Bool);
52 	sal_Bool				IsAsLink() const;
53 
54 	String					GetCurrentFilter() const;
55 	void					SetCurrentFilter(const String&);
56 
57 	void					SetControlHelpIds( const sal_Int16* _pControlId, const char** _pHelpId );
58 private:
59 	// disable copy and assignment
60 	SFX2_DLLPRIVATE SvxOpenGraphicDialog	(const SvxOpenGraphicDialog&);
61 	SFX2_DLLPRIVATE SvxOpenGraphicDialog& operator = ( const SvxOpenGraphicDialog & );
62 
63 	const std::auto_ptr< SvxOpenGrf_Impl >	mpImpl;
64 };
65 
66 #endif // _SVX_OPENGRF_HXX
67 
68