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 20module ooo { module vba { module word { 21 22interface XApplication : XConnectable 23{ 24 [attribute, readonly] XDocument ActiveDocument; 25 [attribute, readonly] XWindow ActiveWindow; 26 [attribute, readonly] string Name; 27 [attribute, readonly] XSystem System; 28 [attribute, readonly] XOptions Options; 29 [attribute, readonly] XSelection Selection; 30 [attribute, readonly] XWordBasic WordBasic; 31 [attribute] boolean DisplayAutoCompleteTips; 32 [attribute] long EnableCancelKey; 33 [attribute] long WindowState; 34 [attribute] long Width; 35 [attribute] long Height; 36 [attribute] long Left; 37 [attribute] long Top; 38 // Setting this displays the string in a SAL_INFO message with tag 39 // extensions.olebridge. Provides a way to get a message from an 40 // Automation client into LibreOffice's debug output. Less 41 // disruptive than a MessageBox() in a VB6 client, for instance. 42 // And makes it possible to get merged debug output from both the client 43 // and LibreOffice in proper synchronized order. 44 // 45 // Actually write-only but there is no way to say that in UNO IDL. 46 // The getter just returns an empty string. 47 [attribute] string StatusBar; 48 [attribute] any CustomizationContext; 49 50 any CommandBars( [in] any Index ); 51 any Documents( [in] any Index ); 52 any Addins( [in] any Index ); 53 any Dialogs( [in] any Index ); 54 any ListGalleries( [in] any aIndex ); 55 float CentimetersToPoints( [in] float Centimeters ); 56 float PointsToCentimeters( [in] float Points); 57 float PixelsToPoints( [in] float Pixels, [in] boolean fVertical ); 58 float PointsToPixels( [in] float Points, [in] boolean fVertical); 59 float InchesToPoints( [in] float Inches); 60 float PointsToInches( [in] float Points); 61 float MillimetersToPoints( [in] float Millimeters ); 62 float PointsToMillimeters( [in] float Points); 63 float PicasToPoints( [in] float Picas); 64 float PointsToPicas( [in] float Points); 65 void ShowMe(); 66 void Resize( [in] long Width, [in] long Height ); 67 void Move( [in] long Left, [in] long Top ); 68}; 69 70}; }; }; 71 72 73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 74
