Update ooo320-m1
[ooovba.git] / svx / inc / impgrf.hxx
blobb12068e958ac157da45a9adddbf7d89eb7a274cd
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: impgrf.hxx,v $
10 * $Revision: 1.7 $
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_IMPGRF_HXX
31 #define _SVX_IMPGRF_HXX
33 // include ---------------------------------------------------------------
35 #include <svtools/filter.hxx>
37 #ifndef _BUTTON_HXX //autogen
38 #include <vcl/button.hxx>
39 #endif
40 #include "svx/svxdllapi.h"
42 // Funktionen ------------------------------------------------------------
44 // returnt einen static Graphic-Filter, wird einmalig angelegt,
45 // steht immer zur Verfuegung, DARF NIE geloescht werden!!!!
46 SVX_DLLPUBLIC GraphicFilter* GetGrfFilter();
47 SVX_DLLPUBLIC int LoadGraphic( const String& rPath, const String& rFilter,
48 Graphic& rGraphic,
49 GraphicFilter* pFilter = NULL,
50 USHORT* pDeterminedFormat = NULL );
52 // class SvxImportGraphicDialog ------------------------------------------
53 #ifndef SV_NODIALOG
55 #define ENABLE_STANDARD ((USHORT)0x0001) // Standard-Button
56 #define ENABLE_LINK ((USHORT)0x0002) // Verkn"upfungs-Box
57 #define ENABLE_STD_AND_LINK (ENABLE_STANDARD | ENABLE_LINK)
58 #define ENABLE_PROPERTY ((USHORT)0x0004) // Eigenschaften-Button
59 #define ENABLE_ALL ((USHORT)0x0007) // alle
60 #define ENABLE_PROP_WITHOUTLINK ((USHORT)0x0008) // Eigenschaften ohne Link
61 #define ENABLE_EMPTY_FILENAMES ((USHORT)0x0010) // Leere Dateinamen zulassen
63 #endif // SV_NODIALOG
65 #endif