summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/drawingfragment.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-12-13 17:04:58 +0000
committerNoel Power <noel.power@suse.com>2012-12-13 17:04:58 +0000
commit45b448b202b87ef66812d25c69e308f405ac221e (patch)
tree3b82f46ce35fca56195c049314803313ed68adf7 /sc/source/filter/oox/drawingfragment.cxx
parent70b960b966d36b1cb12bfb0c71d093fa0c5a3288 (diff)
Revert "fix fdo#58237 import hyperlinks for shapes in xlsx documents"
This reverts commit 2551fec6d2a73d10cfa2aec85ae7d00e237e0294.
Diffstat (limited to 'sc/source/filter/oox/drawingfragment.cxx')
-rw-r--r--sc/source/filter/oox/drawingfragment.cxx22
1 files changed, 2 insertions, 20 deletions
diff --git a/sc/source/filter/oox/drawingfragment.cxx b/sc/source/filter/oox/drawingfragment.cxx
index a301326ab906..bb8fe087951b 100644
--- a/sc/source/filter/oox/drawingfragment.cxx
+++ b/sc/source/filter/oox/drawingfragment.cxx
@@ -26,9 +26,6 @@
#include <com/sun/star/script/ScriptEventDescriptor.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <rtl/strbuf.hxx>
-#include <svx/svdobj.hxx>
-#include "drwlayer.hxx"
-#include "userdat.hxx"
#include "oox/drawingml/connectorshapecontext.hxx"
#include "oox/drawingml/graphicshapecontext.hxx"
#include "oox/helper/attributelist.hxx"
@@ -39,10 +36,11 @@
#include "stylesbuffer.hxx"
#include "themebuffer.hxx"
#include "unitconverter.hxx"
-#include "worksheetbuffer.hxx"
+
namespace oox {
namespace xls {
+using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::document;
@@ -55,10 +53,6 @@ using namespace ::oox::core;
using namespace ::oox::drawingml;
using namespace ::oox::ole;
-using ::com::sun::star::awt::Size;
-using ::com::sun::star::awt::Point;
-using ::com::sun::star::awt::Rectangle;
-using ::com::sun::star::awt::XControlModel;
using ::rtl::OStringBuffer;
using ::rtl::OUString;
using ::rtl::OUStringToOString;
@@ -103,24 +97,12 @@ Shape::Shape( const WorksheetHelper& rHelper, const AttributeList& rAttribs, con
void Shape::finalizeXShape( XmlFilterBase& rFilter, const Reference< XShapes >& rxShapes )
{
- rtl::OUString sURL;
- getShapeProperties()[ PROP_URL ] >>= sURL;
- getWorksheets().convertSheetNameRef( sURL );
if( !maMacroName.isEmpty() && mxShape.is() )
{
VbaMacroAttacherRef xAttacher( new ShapeMacroAttacher( maMacroName, mxShape ) );
getBaseFilter().getVbaProject().registerMacroAttacher( xAttacher );
}
::oox::drawingml::Shape::finalizeXShape( rFilter, rxShapes );
- if ( !sURL.isEmpty() )
- {
- SdrObject* pObj = SdrObject::getSdrObjectFromXShape( mxShape );
- if ( pObj )
- {
- if ( ScMacroInfo* pInfo = ScDrawLayer::GetMacroInfo( pObj, sal_True ) )
- pInfo->SetHlink( sURL );
- }
- }
}
// ============================================================================