1408a4873SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4408a4873SAndrew Rist * or more contributor license agreements. See the NOTICE file 5408a4873SAndrew Rist * distributed with this work for additional information 6408a4873SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the 8408a4873SAndrew Rist * "License"); you may not use this file except in compliance 9408a4873SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11408a4873SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing, 14408a4873SAndrew Rist * software distributed under the License is distributed on an 15408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16408a4873SAndrew Rist * KIND, either express or implied. See the License for the 17408a4873SAndrew Rist * specific language governing permissions and limitations 18408a4873SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20408a4873SAndrew Rist *************************************************************/ 21408a4873SAndrew Rist 22408a4873SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__ 24cdf0e10cSrcweir#define __com_sun_star_container_XNamed_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__ 27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir//============================================================================= 31cdf0e10cSrcweir 32cdf0e10cSrcweirmodule com { module sun { module star { module container { 33cdf0e10cSrcweir 34cdf0e10cSrcweir//============================================================================= 35cdf0e10cSrcweir 36cdf0e10cSrcweir/** specifies the name of the object. 37cdf0e10cSrcweir 38cdf0e10cSrcweir <p>The name is generally unique in the container of the object.</p> 39cdf0e10cSrcweir */ 40cdf0e10cSrcweirpublished interface XNamed: com::sun::star::uno::XInterface 41cdf0e10cSrcweir{ 42cdf0e10cSrcweir //------------------------------------------------------------------------- 43cdf0e10cSrcweir 44cdf0e10cSrcweir /** @returns 45cdf0e10cSrcweir the programmatic name of the object. 46cdf0e10cSrcweir */ 47cdf0e10cSrcweir string getName(); 48cdf0e10cSrcweir 49cdf0e10cSrcweir //------------------------------------------------------------------------- 50cdf0e10cSrcweir 51cdf0e10cSrcweir /** sets the programmatic name of the object. 52cdf0e10cSrcweir */ 53cdf0e10cSrcweir [oneway] void setName( [in] string aName ); 54cdf0e10cSrcweir 55cdf0e10cSrcweir}; 56cdf0e10cSrcweir 57cdf0e10cSrcweir//============================================================================= 58cdf0e10cSrcweir 59*7d1ce60bSWang Lei/** specifies the display name of the object. 60*7d1ce60bSWang Lei 61*7d1ce60bSWang Lei <p>The name is generally unique in the container of the object.</p> 62*7d1ce60bSWang Lei */ 63*7d1ce60bSWang Leipublished interface XNamedEx: XNamed 64*7d1ce60bSWang Lei{ 65*7d1ce60bSWang Lei //------------------------------------------------------------------------- 66*7d1ce60bSWang Lei 67*7d1ce60bSWang Lei /** @returns 68*7d1ce60bSWang Lei the display name of the object. 69*7d1ce60bSWang Lei */ 70*7d1ce60bSWang Lei string getDisplayName(); 71*7d1ce60bSWang Lei 72*7d1ce60bSWang Lei //------------------------------------------------------------------------- 73*7d1ce60bSWang Lei 74*7d1ce60bSWang Lei /** sets the display name of the object. 75*7d1ce60bSWang Lei */ 76*7d1ce60bSWang Lei [oneway] void setDisplayName( [in] string aName ); 77*7d1ce60bSWang Lei 78*7d1ce60bSWang Lei}; 79*7d1ce60bSWang Lei 80cdf0e10cSrcweir}; }; }; }; 81cdf0e10cSrcweir 82cdf0e10cSrcweir#endif 83