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
eaf41045
Kaydet (Commit)
eaf41045
authored
Nis 22, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
comphelper::dispatchCommand: allow passing command arguments
Change-Id: I6464c5d1a46fadac2510700101f3c8cc29dd7995
üst
017f2507
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
dispatchcommand.cxx
comphelper/source/misc/dispatchcommand.cxx
+2
-2
init.cxx
desktop/source/lib/init.cxx
+1
-1
dispatchcommand.hxx
include/comphelper/dispatchcommand.hxx
+3
-1
button.cxx
vcl/source/control/button.cxx
+1
-1
No files found.
comphelper/source/misc/dispatchcommand.cxx
Dosyayı görüntüle @
eaf41045
...
...
@@ -30,7 +30,7 @@ using namespace css;
namespace
comphelper
{
bool
dispatchCommand
(
const
OUString
&
rCommand
)
bool
dispatchCommand
(
const
OUString
&
rCommand
,
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
rArguments
)
{
// Target where we will execute the .uno: command
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
...
...
@@ -54,7 +54,7 @@ bool dispatchCommand(const OUString& rCommand)
return
false
;
// And do the work...
xDisp
->
dispatch
(
aCommandURL
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
);
xDisp
->
dispatch
(
aCommandURL
,
rArguments
);
return
true
;
}
...
...
desktop/source/lib/init.cxx
Dosyayı görüntüle @
eaf41045
...
...
@@ -705,7 +705,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* /*pThis*/, const char* pC
{
OUString
aCommand
(
pCommand
,
strlen
(
pCommand
),
RTL_TEXTENCODING_UTF8
);
if
(
!
comphelper
::
dispatchCommand
(
aCommand
))
if
(
!
comphelper
::
dispatchCommand
(
aCommand
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
))
{
gImpl
->
maLastExceptionMsg
=
"Failed to dispatch the .uno: command"
;
}
...
...
include/comphelper/dispatchcommand.hxx
Dosyayı görüntüle @
eaf41045
...
...
@@ -12,6 +12,8 @@
#include <comphelper/comphelperdllapi.h>
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
namespace
comphelper
{
...
...
@@ -22,7 +24,7 @@ namespace comphelper
@return true on success.
*/
COMPHELPER_DLLPUBLIC
bool
dispatchCommand
(
const
OUString
&
rCommand
);
COMPHELPER_DLLPUBLIC
bool
dispatchCommand
(
const
OUString
&
rCommand
,
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
rArguments
);
}
...
...
vcl/source/control/button.cxx
Dosyayı görüntüle @
eaf41045
...
...
@@ -599,7 +599,7 @@ sal_IntPtr Button::dispatchCommandHandler(void *, void *pCaller)
if
(
pButton
==
NULL
)
return
0
;
if
(
!
comphelper
::
dispatchCommand
(
pButton
->
maCommand
))
if
(
!
comphelper
::
dispatchCommand
(
pButton
->
maCommand
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
))
return
0
;
return
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