| 1 |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This file is part of the LibreOffice project. |
| 4 |
* |
| 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/. |
| 8 |
* |
| 9 |
* This file incorporates work covered by the following license notice: |
| 10 |
* |
| 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 . |
| 18 |
*/ |
| 19 |
|
| 20 |
module ooo { module vba { module msforms { |
| 21 |
|
| 22 |
|
| 23 |
interface XControl |
| 24 |
{ |
| 25 |
interface ::ooo::vba::XHelperInterface; |
| 26 |
void SetFocus(); |
| 27 |
void Move( [in] double Left, [in] double Top, [in] any Width, [in] any Height ); |
| 28 |
// support for unit test harness ( and possibly internal clients ) |
| 29 |
// to generate events that will call appropriate event handlers |
| 30 |
void fireEvent( [in] com::sun::star::script::ScriptEvent evt ); |
| 31 |
[attribute, readonly ] com::sun::star::uno::XInterface Object; |
| 32 |
[attribute] string ControlSource; |
| 33 |
[attribute] string RowSource; |
| 34 |
[attribute] boolean Enabled; |
| 35 |
[attribute] boolean Visible; |
| 36 |
[attribute] long MousePointer; |
| 37 |
//Size. there are some different between Mso and OOo. |
| 38 |
//Mso use double but OOo use long. OOo 1 = 1/100mm but Mso use pt. |
| 39 |
//in Dialogs Mso uses pixels |
| 40 |
[attribute] double Height; |
| 41 |
[attribute] double Width; |
| 42 |
//Position |
| 43 |
[attribute] double Left; |
| 44 |
[attribute] double Top; |
| 45 |
[attribute] string Name; |
| 46 |
[attribute] string ControlTipText; |
| 47 |
[attribute] string Tag; |
| 48 |
[attribute] long TabIndex; |
| 49 |
}; |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
}; }; }; |
| 54 |
|
| 55 |
|
| 56 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |