Kaydet (Commit) 82a72bb8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

VbaNewFont apparently does not inherit XHelperInterface

...and thus should simply derive from WeakImplHelper1 instead of
InheritedHelperInterfaceImpl1?

Change-Id: I0cb023a905e93bf9c223676c964f039ac7eee7e0
üst a3ad01dc
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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()
......
......@@ -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
......
......@@ -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: */
......@@ -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;
};
......
......@@ -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
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment