diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-11-11 16:17:44 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-11-12 08:41:22 +0100 |
commit | 941b5a0bb597285737b4796106974468ac357b17 (patch) | |
tree | 2cedd15bb7d3bfd0d2d5db1dba880e9faf30dc40 /offapi | |
parent | d6d7beae483ec58e45c0f38fd66dc6c24e996275 (diff) |
Permit scrollable AWT tab pages a la scrolled Dialog
UNO dialogs since LibreOffice 4.0 permitted setting HScroll /
VScroll properties to enable scrolling for too large a content.
Conceptually clone this code over to TabPage as well, and register
necessary UNO properties in the toolkit UNO wrappers.
Add missing API documentation also to UnoControlDialogModel,
plus the new properties to the UnoControlTabPageModel
Layout code really doesn't like any extra controls it didn't create
itself - so create scrollbars only on demand.
Change-Id: I67894597ac104320e67ad7989ebf9a7955d99103
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105573
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/awt/UnoControlDialogModel.idl | 30 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/tab/UnoControlTabPageModel.idl | 43 |
2 files changed, 73 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/UnoControlDialogModel.idl b/offapi/com/sun/star/awt/UnoControlDialogModel.idl index b45545b272aa..428ef7352441 100644 --- a/offapi/com/sun/star/awt/UnoControlDialogModel.idl +++ b/offapi/com/sun/star/awt/UnoControlDialogModel.idl @@ -145,6 +145,36 @@ published service UnoControlDialogModel */ [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + /** specifies that a horizontal scrollbar should be added to the dialog + @since LibreOffice 4.0 + */ + [optional, property] boolean HScroll; + + /** specifies that a vertical scrollbar should be added to the dialog + @since LibreOffice 4.0 + */ + [optional, property] boolean VScroll; + + /** specifies the horizontal position of the scrolled dialog content + @since LibreOffice 4.0 + */ + [optional, property] long ScrollLeft; + + /** specifies the vertical position of the scrolled dialog content + @since LibreOffice 4.0 + */ + [optional, property] long ScrollTop; + + /** specifies the total width of the scrollable dialog content + @since LibreOffice 4.0 + */ + [optional, property] long ScrollWidth; + + /** specifies the total height of the scrollable dialog content + @since LibreOffice 4.0 + */ + [optional, property] long ScrollHeight; + }; diff --git a/offapi/com/sun/star/awt/tab/UnoControlTabPageModel.idl b/offapi/com/sun/star/awt/tab/UnoControlTabPageModel.idl index e4efdc605b13..0c32f231f2ec 100644 --- a/offapi/com/sun/star/awt/tab/UnoControlTabPageModel.idl +++ b/offapi/com/sun/star/awt/tab/UnoControlTabPageModel.idl @@ -30,6 +30,49 @@ module com { module sun { module star { module awt { module tab { published service UnoControlTabPageModel { interface XTabPageModel; + + /** specifies the text that is displayed in the caption bar of the dialog. + */ + [optional, property] string Title; + + /** specifies the help text of the dialog. + */ + [optional, property] string HelpText; + + /** specifies the help URL of the dialog. + */ + [optional, property] string HelpURL; + + /** specifies that a horizontal scrollbar should be added to the dialog + @since LibreOffice 7.1 + */ + [optional, property] boolean HScroll; + + /** specifies that a vertical scrollbar should be added to the dialog + @since LibreOffice 7.1 + */ + [optional, property] boolean VScroll; + + /** specifies the horizontal position of the scrolled dialog content + @since LibreOffice 7.1 + */ + [optional, property] long ScrollLeft; + + /** specifies the vertical position of the scrolled dialog content + @since LibreOffice 7.1 + */ + [optional, property] long ScrollTop; + + /** specifies the total width of the scrollable dialog content + @since LibreOffice 7.1 + */ + [optional, property] long ScrollWidth; + + /** specifies the total height of the scrollable dialog content + @since LibreOffice 7.1 + */ + [optional, property] long ScrollHeight; + }; |