Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a1afcae8
Kaydet (Commit)
a1afcae8
authored
Haz 04, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Convert XMultiServiceFactory in ucb module
Change-Id: I4e1cfe22ba6043521dd1237f90ade66f80b29253
üst
546fa9f3
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
64 additions
and
81 deletions
+64
-81
registerucb.hxx
include/ucbhelper/registerucb.hxx
+3
-2
cacheddynamicresultset.cxx
ucb/source/cacher/cacheddynamicresultset.cxx
+6
-6
cacheddynamicresultset.hxx
ucb/source/cacher/cacheddynamicresultset.hxx
+3
-3
identify.cxx
ucb/source/core/identify.cxx
+1
-3
identify.hxx
ucb/source/core/identify.hxx
+1
-3
ucb.cxx
ucb/source/core/ucb.cxx
+12
-12
ucb.hxx
ucb/source/core/ucb.hxx
+2
-2
ucbcmds.cxx
ucb/source/core/ucbcmds.cxx
+10
-16
ucbstore.cxx
ucb/source/core/ucbstore.cxx
+16
-18
ucbstore.hxx
ucb/source/core/ucbstore.hxx
+6
-6
registerucb.cxx
ucbhelper/source/provider/registerucb.cxx
+4
-10
No files found.
include/ucbhelper/registerucb.hxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -30,6 +30,7 @@
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
lang
{
class
XMultiServiceFactory
;
}
namespace
uno
{
class
XComponentContext
;
}
}
}
}
...
...
@@ -108,8 +109,8 @@ UCBHELPER_DLLPUBLIC bool registerAtUcb(
com
::
sun
::
star
::
ucb
::
XContentProviderManager
>
const
&
rManager
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
const
&
r
ServiceFactory
,
com
::
sun
::
star
::
uno
::
XComponentContext
>
const
&
r
xContext
,
OUString
const
&
rName
,
OUString
const
&
rArguments
,
OUString
const
&
rTemplate
,
...
...
ucb/source/cacher/cacheddynamicresultset.cxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -33,8 +33,8 @@ using namespace com::sun::star::uno;
CachedDynamicResultSet
::
CachedDynamicResultSet
(
Reference
<
XDynamicResultSet
>
xOrigin
,
const
Reference
<
XContentIdentifierMapping
>
&
xContentMapping
,
const
Reference
<
X
MultiServiceFactory
>
&
xSMgr
)
:
DynamicResultSetWrapper
(
xOrigin
,
comphelper
::
getComponentContext
(
xSMgr
)
)
,
const
Reference
<
X
ComponentContext
>
&
xContext
)
:
DynamicResultSetWrapper
(
xOrigin
,
xContext
)
,
m_xContentIdentifierMapping
(
xContentMapping
)
{
impl_init
();
...
...
@@ -133,9 +133,9 @@ void SAL_CALL CachedDynamicResultSet
//--------------------------------------------------------------------------
CachedDynamicResultSetFactory
::
CachedDynamicResultSetFactory
(
const
Reference
<
X
MultiServiceFactory
>
&
rSMgr
)
const
Reference
<
X
ComponentContext
>
&
xContext
)
{
m_x
SMgr
=
rSMgr
;
m_x
Context
=
xContext
;
}
CachedDynamicResultSetFactory
::~
CachedDynamicResultSetFactory
()
...
...
@@ -164,7 +164,7 @@ XTYPEPROVIDER_IMPL_3( CachedDynamicResultSetFactory,
// CachedDynamicResultSetFactory XServiceInfo methods.
//--------------------------------------------------------------------------
XSERVICEINFO_IMPL_1
(
CachedDynamicResultSetFactory
,
XSERVICEINFO_IMPL_1
_CTX
(
CachedDynamicResultSetFactory
,
OUString
(
"com.sun.star.comp.ucb.CachedDynamicResultSetFactory"
),
OUString
(
CACHED_DRS_FACTORY_NAME
)
);
...
...
@@ -186,7 +186,7 @@ Reference< XDynamicResultSet > SAL_CALL CachedDynamicResultSetFactory
throw
(
RuntimeException
)
{
Reference
<
XDynamicResultSet
>
xRet
;
xRet
=
new
CachedDynamicResultSet
(
SourceStub
,
ContentIdentifierMapping
,
m_x
SMgr
);
xRet
=
new
CachedDynamicResultSet
(
SourceStub
,
ContentIdentifierMapping
,
m_x
Context
);
return
xRet
;
}
...
...
ucb/source/cacher/cacheddynamicresultset.hxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -51,7 +51,7 @@ public:
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifierMapping
>
&
xContentMapping
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
xSMgr
);
com
::
sun
::
star
::
uno
::
XComponentContext
>
&
xContext
);
virtual
~
CachedDynamicResultSet
();
...
...
@@ -87,13 +87,13 @@ class CachedDynamicResultSetFactory
{
protected
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xSMgr
;
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
public
:
CachedDynamicResultSetFactory
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
rSMgr
);
com
::
sun
::
star
::
uno
::
XComponentContext
>
&
xContext
);
virtual
~
CachedDynamicResultSetFactory
();
...
...
ucb/source/core/identify.cxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -38,10 +38,8 @@ using namespace com::sun::star::ucb;
//=========================================================================
ContentIdentifier
::
ContentIdentifier
(
const
Reference
<
XMultiServiceFactory
>&
rxSMgr
,
const
OUString
&
ContentId
)
:
m_xSMgr
(
rxSMgr
),
m_aContentId
(
ContentId
)
:
m_aContentId
(
ContentId
)
{
}
...
...
ucb/source/core/identify.hxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -35,8 +35,7 @@ class ContentIdentifier :
public
com
::
sun
::
star
::
ucb
::
XContentIdentifier
{
public
:
ContentIdentifier
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rxSMgr
,
const
OUString
&
ContentId
);
ContentIdentifier
(
const
OUString
&
ContentId
);
virtual
~
ContentIdentifier
();
// XInterface
...
...
@@ -52,7 +51,6 @@ public:
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
private
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xSMgr
;
OUString
m_aContentId
;
OUString
m_aProviderScheme
;
};
...
...
ucb/source/core/ucb.cxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -231,13 +231,13 @@ bool createContentProviderData(
//=========================================================================
UniversalContentBroker
::
UniversalContentBroker
(
const
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rXSMgr
)
:
m_x
SMgr
(
rXSMgr
),
const
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
)
:
m_x
Context
(
xContext
),
m_pDisposeEventListeners
(
NULL
),
m_nInitCount
(
0
),
//@@@ see initialize() method
m_nCommandId
(
0
)
{
OSL_ENSURE
(
m_x
SMgr
.
is
(),
OSL_ENSURE
(
m_x
Context
.
is
(),
"UniversalContentBroker ctor: No service manager"
);
}
...
...
@@ -333,7 +333,7 @@ void SAL_CALL UniversalContentBroker::removeEventListener(
//
//=========================================================================
XSERVICEINFO_IMPL_1
(
UniversalContentBroker
,
XSERVICEINFO_IMPL_1
_CTX
(
UniversalContentBroker
,
OUString
(
"com.sun.star.comp.ucb.UniversalContentBroker"
),
OUString
(
UCB_SERVICE_NAME
)
);
...
...
@@ -598,7 +598,7 @@ Reference< XContentIdentifier > SAL_CALL
}
if
(
!
xIdentifier
.
is
()
)
xIdentifier
=
new
ContentIdentifier
(
m_xSMgr
,
ContentId
);
xIdentifier
=
new
ContentIdentifier
(
ContentId
);
return
xIdentifier
;
}
...
...
@@ -846,11 +846,11 @@ void UniversalContentBroker::prepareAndRegister(
&
aProviderArguments
))
{
registerAtUcb
(
this
,
m_xSMgr
,
aIt
->
ServiceName
,
aProviderArguments
,
aIt
->
URLTemplate
,
0
);
m_xContext
,
aIt
->
ServiceName
,
aProviderArguments
,
aIt
->
URLTemplate
,
0
);
}
else
...
...
@@ -864,7 +864,7 @@ bool UniversalContentBroker::getContentProviderData(
const
OUString
&
rKey2
,
ContentProviderDataList
&
rListToFill
)
{
if
(
!
m_x
SMgr
.
is
()
||
rKey1
.
isEmpty
()
||
rKey2
.
isEmpty
()
)
if
(
!
m_x
Context
.
is
()
||
rKey1
.
isEmpty
()
||
rKey2
.
isEmpty
()
)
{
OSL_FAIL
(
"UniversalContentBroker::getContentProviderData - Invalid argument!"
);
return
false
;
...
...
@@ -873,7 +873,7 @@ bool UniversalContentBroker::getContentProviderData(
try
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xConfigProv
=
configuration
::
theDefaultProvider
::
get
(
comphelper
::
getComponentContext
(
m_xSMgr
)
);
configuration
::
theDefaultProvider
::
get
(
m_xContext
);
OUStringBuffer
aFullPath
;
aFullPath
.
appendAscii
(
CONFIG_CONTENTPROVIDERS_KEY
"/['"
);
...
...
ucb/source/core/ucb.hxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -62,7 +62,7 @@ class UniversalContentBroker :
public
com
::
sun
::
star
::
util
::
XChangesListener
{
public
:
UniversalContentBroker
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rXSMgr
);
UniversalContentBroker
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
);
virtual
~
UniversalContentBroker
();
// XInterface
...
...
@@ -198,7 +198,7 @@ private:
void
prepareAndRegister
(
const
ucbhelper
::
ContentProviderDataList
&
rData
);
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xSMgr
;
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
util
::
XChangesNotifier
>
m_xNotifier
;
...
...
ucb/source/core/ucbcmds.cxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -76,19 +76,19 @@ namespace
struct
TransferCommandContext
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xSMgr
;
uno
::
Reference
<
uno
::
XComponentContext
>
m_xContext
;
uno
::
Reference
<
ucb
::
XCommandProcessor
>
xProcessor
;
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
xEnv
;
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
xOrigEnv
;
ucb
::
GlobalTransferCommandArgument2
aArg
;
TransferCommandContext
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
&
rxSMgr
,
const
uno
::
Reference
<
uno
::
XComponentContext
>
&
xContext
,
const
uno
::
Reference
<
ucb
::
XCommandProcessor
>
&
rxProcessor
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
rxEnv
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
rxOrigEnv
,
const
ucb
::
GlobalTransferCommandArgument2
&
rArg
)
:
xSMgr
(
rxSMgr
),
xProcessor
(
rxProcessor
),
xEnv
(
rxEnv
),
:
m_xContext
(
xContext
),
xProcessor
(
rxProcessor
),
xEnv
(
rxEnv
),
xOrigEnv
(
rxOrigEnv
),
aArg
(
rArg
)
{}
};
...
...
@@ -965,7 +965,7 @@ uno::Reference< io::XInputStream > getInputStream(
try
{
uno
::
Reference
<
io
::
XOutputStream
>
xOutputStream
(
io
::
Pipe
::
create
(
comphelper
::
getComponentContext
(
rContext
.
xSMgr
)
),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
io
::
XOutputStream
>
xOutputStream
(
io
::
Pipe
::
create
(
rContext
.
m_xContext
),
uno
::
UNO_QUERY_THROW
);
ucb
::
OpenCommandArgument2
aArg
;
aArg
.
Mode
=
ucb
::
OpenMode
::
DOCUMENT
;
...
...
@@ -1617,7 +1617,7 @@ void globalTransfer_(
rContext
.
aArg
.
MimeType
);
TransferCommandContext
aSubCtx
(
rContext
.
xSMgr
,
rContext
.
m_xContext
,
rContext
.
xProcessor
,
rContext
.
xEnv
,
rContext
.
xOrigEnv
,
...
...
@@ -1704,11 +1704,8 @@ void UniversalContentBroker::globalTransfer(
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
xLocalEnv
;
if
(
xEnv
.
is
())
{
uno
::
Reference
<
uno
::
XComponentContext
>
xCtx
(
comphelper
::
getComponentContext
(
m_xSMgr
)
);
xLocalEnv
.
set
(
ucb
::
CommandEnvironment
::
create
(
xCtx
,
xLocalEnv
.
set
(
ucb
::
CommandEnvironment
::
create
(
m_xContext
,
new
InteractionHandlerProxy
(
xEnv
->
getInteractionHandler
()
),
xEnv
->
getProgressHandler
()
)
);
}
...
...
@@ -1994,7 +1991,7 @@ void UniversalContentBroker::globalTransfer(
}
TransferCommandContext
aTransferCtx
(
m_x
SMgr
,
this
,
xLocalEnv
,
xEnv
,
rArg
);
m_x
Context
,
this
,
xLocalEnv
,
xEnv
,
rArg
);
if
(
rArg
.
NewTitle
.
isEmpty
()
)
{
...
...
@@ -2045,11 +2042,8 @@ uno::Any UniversalContentBroker::checkIn( const ucb::CheckinArgument& rArg,
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
xLocalEnv
;
if
(
xEnv
.
is
())
{
uno
::
Reference
<
uno
::
XComponentContext
>
xCtx
(
comphelper
::
getComponentContext
(
m_xSMgr
)
);
xLocalEnv
.
set
(
ucb
::
CommandEnvironment
::
create
(
xCtx
,
xLocalEnv
.
set
(
ucb
::
CommandEnvironment
::
create
(
m_xContext
,
new
InteractionHandlerProxy
(
xEnv
->
getInteractionHandler
()
),
xEnv
->
getProgressHandler
()
)
);
}
...
...
ucb/source/core/ucbstore.cxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -142,12 +142,12 @@ PropertySetMap_Impl;
class
PropertySetInfo_Impl
:
public
OWeakObject
,
public
XTypeProvider
,
public
XPropertySetInfo
{
Reference
<
X
MultiServiceFactory
>
m_xSMgr
;
Reference
<
X
ComponentContext
>
m_xContext
;
Sequence
<
Property
>*
m_pProps
;
PersistentPropertySet
*
m_pOwner
;
public
:
PropertySetInfo_Impl
(
const
Reference
<
X
MultiServiceFactory
>&
rxSMgr
,
PropertySetInfo_Impl
(
const
Reference
<
X
ComponentContext
>&
xContext
,
PersistentPropertySet
*
pOwner
);
virtual
~
PropertySetInfo_Impl
();
...
...
@@ -192,8 +192,8 @@ struct UcbStore_Impl
//=========================================================================
//=========================================================================
UcbStore
::
UcbStore
(
const
Reference
<
X
MultiServiceFactory
>&
rXSMgr
)
:
m_x
SMgr
(
rXSMgr
),
UcbStore
::
UcbStore
(
const
Reference
<
X
ComponentContext
>&
xContext
)
:
m_x
Context
(
xContext
),
m_pImpl
(
new
UcbStore_Impl
()
)
{
}
...
...
@@ -235,7 +235,7 @@ XTYPEPROVIDER_IMPL_4( UcbStore,
//
//=========================================================================
XSERVICEINFO_IMPL_1
(
UcbStore
,
XSERVICEINFO_IMPL_1
_CTX
(
UcbStore
,
OUString
(
"com.sun.star.comp.ucb.UcbStore"
),
OUString
(
STORE_SERVICE_NAME
)
);
...
...
@@ -265,7 +265,7 @@ UcbStore::createPropertySetRegistry( const OUString& )
{
osl
::
Guard
<
osl
::
Mutex
>
aGuard
(
m_pImpl
->
m_aMutex
);
if
(
!
m_pImpl
->
m_xTheRegistry
.
is
()
)
m_pImpl
->
m_xTheRegistry
=
new
PropertySetRegistry
(
m_x
SMgr
,
getInitArgs
()
);
m_pImpl
->
m_xTheRegistry
=
new
PropertySetRegistry
(
m_x
Context
,
getInitArgs
()
);
}
return
m_pImpl
->
m_xTheRegistry
;
...
...
@@ -327,9 +327,9 @@ struct PropertySetRegistry_Impl
//=========================================================================
PropertySetRegistry
::
PropertySetRegistry
(
const
Reference
<
X
MultiServiceFactory
>&
rXSMgr
,
const
Reference
<
X
ComponentContext
>&
xContext
,
const
Sequence
<
Any
>
&
rInitArgs
)
:
m_x
SMgr
(
rXSMgr
),
:
m_x
Context
(
xContext
),
m_pImpl
(
new
PropertySetRegistry_Impl
(
rInitArgs
)
)
{
}
...
...
@@ -412,7 +412,7 @@ PropertySetRegistry::openPropertySet( const OUString& key, sal_Bool create )
// Yep!
return
Reference
<
XPersistentPropertySet
>
(
new
PersistentPropertySet
(
m_x
SMgr
,
*
this
,
key
)
);
m_x
Context
,
*
this
,
key
)
);
}
else
if
(
create
)
{
...
...
@@ -460,7 +460,7 @@ PropertySetRegistry::openPropertySet( const OUString& key, sal_Bool create )
return
Reference
<
XPersistentPropertySet
>
(
new
PersistentPropertySet
(
m_x
SMgr
,
*
this
,
key
)
);
m_x
Context
,
*
this
,
key
)
);
}
}
catch
(
const
IllegalArgumentException
&
)
...
...
@@ -1037,9 +1037,7 @@ Reference< XMultiServiceFactory > PropertySetRegistry::getConfigProvider()
{
try
{
m_pImpl
->
m_xConfigProvider
=
theDefaultProvider
::
get
(
comphelper
::
getComponentContext
(
m_xSMgr
)
);
m_pImpl
->
m_xConfigProvider
=
theDefaultProvider
::
get
(
m_xContext
);
}
catch
(
const
Exception
&
)
{
...
...
@@ -1263,10 +1261,10 @@ struct PersistentPropertySet_Impl
//=========================================================================
PersistentPropertySet
::
PersistentPropertySet
(
const
Reference
<
X
MultiServiceFactory
>&
rXSMgr
,
const
Reference
<
X
ComponentContext
>&
xContext
,
PropertySetRegistry
&
rCreator
,
const
OUString
&
rKey
)
:
m_x
SMgr
(
rXSMgr
),
:
m_x
Context
(
xContext
),
m_pImpl
(
new
PersistentPropertySet_Impl
(
rCreator
,
rKey
)
)
{
// register at creator.
...
...
@@ -1401,7 +1399,7 @@ Reference< XPropertySetInfo > SAL_CALL
PropertySetInfo_Impl
*&
rpInfo
=
m_pImpl
->
m_pInfo
;
if
(
!
rpInfo
)
{
rpInfo
=
new
PropertySetInfo_Impl
(
m_x
SMgr
,
this
);
rpInfo
=
new
PropertySetInfo_Impl
(
m_x
Context
,
this
);
rpInfo
->
acquire
();
}
return
Reference
<
XPropertySetInfo
>
(
rpInfo
);
...
...
@@ -2361,9 +2359,9 @@ PropertySetRegistry& PersistentPropertySet::getPropertySetRegistry()
//=========================================================================
PropertySetInfo_Impl
::
PropertySetInfo_Impl
(
const
Reference
<
X
MultiServiceFactory
>&
rxSMgr
,
const
Reference
<
X
ComponentContext
>&
xContext
,
PersistentPropertySet
*
pOwner
)
:
m_x
SMgr
(
rxSMgr
),
:
m_x
Context
(
xContext
),
m_pProps
(
NULL
),
m_pOwner
(
pOwner
)
{
...
...
ucb/source/core/ucbstore.hxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -54,13 +54,13 @@ class UcbStore :
public
com
::
sun
::
star
::
lang
::
XInitialization
{
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xSMgr
;
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
UcbStore_Impl
*
m_pImpl
;
public
:
UcbStore
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rXSMgr
);
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
);
virtual
~
UcbStore
();
// XInterface
...
...
@@ -104,7 +104,7 @@ class PropertySetRegistry :
friend
class
PersistentPropertySet
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xSMgr
;
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
PropertySetRegistry_Impl
*
m_pImpl
;
private
:
...
...
@@ -120,7 +120,7 @@ private:
public
:
PropertySetRegistry
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rXSMgr
,
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
,
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>&
rInitArgs
);
virtual
~
PropertySetRegistry
();
...
...
@@ -187,7 +187,7 @@ class PersistentPropertySet :
public
com
::
sun
::
star
::
beans
::
XPropertyAccess
{
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xSMgr
;
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
PersistentPropertySet_Impl
*
m_pImpl
;
private
:
...
...
@@ -199,7 +199,7 @@ private:
public
:
PersistentPropertySet
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rXSMgr
,
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
,
PropertySetRegistry
&
rCreator
,
const
OUString
&
rKey
);
virtual
~
PersistentPropertySet
();
...
...
ucbhelper/source/provider/registerucb.cxx
Dosyayı görüntüle @
a1afcae8
...
...
@@ -42,14 +42,14 @@ namespace ucbhelper {
bool
registerAtUcb
(
uno
::
Reference
<
ucb
::
XContentProviderManager
>
const
&
rManager
,
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
const
&
rServiceFactory
,
uno
::
Reference
<
uno
::
XComponentContext
>
const
&
rxContext
,
OUString
const
&
rName
,
OUString
const
&
rArguments
,
OUString
const
&
rTemplate
,
ContentProviderRegistrationInfo
*
pInfo
)
throw
(
uno
::
RuntimeException
)
{
OSL_ENSURE
(
r
ServiceFactory
.
is
(),
OSL_ENSURE
(
r
xContext
.
is
(),
"ucb::registerAtUcb(): No service factory"
);
bool
bNoProxy
=
rArguments
.
startsWith
(
"{noproxy}"
);
...
...
@@ -66,13 +66,7 @@ registerAtUcb(
uno
::
Reference
<
ucb
::
XContentProviderFactory
>
xProxyFactory
;
try
{
uno
::
Reference
<
beans
::
XPropertySet
>
xFactoryProperties
(
rServiceFactory
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
uno
::
Reference
<
uno
::
XComponentContext
>
(
xFactoryProperties
->
getPropertyValue
(
OUString
(
"DefaultContext"
)
),
uno
::
UNO_QUERY
);
xProxyFactory
=
uno
::
Reference
<
ucb
::
XContentProviderFactory
>
(
ucb
::
ContentProviderProxyFactory
::
create
(
xContext
)
);
xProxyFactory
=
ucb
::
ContentProviderProxyFactory
::
create
(
rxContext
);
}
catch
(
uno
::
Exception
const
&
)
{}
OSL_ENSURE
(
xProxyFactory
.
is
(),
"No ContentProviderProxyFactory"
);
...
...
@@ -85,7 +79,7 @@ registerAtUcb(
try
{
xProvider
=
uno
::
Reference
<
ucb
::
XContentProvider
>
(
r
ServiceFactory
->
createInstance
(
rName
),
r
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
rName
,
rxContext
),
uno
::
UNO_QUERY
);
}
catch
(
uno
::
RuntimeException
const
&
)
{
throw
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment