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
22b0c09f
Kaydet (Commit)
22b0c09f
authored
Eyl 07, 2016
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#74608: Ctor function for css.comp.uui.UUIInteractionRequestStringResolver
Change-Id: I42c0c2cc8797647aa9dd676034137a1430e42fee
üst
3b6f7f38
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
62 deletions
+13
-62
requeststringresolver.cxx
uui/source/requeststringresolver.cxx
+8
-25
requeststringresolver.hxx
uui/source/requeststringresolver.hxx
+2
-14
services.cxx
uui/source/services.cxx
+1
-21
uui.component
uui/util/uui.component
+2
-2
No files found.
uui/source/requeststringresolver.cxx
Dosyayı görüntüle @
22b0c09f
...
...
@@ -19,7 +19,6 @@
#include "requeststringresolver.hxx"
#include "iahndl.hxx"
#include <comphelper/processfactory.hxx>
#include <cppuhelper/supportsservice.hxx>
using
namespace
css
;
...
...
@@ -39,7 +38,7 @@ OUString SAL_CALL
UUIInteractionRequestStringResolver
::
getImplementationName
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
OUString
::
createFromAscii
(
m_aImplementationName
);
return
OUString
(
"com.sun.star.comp.uui.UUIInteractionRequestStringResolver"
);
}
sal_Bool
SAL_CALL
...
...
@@ -50,11 +49,12 @@ UUIInteractionRequestStringResolver::supportsService(
return
cppu
::
supportsService
(
this
,
rServiceName
);
}
uno
::
Sequence
<
OUString
>
SAL_CALL
UUIInteractionRequestStringResolver
::
getSupportedServiceNames
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
getSupportedServiceNames_static
()
;
return
{
"com.sun.star.task.InteractionRequestStringResolver"
}
;
}
beans
::
Optional
<
OUString
>
SAL_CALL
...
...
@@ -73,29 +73,12 @@ UUIInteractionRequestStringResolver::getStringFromInformationalRequest(
}
}
char
const
UUIInteractionRequestStringResolver
::
m_aImplementationName
[]
=
"com.sun.star.comp.uui.UUIInteractionRequestStringResolver"
;
uno
::
Sequence
<
OUString
>
UUIInteractionRequestStringResolver
::
getSupportedServiceNames_static
()
{
uno
::
Sequence
<
OUString
>
aNames
{
"com.sun.star.task.InteractionRequestStringResolver"
};
return
aNames
;
}
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
UUIInteractionRequestStringResolver
::
createInstance
(
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
const
&
rServiceFactory
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_comp_uui_UUIInteractionRequestStringResolver_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
try
{
return
*
new
UUIInteractionRequestStringResolver
(
comphelper
::
getComponentContext
(
rServiceFactory
));
}
catch
(
std
::
bad_alloc
const
&
)
{
throw
uno
::
RuntimeException
(
"out of memory"
,
nullptr
);
}
return
cppu
::
acquire
(
new
UUIInteractionRequestStringResolver
(
context
));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
uui/source/requeststringresolver.hxx
Dosyayı görüntüle @
22b0c09f
...
...
@@ -21,7 +21,6 @@
#define INCLUDED_UUI_SOURCE_REQUESTSTRINGRESOLVER_HXX
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/task/XInteractionRequestStringResolver.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase.hxx>
...
...
@@ -35,16 +34,8 @@ class UUIInteractionRequestStringResolver:
css
::
task
::
XInteractionRequestStringResolver
>
{
public
:
static
char
const
m_aImplementationName
[];
static
css
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_static
();
static
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
SAL_CALL
createInstance
(
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
const
&
rServiceFactory
);
explicit
UUIInteractionRequestStringResolver
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
&
rxContext
);
private
:
std
::
unique_ptr
<
UUIInteractionHelper
>
m_pImpl
;
...
...
@@ -52,9 +43,6 @@ private:
UUIInteractionRequestStringResolver
(
UUIInteractionRequestStringResolver
&
)
=
delete
;
void
operator
=
(
UUIInteractionRequestStringResolver
&
)
=
delete
;
explicit
UUIInteractionRequestStringResolver
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
&
rxContext
);
virtual
~
UUIInteractionRequestStringResolver
()
override
;
virtual
OUString
SAL_CALL
getImplementationName
()
...
...
uui/source/services.cxx
Dosyayı görüntüle @
22b0c09f
...
...
@@ -24,7 +24,6 @@
#include <sal/types.h>
#include <uno/environment.h>
#include "requeststringresolver.hxx"
#include "passwordcontainer.hxx"
using
namespace
com
::
sun
::
star
::
uno
;
...
...
@@ -45,28 +44,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL uui_component_getFactory(sal_Cha
static_cast
<
XMultiServiceFactory
*
>
(
pServiceManager
)
);
Reference
<
XSingleServiceFactory
>
xFactory
;
// UUI Interaction Request String Resolver.
if
(
rtl_str_compare
(
pImplName
,
UUIInteractionRequestStringResolver
::
m_aImplementationName
)
==
0
)
{
xFactory
=
cppu
::
createSingleFactory
(
static_cast
<
XMultiServiceFactory
*
>
(
pServiceManager
),
OUString
::
createFromAscii
(
UUIInteractionRequestStringResolver
::
m_aImplementationName
),
&
UUIInteractionRequestStringResolver
::
createInstance
,
UUIInteractionRequestStringResolver
::
getSupportedServiceNames_static
());
}
// UUI Password Container Interaction Handler.
else
if
(
uui
::
PasswordContainerInteractionHandler
::
getImplementationName_Static
().
if
(
uui
::
PasswordContainerInteractionHandler
::
getImplementationName_Static
().
equalsAscii
(
pImplName
)
)
{
xFactory
=
...
...
uui/util/uui.component
Dosyayı görüntüle @
22b0c09f
...
...
@@ -29,8 +29,8 @@
<service
name=
"com.sun.star.task.InteractionHandler"
/>
<service
name=
"com.sun.star.uui.InteractionHandler"
/>
</implementation>
<implementation
name=
"com.sun.star.comp.uui.UUIInteractionRequestStringResolver
"
>
<implementation
name=
"com.sun.star.comp.uui.UUIInteractionRequestStringResolver"
constructor=
"com_sun_star_comp_uui_UUIInteractionRequestStringResolver_get_implementation
"
>
<service
name=
"com.sun.star.task.InteractionRequestStringResolver"
/>
</implementation>
</component>
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