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
05101334
Kaydet (Commit)
05101334
authored
Nis 16, 2018
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add DocumentOpen and NewDocument to XApplicationOutgoing and emit such
Change-Id: Ia2a0ade0af45f1ba99b0cfa860bd1986edcf272e
üst
7fbfd070
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
XApplicationOutgoing.idl
oovbaapi/ooo/vba/word/XApplicationOutgoing.idl
+3
-1
docsh2.cxx
sw/source/uibase/app/docsh2.cxx
+24
-0
No files found.
oovbaapi/ooo/vba/word/XApplicationOutgoing.idl
Dosyayı görüntüle @
05101334
...
...
@@ -25,9 +25,11 @@ module ooo { module vba { module word {
interface XApplicationOutgoing : XInterfaceWithIID
{
void DocumentChange();
void Quit();
void DocumentChange();
void DocumentOpen([in] any Document);
void DocumentBeforeClose([in] any Document, [out] any Cancel);
void NewDocument([in] any Document);
};
}; }; };
...
...
sw/source/uibase/app/docsh2.cxx
Dosyayı görüntüle @
05101334
...
...
@@ -269,6 +269,30 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
default
:
break
;
}
switch
(
pSfxEventHint
->
GetEventId
()
)
{
case
SfxEventHintId
:
:
CreateDoc
:
{
uno
::
Any
aDocument
;
aDocument
<<=
mxAutomationDocumentObject
;
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
aArgs
[
0
]
=
aDocument
;
SW_MOD
()
->
CallAutomationApplicationEventSinks
(
"NewDocument"
,
aArgs
);
}
break
;
case
SfxEventHintId
:
:
OpenDoc
:
{
uno
::
Any
aDocument
;
aDocument
<<=
mxAutomationDocumentObject
;
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
aArgs
[
0
]
=
aDocument
;
SW_MOD
()
->
CallAutomationApplicationEventSinks
(
"DocumentOpen"
,
aArgs
);
}
break
;
default
:
break
;
}
}
sal_uInt16
nAction
=
0
;
...
...
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