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#ifndef __com_sun_star_awt_XToolkit_idl__ 20#define __com_sun_star_awt_XToolkit_idl__ 21 22#include <com/sun/star/uno/XInterface.idl> 23 24#include <com/sun/star/awt/XWindowPeer.idl> 25 26#include <com/sun/star/awt/Rectangle.idl> 27 28#include <com/sun/star/awt/WindowDescriptor.idl> 29 30#include <com/sun/star/lang/IllegalArgumentException.idl> 31 32#include <com/sun/star/awt/XDevice.idl> 33 34#include <com/sun/star/awt/XRegion.idl> 35 36 37 38 module com { module sun { module star { module awt { 39 40 41/** specifies a factory interface for the window toolkit. 42 43 <p>This is similar to the abstract window toolkit (AWT) in Java.</p> 44 */ 45published interface XToolkit: com::sun::star::uno::XInterface 46{ 47 48 /** returns the desktop window. 49 */ 50 com::sun::star::awt::XWindowPeer getDesktopWindow(); 51 52 53 /** 54 * For LibreOffice versions < 4.1, this method just returned an empty rectangle. 55 * After that, it started returning a valid value. 56 * 57 * @returns the size and position of the primary display 58 */ 59 com::sun::star::awt::Rectangle getWorkArea(); 60 61 62 /** creates a new window using the given descriptor. 63 */ 64 com::sun::star::awt::XWindowPeer createWindow( [in] com::sun::star::awt::WindowDescriptor Descriptor ) 65 raises( com::sun::star::lang::IllegalArgumentException ); 66 67 68 /** returns a sequence of windows which are newly created using the 69 given descriptors. 70 */ 71 sequence<com::sun::star::awt::XWindowPeer> createWindows( 72 [in] sequence<com::sun::star::awt::WindowDescriptor> Descriptors ) 73 raises( com::sun::star::lang::IllegalArgumentException ); 74 75 76 /** creates a virtual device that is compatible with the screen. 77 */ 78 com::sun::star::awt::XDevice createScreenCompatibleDevice( [in] long Width, 79 [in] long Height ); 80 81 82 /** creates a region. 83 */ 84 com::sun::star::awt::XRegion createRegion(); 85 86}; 87 88 89}; }; }; }; 90 91#endif 92 93/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 94