diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-15 10:04:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-15 10:06:16 +0200 |
commit | 82a72bb848c4fc343a9095953242eca03d943780 (patch) | |
tree | ef9382203a80fcf45ee662ebcd5dac79d55ec690 | |
parent | a3ad01dc1e07da21182077bd899094fd73f57714 (diff) |
VbaNewFont apparently does not inherit XHelperInterface
...and thus should simply derive from WeakImplHelper1 instead of
InheritedHelperInterfaceImpl1?
Change-Id: I0cb023a905e93bf9c223676c964f039ac7eee7e0
-rw-r--r-- | vbahelper/source/msforms/vbabutton.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbacheckbox.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbacombobox.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbaframe.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbalabel.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbalistbox.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbanewfont.cxx | 9 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbanewfont.hxx | 7 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbaradiobutton.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbatextbox.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbatogglebutton.cxx | 2 |
11 files changed, 10 insertions, 24 deletions
diff --git a/vbahelper/source/msforms/vbabutton.cxx b/vbahelper/source/msforms/vbabutton.cxx index 522082280d63..07383330a910 100644 --- a/vbahelper/source/msforms/vbabutton.cxx +++ b/vbahelper/source/msforms/vbabutton.cxx @@ -105,7 +105,7 @@ void SAL_CALL VbaButton::setForeColor( sal_Int32 /*nForeColor*/ ) throw (uno::Ru uno::Reference< msforms::XNewFont > SAL_CALL VbaButton::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } OUString diff --git a/vbahelper/source/msforms/vbacheckbox.cxx b/vbahelper/source/msforms/vbacheckbox.cxx index 8d97a758e4cc..75c3d21efe7d 100644 --- a/vbahelper/source/msforms/vbacheckbox.cxx +++ b/vbahelper/source/msforms/vbacheckbox.cxx @@ -79,7 +79,7 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept uno::Reference< msforms::XNewFont > SAL_CALL ScVbaCheckbox::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } OUString diff --git a/vbahelper/source/msforms/vbacombobox.cxx b/vbahelper/source/msforms/vbacombobox.cxx index 3f2c0df9ab60..dc7189b64f88 100644 --- a/vbahelper/source/msforms/vbacombobox.cxx +++ b/vbahelper/source/msforms/vbacombobox.cxx @@ -245,7 +245,7 @@ sal_Int32 SAL_CALL ScVbaComboBox::getTextLength() throw (uno::RuntimeException, uno::Reference< msforms::XNewFont > SAL_CALL ScVbaComboBox::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } OUString diff --git a/vbahelper/source/msforms/vbaframe.cxx b/vbahelper/source/msforms/vbaframe.cxx index 0047fdd9cd05..756b82dce226 100644 --- a/vbahelper/source/msforms/vbaframe.cxx +++ b/vbahelper/source/msforms/vbaframe.cxx @@ -75,7 +75,7 @@ void SAL_CALL ScVbaFrame::setBorderStyle( sal_Int32 /*nBorderStyle*/ ) throw (un uno::Reference< msforms::XNewFont > SAL_CALL ScVbaFrame::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } // XFrame methods diff --git a/vbahelper/source/msforms/vbalabel.cxx b/vbahelper/source/msforms/vbalabel.cxx index ce943e7b60ff..fc62e6924f5f 100644 --- a/vbahelper/source/msforms/vbalabel.cxx +++ b/vbahelper/source/msforms/vbalabel.cxx @@ -70,7 +70,7 @@ ScVbaLabel::setAccelerator( const OUString& /*_accelerator*/ ) throw (::com::sun uno::Reference< msforms::XNewFont > SAL_CALL ScVbaLabel::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } OUString ScVbaLabel::getServiceImplName() diff --git a/vbahelper/source/msforms/vbalistbox.cxx b/vbahelper/source/msforms/vbalistbox.cxx index 491601833e68..38effb8ecddf 100644 --- a/vbahelper/source/msforms/vbalistbox.cxx +++ b/vbahelper/source/msforms/vbalistbox.cxx @@ -274,7 +274,7 @@ ScVbaListBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn ) t uno::Reference< msforms::XNewFont > SAL_CALL ScVbaListBox::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } OUString diff --git a/vbahelper/source/msforms/vbanewfont.cxx b/vbahelper/source/msforms/vbanewfont.cxx index d051c1be2d1f..5778845c0c28 100644 --- a/vbahelper/source/msforms/vbanewfont.cxx +++ b/vbahelper/source/msforms/vbanewfont.cxx @@ -30,10 +30,7 @@ using namespace ::ooo::vba; VbaNewFont::VbaNewFont( - const uno::Reference< XHelperInterface >& rxParent, - const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< beans::XPropertySet >& rxModelProps ) throw (uno::RuntimeException) : - VbaNewFont_BASE( rxParent, rxContext ), mxProps( rxModelProps, uno::UNO_SET_THROW ) { } @@ -132,10 +129,4 @@ void SAL_CALL VbaNewFont::setStrikethrough( sal_Bool bStrikethrough ) throw (uno mxProps->setPropertyValue( "FontStrikeout" ,uno::Any( bStrikethrough ? awt::FontStrikeout::SINGLE : awt::FontStrikeout::NONE ) ); } -// XHelperInterface - -VBAHELPER_IMPL_XHELPERINTERFACE( VbaNewFont, "ooo.vba.msforms.NewFont" ) - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/msforms/vbanewfont.hxx b/vbahelper/source/msforms/vbanewfont.hxx index c7fd6717a756..546cb523133a 100644 --- a/vbahelper/source/msforms/vbanewfont.hxx +++ b/vbahelper/source/msforms/vbanewfont.hxx @@ -25,14 +25,12 @@ -typedef InheritedHelperInterfaceImpl1< ov::msforms::XNewFont > VbaNewFont_BASE; +typedef cppu::WeakImplHelper1< ov::msforms::XNewFont > VbaNewFont_BASE; class VbaNewFont : public VbaNewFont_BASE { public: VbaNewFont( - const css::uno::Reference< ov::XHelperInterface >& rxParent, - const css::uno::Reference< css::uno::XComponentContext >& rxContext, const css::uno::Reference< css::beans::XPropertySet >& rxModelProps ) throw (css::uno::RuntimeException); // XNewFont attributes @@ -53,9 +51,6 @@ public: virtual sal_Bool SAL_CALL getStrikethrough() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setStrikethrough( sal_Bool bStrikethrough ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // XHelperInterface - VBAHELPER_DECL_XHELPERINTERFACE - private: css::uno::Reference< css::beans::XPropertySet > mxProps; }; diff --git a/vbahelper/source/msforms/vbaradiobutton.cxx b/vbahelper/source/msforms/vbaradiobutton.cxx index cfdfcf136ea9..612371c08387 100644 --- a/vbahelper/source/msforms/vbaradiobutton.cxx +++ b/vbahelper/source/msforms/vbaradiobutton.cxx @@ -87,7 +87,7 @@ ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExceptio uno::Reference< msforms::XNewFont > SAL_CALL ScVbaRadioButton::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } OUString diff --git a/vbahelper/source/msforms/vbatextbox.cxx b/vbahelper/source/msforms/vbatextbox.cxx index 583ad8b530ca..004b9d1d1838 100644 --- a/vbahelper/source/msforms/vbatextbox.cxx +++ b/vbahelper/source/msforms/vbatextbox.cxx @@ -133,7 +133,7 @@ sal_Int32 SAL_CALL ScVbaTextBox::getTextLength() throw (uno::RuntimeException, s uno::Reference< msforms::XNewFont > SAL_CALL ScVbaTextBox::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } sal_Int32 SAL_CALL ScVbaTextBox::getBackColor() throw (uno::RuntimeException, std::exception) diff --git a/vbahelper/source/msforms/vbatogglebutton.cxx b/vbahelper/source/msforms/vbatogglebutton.cxx index e0d87aafa164..f108bac61f89 100644 --- a/vbahelper/source/msforms/vbatogglebutton.cxx +++ b/vbahelper/source/msforms/vbatogglebutton.cxx @@ -130,7 +130,7 @@ void SAL_CALL ScVbaToggleButton::setForeColor( sal_Int32 /*nForeColor*/ ) throw uno::Reference< msforms::XNewFont > SAL_CALL ScVbaToggleButton::getFont() throw (uno::RuntimeException, std::exception) { - return new VbaNewFont( this, mxContext, m_xProps ); + return new VbaNewFont( m_xProps ); } sal_Bool SAL_CALL ScVbaToggleButton::getLocked() throw (uno::RuntimeException, std::exception) |