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
c75a46fb
Kaydet (Commit)
c75a46fb
authored
May 14, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, use DialogProvider service constructor
Change-Id: I1652be5cefd00892426cf8559cadc9605ad8d439
üst
8bf8a2f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
eventatt.cxx
basic/source/classes/eventatt.cxx
+8
-15
DialogProvider.idl
offapi/com/sun/star/awt/DialogProvider.idl
+8
-0
No files found.
basic/source/classes/eventatt.cxx
Dosyayı görüntüle @
c75a46fb
...
...
@@ -27,7 +27,7 @@
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/awt/
X
DialogProvider.hpp>
#include <com/sun/star/awt/DialogProvider.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
...
...
@@ -533,24 +533,17 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrit
}
Reference
<
XScriptListener
>
xScriptListener
=
new
BasicScriptListener_Impl
(
GetSbData
()
->
pInst
->
GetBasic
(),
xModel
);
Sequence
<
Any
>
aArgs
(
4
);
if
(
bDocDialog
)
{
aArgs
[
0
]
<<=
xModel
;
}
else
{
aArgs
[
0
]
<<=
uno
::
Reference
<
uno
::
XInterface
>
();
}
aArgs
[
1
]
<<=
xInput
;
aArgs
[
2
]
=
aDlgLibAny
;
aArgs
[
3
]
<<=
xScriptListener
;
// Create a "living" Dialog
Reference
<
XControl
>
xCntrl
;
try
{
Reference
<
XDialogProvider
>
xDlgProv
(
xMSF
->
createInstanceWithArguments
(
OUString
(
"com.sun.star.comp.scripting.DialogProvider"
),
aArgs
),
UNO_QUERY
);
xCntrl
.
set
(
xDlgProv
->
createDialog
(
OUString
()
),
UNO_QUERY_THROW
);
Reference
<
XDialogProvider
>
xDlgProv
;;
if
(
bDocDialog
)
xDlgProv
=
css
::
awt
::
DialogProvider
::
createWithModelAndListener
(
xContext
,
xModel
,
xInput
,
aDlgLibAny
,
xScriptListener
);
else
xDlgProv
=
css
::
awt
::
DialogProvider
::
createWithModelAndListener
(
xContext
,
uno
::
Reference
<
frame
::
XModel
>
(),
xInput
,
aDlgLibAny
,
xScriptListener
);
xCntrl
.
set
(
xDlgProv
->
createDialog
(
OUString
()
),
UNO_QUERY_THROW
);
// Add dialog model to dispose vector
Reference
<
XComponent
>
xDlgComponent
(
xCntrl
->
getModel
(),
UNO_QUERY
);
GetSbData
()
->
pInst
->
getComponentVector
().
push_back
(
xDlgComponent
);
...
...
offapi/com/sun/star/awt/DialogProvider.idl
Dosyayı görüntüle @
c75a46fb
...
...
@@ -22,6 +22,8 @@
#
include
<
com
/
sun
/
star
/
awt
/
XDialogProvider
.
idl>
#
include
<
com
/
sun
/
star
/
frame
/
XModel
.
idl>
#
include
<
com
/
sun
/
star
/
io
/
XInputStream
.
idl>
#
include
<
com
/
sun
/
star
/
script
/
XScriptListener
.
idl>
...
...
@@ -33,7 +35,13 @@ module com { module sun { module star { module awt {
*/
service
DialogProvider
:
com
::
sun
::
star
::
awt
::
XDialogProvider
{
createWithModel
(
[
in
]
com
::
sun
::
star
::
frame
::
XModel
Model
)
;
createWithModelAndListener
(
[
in
]
com
::
sun
::
star
::
frame
::
XModel
Model
,
[
in
]
com
::
sun
::
star
::
io
::
XInputStream
InStream
,
[
in
]
any
DialogLib
,
[
in
]
com
::
sun
::
star
::
script
::
XScriptListener
ScriptListener
)
;
}
;
...
...
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