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
406f8e48
Kaydet (Commit)
406f8e48
authored
May 03, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: More services converted to constructors.
Change-Id: I85c66837b5bde7c8c8b7044ae8956c05f3bdb742
üst
d78097a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
91 deletions
+16
-91
appluno.hxx
sc/inc/appluno.hxx
+0
-6
funcuno.hxx
sc/inc/funcuno.hxx
+0
-3
appluno.cxx
sc/source/ui/unoobj/appluno.cxx
+6
-60
funcuno.cxx
sc/source/ui/unoobj/funcuno.cxx
+4
-19
sc.component
sc/util/sc.component
+6
-3
No files found.
sc/inc/appluno.hxx
Dosyayı görüntüle @
406f8e48
...
...
@@ -236,9 +236,6 @@ public:
ScRecentFunctionsObj
();
virtual
~
ScRecentFunctionsObj
();
static
OUString
getImplementationName_Static
();
static
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
();
// XRecentFunctions
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>
SAL_CALL
getRecentFunctionIds
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
...
...
@@ -267,9 +264,6 @@ public:
ScFunctionListObj
();
virtual
~
ScFunctionListObj
();
static
OUString
getImplementationName_Static
();
static
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
();
// XFunctionDescriptions
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
SAL_CALL
getById
(
sal_Int32
nId
)
...
...
sc/inc/funcuno.hxx
Dosyayı görüntüle @
406f8e48
...
...
@@ -69,9 +69,6 @@ public:
ScFunctionAccess
();
virtual
~
ScFunctionAccess
();
static
OUString
getImplementationName_Static
();
static
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
();
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
)
SAL_OVERRIDE
;
// XFunctionAccess
...
...
sc/source/ui/unoobj/appluno.cxx
Dosyayı görüntüle @
406f8e48
...
...
@@ -112,30 +112,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL sc_component_getFactory(
ScSpreadsheetSettings_CreateInstance
,
ScSpreadsheetSettings
::
getSupportedServiceNames_Static
()
));
}
else
if
(
aImpl
==
ScRecentFunctionsObj
::
getImplementationName_Static
()
)
{
xFactory
.
set
(
cppu
::
createOneInstanceFactory
(
static_cast
<
lang
::
XMultiServiceFactory
*>
(
pServiceManager
),
ScRecentFunctionsObj
::
getImplementationName_Static
(),
ScRecentFunctionsObj_CreateInstance
,
ScRecentFunctionsObj
::
getSupportedServiceNames_Static
()
));
}
else
if
(
aImpl
==
ScFunctionListObj
::
getImplementationName_Static
()
)
{
xFactory
.
set
(
cppu
::
createOneInstanceFactory
(
static_cast
<
lang
::
XMultiServiceFactory
*>
(
pServiceManager
),
ScFunctionListObj
::
getImplementationName_Static
(),
ScFunctionListObj_CreateInstance
,
ScFunctionListObj
::
getSupportedServiceNames_Static
()
));
}
else
if
(
aImpl
==
ScFunctionAccess
::
getImplementationName_Static
()
)
{
xFactory
.
set
(
cppu
::
createOneInstanceFactory
(
static_cast
<
lang
::
XMultiServiceFactory
*>
(
pServiceManager
),
ScFunctionAccess
::
getImplementationName_Static
(),
ScFunctionAccess_CreateInstance
,
ScFunctionAccess
::
getSupportedServiceNames_Static
()
));
}
else
if
(
aImpl
==
ScXMLImport_getImplementationName
()
)
{
xFactory
.
set
(
cppu
::
createSingleFactory
(
...
...
@@ -490,27 +466,12 @@ ScRecentFunctionsObj::~ScRecentFunctionsObj()
{
}
// stuff for exService_...
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
ScRecentFunctionsObj_CreateInstance
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
/* rSMgr */
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
ScRecentFunctionsObj_get_implementation
(
css
::
uno
::
XComponentContext
*
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
SolarMutexGuard
aGuard
;
ScDLL
::
Init
();
return
(
cppu
::
OWeakObject
*
)
new
ScRecentFunctionsObj
();
}
OUString
ScRecentFunctionsObj
::
getImplementationName_Static
()
{
return
OUString
(
"stardiv.StarCalc.ScRecentFunctionsObj"
);
}
uno
::
Sequence
<
OUString
>
ScRecentFunctionsObj
::
getSupportedServiceNames_Static
()
{
uno
::
Sequence
<
OUString
>
aRet
(
1
);
OUString
*
pArray
=
aRet
.
getArray
();
pArray
[
0
]
=
SCRECENTFUNCTIONSOBJ_SERVICE
;
return
aRet
;
return
cppu
::
acquire
(
new
ScRecentFunctionsObj
());
}
// XRecentFunctions
...
...
@@ -566,27 +527,12 @@ ScFunctionListObj::~ScFunctionListObj()
{
}
// stuff for exService_...
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
ScFunctionListObj_CreateInstance
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
/* rSMgr */
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
ScFunctionListObj_get_implementation
(
css
::
uno
::
XComponentContext
*
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
SolarMutexGuard
aGuard
;
ScDLL
::
Init
();
return
(
cppu
::
OWeakObject
*
)
new
ScFunctionListObj
();
}
OUString
ScFunctionListObj
::
getImplementationName_Static
()
{
return
OUString
(
"stardiv.StarCalc.ScFunctionListObj"
);
}
uno
::
Sequence
<
OUString
>
ScFunctionListObj
::
getSupportedServiceNames_Static
()
{
uno
::
Sequence
<
OUString
>
aRet
(
1
);
OUString
*
pArray
=
aRet
.
getArray
();
pArray
[
0
]
=
SCFUNCTIONLISTOBJ_SERVICE
;
return
aRet
;
return
cppu
::
acquire
(
new
ScFunctionListObj
());
}
static
void
lcl_FillSequence
(
uno
::
Sequence
<
beans
::
PropertyValue
>&
rSequence
,
const
ScFuncDesc
&
rDesc
)
...
...
sc/source/ui/unoobj/funcuno.cxx
Dosyayı görüntüle @
406f8e48
...
...
@@ -198,33 +198,18 @@ void ScFunctionAccess::Notify( SfxBroadcaster&, const SfxHint& rHint )
}
}
// stuff for exService_...
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
ScFunctionAccess_CreateInstance
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
ScFunctionAcceess_get_implementation
(
css
::
uno
::
XComponentContext
*
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
SolarMutexGuard
aGuard
;
ScDLL
::
Init
();
return
(
::
cppu
::
OWeakObject
*
)
new
ScFunctionAccess
;
}
OUString
ScFunctionAccess
::
getImplementationName_Static
()
{
return
OUString
(
"stardiv.StarCalc.ScFunctionAccess"
);
}
uno
::
Sequence
<
OUString
>
ScFunctionAccess
::
getSupportedServiceNames_Static
()
{
uno
::
Sequence
<
OUString
>
aRet
(
1
);
OUString
*
pArray
=
aRet
.
getArray
();
pArray
[
0
]
=
SCFUNCTIONACCESS_SERVICE
;
return
aRet
;
return
cppu
::
acquire
(
new
ScFunctionAccess
);
}
// XServiceInfo
OUString
SAL_CALL
ScFunctionAccess
::
getImplementationName
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
getImplementationName_Static
(
);
return
OUString
(
"stardiv.StarCalc.ScFunctionAccess"
);
}
sal_Bool
SAL_CALL
ScFunctionAccess
::
supportsService
(
const
OUString
&
rServiceName
)
...
...
sc/util/sc.component
Dosyayı görüntüle @
406f8e48
...
...
@@ -85,13 +85,16 @@
constructor=
"ScAutoFormatsObj_get_implementation"
>
<service
name=
"com.sun.star.sheet.TableAutoFormats"
/>
</implementation>
<implementation
name=
"stardiv.StarCalc.ScFunctionAccess"
>
<implementation
name=
"stardiv.StarCalc.ScFunctionAccess"
constructor=
"ScFunctionAcceess_get_implementation"
>
<service
name=
"com.sun.star.sheet.FunctionAccess"
/>
</implementation>
<implementation
name=
"stardiv.StarCalc.ScFunctionListObj"
>
<implementation
name=
"stardiv.StarCalc.ScFunctionListObj"
constructor=
"ScFunctionListObj_get_implementation"
>
<service
name=
"com.sun.star.sheet.FunctionDescriptions"
/>
</implementation>
<implementation
name=
"stardiv.StarCalc.ScRecentFunctionsObj"
>
<implementation
name=
"stardiv.StarCalc.ScRecentFunctionsObj"
constructor=
"ScRecentFunctionsObj_get_implementation"
>
<service
name=
"com.sun.star.sheet.RecentFunctions"
/>
</implementation>
<implementation
name=
"stardiv.StarCalc.ScSpreadsheetSettings"
>
...
...
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