Update ooo320-m1
[ooovba.git] / svx / inc / opengrf.hxx
blobea52c2808777197f262b8957570c10ad6ac45528
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: opengrf.hxx,v $
10 * $Revision: 1.9 $
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 ************************************************************************/
30 #ifndef _SVX_OPENGRF_HXX
31 #define _SVX_OPENGRF_HXX
33 #include <memory> // auto_ptr
34 #include <svtools/filter.hxx>
35 #include "svx/svxdllapi.h"
38 struct SvxOpenGrf_Impl;
40 class SVX_DLLPUBLIC SvxOpenGraphicDialog
42 public:
43 SvxOpenGraphicDialog ( const String& rTitle );
44 ~SvxOpenGraphicDialog ();
46 short Execute();
48 void SetPath( const String& rPath );
49 void SetPath( const String& rPath, sal_Bool bLinkState );
50 String GetPath() const;
52 int GetGraphic(Graphic&) const;
54 void EnableLink(sal_Bool);
55 void AsLink(sal_Bool);
56 sal_Bool IsAsLink() const;
58 String GetCurrentFilter() const;
59 void SetCurrentFilter(const String&);
61 /// Set dialog help id at FileDlgHelper
62 void SetControlHelpIds( const INT16* _pControlId, const INT32* _pHelpId );
63 /// Set control help ids at FileDlgHelper
64 void SetDialogHelpId( const INT32 _nHelpId );
65 private:
66 // disable copy and assignment
67 SVX_DLLPRIVATE SvxOpenGraphicDialog (const SvxOpenGraphicDialog&);
68 SVX_DLLPRIVATE SvxOpenGraphicDialog& operator = ( const SvxOpenGraphicDialog & );
70 const std::auto_ptr< SvxOpenGrf_Impl > mpImpl;
73 #endif // _SVX_OPENGRF_HXX