second interface for use in deamons

This commit is contained in:
Oliver Specht 2000-11-20 10:38:50 +00:00
parent abcb78a728
commit e1fd4e86a4
4 changed files with 36 additions and 12 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configitem.hxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: os $ $Date: 2000-11-10 12:17:06 $
* last change: $Author: os $ $Date: 2000-11-20 11:37:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -115,6 +115,7 @@ namespace utl
protected:
ConfigItem(const rtl::OUString rSubTree);
ConfigItem(utl::ConfigManager& rManager, const rtl::OUString rSubTree);
void SetModified() {bIsModified = sal_True;}

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configmgr.hxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: mba $ $Date: 2000-11-10 12:36:28 $
* last change: $Author: os $ $Date: 2000-11-20 11:37:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -96,6 +96,7 @@ namespace utl
static ConfigManager* pConfigManager;
public:
ConfigManager();
ConfigManager(com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xConfigProvider);
~ConfigManager();
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configitem.cxx,v $
*
* $Revision: 1.8 $
* $Revision: 1.9 $
*
* last change: $Author: os $ $Date: 2000-11-10 12:17:40 $
* last change: $Author: os $ $Date: 2000-11-20 11:38:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -219,6 +219,19 @@ ConfigItem::ConfigItem(const OUString rSubTree ) :
{
xHierarchyAccess = pManager->AddConfigItem(*this);
}
/* -----------------------------17.11.00 13:53--------------------------------
---------------------------------------------------------------------------*/
ConfigItem::ConfigItem(utl::ConfigManager& rManager, const rtl::OUString rSubTree) :
pManager(&rManager),
sSubTree(rSubTree),
bIsModified(sal_False),
bInPutValues(sal_False),
bHasChangedProperties(sal_False)
{
xHierarchyAccess = pManager->AddConfigItem(*this);
}
/* -----------------------------29.08.00 12:52--------------------------------
---------------------------------------------------------------------------*/

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configmgr.cxx,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: mba $ $Date: 2000-11-10 12:36:42 $
* last change: $Author: os $ $Date: 2000-11-20 11:38:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -119,6 +119,14 @@ ConfigManager::ConfigManager() :
pMgrImpl(new utl::ConfigMgr_Impl)
{
}
/* -----------------------------17.11.00 13:51--------------------------------
---------------------------------------------------------------------------*/
ConfigManager::ConfigManager(Reference< XMultiServiceFactory > xConfigProv) :
pMgrImpl(new utl::ConfigMgr_Impl),
xConfigurationProvider(xConfigProv)
{
}
/* -----------------------------28.08.00 15:35--------------------------------
---------------------------------------------------------------------------*/
@ -147,10 +155,11 @@ Reference< XMultiServiceFactory > ConfigManager::GetConfigurationProvider()
if(!xConfigurationProvider.is())
{
Reference< XMultiServiceFactory > xMSF = ::utl::getProcessServiceFactory();
xConfigurationProvider = Reference< XMultiServiceFactory >
(xMSF->createInstance(
C2U("com.sun.star.configuration.ConfigurationProvider")),
UNO_QUERY);
if(xMSF.is())
xConfigurationProvider = Reference< XMultiServiceFactory >
(xMSF->createInstance(
C2U("com.sun.star.configuration.ConfigurationProvider")),
UNO_QUERY);
}
return xConfigurationProvider;
}