1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef __com_sun_star_ui_dialogs_XFilePickerControlAccess_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_ui_dialogs_XFilePickerControlAccess_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#ifndef __com_sun_star_ui_dialogs_XFilePicker_idl__ 32*cdf0e10cSrcweir#include <com/sun/star/ui/dialogs/XFilePicker.idl> 33*cdf0e10cSrcweir#endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//============================================================================= 36*cdf0e10cSrcweir 37*cdf0e10cSrcweirmodule com { module sun { module star { module ui { module dialogs { 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir//============================================================================= 40*cdf0e10cSrcweir/** Provides access to the controls of a FilePicker. 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir <p> A FilePicker may contain additional elements according to the needs 43*cdf0e10cSrcweir of the different applications. These additional elements can be 44*cdf0e10cSrcweir addressed by this interface.</p> 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::FilePicker 47*cdf0e10cSrcweir*/ 48*cdf0e10cSrcweirpublished interface XFilePickerControlAccess: com::sun::star::ui::dialogs::XFilePicker 49*cdf0e10cSrcweir{ 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir//------------------------------------------------------------------------- 52*cdf0e10cSrcweir/** Set the value of an additional element within a FilePicker. 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir @param ControlId 55*cdf0e10cSrcweir Identifies the element which value is to be set. 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir @param aControlAction 58*cdf0e10cSrcweir Specifies an action to perform with the given value. 59*cdf0e10cSrcweir aControlAction has to be one of the values defined in <type>ControlActions</type>. 60*cdf0e10cSrcweir Not all of the values are valid for all controls. 61*cdf0e10cSrcweir To add a new filter to the FilePicker use the interface XFilterManager, but 62*cdf0e10cSrcweir optionally an implementation may also support adding new filter using this 63*cdf0e10cSrcweir method. 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir @param aValue 66*cdf0e10cSrcweir The value to set. For checkboxes aValue should be a boolean value that 67*cdf0e10cSrcweir should be <TRUE/> if the checkbox should be checked and <FALSE/> otherwise. 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::CommonFilePickerElementIds 70*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds 71*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ControlActions 72*cdf0e10cSrcweir*/ 73*cdf0e10cSrcweirvoid setValue( [in] short aControlId, [in] short aControlAction, [in] any aValue ); 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir//------------------------------------------------------------------------- 76*cdf0e10cSrcweir/** Get the value of an additional element within a FilePicker 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir @param aControlId 79*cdf0e10cSrcweir Identifies the element for which value is requested. 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir @param aControlAction 82*cdf0e10cSrcweir Specifies which value to retrieve. 83*cdf0e10cSrcweir aControlAction has to be one of the values defined in <type>ControlActions</type>. 84*cdf0e10cSrcweir Not all of the values are valid for all controls. 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir @returns 87*cdf0e10cSrcweir The value of the specified element. If the specified control 88*cdf0e10cSrcweir is a checkbox the returned value is a boolean that is <TRUE/> 89*cdf0e10cSrcweir if the checkbox is checked <FALSE/> otherwise. 90*cdf0e10cSrcweir If the specified element doesn't exist or the specified element 91*cdf0e10cSrcweir doesn't support the specidfied control action an empty any will be 92*cdf0e10cSrcweir returned. 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::CommonFilePickerElementIds 95*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds 96*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ControlActions 97*cdf0e10cSrcweir*/ 98*cdf0e10cSrcweirany getValue( [in] short aControlId, [in] short aControlAction ); 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir//------------------------------------------------------------------------- 101*cdf0e10cSrcweir/** Set the label of the specified element. If the specified element 102*cdf0e10cSrcweir doesn't support setting a label, this method has no effect. 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir @param aControlId 105*cdf0e10cSrcweir Identifies the element for which the label should be set. 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir @param aLabel 108*cdf0e10cSrcweir The label to be set. 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::CommonFilePickerElementIds 111*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds 112*cdf0e10cSrcweir*/ 113*cdf0e10cSrcweirvoid setLabel( [in] short aControlId, [in] string aLabel ); 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir//------------------------------------------------------------------------- 116*cdf0e10cSrcweir/** Returns the label of the specified element. 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir @param aControlId 119*cdf0e10cSrcweir Identifies the element for which the label should be returned. 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir @returns 122*cdf0e10cSrcweir The label of the specified element or an empty string if 123*cdf0e10cSrcweir the specified element has no or supports no label or the 124*cdf0e10cSrcweir specified element doesn't exist. 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::CommonFilePickerElementIds 127*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds 128*cdf0e10cSrcweir*/ 129*cdf0e10cSrcweirstring getLabel( [in] short aControlId ); 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir//------------------------------------------------------------------------- 132*cdf0e10cSrcweir/** Enables or disables a control. 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir @param ControlId 135*cdf0e10cSrcweir Identifies the control. 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir @param bEnable 138*cdf0e10cSrcweir <p>If <TRUE/> the specified control will be enabled.</p> 139*cdf0e10cSrcweir <p>If <FALSE/> the specified control will be disabled.</p> 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::CommonFilePickerElementIds 142*cdf0e10cSrcweir @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds 143*cdf0e10cSrcweir*/ 144*cdf0e10cSrcweirvoid enableControl( [in] short aControlId, [in] boolean bEnable ); 145*cdf0e10cSrcweir}; 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir//============================================================================= 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir}; }; }; }; }; 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir#endif 153*cdf0e10cSrcweir 154