diff options
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 3 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/XFontMappingUse.idl | 56 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/XFontMappingUseItem.idl | 55 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/XToolkit3.idl | 47 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/XToolkitExperimental.idl | 4 |
5 files changed, 163 insertions, 2 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 26b56bedd8e5..6f1dc604a8e3 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -1828,6 +1828,8 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/awt,\ XFocusListener \ XFont \ XFont2 \ + XFontMappingUse \ + XFontMappingUseItem \ XGraphics \ XGraphics2 \ XImageButton \ @@ -1890,6 +1892,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/awt,\ XToggleButton \ XToolkit \ XToolkit2 \ + XToolkit3 \ XToolkitExperimental \ XToolkitRobot \ XTopWindow \ diff --git a/offapi/com/sun/star/awt/XFontMappingUse.idl b/offapi/com/sun/star/awt/XFontMappingUse.idl new file mode 100644 index 000000000000..8140d6a78a4a --- /dev/null +++ b/offapi/com/sun/star/awt/XFontMappingUse.idl @@ -0,0 +1,56 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef __com_sun_star_awt_XFontMappingUse_idl__ +#define __com_sun_star_awt_XFontMappingUse_idl__ + +#include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/awt/XFontMappingUseItem.idl> + +module com { module sun { module star { module awt { + +/** + This interface extends the XToolkit interface with support + for tracking how requested fonts are mapped to actual fonts + when laying out text. + @since LibreOffice 7.3 +*/ +published interface XFontMappingUse: com::sun::star::uno::XInterface +{ + /** + Activate tracking of how requested fonts are mapped to available + fonts. + */ + void startTrackingFontMappingUse(); + + /** + Stop tracking of how requested fonts are mapped to available + fonts and return the mappings that took place since the call + to startTrackingFontMappingUse(). + */ + sequence<XFontMappingUseItem> finishTrackingFontMappingUse(); + +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XFontMappingUseItem.idl b/offapi/com/sun/star/awt/XFontMappingUseItem.idl new file mode 100644 index 000000000000..2cb5a8936fd2 --- /dev/null +++ b/offapi/com/sun/star/awt/XFontMappingUseItem.idl @@ -0,0 +1,55 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef __com_sun_star_awt_XFontMappingUseItem_idl__ +#define __com_sun_star_awt_XFontMappingUseItem_idl__ + +module com { module sun { module star { module awt { + +/** + Information about a font mapping that took place. + @since LibreOffice 7.3 +*/ +published struct XFontMappingUseItem +{ + /** + The family name or 'familyName/styleName' (if style name is not empty) + of the requested font. + */ + string originalFont; + + /** + A list of fonts that were actually used, in their order. Each font + is identified as family name or 'familyName/styleName' (if style + name is not empty). + */ + sequence<string> usedFonts; + + /** + The number of times this mapping took place. + */ + long count; +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XToolkit3.idl b/offapi/com/sun/star/awt/XToolkit3.idl new file mode 100644 index 000000000000..36d9800c560c --- /dev/null +++ b/offapi/com/sun/star/awt/XToolkit3.idl @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#ifndef __com_sun_star_awt_XToolkit3_idl__ +#define __com_sun_star_awt_XToolkit3_idl__ + +#include <com/sun/star/awt/XToolkit2.idl> +#include <com/sun/star/awt/XFontMappingUse.idl> + + + +module com { module sun { module star { module awt { + + +/** + Provides a unified interface for the new-style service Toolkit to implement. + + @since LibreOffice 7.3 + */ +published interface XToolkit3 +{ + interface XToolkit2; + + interface com::sun::star::awt::XFontMappingUse; +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XToolkitExperimental.idl b/offapi/com/sun/star/awt/XToolkitExperimental.idl index 958c80c1cb9b..d47353dc70b5 100644 --- a/offapi/com/sun/star/awt/XToolkitExperimental.idl +++ b/offapi/com/sun/star/awt/XToolkitExperimental.idl @@ -10,14 +10,14 @@ #ifndef __com_sun_star_awt_XToolkitExperimental_idl__ #define __com_sun_star_awt_XToolkitExperimental_idl__ -#include <com/sun/star/awt/XToolkit2.idl> +#include <com/sun/star/awt/XToolkit3.idl> module com { module sun { module star { module awt { /** Work in progress, don't use unless you know what you are doing. */ -interface XToolkitExperimental : XToolkit2 +interface XToolkitExperimental : XToolkit3 { /** Process all pending idle events */ |