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
2ee43cff
Kaydet (Commit)
2ee43cff
authored
Nis 09, 2018
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prepare to handle out (and inout) parameters to event callbacks
Change-Id: I47054c1df40d1058618b0fbd3fdb82fa93ca8836
üst
6c8c727f
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
20 additions
and
15 deletions
+20
-15
unoobjw.cxx
extensions/source/ole/unoobjw.cxx
+2
-2
XSink.idl
oovbaapi/ooo/vba/XSink.idl
+1
-1
XSinkCaller.idl
oovbaapi/ooo/vba/XSinkCaller.idl
+1
-1
docsh.hxx
sw/inc/docsh.hxx
+1
-1
swmodule.hxx
sw/inc/swmodule.hxx
+1
-1
vbaapplication.cxx
sw/source/ui/vba/vbaapplication.cxx
+1
-1
vbaapplication.hxx
sw/source/ui/vba/vbaapplication.hxx
+1
-1
vbadocument.cxx
sw/source/ui/vba/vbadocument.cxx
+1
-1
vbadocument.hxx
sw/source/ui/vba/vbadocument.hxx
+1
-1
docsh.cxx
sw/source/uibase/app/docsh.cxx
+1
-1
docsh2.cxx
sw/source/uibase/app/docsh2.cxx
+4
-1
swmodule.cxx
sw/source/uibase/app/swmodule.cxx
+3
-2
unotxdoc.cxx
sw/source/uibase/uno/unotxdoc.cxx
+2
-1
No files found.
extensions/source/ole/unoobjw.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -1977,7 +1977,7 @@ public:
...
@@ -1977,7 +1977,7 @@ public:
ooo
::
vba
::
TypeAndIID
aTypeAndIID
);
ooo
::
vba
::
TypeAndIID
aTypeAndIID
);
// XSink
// XSink
void
SAL_CALL
Call
(
const
OUString
&
Method
,
const
Sequence
<
Any
>&
Arguments
)
override
;
void
SAL_CALL
Call
(
const
OUString
&
Method
,
Sequence
<
Any
>&
Arguments
)
override
;
private
:
private
:
IUnknown
*
mpUnkSink
;
IUnknown
*
mpUnkSink
;
...
@@ -1996,7 +1996,7 @@ Sink::Sink(IUnknown* pUnkSink,
...
@@ -1996,7 +1996,7 @@ Sink::Sink(IUnknown* pUnkSink,
}
}
void
SAL_CALL
void
SAL_CALL
Sink
::
Call
(
const
OUString
&
Method
,
const
Sequence
<
Any
>&
Arguments
)
Sink
::
Call
(
const
OUString
&
Method
,
Sequence
<
Any
>&
Arguments
)
{
{
SAL_INFO
(
"extensions.olebridge"
,
"Sink::Call("
<<
Method
<<
", "
<<
Arguments
.
getLength
()
<<
" arguments)"
);
SAL_INFO
(
"extensions.olebridge"
,
"Sink::Call("
<<
Method
<<
", "
<<
Arguments
.
getLength
()
<<
" arguments)"
);
...
...
oovbaapi/ooo/vba/XSink.idl
Dosyayı görüntüle @
2ee43cff
...
@@ -26,7 +26,7 @@ interface XSink
...
@@ -26,7 +26,7 @@ interface XSink
//
Automation
client
.
//
Automation
client
.
//
FIXME
:
Add
"out"
arguments
,
and
perhaps
exceptions
?
//
FIXME
:
Add
"out"
arguments
,
and
perhaps
exceptions
?
void
Call
(
[
in
]
string
Method
,
[
in
]
sequence
<
any
>
Arguments
)
;
void
Call
(
[
in
]
string
Method
,
[
in
out
]
sequence
<
any
>
Arguments
)
;
}
;
}
;
}
; };
}
; };
...
...
oovbaapi/ooo/vba/XSinkCaller.idl
Dosyayı görüntüle @
2ee43cff
...
@@ -19,7 +19,7 @@ module ooo { module vba {
...
@@ -19,7 +19,7 @@ module ooo { module vba {
interface
XSinkCaller
interface
XSinkCaller
{
{
void
CallSinks
(
[
in
]
string
Method
,
[
in
]
sequence
<
any
>
Arguments
)
;
void
CallSinks
(
[
in
]
string
Method
,
[
in
out
]
sequence
<
any
>
Arguments
)
;
}
;
}
;
}
; };
}
; };
...
...
sw/inc/docsh.hxx
Dosyayı görüntüle @
2ee43cff
...
@@ -314,7 +314,7 @@ public:
...
@@ -314,7 +314,7 @@ public:
virtual
bool
GetProtectionHash
(
/*out*/
css
::
uno
::
Sequence
<
sal_Int8
>
&
rPasswordHash
)
override
;
virtual
bool
GetProtectionHash
(
/*out*/
css
::
uno
::
Sequence
<
sal_Int8
>
&
rPasswordHash
)
override
;
void
RegisterAutomationDocumentEventsCaller
(
css
::
uno
::
Reference
<
ooo
::
vba
::
XSinkCaller
>
const
&
xCaller
);
void
RegisterAutomationDocumentEventsCaller
(
css
::
uno
::
Reference
<
ooo
::
vba
::
XSinkCaller
>
const
&
xCaller
);
void
CallAutomationDocumentEventSinks
(
const
OUString
&
Method
,
c
onst
c
ss
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
);
void
CallAutomationDocumentEventSinks
(
const
OUString
&
Method
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
);
};
};
/** Find the right DocShell and create a new one:
/** Find the right DocShell and create a new one:
...
...
sw/inc/swmodule.hxx
Dosyayı görüntüle @
2ee43cff
...
@@ -248,7 +248,7 @@ public:
...
@@ -248,7 +248,7 @@ public:
GetLanguageGuesser
();
GetLanguageGuesser
();
void
RegisterAutomationApplicationEventsCaller
(
css
::
uno
::
Reference
<
ooo
::
vba
::
XSinkCaller
>
const
&
xCaller
);
void
RegisterAutomationApplicationEventsCaller
(
css
::
uno
::
Reference
<
ooo
::
vba
::
XSinkCaller
>
const
&
xCaller
);
void
CallAutomationApplicationEventSinks
(
const
OUString
&
Method
,
c
onst
c
ss
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
);
void
CallAutomationApplicationEventSinks
(
const
OUString
&
Method
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
);
};
};
inline
const
css
::
uno
::
Reference
<
css
::
linguistic2
::
XLinguServiceEventListener
>&
inline
const
css
::
uno
::
Reference
<
css
::
linguistic2
::
XLinguServiceEventListener
>&
...
...
sw/source/ui/vba/vbaapplication.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -267,7 +267,7 @@ SwVbaApplicationOutgoingConnectionPoint::SwVbaApplicationOutgoingConnectionPoint
...
@@ -267,7 +267,7 @@ SwVbaApplicationOutgoingConnectionPoint::SwVbaApplicationOutgoingConnectionPoint
// XSinkCaller
// XSinkCaller
void
SAL_CALL
void
SAL_CALL
SwVbaApplication
::
CallSinks
(
const
OUString
&
Method
,
const
uno
::
Sequence
<
uno
::
Any
>&
Arguments
)
SwVbaApplication
::
CallSinks
(
const
OUString
&
Method
,
uno
::
Sequence
<
uno
::
Any
>&
Arguments
)
{
{
for
(
auto
&
i
:
mvSinks
)
for
(
auto
&
i
:
mvSinks
)
{
{
...
...
sw/source/ui/vba/vbaapplication.hxx
Dosyayı görüntüle @
2ee43cff
...
@@ -87,7 +87,7 @@ public:
...
@@ -87,7 +87,7 @@ public:
virtual
css
::
uno
::
Sequence
<
OUString
>
getServiceNames
()
override
;
virtual
css
::
uno
::
Sequence
<
OUString
>
getServiceNames
()
override
;
// XSinkCaller
// XSinkCaller
virtual
void
SAL_CALL
CallSinks
(
const
OUString
&
Method
,
c
onst
c
ss
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
override
;
virtual
void
SAL_CALL
CallSinks
(
const
OUString
&
Method
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
override
;
protected
:
protected
:
virtual
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
getCurrentDocument
()
override
;
virtual
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
getCurrentDocument
()
override
;
...
...
sw/source/ui/vba/vbadocument.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -561,7 +561,7 @@ SwVbaDocument::GetConnectionPoint()
...
@@ -561,7 +561,7 @@ SwVbaDocument::GetConnectionPoint()
// XSinkCaller
// XSinkCaller
void
SAL_CALL
void
SAL_CALL
SwVbaDocument
::
CallSinks
(
const
OUString
&
Method
,
const
uno
::
Sequence
<
uno
::
Any
>&
Arguments
)
SwVbaDocument
::
CallSinks
(
const
OUString
&
Method
,
uno
::
Sequence
<
uno
::
Any
>&
Arguments
)
{
{
for
(
auto
&
i
:
mvSinks
)
for
(
auto
&
i
:
mvSinks
)
{
{
...
...
sw/source/ui/vba/vbadocument.hxx
Dosyayı görüntüle @
2ee43cff
...
@@ -106,7 +106,7 @@ public:
...
@@ -106,7 +106,7 @@ public:
virtual
css
::
uno
::
Sequence
<
OUString
>
getServiceNames
()
override
;
virtual
css
::
uno
::
Sequence
<
OUString
>
getServiceNames
()
override
;
// XSinkCaller
// XSinkCaller
virtual
void
SAL_CALL
CallSinks
(
const
OUString
&
Method
,
c
onst
c
ss
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
override
;
virtual
void
SAL_CALL
CallSinks
(
const
OUString
&
Method
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
override
;
};
};
#endif // INCLUDED_SW_SOURCE_UI_VBA_VBADOCUMENT_HXX
#endif // INCLUDED_SW_SOURCE_UI_VBA_VBADOCUMENT_HXX
...
...
sw/source/uibase/app/docsh.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -1383,7 +1383,7 @@ void SwDocShell::RegisterAutomationDocumentEventsCaller(css::uno::Reference< ooo
...
@@ -1383,7 +1383,7 @@ void SwDocShell::RegisterAutomationDocumentEventsCaller(css::uno::Reference< ooo
mxAutomationDocumentEventsCaller
=
xCaller
;
mxAutomationDocumentEventsCaller
=
xCaller
;
}
}
void
SwDocShell
::
CallAutomationDocumentEventSinks
(
const
OUString
&
Method
,
c
onst
c
ss
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
void
SwDocShell
::
CallAutomationDocumentEventSinks
(
const
OUString
&
Method
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
{
{
if
(
mxAutomationDocumentEventsCaller
.
is
())
if
(
mxAutomationDocumentEventsCaller
.
is
())
mxAutomationDocumentEventsCaller
->
CallSinks
(
Method
,
Arguments
);
mxAutomationDocumentEventsCaller
->
CallSinks
(
Method
,
Arguments
);
...
...
sw/source/uibase/app/docsh2.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -255,7 +255,10 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
...
@@ -255,7 +255,10 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
lcl_processCompatibleSfxHint
(
xVbaEvents
,
rHint
);
lcl_processCompatibleSfxHint
(
xVbaEvents
,
rHint
);
if
(
rHint
.
GetId
()
==
SfxHintId
::
DocChanged
)
if
(
rHint
.
GetId
()
==
SfxHintId
::
DocChanged
)
SW_MOD
()
->
CallAutomationApplicationEventSinks
(
"DocumentChange"
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
()
);
{
uno
::
Sequence
<
css
::
uno
::
Any
>
aArgs
;
SW_MOD
()
->
CallAutomationApplicationEventSinks
(
"DocumentChange"
,
aArgs
);
}
sal_uInt16
nAction
=
0
;
sal_uInt16
nAction
=
0
;
auto
pEventHint
=
dynamic_cast
<
const
SfxEventHint
*>
(
&
rHint
);
auto
pEventHint
=
dynamic_cast
<
const
SfxEventHint
*>
(
&
rHint
);
...
...
sw/source/uibase/app/swmodule.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -221,7 +221,8 @@ uno::Reference< linguistic2::XLanguageGuessing > const & SwModule::GetLanguageGu
...
@@ -221,7 +221,8 @@ uno::Reference< linguistic2::XLanguageGuessing > const & SwModule::GetLanguageGu
SwModule
::~
SwModule
()
SwModule
::~
SwModule
()
{
{
CallAutomationApplicationEventSinks
(
"Quit"
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
()
);
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
aArgs
;
CallAutomationApplicationEventSinks
(
"Quit"
,
aArgs
);
delete
m_pErrorHandler
;
delete
m_pErrorHandler
;
EndListening
(
*
SfxGetpApp
()
);
EndListening
(
*
SfxGetpApp
()
);
}
}
...
@@ -441,7 +442,7 @@ void SwModule::RegisterAutomationApplicationEventsCaller(css::uno::Reference< oo
...
@@ -441,7 +442,7 @@ void SwModule::RegisterAutomationApplicationEventsCaller(css::uno::Reference< oo
mxAutomationApplicationEventsCaller
=
xCaller
;
mxAutomationApplicationEventsCaller
=
xCaller
;
}
}
void
SwModule
::
CallAutomationApplicationEventSinks
(
const
OUString
&
Method
,
c
onst
c
ss
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
void
SwModule
::
CallAutomationApplicationEventSinks
(
const
OUString
&
Method
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
Arguments
)
{
{
if
(
mxAutomationApplicationEventsCaller
.
is
())
if
(
mxAutomationApplicationEventsCaller
.
is
())
mxAutomationApplicationEventsCaller
->
CallSinks
(
Method
,
Arguments
);
mxAutomationApplicationEventsCaller
->
CallSinks
(
Method
,
Arguments
);
...
...
sw/source/uibase/uno/unotxdoc.cxx
Dosyayı görüntüle @
2ee43cff
...
@@ -629,7 +629,8 @@ void SwXTextDocument::dispose()
...
@@ -629,7 +629,8 @@ void SwXTextDocument::dispose()
void
SwXTextDocument
::
close
(
sal_Bool
bDeliverOwnership
)
void
SwXTextDocument
::
close
(
sal_Bool
bDeliverOwnership
)
{
{
pDocShell
->
CallAutomationDocumentEventSinks
(
"Close"
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
()
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
;
pDocShell
->
CallAutomationDocumentEventSinks
(
"Close"
,
aArgs
);
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
if
(
IsValid
()
&&
m_pHiddenViewFrame
)
if
(
IsValid
()
&&
m_pHiddenViewFrame
)
lcl_DisposeView
(
m_pHiddenViewFrame
,
pDocShell
);
lcl_DisposeView
(
m_pHiddenViewFrame
,
pDocShell
);
...
...
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