diff options
author | Kurt Zenker <kz@openoffice.org> | 2009-06-05 13:08:32 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2009-06-05 13:08:32 +0000 |
commit | 771bbe5ff028417f66b34bdd7c30cfa3e5ccc653 (patch) | |
tree | 7ec378cc2d2e5daf1c2f41aee5c0a53120539d38 /svx/source | |
parent | 33e3bcc6dacf4437fa82b00e83e0176a7a726e75 (diff) |
CWS-TOOLING: integrate CWS c06v7_DEV300
2009-05-13 14:39:35 +0200 obo r271861 : #158157# resync to OOO310_m11
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/options/optlingu.cxx | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/svx/source/options/optlingu.cxx b/svx/source/options/optlingu.cxx index 89dbb08994c6..f4ed552d7d27 100644 --- a/svx/source/options/optlingu.cxx +++ b/svx/source/options/optlingu.cxx @@ -70,6 +70,7 @@ #include <com/sun/star/ucb/CommandAbortedException.hpp> #include <com/sun/star/system/XSystemShellExecute.hpp> #include <com/sun/star/system/SystemShellExecuteFlags.hpp> +#include <svtools/extendedsecurityoptions.hxx> #include <svtools/svlbox.hxx> #include <svtools/eitem.hxx> #include <svtools/intitem.hxx> @@ -1176,9 +1177,15 @@ SvxLinguTabPage::SvxLinguTabPage( Window* pParent, aLinguOptionsCLB.SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl )); aLinguOptionsCLB.SetDoubleClickHdl(LINK(this, SvxLinguTabPage, BoxDoubleClickHdl_Impl)); - aMoreDictsLink.SetURL( String( - RTL_CONSTASCII_STRINGPARAM( "http://extensions.services.openoffice.org/dictionary?cid=926386" ) ) ); - aMoreDictsLink.SetClickHdl( LINK( this, SvxLinguTabPage, OpenURLHdl_Impl ) ); + if ( SvtExtendedSecurityOptions().GetOpenHyperlinkMode() + != SvtExtendedSecurityOptions::OPEN_NEVER ) + { + aMoreDictsLink.SetURL( String( + RTL_CONSTASCII_STRINGPARAM( "http://extensions.services.openoffice.org/dictionary?cid=926386" ) ) ); + aMoreDictsLink.SetClickHdl( LINK( this, SvxLinguTabPage, OpenURLHdl_Impl ) ); + } + else + aMoreDictsLink.Hide(); // force recalculation of hash value used for checking the need of updating @@ -2017,10 +2024,14 @@ void SvxLinguTabPage::HideGroups( sal_uInt16 nGrp ) aSize.Height() += nDeltaY; aLinguOptionsCLB.SetSizePixel( aSize ); - aSize = GetOutputSizePixel(); - aSize.Height() += ( aMoreDictsLink.GetSizePixel().Height() * 11 / 8 ); - SetSizePixel( aSize ); - aMoreDictsLink.Show(); + if ( SvtExtendedSecurityOptions().GetOpenHyperlinkMode() + != SvtExtendedSecurityOptions::OPEN_NEVER ) + { + aSize = GetOutputSizePixel(); + aSize.Height() += ( aMoreDictsLink.GetSizePixel().Height() * 11 / 8 ); + SetSizePixel( aSize ); + aMoreDictsLink.Show(); + } } } /*-------------------------------------------------- @@ -2064,9 +2075,21 @@ SvxEditModulesDlg::SvxEditModulesDlg(Window* pParent, SvxLinguData_Impl& rData) aPrioUpPB .Enable( FALSE ); aPrioDownPB.Enable( FALSE ); - aMoreDictsLink.SetURL( String( - RTL_CONSTASCII_STRINGPARAM( "http://extensions.services.openoffice.org/dictionary?cid=926386" ) ) ); - aMoreDictsLink.SetClickHdl( LINK( this, SvxEditModulesDlg, OpenURLHdl_Impl ) ); + if ( SvtExtendedSecurityOptions().GetOpenHyperlinkMode() + != SvtExtendedSecurityOptions::OPEN_NEVER ) + { + aMoreDictsLink.SetURL( String( + RTL_CONSTASCII_STRINGPARAM( "http://extensions.services.openoffice.org/dictionary?cid=926386" ) ) ); + aMoreDictsLink.SetClickHdl( LINK( this, SvxEditModulesDlg, OpenURLHdl_Impl ) ); + } + else + { + aMoreDictsLink.Hide(); + long nPos = aMoreDictsLink.GetPosPixel().Y() + aMoreDictsLink.GetSizePixel().Height(); + Size aSize = aModulesCLB.GetSizePixel(); + aSize.Height() += ( nPos - ( aModulesCLB.GetPosPixel().Y() + aSize.Height() ) ); + aModulesCLB.SetSizePixel( aSize ); + } // //fill language box |