diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2019-01-23 15:11:38 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-02-04 11:39:05 +0100 |
commit | 3deab788199395712b7d4641be5b11623b2ed964 (patch) | |
tree | 95ab2545dd088420c60b42fc0afd8f4b85f4dc69 | |
parent | 41507db590b24e1b9b45d95cad55c71ba2e4091d (diff) |
tdf#87884: basic: fix for UnknownPropertyException
UnoControlTabPageModel had no USERFOMRCONTAINERS property
and this was causing an exception during any attempt to set
its properties.
Change-Id: Icc432d7a431ecd861ac4f00a96ec75165bec168c
Reviewed-on: https://gerrit.libreoffice.org/66801
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | toolkit/source/controls/tabpagemodel.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx index b0731ec3b9e3..85f7347c4038 100644 --- a/toolkit/source/controls/tabpagemodel.cxx +++ b/toolkit/source/controls/tabpagemodel.cxx @@ -54,6 +54,7 @@ UnoControlTabPageModel::UnoControlTabPageModel( Reference< XComponentContext > c ImplRegisterProperty( BASEPROPERTY_TITLE ); ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); ImplRegisterProperty( BASEPROPERTY_HELPURL ); + ImplRegisterProperty( BASEPROPERTY_USERFORMCONTAINEES ); } OUString SAL_CALL UnoControlTabPageModel::getImplementationName() @@ -83,6 +84,12 @@ Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const case BASEPROPERTY_DEFAULTCONTROL: aAny <<= OUString("com.sun.star.awt.tab.UnoControlTabPage"); break; + case BASEPROPERTY_USERFORMCONTAINEES: + { + // We do not have here any usercontainers (yet?), but let's return something back + // so normal properties could be set without triggering UnknownPropertyException + return makeAny(true); + } default: aAny = UnoControlModel::ImplGetDefaultValue( nPropId ); } |