diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-05-11 14:35:20 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-05-11 23:07:46 +0200 |
commit | 6ee5fb6d32147e180552f66e615d1de932fdcf9c (patch) | |
tree | 9fb66d580cc1cfed3f2155c2b8177678a78df6d0 /toolkit | |
parent | 49ddbc94a088344bf69444445a0300342ea3f184 (diff) |
tdf#148442: map RefValue property to onValue in pdf
Similar to what it's already done for radiobuttons
Change-Id: I708d23dc5f9d4470a9850d7ecc60bd71fada594e
Change-Id: I34107c757b0e0933f392a6d0845fa0d2e07aed62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134170
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/helper/formpdfexport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx index 094a2fdf1950..7a88bcbbe171 100644 --- a/toolkit/source/helper/formpdfexport.cxx +++ b/toolkit/source/helper/formpdfexport.cxx @@ -563,6 +563,15 @@ namespace toolkitform if( ! (xModelProps->getPropertyValue( FM_PROP_STATE ) >>= nState) ) SAL_WARN("toolkit.helper", "describePDFControl: unable to get property " << FM_PROP_STATE); pCheckBoxWidget->Checked = ( nState != 0 ); + + try + { + xModelProps->getPropertyValue( "RefValue" ) >>= pCheckBoxWidget->OnValue; + } + catch(...) + { + pCheckBoxWidget->OnValue = "On"; + } } |