summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/tbunocontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/tbunocontroller.cxx')
-rw-r--r--svx/source/tbxctrls/tbunocontroller.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx
index 9f5145818d0f..740a2acb7574 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -30,6 +30,7 @@
#include <svtools/ctrltool.hxx>
#include <svtools/ctrlbox.hxx>
#include <osl/mutex.hxx>
+#include <comphelper/processfactory.hxx>
#include <memory>
@@ -238,12 +239,11 @@ void SvxFontSizeBox_Impl::DataChanged( const DataChangedEvent& rDCEvt )
// class FontHeightToolBoxControl
//========================================================================
-FontHeightToolBoxControl::FontHeightToolBoxControl(
- const uno::Reference< lang::XMultiServiceFactory >& rServiceManager ) :
- svt::ToolboxController( rServiceManager,
- uno::Reference< frame::XFrame >(),
- OUString( ".uno:FontHeight" ) ),
- m_pBox( NULL )
+FontHeightToolBoxControl::FontHeightToolBoxControl( const uno::Reference< uno::XComponentContext >& rxContext )
+ : svt::ToolboxController( rxContext,
+ uno::Reference< frame::XFrame >(),
+ OUString( ".uno:FontHeight" ) ),
+ m_pBox( NULL )
{
addStatusListener( OUString( ".uno:CharFontName" ));
}
@@ -413,7 +413,7 @@ void FontHeightToolBoxControl::dispatchCommand(
uno::Reference< uno::XInterface > SAL_CALL FontHeightToolBoxControl_createInstance(
const uno::Reference< lang::XMultiServiceFactory >& rSMgr )
{
- return *new FontHeightToolBoxControl( rSMgr );
+ return *new FontHeightToolBoxControl( comphelper::getComponentContext(rSMgr) );
}
}