tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / udkapi / com / sun / star / script / XDefaultProperty.idl
blobcca881c6c99ed1c20737e29f95cc121afe75cd77
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com { module sun { module star { module script {
21 /**
22 An object supporting this interface indicates to interested
23 parties or clients the name of the default property for
24 this object.
25 <p>For example where ExampleObject is an instance of an Object that
26 supports this interface which returns the default property name
27 "Value".A scripting engine could use this information to support
28 syntax like <p>ExampleObject = "foo"</p>
29 which would be equivalent to writing
30 <p>ExampleObject.Value = "foo"</p>
32 <p>bar = ExampleObject</p>
33 which would be equivalent to writing
34 <p>bar = ExampleObject.Value</p>
36 interface XDefaultProperty : ::com::sun::star::uno::XInterface
38 /**
39 Returns the name of the default property
41 @return
42 The `string` name of default property
44 string getDefaultPropertyName();
48 }; }; }; };
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */