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
29e15349
Kaydet (Commit)
29e15349
authored
Ock 08, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some configmgr XServiceInfo
Change-Id: I208f5892f6fb54d53ed4d17ddb189f0a24051a17
üst
5201aa54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
configurationprovider.cxx
configmgr/source/configurationprovider.cxx
+23
-4
readonlyaccess.cxx
configmgr/source/readonlyaccess.cxx
+2
-1
No files found.
configmgr/source/configurationprovider.cxx
Dosyayı görüntüle @
29e15349
...
...
@@ -60,6 +60,7 @@
#include "components.hxx"
#include "configurationprovider.hxx"
#include "lock.hxx"
#include "defaultprovider.hxx"
#include "rootaccess.hxx"
namespace
configmgr
{
namespace
configuration_provider
{
...
...
@@ -89,11 +90,20 @@ class Service:
private
osl
::
Mutex
,
public
ServiceBase
,
private
boost
::
noncopyable
{
public
:
Service
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
context
)
:
ServiceBase
(
*
static_cast
<
osl
::
Mutex
*
>
(
this
)),
context_
(
context
),
default_
(
true
)
{
lock_
=
lock
();
assert
(
context
.
is
());
}
Service
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
context
,
OUString
const
&
locale
)
:
ServiceBase
(
*
static_cast
<
osl
::
Mutex
*
>
(
this
)),
context_
(
context
),
locale_
(
locale
)
locale_
(
locale
)
,
default_
(
false
)
{
lock_
=
lock
();
assert
(
context
.
is
());
...
...
@@ -106,7 +116,11 @@ private:
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
{
return
configuration_provider
::
getImplementationName
();
}
{
return
default_
?
default_provider
::
getImplementationName
()
:
configuration_provider
::
getImplementationName
();
}
virtual
sal_Bool
SAL_CALL
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
...
...
@@ -114,7 +128,11 @@ private:
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
{
return
configuration_provider
::
getSupportedServiceNames
();
}
{
return
default_
?
default_provider
::
getSupportedServiceNames
()
:
configuration_provider
::
getSupportedServiceNames
();
}
virtual
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
SAL_CALL
createInstance
(
OUString
const
&
aServiceSpecifier
)
...
...
@@ -159,6 +177,7 @@ private:
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
context_
;
OUString
locale_
;
bool
default_
;
boost
::
shared_ptr
<
osl
::
Mutex
>
lock_
;
};
...
...
@@ -444,7 +463,7 @@ Factory::createInstanceWithArgumentsAndContext(
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
createDefault
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
&
context
)
{
return
static_cast
<
cppu
::
OWeakObject
*
>
(
new
Service
(
context
,
""
));
return
static_cast
<
cppu
::
OWeakObject
*
>
(
new
Service
(
context
));
}
OUString
getImplementationName
()
{
...
...
configmgr/source/readonlyaccess.cxx
Dosyayı görüntüle @
29e15349
...
...
@@ -131,7 +131,8 @@ OUString getImplementationName() {
}
css
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames
()
{
return
css
::
uno
::
Sequence
<
OUString
>
();
OUString
name
(
"com.sun.star.configuration.ReadOnlyAccess"
);
return
css
::
uno
::
Sequence
<
OUString
>
(
&
name
,
1
);
}
}
}
...
...
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