diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-31 17:19:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:18 +0200 |
commit | a9934b36fea86646586f10daaa310d7173ede795 (patch) | |
tree | 9105477aa9517cefb18b785b94ae7badda51a102 /extensions/source/bibliography/datman.cxx | |
parent | 834dcf3acde06389d57bec64c2cd6cca8189c079 (diff) |
fdo#46808, some simple conversions to XComponentContext
Change-Id: I68e90fde0645d4d1d518d22620d4c28ae91139d4
Diffstat (limited to 'extensions/source/bibliography/datman.cxx')
-rw-r--r-- | extensions/source/bibliography/datman.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index 298fe29d9014..93b42303a0ad 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -564,8 +564,6 @@ DBChangeDialog_Impl::DBChangeDialog_Impl(Window* pParent, BibDataManager* pMan ) aSelectionLB.SetDoubleClickHdl( LINK(this, DBChangeDialog_Impl, DoubleClickHdl)); try { - Reference< XMultiServiceFactory > xMgr = comphelper::getProcessServiceFactory(); - ::Size aSize = aSelectionHB.GetSizePixel(); long nTabs[2]; nTabs[0] = 1;// Number of Tabs @@ -1403,8 +1401,8 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel( else aInstanceName += getControlName(nFormatKey); - Reference< XMultiServiceFactory > xMgr = comphelper::getProcessServiceFactory(); - Reference< XInterface > xObject = xMgr->createInstance(aInstanceName); + Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); + Reference< XInterface > xObject = xContext->getServiceManager()->createInstanceWithContext(aInstanceName, xContext); xModel=Reference< awt::XControlModel > ( xObject, UNO_QUERY ); Reference< XPropertySet > xPropSet( xModel, UNO_QUERY ); Any aFieldName; aFieldName <<= aName; |