update dev300-m58
[ooovba.git] / sc / source / ui / view / galwrap.cxx
blob325541d202f7192fb2c44584cdf9d2f01c364f52
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: galwrap.cxx,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
37 // INCLUDE ---------------------------------------------------------------
39 #include <vcl/graph.hxx>
40 #include <svx/gallery.hxx>
41 #include <sfx2/app.hxx>
43 // -----------------------------------------------------------------------
45 Graphic GalleryGetGraphic()
47 GalleryExplorer* pGal = SVX_GALLERY();
48 DBG_ASSERT( pGal, "Wo ist die Gallery?" );
49 return pGal->GetGraphic();
52 USHORT GallerySGA_FORMAT_GRAPHIC()
54 return SGA_FORMAT_GRAPHIC;
57 BOOL GalleryIsLinkage()
59 GalleryExplorer* pGal = SVX_GALLERY();
60 DBG_ASSERT( pGal, "Wo ist die Gallery?" );
61 return pGal->IsLinkage();
64 String GalleryGetFullPath()
66 GalleryExplorer* pGal = SVX_GALLERY();
67 DBG_ASSERT( pGal, "Wo ist die Gallery?" );
68 // return pGal->GetPath().GetFull();
69 return pGal->GetURL().GetMainURL(INetURLObject::NO_DECODE);
70 // URL as stored in GraphicLink must be encoded
73 String GalleryGetFilterName()
75 GalleryExplorer* pGal = SVX_GALLERY();
76 DBG_ASSERT( pGal, "Wo ist die Gallery?" );
77 return pGal->GetFilterName();