summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshg.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 17:07:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 17:07:02 +0000
commit555d702903fb0857122024e1ab78a72d122d3f16 (patch)
tree6c749e09d7b761f4ce353bedcc31627a38529196 /sc/source/ui/view/tabvwshg.cxx
parentff721adbe05f7a6659d9dffcf46c671f8a644da7 (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'sc/source/ui/view/tabvwshg.cxx')
-rw-r--r--sc/source/ui/view/tabvwshg.cxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwshg.cxx b/sc/source/ui/view/tabvwshg.cxx
index 70c0749f9fa6..6033c101841b 100644
--- a/sc/source/ui/view/tabvwshg.cxx
+++ b/sc/source/ui/view/tabvwshg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabvwshg.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2002-12-02 14:28:33 $
+ * last change: $Author: hr $ $Date: 2003-03-26 18:06:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,6 +84,9 @@ using namespace com::sun::star;
#include "document.hxx"
#include "drawview.hxx"
#include "globstr.hrc"
+#ifndef _SV_SOUND_HXX
+#include <vcl/sound.hxx>
+#endif
//------------------------------------------------------------------------
@@ -134,9 +137,13 @@ void ScTabViewShell::InsertURLButton( const String& rName, const String& rURL,
form::FormButtonType eButtonType = form::FormButtonType_URL;
aAny <<= eButtonType;
xPropSet->setPropertyValue( rtl::OUString::createFromAscii( "ButtonType" ), aAny );
- // #105638# OJ
- aAny <<= sal_True;
- xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DispatchURLInternal" )), aAny );
+
+ if ( Sound::IsSoundFile( rURL ) )
+ {
+ // #105638# OJ
+ aAny <<= sal_True;
+ xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DispatchURLInternal" )), aAny );
+ }
Point aPos;
if (pInsPos)