diff options
Diffstat (limited to 'fpicker/source/office/iodlg.cxx')
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index f5f9660382d1..5192f42a5f2a 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -555,6 +555,7 @@ void SvtFileDialog::Init_Impl get(pImpl->_pBtnConnectToServer, "connect_to_server"); get(pImpl->_pBtnNewFolder, "new_folder"); get(pImpl->_pCbPassword, "password"); + get(pImpl->_pCbGPGEncrypt, "gpgencrypt"); get(pImpl->_pCbAutoExtension, "extension"); get(pImpl->_pFtFileVersion, "shared_label"); get(pImpl->_pLbFileVersion, "shared"); @@ -638,6 +639,11 @@ void SvtFileDialog::Init_Impl pImpl->_pCbPassword->SetClickHdl( LINK( this, SvtFileDialog, ClickHdl_Impl ) ); pImpl->_pCbPassword->Show(); } + if ( nStyle & PickerFlags::Password ) + { + pImpl->_pCbGPGEncrypt->SetClickHdl( LINK( this, SvtFileDialog, ClickHdl_Impl ) ); + pImpl->_pCbGPGEncrypt->Show(); + } // set the ini file for extracting the size pImpl->_aIniKey = "FileDialog"; @@ -1529,6 +1535,8 @@ IMPL_LINK( SvtFileDialog, ClickHdl_Impl, Button*, pCheckBox, void ) nId = CHECKBOX_READONLY; else if ( pCheckBox == pImpl->_pCbPassword ) nId = CHECKBOX_PASSWORD; + else if ( pCheckBox == pImpl->_pCbGPGEncrypt ) + nId = CHECKBOX_GPGENCRYPTION; else if ( pCheckBox == _pCbLinkBox ) nId = CHECKBOX_LINK; else if ( pCheckBox == _pCbPreviewBox ) @@ -2318,6 +2326,10 @@ Control* SvtFileDialog::getControl( sal_Int16 _nControlId, bool _bLabelControl ) pReturn = pImpl->_pCbPassword; break; + case CHECKBOX_GPGENCRYPTION: + pReturn = pImpl->_pCbGPGEncrypt; + break; + case CHECKBOX_FILTEROPTIONS: pReturn = pImpl->_pCbOptions; break; |