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
fe537786
Kaydet (Commit)
fe537786
authored
Ock 30, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uui: Ctor feature for com.sun.star.comp.uui.UUIInteractionHandler.
Change-Id: I94858cef5402e88ddcc3e0e9e4383f7be8443e77
üst
1d77f5ce
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
65 deletions
+17
-65
interactionhandler.cxx
uui/source/interactionhandler.cxx
+13
-31
interactionhandler.hxx
uui/source/interactionhandler.hxx
+1
-14
services.cxx
uui/source/services.cxx
+1
-19
uui.component
uui/util/uui.component
+2
-1
No files found.
uui/source/interactionhandler.cxx
Dosyayı görüntüle @
fe537786
...
...
@@ -20,7 +20,6 @@
#include "iahndl.hxx"
#include "interactionhandler.hxx"
#include "comphelper/namedvaluecollection.hxx"
#include "comphelper/processfactory.hxx"
#include <cppuhelper/supportsservice.hxx>
#include "com/sun/star/awt/XWindow.hpp"
...
...
@@ -42,7 +41,7 @@ UUIInteractionHandler::~UUIInteractionHandler()
OUString
SAL_CALL
UUIInteractionHandler
::
getImplementationName
()
throw
(
uno
::
RuntimeException
)
{
return
OUString
::
createFromAscii
(
m_aImplementationName
);
return
OUString
(
"com.sun.star.comp.uui.UUIInteractionHandler"
);
}
sal_Bool
SAL_CALL
...
...
@@ -56,7 +55,13 @@ uno::Sequence< OUString > SAL_CALL
UUIInteractionHandler
::
getSupportedServiceNames
()
throw
(
uno
::
RuntimeException
)
{
return
getSupportedServiceNames_static
();
uno
::
Sequence
<
OUString
>
aNames
(
3
);
aNames
[
0
]
=
"com.sun.star.task.InteractionHandler"
;
// added to indicate support for configuration.backend.MergeRecoveryRequest
aNames
[
1
]
=
"com.sun.star.configuration.backend.InteractionHandler"
;
aNames
[
2
]
=
"com.sun.star.uui.InteractionHandler"
;
// for backwards compatibility
return
aNames
;
}
void
SAL_CALL
...
...
@@ -119,35 +124,12 @@ UUIInteractionHandler::handle(
}
}
char
const
UUIInteractionHandler
::
m_aImplementationName
[]
=
"com.sun.star.comp.uui.UUIInteractionHandler"
;
uno
::
Sequence
<
OUString
>
UUIInteractionHandler
::
getSupportedServiceNames_static
()
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
uno
::
Sequence
<
OUString
>
aNames
(
3
);
aNames
[
0
]
=
"com.sun.star.task.InteractionHandler"
;
// added to indicate support for configuration.backend.MergeRecoveryRequest
aNames
[
1
]
=
"com.sun.star.configuration.backend.InteractionHandler"
;
aNames
[
2
]
=
"com.sun.star.uui.InteractionHandler"
;
// for backwards compatibility
return
aNames
;
}
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
UUIInteractionHandler
::
createInstance
(
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
const
&
rServiceFactory
)
SAL_THROW
((
uno
::
Exception
))
{
try
{
return
*
new
UUIInteractionHandler
(
comphelper
::
getComponentContext
(
rServiceFactory
));
}
catch
(
std
::
bad_alloc
const
&
)
{
throw
uno
::
RuntimeException
(
"out of memory"
,
0
);
}
return
cppu
::
acquire
(
new
UUIInteractionHandler
(
context
));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
uui/source/interactionhandler.hxx
Dosyayı görüntüle @
fe537786
...
...
@@ -32,26 +32,13 @@ class UUIInteractionHandler:
com
::
sun
::
star
::
lang
::
XInitialization
,
com
::
sun
::
star
::
task
::
XInteractionHandler2
>
{
public
:
static
char
const
m_aImplementationName
[];
static
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_static
();
static
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
createInstance
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
const
&
rServiceFactory
)
SAL_THROW
((
com
::
sun
::
star
::
uno
::
Exception
));
private
:
UUIInteractionHelper
*
m_pImpl
;
UUIInteractionHandler
(
UUIInteractionHandler
&
);
// not implemented
void
operator
=
(
UUIInteractionHandler
);
// not implemented
public
:
UUIInteractionHandler
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
const
&
rxContext
)
...
...
uui/source/services.cxx
Dosyayı görüntüle @
fe537786
...
...
@@ -24,7 +24,6 @@
#include <sal/types.h>
#include <uno/environment.h>
#include "interactionhandler.hxx"
#include "requeststringresolver.hxx"
#include "passwordcontainer.hxx"
...
...
@@ -47,28 +46,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL uui_component_getFactory(sal_Cha
reinterpret_cast
<
XMultiServiceFactory
*
>
(
pServiceManager
)
);
Reference
<
XSingleServiceFactory
>
xFactory
;
//////////////////////////////////////////////////////////////////////
// UUI Interaction Handler.
//////////////////////////////////////////////////////////////////////
if
(
rtl_str_compare
(
pImplName
,
UUIInteractionHandler
::
m_aImplementationName
)
==
0
)
{
xFactory
=
cppu
::
createSingleFactory
(
static_cast
<
XMultiServiceFactory
*
>
(
pServiceManager
),
OUString
::
createFromAscii
(
UUIInteractionHandler
::
m_aImplementationName
),
&
UUIInteractionHandler
::
createInstance
,
UUIInteractionHandler
::
getSupportedServiceNames_static
());
}
//////////////////////////////////////////////////////////////////////
// UUI Interaction Request String Resolver.
//////////////////////////////////////////////////////////////////////
else
if
(
rtl_str_compare
(
pImplName
,
if
(
rtl_str_compare
(
pImplName
,
UUIInteractionRequestStringResolver
::
m_aImplementationName
)
==
0
)
{
...
...
uui/util/uui.component
Dosyayı görüntüle @
fe537786
...
...
@@ -23,7 +23,8 @@
name=
"com.sun.star.comp.uui.PasswordContainerInteractionHandler"
>
<service
name=
"com.sun.star.task.PasswordContainerInteractionHandler"
/>
</implementation>
<implementation
name=
"com.sun.star.comp.uui.UUIInteractionHandler"
>
<implementation
name=
"com.sun.star.comp.uui.UUIInteractionHandler"
constructor=
"com_sun_star_comp_uui_UUIInteractionHandler_get_implementation"
>
<service
name=
"com.sun.star.configuration.backend.InteractionHandler"
/>
<service
name=
"com.sun.star.task.InteractionHandler"
/>
<service
name=
"com.sun.star.uui.InteractionHandler"
/>
...
...
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