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 28 29#ifndef __com_sun_star_sdb_ContentLoader_idl__ 30#define __com_sun_star_sdb_ContentLoader_idl__ 31 32#ifndef __com_sun_star_frame_Frame_idl__ 33#include <com/sun/star/frame/FrameLoader.idl> 34#endif 35 36module com { module sun { module star { module sdb { 37 38//============================================================================= 39/** implements a loader for various datasource-related user interface components. 40 41 <p>Usually, you don't deal with this loader directly. Instead, use an instance with 42 the <type scope="com::sun::star::frame">XComponentLoader</type> interface, and pass 43 one of the below-mentioned URLs to it.</p> 44 45 @see com::sun::star::frame::XComponentLoader 46 @see com::sun::star::frame::Desktop 47*/ 48published service ContentLoader 49{ 50 /** ensures the basic functionality. 51 52 <p> 53 Supporting this service ensures that you can plug any of the components 54 the loader can create into an arbitrary frame. 55 </p> 56 57 The loader should be registered for the URL scheme 58 <b> 59 .component:DB/ * 60 </b> 61 , the concrete URLs supported are: 62 <ul> 63 <li><b>.component:DB/DataSourceBrowser</b><br/> 64 Using this URL creates an instance of the 65 <type scope="com::sun::star::sdb">DataSourceBrowser</type> 66 service and plugs it into the frame passed to the loader. 67 </li> 68 <li><b>.component:DB/FormGridView</b><br/> 69 Using this URL creates an instance of the 70 <type scope="com::sun::star::sdb">ExternalSourceBrowser</type> 71 service and plugs it into the frame passed to the loader. 72 </li> 73 <li><b>.component:DB/QueryDesign</b><br/> 74 Using this URL creates an instance of the 75 <type scope="com::sun::star::sdb">QueryDesign</type> 76 service and plugs it into the frame passed to the loader. 77 </li> 78 <li><b>.component:DB/TableDesign</b><br/> 79 Using this URL creates an instance of the 80 <type scope="com::sun::star::sdb">TableDesign</type> 81 service and plugs it into the frame passed to the loader. 82 </li> 83 <li><b>.component:DB/RelationDesign</b><br/> 84 Using this URL creates an instance of the 85 <type scope="com::sun::star::sdb">RelationDesign</type> 86 service and plugs it into the frame passed to the loader. 87 </li> 88 </ul> 89 90 The parameters passed to the 91 <member scope="com::sun::star::frame">XFrameLoader::load()</member> 92 are forwarded to the object beeing created, 93 in particular to it's 94 <type scope="com::sun::star::lang">XInitialization</type> 95 interface. 96 **/ 97 service com::sun::star::frame::FrameLoader; 98}; 99 100//============================================================================= 101}; }; }; }; 102 103#endif 104