diff options
author | Michael Stahl <mst@apache.org> | 2011-09-17 21:41:49 +0000 |
---|---|---|
committer | Michael Stahl <mst@apache.org> | 2011-09-17 21:41:49 +0000 |
commit | efdf35dcf991532f5ca70e89cd9716296beb7258 (patch) | |
tree | e4427466375c2de511f2cdee7f55a1254fa08276 /reportdesign | |
parent | 0e146fc26f44e44bcbc427016c47e4e23605a391 (diff) |
fs34c: check if description can be read and return ccorrect name for shapetype
# HG changeset patch
# User Ocke Janssen [oj] <Ocke.Janssen@oracle.com>
# Date 1301915955 -7200
# Node ID 7ca68dbff4eb90f462d9df381a7549fc996de714
# Parent 378c6468385944b3807ebca646aaeba95a9a7896
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/api/FixedLine.cxx | 5 | ||||
-rw-r--r-- | reportdesign/source/core/api/FixedText.cxx | 5 | ||||
-rw-r--r-- | reportdesign/source/core/api/FormattedField.cxx | 5 | ||||
-rw-r--r-- | reportdesign/source/core/api/ImageControl.cxx | 5 | ||||
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 6 | ||||
-rw-r--r-- | reportdesign/source/core/api/Shape.cxx | 5 |
6 files changed, 6 insertions, 25 deletions
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx index 6c24ed17955a..b223f1605b7d 100644 --- a/reportdesign/source/core/api/FixedLine.cxx +++ b/reportdesign/source/core/api/FixedLine.cxx @@ -536,10 +536,7 @@ void SAL_CALL OFixedLine::setSize( const awt::Size& aSize ) throw (beans::Proper // XShapeDescriptor ::rtl::OUString SAL_CALL OFixedLine::getShapeType( ) throw (uno::RuntimeException) { - ::osl::MutexGuard aGuard(m_aMutex); - if ( m_aProps.aComponent.m_xShape.is() ) - return m_aProps.aComponent.m_xShape->getShapeType(); - return ::rtl::OUString(); + return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape")); } // ----------------------------------------------------------------------------- ::rtl::OUString SAL_CALL OFixedLine::getHyperLinkURL() throw (uno::RuntimeException, beans::UnknownPropertyException) diff --git a/reportdesign/source/core/api/FixedText.cxx b/reportdesign/source/core/api/FixedText.cxx index 7e535f0ee40f..5f56da01140a 100644 --- a/reportdesign/source/core/api/FixedText.cxx +++ b/reportdesign/source/core/api/FixedText.cxx @@ -334,10 +334,7 @@ void SAL_CALL OFixedText::setSize( const awt::Size& aSize ) throw (beans::Proper // XShapeDescriptor ::rtl::OUString SAL_CALL OFixedText::getShapeType( ) throw (uno::RuntimeException) { - ::osl::MutexGuard aGuard(m_aMutex); - if ( m_aProps.aComponent.m_xShape.is() ) - return m_aProps.aComponent.m_xShape->getShapeType(); - return ::rtl::OUString(); + return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape")); } // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- diff --git a/reportdesign/source/core/api/FormattedField.cxx b/reportdesign/source/core/api/FormattedField.cxx index ee94e7a97d10..2e8ab509aea1 100644 --- a/reportdesign/source/core/api/FormattedField.cxx +++ b/reportdesign/source/core/api/FormattedField.cxx @@ -376,10 +376,7 @@ void SAL_CALL OFormattedField::setSize( const awt::Size& aSize ) throw (beans::P // XShapeDescriptor ::rtl::OUString SAL_CALL OFormattedField::getShapeType( ) throw (uno::RuntimeException) { - ::osl::MutexGuard aGuard(m_aMutex); - if ( m_aProps.aComponent.m_xShape.is() ) - return m_aProps.aComponent.m_xShape->getShapeType(); - return ::rtl::OUString(); + return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape")); } // ----------------------------------------------------------------------------- // ============================================================================= diff --git a/reportdesign/source/core/api/ImageControl.cxx b/reportdesign/source/core/api/ImageControl.cxx index 131c5e372aa5..fd2410301c8c 100644 --- a/reportdesign/source/core/api/ImageControl.cxx +++ b/reportdesign/source/core/api/ImageControl.cxx @@ -470,10 +470,7 @@ void SAL_CALL OImageControl::setSize( const awt::Size& aSize ) throw (beans::Pro // XShapeDescriptor ::rtl::OUString SAL_CALL OImageControl::getShapeType( ) throw (uno::RuntimeException) { - ::osl::MutexGuard aGuard(m_aMutex); - if ( m_aProps.aComponent.m_xShape.is() ) - return m_aProps.aComponent.m_xShape->getShapeType(); - return ::rtl::OUString(); + return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape")); } // ----------------------------------------------------------------------------- ::sal_Int16 SAL_CALL OImageControl::getScaleMode() throw (uno::RuntimeException) diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 6b8414ad60a3..26224fa11dd2 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2501,11 +2501,7 @@ void SAL_CALL OReportDefinition::setSize( const awt::Size& aSize ) throw (beans: // XShapeDescriptor ::rtl::OUString SAL_CALL OReportDefinition::getShapeType( ) throw (uno::RuntimeException) { - ::osl::MutexGuard aGuard(m_aMutex); - ::connectivity::checkDisposed(ReportDefinitionBase::rBHelper.bDisposed); - if ( m_aProps->m_xShape.is() ) - return m_aProps->m_xShape->getShapeType(); - return ::rtl::OUString(); + return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.OLE2Shape")); } // ----------------------------------------------------------------------------- typedef ::cppu::WeakImplHelper2< container::XNameContainer, diff --git a/reportdesign/source/core/api/Shape.cxx b/reportdesign/source/core/api/Shape.cxx index 5b1baf53f5f8..331c1b1d932e 100644 --- a/reportdesign/source/core/api/Shape.cxx +++ b/reportdesign/source/core/api/Shape.cxx @@ -430,10 +430,7 @@ void SAL_CALL OShape::setSize( const awt::Size& aSize ) throw (beans::PropertyVe // XShapeDescriptor ::rtl::OUString SAL_CALL OShape::getShapeType( ) throw (uno::RuntimeException) { - ::osl::MutexGuard aGuard(m_aMutex); - if ( m_aProps.aComponent.m_xShape.is() ) - return m_aProps.aComponent.m_xShape->getShapeType(); - return ::rtl::OUString(); + return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.CustomShape")); } // ----------------------------------------------------------------------------- ::sal_Int32 SAL_CALL OShape::getZOrder() throw (uno::RuntimeException) |