diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-06-11 08:19:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-06-11 09:26:53 +0300 |
commit | 44ecd013335899b6e1735b24899f0c175d00e4d3 (patch) | |
tree | d9466f29febde225a3a97b07405afeaef2ba2136 /offapi | |
parent | Avoid misleading term "factory method", just say "function" (diff) | |
download | core-44ecd013335899b6e1735b24899f0c175d00e4d3.tar.gz core-44ecd013335899b6e1735b24899f0c175d00e4d3.zip |
Add css.awt.XToolkit2
Work in progress for Android, and possibly iOS, too.
Change-Id: If65765cd781bf1bd28ce96af01adedc07d0eebae
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 1 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/XToolkit2.idl | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 98cca5f1f4fd..0242a257ca91 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -1815,6 +1815,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/awt,\ XTimeField \ XToggleButton \ XToolkit \ + XToolkit2 \ XTopWindow \ XTopWindow2 \ XTopWindowListener \ diff --git a/offapi/com/sun/star/awt/XToolkit2.idl b/offapi/com/sun/star/awt/XToolkit2.idl new file mode 100644 index 000000000000..c174d2787c4b --- /dev/null +++ b/offapi/com/sun/star/awt/XToolkit2.idl @@ -0,0 +1,46 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright 2012 LibreOffice contributors. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef __com_sun_star_awt_XToolkit2_idl__ +#define __com_sun_star_awt_XToolkit2_idl__ + +#include <com/sun/star/awt/XToolkit.idl> + +module com { module sun { module star { module awt { + +/** Work in progress, don't use unless you know what you are doing. + */ + +interface XToolkit2: XToolkit +{ + /** Create a bitmap device using a byte buffer allocated outside of UNO territory. + * + * @returns the device + * + * @param addressOfMemoryBufferForSharedArrayWrapper is the address of a + * (C++) object the exact type of which is to be determined, but the point + * is that it will then be rewrapped into a boost::shared_array of bytes to + * be passed to the basebmp code. shared_array has its own style of + * reference counting, naturally not related to UNO's or Java's, so lots of + * fun stuff to take care of. I won't bother complicating stuff with + * XUnoTunnel here (if it would even be possible to use it), this isn't in + * any way intended to be "generic" anyway, but is experimental work in + * progress, indented just for Android so far, and probably for iOS, too. + */ + + com::sun::star::awt::XDevice createScreenCompatibleDeviceUsingBuffer( [in] long Width, + [in] long Height, + [in] hyper addressOfMemoryBufferForSharedArrayWrapper ); +}; + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |